/*! For license information please see imageCompressorNew.js.LICENSE.txt */ (()=>{var e={1928:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},2012:(e,t,n)=>{"use strict";var r=n(9516),i=["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"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},2505:(e,t,n)=>{e.exports=n(8015)},2881:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},3191:(e,t,n)=>{"use strict";var r=n(1928);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},3471:(e,t,n)=>{"use strict";var r=n(9516);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},3864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3948:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4202:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4490:(e,t,n)=>{"use strict";var r=n(9516),i=n(2881),o=n(3864),a=n(6987);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},4680:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},5155:(e,t,n)=>{"use strict";var r=n(9516),i=n(9106),o=n(3471),a=n(4490),s=n(5343);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}}),e.exports=c},5343:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,function(e){void 0!==t[e]&&(n[e]=t[e])}),r.forEach(o,function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])}),r.forEach(a,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])});var s=i.concat(o).concat(a),c=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return r.forEach(c,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n}},5449:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.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}},e}},5592:(e,t,n)=>{"use strict";var r=n(9516),i=n(7522),o=n(9106),a=n(9615),s=n(2012),c=n(4202),l=n(7763);e.exports=function(e){return new Promise(function(t,u){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",v=e.auth.password||"";p.Authorization="Basic "+btoa(h+":"+v)}var m=a(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};i(t,u,r),f=null}},f.onabort=function(){f&&(u(l("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){u(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(l(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var g=n(3948),y=(e.withCredentials||c(m))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(p[e.xsrfHeaderName]=y)}if("setRequestHeader"in f&&r.forEach(p,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),u(e),f=null)}),void 0===d&&(d=null),f.send(d)})}},5606:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u1)for(var n=1;n{"use strict";var r=n(5606),i=n(9516),o=n(7018),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(c=n(5592)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){l.headers[e]={}}),i.forEach(["post","put","patch"],function(e){l.headers[e]=i.merge(a)}),e.exports=l},7018:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},7522:(e,t,n)=>{"use strict";var r=n(7763);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},7763:(e,t,n)=>{"use strict";var r=n(5449);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},7980:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},8015:(e,t,n)=>{"use strict";var r=n(9516),i=n(9012),o=n(5155),a=n(5343);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(6987));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(1928),c.CancelToken=n(3191),c.isCancel=n(3864),c.all=function(e){return Promise.all(e)},c.spread=n(7980),e.exports=c,e.exports.default=c},9012:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(9516);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},9133:function(e){e.exports=function(){"use strict";var e,t=(function(e){var t=function(){function e(e,t){for(var n=0;n1?n-1:0),i=1;i=a.length);)a[o++].apply(this,r)}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r=r.length);){var i=r[n++];if(/(^| )dz-message($| )/.test(i.className)){t=i,i.className="dz-message";break}}t||(t=e.createElement('
'),this.element.appendChild(t));var o=t.getElementsByTagName("span")[0];return o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==n?(t=i.srcWidth,n=i.srcHeight):null==t?t=n*o:null==n&&(n=t/o);var a=(t=Math.min(t,i.srcWidth))/(n=Math.min(n,i.srcHeight));if(i.srcWidth>t||i.srcHeight>n)if("crop"===r)o>a?(i.srcHeight=e.height,i.srcWidth=i.srcHeight*a):(i.srcWidth=e.width,i.srcHeight=i.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");o>a?n=t/o:t=n*o}return i.srcX=(e.width-i.srcWidth)/2,i.srcY=(e.height-i.srcHeight)/2,i.trgWidth=t,i.trgHeight=n,i},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'
\n
\n
\n
\n
\n
\n
\n
\n
\n \n Check\n \n \n \n \n \n
\n
\n \n Error\n \n \n \n \n \n \n \n
\n
',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var n=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=e.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);for(var r=0,i=i=t.previewElement.querySelectorAll("[data-dz-name]");!(r>=i.length);){var o=i[r++];o.textContent=t.name}for(var a=0,s=s=t.previewElement.querySelectorAll("[data-dz-size]");!(a>=s.length);)(o=s[a++]).innerHTML=this.filesize(t.size);this.options.addRemoveLinks&&(t._removeLink=e.createElement(''+this.options.dictRemoveFile+""),t.previewElement.appendChild(t._removeLink));for(var c=function(r){return r.preventDefault(),r.stopPropagation(),t.status===e.UPLOADING?e.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(t)}):n.options.dictRemoveFileConfirmation?e.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(t)}):n.removeFile(t)},l=0,u=u=t.previewElement.querySelectorAll("[data-dz-remove]");!(l>=u.length);)u[l++].addEventListener("click",c)}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");!(n>=r.length);){var i=r[n++];i.alt=e.name,i.src=t}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");!(n>=r.length);)r[n++].textContent=t}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=0,i=i=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");!(r>=i.length);){var o=i[r++];"PROGRESS"===o.nodeName?o.value=t:o.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=o.length);){var a=o[i++];for(var s in a){var c=a[s];e[s]=c}}return e}}]),t(e,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:"getFilesWithStatus",value:function(e){return this.files.filter(function(t){return t.status===e}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(e.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(e.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(e.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(t){return t.status===e.UPLOADING||t.status===e.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var t=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(e.createElement('
'+this.options.dictDefaultMessage+"
")),this.clickableElements.length&&function n(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",e.getElement(t.options.hiddenInputContainer,"hiddenInputContainer").appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",function(){var e=t.hiddenFileInput.files;if(e.length)for(var r=0,i=i=e;!(r>=i.length);){var o=i[r++];t.addFile(o)}return t.emit("addedfiles",e),n()})}(),this.URL=null!==window.URL?window.URL:window.webkitURL;for(var n=0,r=r=this.events;!(n>=r.length);){var i=r[n++];this.on(i,this.options[i])}this.on("uploadprogress",function(){return t.updateTotalUploadProgress()}),this.on("removedfile",function(){return t.updateTotalUploadProgress()}),this.on("canceled",function(e){return t.emit("complete",e)}),this.on("complete",function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout(function(){return t.emit("queuecomplete")},0)});var o=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return o(e),t.emit("dragenter",e)},dragover:function(e){var n=void 0;try{n=e.dataTransfer.effectAllowed}catch(e){}return e.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",o(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return o(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}],this.clickableElements.forEach(function(n){return t.listeners.push({element:n,events:{click:function(r){return(n!==t.element||r.target===t.element||e.elementInside(r.target,t.element.querySelector(".dz-message")))&&t.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,e.instances.splice(e.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,i=i=this.getActiveFiles();!(r>=i.length);){var o=i[r++];t+=o.upload.bytesSent,n+=o.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var t,n=void 0;if(t=this.getExistingFallback())return t;var r='
';this.options.dictFallbackText&&(r+="

"+this.options.dictFallbackText+"

"),r+='
';var i=e.createElement(r);return"FORM"!==this.element.tagName?(n=e.createElement('
')).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=n?n:i}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n0){for(var r=["tb","gb","mb","kb","b"],i=0;i=Math.pow(this.options.filesizeBase,4-i)/10){t=e/Math.pow(this.options.filesizeBase,4-i),n=o;break}}t=Math.round(10*t)/10}return""+t+" "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n=n.length);){var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,i=i=e;!(r>=i.length);){var o,a=i[r++];null!=a.webkitGetAsEntry&&(o=a.webkitGetAsEntry())?o.isFile?n.push(t.addFile(a.getAsFile())):o.isDirectory?n.push(t._addFilesFromDirectory(o,o.name)):n.push(void 0):null==a.getAsFile||null!=a.kind&&"file"!==a.kind?n.push(void 0):n.push(t.addFile(a.getAsFile()))}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),i=function(e){return n="log",r=function(t){return t.log(e)},null!=(t=console)&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};return function e(){return r.readEntries(function(r){if(r.length>0){for(var i=0,o=o=r;!(i>=o.length);){var a=o[i++];a.isFile?a.file(function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)}):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null},i)}()}},{key:"accept",value:function(t,n){return this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?n(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):e.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(n(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,n):n(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var n=this;return t.upload={uuid:e.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t),chunked:this.options.chunking&&(this.options.forceChunking||t.size>this.options.chunkSize),totalChunkCount:Math.ceil(t.size/this.options.chunkSize)},this.files.push(t),t.status=e.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){return e?(t.accepted=!1,n._errorProcessing([t],e)):(t.accepted=!0,n.options.autoQueue&&n.enqueueFile(t)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(t){var n=this;if(t.status!==e.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=e.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return n.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()})}}},{key:"removeFile",value:function(t){if(t.status===e.UPLOADING&&this.cancelUpload(t),this.files=a(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);for(var n=0,r=r=this.files.slice();!(n>=r.length);){var i=r[n++];(i.status!==e.UPLOADING||t)&&this.removeFile(i)}return null}},{key:"resizeImage",value:function(t,n,r,i,o){var a=this;return this.createThumbnail(t,n,r,i,!0,function(n,r){if(null==r)return o(t);var i=a.options.resizeMimeType;null==i&&(i=t.type);var s=r.toDataURL(i,a.options.resizeQuality);return"image/jpeg"!==i&&"image/jpg"!==i||(s=l.restore(t.dataURL,s)),o(e.dataURItoBlob(s))})}},{key:"createThumbnail",value:function(e,t,n,r,i,o){var a=this,s=new FileReader;return s.onload=function(){if(e.dataURL=s.result,"image/svg+xml"!==e.type)return a.createThumbnailFromUrl(e,t,n,r,i,o);null!=o&&o(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,i,o,a){var s=this,l=document.createElement("img");return a&&(l.crossOrigin=a),l.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&i&&(a=function(e){return EXIF.getData(l,function(){return e(EXIF.getTag(this,"Orientation"))})}),a(function(i){e.width=l.width,e.height=l.height;var a=s.options.resize.call(s,e,t,n,r),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=a.trgWidth,u.height=a.trgHeight,i>4&&(u.width=a.trgHeight,u.height=a.trgWidth),i){case 2:d.translate(u.width,0),d.scale(-1,1);break;case 3:d.translate(u.width,u.height),d.rotate(Math.PI);break;case 4:d.translate(0,u.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-u.width);break;case 7:d.rotate(.5*Math.PI),d.translate(u.height,-u.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-u.height,0)}c(d,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var p=u.toDataURL("image/png");if(null!=o)return o(p,u)})},null!=o&&(l.onerror=o),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n=r.length);){var i=r[n++];i.processing=!0,i.status=e.UPLOADING,this.emit("processing",i)}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter(function(t){return t.xhr===e}).map(function(e){return e})}},{key:"cancelUpload",value:function(t){if(t.status===e.UPLOADING){for(var n=this._getFilesWithXhr(t.xhr),r=0,i=i=n;!(r>=i.length);)i[r++].status=e.CANCELED;void 0!==t.xhr&&t.xhr.abort();for(var o=0,a=a=n;!(o>=a.length);){var s=a[o++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else t.status!==e.ADDED&&t.status!==e.QUEUED||(t.status=e.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=i.upload.totalChunkCount)){var a=r*n.options.chunkSize,s=Math.min(a+n.options.chunkSize,i.size),c={name:n._getParamName(0),data:o.webkitSlice?o.webkitSlice(a,s):o.slice(a,s),filename:i.upload.filename,chunkIndex:r};i.upload.chunks[r]={file:i,index:r,dataBlock:c,status:e.UPLOADING,progress:0,retries:0},n._uploadData(t,[c])}};if(i.upload.finishedChunkUpload=function(r){var o=!0;r.status=e.SUCCESS,r.dataBlock=null,r.xhr=null;for(var s=0;s=a.length);)a[o++].xhr=i;t[0].upload.chunked&&(t[0].upload.chunks[n[0].chunkIndex].xhr=i);var s=this.resolveOption(this.options.method,t),c=this.resolveOption(this.options.url,t);i.open(s,c,!0),i.timeout=this.resolveOption(this.options.timeout,t),i.withCredentials=!!this.options.withCredentials,i.onload=function(e){r._finishedUploading(t,i,e)},i.onerror=function(){r._handleUploadError(t,i)},(null!=i.upload?i.upload:i).onprogress=function(e){return r._updateFilesUploadProgress(t,i,e)};var l={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&e.extend(l,this.options.headers),l){var d=l[u];d&&i.setRequestHeader(u,d)}var p=new FormData;if(this.options.params){var f=this.options.params;for(var h in"function"==typeof f&&(f=f.call(this,t,i,t[0].upload.chunked?this._getChunk(t[0],i):null)),f){var v=f[h];p.append(h,v)}}for(var m=0,g=g=t;!(m>=g.length);){var y=g[m++];this.emit("sending",y,i,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",t,i,p),this._addFormElementData(p);for(var _=0;_=n.length);){var r=n[t++],i=r.getAttribute("name"),o=r.getAttribute("type");if(o&&(o=o.toLowerCase()),null!=i)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var a=0,s=s=r.options;!(a>=s.length);){var c=s[a++];c.selected&&e.append(i,c.value)}else(!o||"checkbox"!==o&&"radio"!==o||r.checked)&&e.append(i,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var i=e[0],o=this._getChunk(i,t);o.progress=r,o.total=n.total,o.bytesSent=n.loaded,i.upload.progress=0,i.upload.total=0,i.upload.bytesSent=0;for(var a=0;a=c.length);){var l=c[s++];l.upload.progress=r,l.upload.total=n.total,l.upload.bytesSent=n.loaded}for(var u=0,d=d=e;!(u>=d.length);){var p=d[u++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var f=!0;r=100;for(var h=0,v=v=e;!(h>=v.length);){var m=v[h++];100===m.upload.progress&&m.upload.bytesSent===m.upload.total||(f=!1),m.upload.progress=r,m.upload.bytesSent=m.upload.total}if(f)return;for(var g=0,y=y=e;!(g>=y.length);){var _=y[g++];this.emit("uploadprogress",_,r,_.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(t,n,r){var i=void 0;if(t[0].status!==e.CANCELED&&4===n.readyState){if("arraybuffer"!==n.responseType&&"blob"!==n.responseType&&(i=n.responseText,n.getResponseHeader("content-type")&&~n.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(t){r=t,i="Invalid JSON response from server."}this._updateFilesUploadProgress(t),200<=n.status&&n.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],n)):this._finished(t,i,r):this._handleUploadError(t,n,i)}}},{key:"_handleUploadError",value:function(t,n,r){if(t[0].status!==e.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(t[0],n);if(i.retries++=a.length);)a[o++],this._errorProcessing(t,r||this.options.dictResponseError.replace("{{statusCode}}",n.status),n)}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(t,n,r){for(var i=0,o=o=t;!(i>=o.length);){var a=o[i++];a.status=e.SUCCESS,this.emit("success",a,n,r),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,n,r),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,n,r){for(var i=0,o=o=t;!(i>=o.length);){var a=o[i++];a.status=e.ERROR,this.emit("error",a,n,r),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,n,r),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}]),e}();o.initClass(),o.version="5.5.1",o.options={},o.optionsForElement=function(e){return e.getAttribute("id")?o.options[s(e.getAttribute("id"))]:void 0},o.instances=[],o.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},o.autoDiscover=!0,o.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,i=i=t;!(r>=i.length);){var o=i[r++];/(^| )dropzone($| )/.test(o.className)?n.push(e.push(o)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;!(n>=r.length);){var i=r[n++];!1!==o.optionsForElement(i)?t.push(new o(i)):t.push(void 0)}return t}()},o.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],o.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=o.blacklistedBrowsers;!(t>=n.length);)n[t++].test(navigator.userAgent)&&(e=!1);else e=!1;else e=!1;return e},o.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),o=0,a=t.length,s=0<=a;s?o<=a:o>=a;s?o++:o--)i[o]=t.charCodeAt(o);return new Blob([r],{type:n})};var a=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},s=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};o.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},o.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},o.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var i=0,o=o=e;!(i>=o.length);)n=o[i++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var a=0,s=s=document.querySelectorAll(e);!(a>=s.length);)n=s[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},o.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},o.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),i=0,o=o=t;!(i>=o.length);){var a=o[i++];if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new o(this,e)})}),null!==e?e.exports=o:window.Dropzone=o,o.ADDED="added",o.QUEUED="queued",o.ACCEPTED=o.QUEUED,o.UPLOADING="uploading",o.PROCESSING=o.UPLOADING,o.CANCELED="canceled",o.ERROR="error",o.SUCCESS="success";var c=function(e,t,n,r,i,o,a,s,c,l){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var i=r.getImageData(1,0,1,t).data,o=0,a=t,s=t;s>o;)0===i[4*(s-1)+3]?a=s:o=s,s=a+o>>1;var c=s/t;return 0===c?1:c}(t);return e.drawImage(t,n,r,i,o,a,s,c,l/u)},l=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,i="",o=void 0,a=void 0,s=void 0,c="",l=0;o=(n=e[l++])>>2,a=(3&n)<<4|(r=e[l++])>>4,s=(15&r)<<2|(i=e[l++])>>6,c=63&i,isNaN(r)?s=c=64:isNaN(i)&&(c=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(c),n=r=i="",o=a=s=c="",le.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",i=void 0,o=void 0,a="",s=0,c=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&i)<<4|(o=this.KEY_STR.indexOf(e.charAt(s++)))>>2,r=(3&o)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),c.push(t),64!==o&&c.push(n),64!==a&&c.push(r),t=n=r="",i=o=a="",s{var o=new FormData;let a=new XMLHttpRequest,s="function"==typeof t.signingURL?t.signingURL(e):t.signingURL;a.open("POST",s),a.onload=function(){200==a.status?r(JSON.parse(a.response)):i(a.statusText)},a.onerror=function(e){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),i(e)},!0===t.withCredentials&&(a.withCredentials=!0),Object.entries(t.headers||{}).forEach(([e,t])=>{a.setRequestHeader(e,t)}),n=Object.assign(n,t.params||{}),Object.entries(n).forEach(([e,t])=>{o.append(e,t)}),a.send(o)})},sendFile(e,t,n){var r=n?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(e,t).then(t=>r(t,e)).catch(e=>e)},setResponseHandler(e,t){t.s3Signature=e.signature,t.s3Url=e.postEndpoint},sendS3Handler(e,t){let n=new FormData,r=e.signature;return Object.keys(r).forEach(function(e){n.append(e,r[e])}),n.append("file",t),new Promise((t,r)=>{let i=new XMLHttpRequest;i.open("POST",e.postEndpoint),i.onload=function(){if(201==i.status){var e=(new window.DOMParser).parseFromString(i.response,"text/xml").firstChild.children[0].innerHTML;t({success:!0,message:e})}else{var n=(new window.DOMParser).parseFromString(i.response,"text/xml").firstChild.children[0].innerHTML;r({success:!1,message:n+". Request is marked as resolved when returns as status 201"})}},i.onerror=function(e){var t=(new window.DOMParser).parseFromString(i.response,"text/xml").firstChild.children[1].innerHTML;r({success:!1,message:t})},i.send(n)})}};return t.autoDiscover=!1,function(e,t,n,r,i,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=u):t&&(u=a?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var p=d.render;d.render=function(e,t){return u.call(t),p(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"dropzoneElement",class:{"vue-dropzone dropzone":this.includeStyling},attrs:{id:this.id}},[this.useCustomSlot?t("div",{staticClass:"dz-message"},[this._t("default",[this._v("Drop files here to upload")])],2):this._e()])},staticRenderFns:[]},void 0,{props:{id:{type:String,required:!0,default:"dropzone"},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1},duplicateCheck:{type:Boolean,default:!1,required:!1},useCustomSlot:{type:Boolean,default:!1,required:!1}},data:()=>({isS3:!1,isS3OverridesServerPropagation:!1,wasQueueAutoProcess:!0}),computed:{dropzoneSettings(){let e={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach(function(t){e[t]=this.options[t]},this),null!==this.awss3&&(e.autoProcessQueue=!1,this.isS3=!0,this.isS3OverridesServerPropagation=!1===this.awss3.sendFileToServer,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue),this.isS3OverridesServerPropagation&&(e.url=e=>e[0].s3Url)),e}},mounted(){if(this.$isServer&&this.hasBeenMounted)return;this.hasBeenMounted=!0,this.dropzone=new t(this.$refs.dropzoneElement,this.dropzoneSettings);let e=this;this.dropzone.on("thumbnail",function(t,n){e.$emit("vdropzone-thumbnail",t,n)}),this.dropzone.on("addedfile",function(t){var n,r;if(e.duplicateCheck&&this.files.length)for(n=0,r=this.files.length;n-1||t.indexOf(".png")>-1||t.indexOf(".jpg")>-1||t.indexOf(".jpeg")>-1||t.indexOf(".gif")>-1||t.indexOf(".webp")>-1)&&(n=!0),this.dropzone.options.createImageThumbnails&&n&&e.size<=1024*this.dropzone.options.maxThumbnailFilesize*1024){t&&this.dropzone.emit("thumbnail",e,t);for(var r=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),i=0;i{this.getSignedAndUploadToS3(e)}):this.dropzone.processQueue(),this.dropzone.on("success",function(){e.options.autoProcessQueue=!0}),this.dropzone.on("queuecomplete",function(){e.options.autoProcessQueue=!1})},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(e){return this.dropzone.filesize(e)},accept:function(e,t){return this.dropzone.accept(e,t)},addFile:function(e){return this.dropzone.addFile(e)},removeFile:function(e){this.dropzone.removeFile(e)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3(e){var t=n.sendFile(e,this.awss3,this.isS3OverridesServerPropagation);this.isS3OverridesServerPropagation?t.then(()=>{setTimeout(()=>this.dropzone.processFile(e))}):t.then(t=>{t.success?(e.s3ObjectLocation=t.message,setTimeout(()=>this.dropzone.processFile(e)),this.$emit("vdropzone-s3-upload-success",t.message)):void 0!==t.message?this.$emit("vdropzone-s3-upload-error",t.message):this.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")}),t.catch(e=>{alert(e)})},setAWSSigningURL(e){this.isS3&&(this.awss3.signingURL=e)}}},void 0,!1,void 0,void 0,void 0)}()},9137:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},9516:(e,t,n)=>{"use strict";var r=n(9012),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n{"use strict";var r=n(9137),i=n(4680);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=Object.freeze({}),t=Array.isArray;function r(e){return null==e}function i(e){return null!=e}function o(e){return!0===e}function a(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return"function"==typeof e}function c(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function d(e){return"[object RegExp]"===l.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,v,2):String(e)}function v(e,t){return t&&t.__v_isRef?t.value:t}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(r,1)}}var w=Object.prototype.hasOwnProperty;function k(e,t){return w.call(e,t)}function x(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var C=/-(\w)/g,S=x(function(e){return e.replace(C,function(e,t){return t?t.toUpperCase():""})}),z=x(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),F=/\B([A-Z])/g,$=x(function(e){return e.replace(F,"-$1").toLowerCase()});var E=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function T(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function O(e,t){for(var n in t)e[n]=t[n];return e}function A(e){for(var t={},n=0;n0,Z=X&&X.indexOf("edge/")>0;X&&X.indexOf("android");var ee=X&&/iphone|ipad|ipod|ios/.test(X);X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X);var te,ne=X&&X.match(/firefox\/(\d+)/),re={}.watch,ie=!1;if(G)try{var oe={};Object.defineProperty(oe,"passive",{get:function(){ie=!0}}),window.addEventListener("test-passive",null,oe)}catch(e){}var ae=function(){return void 0===te&&(te=!G&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),te},se=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"==typeof e&&/native code/.test(e.toString())}var le,ue="undefined"!=typeof Symbol&&ce(Symbol)&&"undefined"!=typeof Reflect&&ce(Reflect.ownKeys);le="undefined"!=typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=null;function pe(e){void 0===e&&(e=null),e||de&&de._scope.off(),de=e,e&&e._scope.on()}var fe=function(){function e(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),he=function(e){void 0===e&&(e="");var t=new fe;return t.text=e,t.isComment=!0,t};function ve(e){return new fe(void 0,void 0,void 0,String(e))}function me(e){var t=new fe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}"function"==typeof SuppressedError&&SuppressedError;var ge=0,ye=[],_e=function(){function e(){this._pending=!1,this.id=ge++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,ye.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter(function(e){return e});for(var n=0,r=t.length;n0&&(Ve((c=Ke(c,"".concat(n||"","_").concat(s)))[0])&&Ve(u)&&(d[l]=ve(u.text+c[0].text),c.shift()),d.push.apply(d,c)):a(c)?Ve(u)?d[l]=ve(u.text+c):""!==c&&d.push(ve(c)):Ve(c)&&Ve(u)?d[l]=ve(u.text+c.text):(o(e._isVList)&&i(c.tag)&&r(c.key)&&i(n)&&(c.key="__vlist".concat(n,"_").concat(s,"__")),d.push(c)));return d}function Ge(e,n,r,l,u,d){return(t(r)||a(r))&&(u=l,l=r,r=void 0),o(d)&&(u=2),function(e,n,r,o,a){if(i(r)&&i(r.__ob__))return he();i(r)&&i(r.is)&&(n=r.is);if(!n)return he();0;t(o)&&s(o[0])&&((r=r||{}).scopedSlots={default:o[0]},o.length=0);2===a?o=We(o):1===a&&(o=function(e){for(var n=0;n0,s=n?!!n.$stable:!a,c=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(s&&i&&i!==e&&c===i.$key&&!a&&!i.$hasNormal)return i;for(var l in o={},n)n[l]&&"$"!==l[0]&&(o[l]=mt(t,r,l,n[l]))}else o={};for(var u in r)u in o||(o[u]=gt(r,u));return n&&Object.isExtensible(n)&&(n._normalized=o),W(o,"$stable",s),W(o,"$key",c),W(o,"$hasNormal",a),o}function mt(e,n,r,i){var o=function(){var n=de;pe(e);var r=arguments.length?i.apply(null,arguments):i({}),o=(r=r&&"object"==typeof r&&!t(r)?[r]:We(r))&&r[0];return pe(n),r&&(!o||1===r.length&&o.isComment&&!ht(o))?void 0:r};return i.proxy&&Object.defineProperty(n,r,{get:o,enumerable:!0,configurable:!0}),o}function gt(e,t){return function(){return e[t]}}function yt(t){return{get attrs(){if(!t._attrsProxy){var n=t._attrsProxy={};W(n,"_v_attr_proxy",!0),_t(n,t.$attrs,e,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||_t(t._listenersProxy={},t.$listeners,e,t,"$listeners");return t._listenersProxy},get slots(){return function(e){e._slotsProxy||wt(e._slotsProxy={},e.$scopedSlots);return e._slotsProxy}(t)},emit:E(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(n){return Ie(t,e,n)})}}}function _t(e,t,n,r,i){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,bt(e,a,r,i));for(var a in e)a in t||(o=!0,delete e[a]);return o}function bt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function wt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}var kt,xt,Ct=null;function St(e,t){return(e.__esModule||ue&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function zt(e){if(t(e))for(var n=0;ndocument.createEvent("Event").timeStamp&&(Qt=function(){return Wt.now()})}var Vt=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Kt(){var e,t;for(qt=Qt(),Bt=!0,Rt.sort(Vt),Ht=0;HtHt&&Rt[n].id>e.id;)n--;Rt.splice(n+1,0,e)}else Rt.push(e);Ut||(Ut=!0,pn(Kt))}}var Xt="watcher";"".concat(Xt," callback"),"".concat(Xt," getter"),"".concat(Xt," cleanup");function Jt(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function Yt(e,t,n){we();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o-1)if(o&&!k(i,"default"))a=!1;else if(""===a||a===$(e)){var l=Jn(String,i.type);(l<0||c-1:"string"==typeof e?e.split(",").indexOf(n)>-1:!!d(e)&&e.test(n)}function nr(e,t){var n=e.cache,r=e.keys,i=e._vnode,o=e.$vnode;for(var a in n){var s=n[a];if(s){var c=s.name;c&&!t(c)&&rr(n,a,r,i)}}o.componentOptions.children=void 0}function rr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=$n++,n._isVue=!0,n.__v_skip=!0,n._scope=new Ot(!0),n._scope.parent=void 0,n._scope._vm=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Qn(En(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Tt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=pt(n._renderChildren,i),t.$scopedSlots=r?vt(t.$parent,r.data.scopedSlots,t.$slots):e,t._c=function(e,n,r,i){return Ge(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ge(t,e,n,r,i,!0)};var o=r&&r.data;Ae(t,"$attrs",o&&o.attrs||e,null,!0),Ae(t,"$listeners",n._parentListeners||e,null,!0)}(n),Pt(n,"beforeCreate",void 0,!1),function(e){var t=Fn(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach(function(n){Ae(e,n,t[n])}),$e(!0))}(n),wn(n),function(e){var t=e.$options.provide;if(t){var n=s(t)?t.call(e):t;if(!c(n))return;for(var r=Jt(e),i=ue?Reflect.ownKeys(n):Object.keys(n),o=0;o1?T(n):n;for(var r=T(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;oparseInt(this.max)&&rr(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)rr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){nr(e,function(e){return tr(t,e)})}),this.$watch("exclude",function(t){nr(e,function(e){return!tr(t,e)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=zt(e),n=t&&t.componentOptions;if(n){var r=er(n),i=this.include,o=this.exclude;if(i&&(!r||!tr(i,r))||o&&r&&tr(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,b(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},ar={KeepAlive:or};!function(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:Rn,extend:O,mergeOptions:Qn,defineReactive:Ae},e.set=Le,e.delete=De,e.nextTick=pn,e.observable=function(e){return Oe(e),e},e.options=Object.create(null),U.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,O(e.options.components,ar),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),s(e.install)?e.install.apply(e,n):s(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Qn(this.options,e),this}}(e),Zn(e),function(e){U.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&s(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(Yn),Object.defineProperty(Yn.prototype,"$isServer",{get:ae}),Object.defineProperty(Yn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Yn,"FunctionalRenderContext",{value:Tn}),Yn.version="2.7.16";var sr=g("style,class"),cr=g("input,textarea,option,select,progress"),lr=function(e,t,n){return"value"===n&&cr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},ur=g("contenteditable,draggable,spellcheck"),dr=g("events,caret,typing,plaintext-only"),pr=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),fr="http://www.w3.org/1999/xlink",hr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},vr=function(e){return hr(e)?e.slice(6,e.length):""},mr=function(e){return null==e||!1===e};function gr(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=yr(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=yr(t,n.data));return function(e,t){if(i(e)||i(t))return _r(e,br(t));return""}(t.staticClass,t.class)}function yr(e,t){return{staticClass:_r(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function _r(e,t){return e?t?e+" "+t:e:t||""}function br(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,o=e.length;r-1?Wr(e,t,n):pr(t)?mr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):ur(t)?e.setAttribute(t,function(e,t){return mr(t)||"false"===t?"false":"contenteditable"===e&&dr(t)?t:"true"}(t,n)):hr(t)?mr(n)?e.removeAttributeNS(fr,vr(t)):e.setAttributeNS(fr,t,n):Wr(e,t,n)}function Wr(e,t,n){if(mr(n))e.removeAttribute(t);else{if(J&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Vr={create:qr,update:qr};function Kr(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=gr(t),c=n._transitionClasses;i(c)&&(s=_r(s,br(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Gr,Xr,Jr,Yr,Zr,ei,ti={create:Kr,update:Kr},ni=/[\w).+\-_$\]]/;function ri(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,d=0,p=0,f=0;for(r=0;r=0&&" "===(v=e.charAt(h));h--);v&&ni.test(v)||(l=!0)}}else void 0===i?(f=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==f&&m(),o)for(r=0;r-1?{exp:e.slice(0,Yr),key:'"'+e.slice(Yr+1)+'"'}:{exp:e,key:null};Xr=e,Yr=Zr=ei=0;for(;!bi();)wi(Jr=_i())?xi(Jr):91===Jr&&ki(Jr);return{exp:e.slice(0,Zr),key:e.slice(Zr+1,ei)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function _i(){return Xr.charCodeAt(++Yr)}function bi(){return Yr>=Gr}function wi(e){return 34===e||39===e}function ki(e){var t=1;for(Zr=Yr;!bi();)if(wi(e=_i()))xi(e);else if(91===e&&t++,93===e&&t--,0===t){ei=Yr;break}}function xi(e){for(var t=e;!bi()&&(e=_i())!==t;);}var Ci,Si="__r",zi="__c";function Fi(e,t,n){var r=Ci;return function i(){null!==t.apply(null,arguments)&&Ti(e,i,n,r)}}var $i=rn&&!(ne&&Number(ne[1])<=53);function Ei(e,t,n,r){if($i){var i=qt,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ci.addEventListener(e,t,ie?{capture:n,passive:r}:n)}function Ti(e,t,n,r){(r||Ci).removeEventListener(e,t._wrapper||t,n)}function Oi(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},o=e.data.on||{};Ci=t.elm||e.elm,function(e){if(i(e[Si])){var t=J?"change":"input";e[t]=[].concat(e[Si],e[t]||[]),delete e[Si]}i(e[zi])&&(e.change=[].concat(e[zi],e.change||[]),delete e[zi])}(n),He(n,o,Ei,Ti,Fi,t.context),Ci=void 0}}var Ai,Li={create:Oi,update:Oi,destroy:function(e){return Oi(e,Lr)}};function Di(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,a,s=t.elm,c=e.data.domProps||{},l=t.data.domProps||{};for(n in(i(l.__ob__)||o(l._v_attr_proxy))&&(l=t.data.domProps=O({},l)),c)n in l||(s[n]="");for(n in l){if(a=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===c[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=a;var u=r(a)?"":String(a);Mi(s,u)&&(s.value=u)}else if("innerHTML"===n&&xr(s.tagName)&&r(s.innerHTML)){(Ai=Ai||document.createElement("div")).innerHTML="".concat(a,"");for(var d=Ai.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;d.firstChild;)s.appendChild(d.firstChild)}else if(a!==c[n])try{s[n]=a}catch(e){}}}}function Mi(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Ni={create:Di,update:Di},Pi=x(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function Ri(e){var t=ji(e.style);return e.staticStyle?O(e.staticStyle,t):t}function ji(e){return Array.isArray(e)?A(e):"string"==typeof e?Pi(e):e}var Ii,Ui=/^--/,Bi=/\s*!important$/,Hi=function(e,t,n){if(Ui.test(t))e.style.setProperty(t,n);else if(Bi.test(n))e.style.setProperty($(t),n.replace(Bi,""),"important");else{var r=Qi(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(Ki).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Xi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ki).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Ji(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&O(t,Yi(e.name||"v")),O(t,e),t}return"string"==typeof e?Yi(e):void 0}}var Yi=x(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),Zi=G&&!Y,eo="transition",to="animation",no="transition",ro="transitionend",io="animation",oo="animationend";Zi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(no="WebkitTransition",ro="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(io="WebkitAnimation",oo="webkitAnimationEnd"));var ao=G?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function so(e){ao(function(){ao(e)})}function co(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Gi(e,t))}function lo(e,t){e._transitionClasses&&b(e._transitionClasses,t),Xi(e,t)}function uo(e,t,n){var r=fo(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===eo?ro:oo,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout(function(){c0&&(n=eo,u=a,d=o.length):t===to?l>0&&(n=to,u=l,d=c.length):d=(n=(u=Math.max(a,l))>0?a>l?eo:to:null)?n===eo?o.length:c.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===eo&&po.test(r[no+"Property"])}}function ho(e,t){for(;e.length1}function bo(e,t){!0!==t.data.show&&mo(t)}var wo=function(e){var n,s,c={},l=e.modules,u=e.nodeOps;for(n=0;nh?b(e,r(n[g+1])?null:n[g+1].elm,n,f,g,o):f>g&&k(t,d,h)}(d,v,g,n,l):i(g)?(i(e.text)&&u.setTextContent(d,""),b(d,null,g,0,g.length-1,n)):i(v)?k(v,0,v.length-1):i(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),i(h)&&i(f=h.hook)&&i(f=f.postpatch)&&f(e,t)}}}function z(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(N(zo(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function So(e,t){return t.every(function(t){return!N(t,e)})}function zo(e){return"_value"in e?e._value:e.value}function Fo(e){e.target.composing=!0}function $o(e){e.target.composing&&(e.target.composing=!1,Eo(e.target,"input"))}function Eo(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function To(e){return!e.componentInstance||e.data&&e.data.transition?e:To(e.componentInstance._vnode)}var Oo={bind:function(e,t,n){var r=t.value,i=(n=To(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,mo(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=To(n)).data&&n.data.transition?(n.data.show=!0,r?mo(n,function(){e.style.display=e.__vOriginalDisplay}):go(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Ao={model:ko,show:Oo},Lo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Do(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Do(zt(t.children)):e}function Mo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[S(r)]=i[r];return t}function No(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Po=function(e){return e.tag||ht(e)},Ro=function(e){return"show"===e.name},jo={name:"transition",props:Lo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Po)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Do(i);if(!o)return i;if(this._leaving)return No(e,i);var s="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Mo(this),l=this._vnode,u=Do(l);if(o.data.directives&&o.data.directives.some(Ro)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!ht(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=O({},c);if("out-in"===r)return this._leaving=!0,qe(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),No(e,i);if("in-out"===r){if(ht(o))return l;var p,f=function(){p()};qe(c,"afterEnter",f),qe(c,"enterCancelled",f),qe(d,"delayLeave",function(e){p=e})}}return i}}},Io=O({tag:String,moveClass:String},Lo);delete Io.mode;var Uo={props:Io,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Lt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Mo(this),s=0;s-1?zr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:zr[e]=/HTMLUnknownElement/.test(t.toString())},O(Yn.options.directives,Ao),O(Yn.options.components,Qo),Yn.prototype.__patch__=G?wo:L,Yn.prototype.$mount=function(e,t){return function(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=he),Pt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new yn(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&Pt(e,"beforeUpdate")}},!0),n=!1;var i=e._preWatchers;if(i)for(var o=0;o\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ra=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ia="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(q.source,"]*"),oa="((?:".concat(ia,"\\:)?").concat(ia,")"),aa=new RegExp("^<".concat(oa)),sa=/^\s*(\/?)>/,ca=new RegExp("^<\\/".concat(oa,"[^>]*>")),la=/^]+>/i,ua=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},va=/&(?:lt|gt|quot|amp|#39);/g,ma=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,ga=g("pre,textarea",!0),ya=function(e,t){return e&&ga(e)&&"\n"===t[0]};function _a(e,t){var n=t?ma:va;return e.replace(n,function(e){return ha[e]})}function ba(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||D,s=t.canBeLeftOpenTag||D,c=0,l=function(){if(n=e,r&&pa(r)){var l=0,p=r.toLowerCase(),f=fa[p]||(fa[p]=new RegExp("([\\s\\S]*?)(]*>)","i"));k=e.replace(f,function(e,n,r){return l=r.length,pa(p)||"noscript"===p||(n=n.replace(//g,"$1").replace(//g,"$1")),ya(p,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-k.length,e=k,d(p,c-l,c)}else{var h=e.indexOf("<");if(0===h){if(ua.test(e)){var v=e.indexOf("--\x3e");if(v>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,v),c,c+v+3),u(v+3),"continue"}if(da.test(e)){var m=e.indexOf("]>");if(m>=0)return u(m+2),"continue"}var g=e.match(la);if(g)return u(g[0].length),"continue";var y=e.match(ca);if(y){var _=c;return u(y[0].length),d(y[1],_,c),"continue"}var b=function(){var t=e.match(aa);if(t){var n={tagName:t[1],attrs:[],start:c};u(t[0].length);for(var r=void 0,i=void 0;!(r=e.match(sa))&&(i=e.match(ra)||e.match(na));)i.start=c,u(i[0].length),i.end=c,n.attrs.push(i);if(r)return n.unarySlash=r[1],u(r[0].length),n.end=c,n}}();if(b)return function(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&ta(n)&&d(r),s(n)&&r===n&&d(n));for(var l=a(n)||!!c,u=e.attrs.length,p=new Array(u),f=0;f=0){for(k=e.slice(h);!(ca.test(k)||aa.test(k)||ua.test(k)||da.test(k)||(x=k.indexOf("<",1))<0);)h+=x,k=e.slice(h);w=e.substring(0,h)}h<0&&(w=e),w&&u(w.length),t.chars&&w&&t.chars(w,c-w.length,c)}if(e===n)return t.chars&&t.chars(e),"break"};e;){if("break"===l())break}function u(t){c+=t,e=e.substring(t)}function d(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}d()}var wa,ka,xa,Ca,Sa,za,Fa,$a,Ea=/^@|^v-on:/,Ta=/^v-|^@|^:|^#/,Oa=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Aa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,La=/^\(|\)$/g,Da=/^\[.*\]$/,Ma=/:(.*)$/,Na=/^:|^\.|^v-bind:/,Pa=/\.[^.\]]+(?=[^\]]*$)/g,Ra=/^v-slot(:|$)|^#/,ja=/[\r\n]/,Ia=/[ \f\t\r\n]+/g,Ua=x(Yo),Ba="_empty_";function Ha(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Xa(t),rawAttrsMap:{},parent:n,children:[]}}function qa(e,t){wa=t.warn||oi,za=t.isPreTag||D,Fa=t.mustUseProp||D,$a=t.getTagNamespace||D;var n=t.isReservedTag||D;xa=ai(t.modules,"transformNode"),Ca=ai(t.modules,"preTransformNode"),Sa=ai(t.modules,"postTransformNode"),ka=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=Qa(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&Va(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)a=e,s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children),s&&s.if&&Va(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var a,s;e.children=e.children.filter(function(e){return!e.slotScope}),d(e),e.pre&&(c=!1),za(e.tag)&&(l=!1);for(var u=0;uc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=ri(r[1].trim());a.push("_s(".concat(l,")")),s.push({"@binding":l}),c=i+r[0].length}return c-1")+("true"===o?":(".concat(t,")"):":_q(".concat(t,",").concat(o,")"))),pi(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(o,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+i+")":i,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(yi(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(yi(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(yi(t,"$$c"),"}"),null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=fi(e,"value")||"null";i=r?"_n(".concat(i,")"):i,si(e,"checked","_q(".concat(t,",").concat(i,")")),pi(e,"change",yi(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?Si:"input",u="$event.target.value";s&&(u="$event.target.value.trim()");a&&(u="_n(".concat(u,")"));var d=yi(t,u);c&&(d="if($event.target.composing)return;".concat(d));si(e,"value","(".concat(t,")")),pi(e,l,d,null,!0),(s||a)&&pi(e,"blur","$forceUpdate()")}(e,r,i);else{if(!H.isReservedTag(o))return gi(e,r,i),!1}return!0},text:function(e,t){t.value&&si(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&si(e,"innerHTML","_s(".concat(t.value,")"),t)}},is={expectHTML:!0,modules:es,directives:rs,isPreTag:function(e){return"pre"===e},isUnaryTag:Zo,mustUseProp:lr,canBeLeftOpenTag:ea,isReservedTag:Cr,getTagNamespace:Sr,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(es)},os=x(function(e){return g("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function as(e,t){e&&(ts=os(t.staticKeys||""),ns=t.isReservedTag||D,ss(e),cs(e,!1))}function ss(e){if(e.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!ns(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(ts)))}(e),1===e.type){if(!ns(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t|^function(?:\s+[\w$]+)?\s*\(/,us=/\([^)]*?\);*$/,ds=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ps={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},fs={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},hs=function(e){return"if(".concat(e,")return null;")},vs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:hs("$event.target !== $event.currentTarget"),ctrl:hs("!$event.ctrlKey"),shift:hs("!$event.shiftKey"),alt:hs("!$event.altKey"),meta:hs("!$event.metaKey"),left:hs("'button' in $event && $event.button !== 0"),middle:hs("'button' in $event && $event.button !== 1"),right:hs("'button' in $event && $event.button !== 2")};function ms(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=gs(e[o]);e[o]&&e[o].dynamic?i+="".concat(o,",").concat(a,","):r+='"'.concat(o,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),i?n+"_d(".concat(r,",[").concat(i.slice(0,-1),"])"):n+r}function gs(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map(function(e){return gs(e)}).join(","),"]");var t=ds.test(e.value),n=ls.test(e.value),r=ds.test(e.value.replace(us,""));if(e.modifiers){var i="",o="",a=[],s=function(t){if(vs[t])o+=vs[t],ps[t]&&a.push(t);else if("exact"===t){var n=e.modifiers;o+=hs(["ctrl","shift","alt","meta"].filter(function(e){return!n[e]}).map(function(e){return"$event.".concat(e,"Key")}).join("||"))}else a.push(t)};for(var c in e.modifiers)s(c);a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(ys).join("&&"),")return null;")}(a)),o&&(i+=o);var l=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(i).concat(l,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function ys(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=ps[e],r=fs[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var _s={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:L},bs=function(e){this.options=e,this.warn=e.warn||oi,this.transforms=ai(e.modules,"transformCode"),this.dataGenFns=ai(e.modules,"genData"),this.directives=O(O({},_s),e.directives);var t=e.isReservedTag||D;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ws(e,t){var n=new bs(t),r=e?"script"===e.tag?"null":ks(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function ks(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return xs(e,t);if(e.once&&!e.onceProcessed)return Cs(e,t);if(e.for&&!e.forProcessed)return Fs(e,t);if(e.if&&!e.ifProcessed)return Ss(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Os(e,t),i="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),o=e.attrs||e.dynamicAttrs?Ds((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:S(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=",".concat(o));a&&(i+="".concat(o?"":",null",",").concat(a));return i+")"}(e,t);var n=void 0;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Os(t,n,!0);return"_c(".concat(e,",").concat($s(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r=void 0,i=t.maybeComponent(e);(!e.plain||e.pre&&i)&&(r=$s(e,t));var o=void 0,a=t.options.bindings;i&&a&&!1!==a.__isScriptSetup&&(o=function(e,t){var n=S(t),r=z(n),i=function(i){return e[t]===i?t:e[n]===i?n:e[r]===i?r:void 0},o=i("setup-const")||i("setup-reactive-const");if(o)return o;var a=i("setup-let")||i("setup-ref")||i("setup-maybe-ref");if(a)return a}(a,e.tag)),o||(o="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:Os(e,t,!0);n="_c(".concat(o).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}for(var c=0;c>>0}(a)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var o=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=ws(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map(function(e){return"function(){".concat(e,"}")}).join(","),"]}")}}(e,t);o&&(n+="".concat(o,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(Ds(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Es(e){return 1===e.type&&("slot"===e.tag||e.children.some(Es))}function Ts(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ss(e,t,Ts,"null");if(e.for&&!e.forProcessed)return Fs(e,t,Ts);var r=e.slotScope===Ba?"":String(e.slotScope),i="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(Os(e,t)||"undefined",":undefined"):Os(e,t)||"undefined":ks(e,t),"}"),o=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(i).concat(o,"}")}function Os(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return"".concat((r||ks)(a,t)).concat(s)}var c=n?function(e,t){for(var n=0,r=0;r':'
',js.innerHTML.indexOf(" ")>0}var Hs=!!G&&Bs(!1),qs=!!G&&Bs(!0),Qs=x(function(e){var t=$r(e);return t&&t.innerHTML}),Ws=Yn.prototype.$mount;Yn.prototype.$mount=function(e,t){if((e=e&&$r(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Qs(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=Us(r,{outputSourceRange:!1,shouldDecodeNewlines:Hs,shouldDecodeNewlinesForHref:qs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Ws.call(this,e,t)},Yn.compile=Us;var Vs=n(9133);var Ks=function(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}({props:["allowAll","allowPng","allowJpg"],data:function(){return{saving:!1,loading:!0,uploadedFiles:[],validFiles:[],zipDownloading:!1,dropOptions:null,totalFilesize:0,totalReductions:0,acceptedMimeTypesString:"image/jpeg, image/jpg, image/png",converterSubtitle:"or drop .jpg or .png file(s) here"}},components:{vueDropzone:n.n(Vs)()},methods:{addFile:function(e){var t=e.size>3e6?"File is too big. Max filesize: 3MB.":"This file type is not supported.";this.uploadedFiles.push({id:e.upload.uuid,name:e.name,size:e.size,optimizedName:"",optimizedImageUrl:null,optimizedSize:0,status:"uploading",progress:!1===e.accepted?100:0,error:!1===e.accepted,errorMessage:!1===e.accepted?t:"This file type is not supported."})},updateFileProgress:function(e,t){var n=this.getUploadedFile(e);if(null===n)return alert("Something went wrong. Please contact support or try again.");100===t&&(n.status="optimizing"),n.progress=t},handleDropzoneError:function(e){var t=this;setTimeout(function(){var n=t.getUploadedFile(e);if(null===n)return alert("Something went wrong. Please contact support or try again.");!0!==n.error&&(n.error=!0,n.progress=100,n.errorMessage=e.size>3e6?"File is too big. Max filesize: 3MB.":"Image upload failed.")},100)},handleOptimization:function(e,t){var n=this.getUploadedFile(e);return null===n?alert("Something went wrong. Please contact support or try again."):"not-optimized"===t.status?(n.optimizedName=t.optimized_image,n.optimizedSize=t.optimized_size,n.error=!0,void(n.errorMessage="Image already optimized.")):void 0!==t.error?(n.optimizedName=0,n.optimizedSize=0,n.error=!0,void(n.errorMessage=t.error.message)):(n.optimizedName=t.optimized_image,n.optimizedImageUrl=t.optimized_image_url,n.optimizedSize=t.optimized_size,n.status="completed",this.validFiles.push(n.optimizedName),this.totalFilesize+=t.original_size,void(this.totalReductions+=t.original_size-t.optimized_size))},downloadAllDropzoneFiles:function(){var e=this;this.zipDownloading=!0,axios.post("/app/download-zipped-files/",{filenames:this.validFiles}).then(function(t){var n=t.data;if(!n.zip_name||!n.zip_url)return e.zipDownloading=!1,alert("Something went wrong. Please contact support or try again.");e.forceFileDownload(n.zip_url,n.zip_name),e.zipDownloading=!1}).catch(function(t){e.zipDownloading=!1,401===t.response.status&&alert("Something went wrong. Please contact support or try again."),"undefined"!==t.response.data.error?e.$notify({group:"notify",type:"error",text:t.response.data.error.message}):alert("Something went wrong. Please contact support or try again.")})},forceFileDownload:function(e,t){var n=document.createElement("a");n.href=e,n.setAttribute("download",t),document.body.appendChild(n),n.click()},formatImageName:function(e){return e.length>10?e.substr(0,10)+"{..}."+e.split(".").pop():e},formatBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var n=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,r)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]},getUploadedFile:function(e){var t=this.uploadedFiles.filter(function(t){return t.id===e.upload.uuid});return t.length>0?t[0]:null}},mounted:function(){this.allowAll||(this.allowJpg&&(this.acceptedMimeTypesString=this.allowJpg?"image/jpeg, image/jpg ":"",this.converterSubtitle="or drop .jpg or .jpeg file(s) here"),this.allowPng&&(this.acceptedMimeTypesString=this.allowPng?"image/png":"",this.converterSubtitle="or drop .png file(s) here")),this.dropOptions={url:"/app/custom-files/",method:"POST",maxFilesize:20,createImageThumbnails:!1,previewsContainer:!1,acceptedMimeTypes:this.acceptedMimeTypesString}}},function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"image-converter"},[t("div",{staticClass:"image-converter-wrapper"},[e.dropOptions?t("vue-dropzone",{attrs:{id:"image-dropzone",options:e.dropOptions,"use-custom-slot":!0},on:{"vdropzone-file-added":e.addFile,"vdropzone-upload-progress":e.updateFileProgress,"vdropzone-error":e.handleDropzoneError,"vdropzone-success":e.handleOptimization}},[t("div",{staticClass:"image-converter-info"},[t("div",[t("button",{staticClass:"btn btn-brand"},[e._v("UPLOAD FILES")])]),e._v(" "),t("p",[e._v("or drop .jpg or .png file(s) here")]),e._v(" "),t("p",[e._v("Up to 10 images, max 3 MB each")])])]):e._e()],1)]),e._v(" "),e._m(0),e._v(" "),e.uploadedFiles.length>0?t("div",{staticClass:"image-converter-results"},[t("div",{staticClass:"image-converter-results-wrapper"},[t("table",{staticClass:"result-items hidden-xs"},[t("tbody",e._l(e.uploadedFiles,function(n){return t("tr",{staticClass:"result-item"},[t("td",{staticClass:"filename"},[e._v(e._s(e.formatImageName(n.name)))]),e._v(" "),t("td",{staticClass:"original-size"},[e._v(e._s(e.formatBytes(n.size)))]),e._v(" "),t("td",[t("div",{staticClass:"progress-wrapper",class:["completed"!==n.status?"progress-bar-striped progress-bar-animated":"",n.error?"bg-danger":"bg-success"]},[t("div",{staticClass:"progress"},[t("div",{staticClass:"progress-bar",style:{width:n.progress+"%"},attrs:{role:"progressbar","aria-valuenow":n.progress,"aria-valuemin":"0","aria-valuemax":"100"}},[t("div",{staticClass:"justify-content-center"},[!0!==n.error&&"completed"===n.status?t("span",[e._v("\n Completed\n ")]):!0!==n.error&&"optimizing"===n.status?t("span",[e._v("\n Optimizing\n ")]):t("span",[e._v("\n "+e._s(n.errorMessage&&!0===n.error?n.errorMessage:"Optimizing")+"\n ")])])])])])]),e._v(" "),"completed"===n.status?t("td",{staticClass:"optimized-size"},[e._v("\n "+e._s(e.formatBytes(n.optimizedSize))+"\n ")]):!0===n.error?t("td",{staticClass:"optimized-size"}):t("td",{staticClass:"optimized-size"},[t("i",{staticClass:"fa fa-spinner fa-spin"})]),e._v(" "),t("td",{staticClass:"actions"},["completed"===n.status&&!0!==n.error&&null!=n.optimizedImageUrl?t("a",{attrs:{href:n.optimizedImageUrl,download:n.optimizedName}},[t("img",{attrs:{src:"/images/icons/download.svg",title:"Download"}})]):e._e()])])}),0)]),e._v(" "),t("div",{staticClass:"result-items visible-xs"},e._l(e.uploadedFiles,function(n){return t("div",{staticClass:"result-item"},[t("div",[t("div",{staticClass:"filename"},[e._v(e._s(e.formatImageName(n.name)))]),e._v(" "),t("div",{staticClass:"progress-wrapper",class:[n.error?"bg-danger":"bg-success"]},[t("div",{staticClass:"progress"},[t("div",{staticClass:"progress-bar",style:{width:n.progress+"%"},attrs:{role:"progressbar","aria-valuenow":n.progress,"aria-valuemin":"0","aria-valuemax":"100"}},[t("div",{staticClass:"justify-content-center"},[!0!==n.error&&"completed"===n.status?t("span",[e._v("\n Completed\n ")]):!0!==n.error&&"optimizing"===n.status?t("span",[e._v("\n Optimizing\n ")]):t("span",[e._v("\n "+e._s(n.errorMessage?n.errorMessage:"This file type is not supported.")+"\n ")])])])])]),e._v(" "),t("div",{staticClass:"optimized-results"},[t("span",{staticClass:"original-size"},[e._v(e._s(e.formatBytes(n.size))+" ->")]),e._v(" "),"completed"===n.status?t("span",{staticClass:"optimized-size"},[e._v("\n "+e._s(e.formatBytes(n.optimizedSize))+"\n ")]):!0===n.error?t("span",{staticClass:"optimized-size"},[e._v("\n "+e._s(e.formatBytes(n.size))+"\n ")]):t("span",{staticClass:"optimized-size"},[t("i",{staticClass:"fa fa-spinner fa-spin"})])])]),e._v(" "),t("div",[t("div",{staticClass:"actions"},["completed"===n.status&&!0!==n.error&&null!=n.optimizedImageUrl?t("a",{attrs:{href:n.optimizedImageUrl,download:n.optimizedName}},[t("img",{attrs:{src:"/images/icons/download.svg",title:"Download"}})]):e._e()])])])}),0),e._v(" "),t("div",{staticClass:"results-summary"},[t("div",{staticClass:"summary-title"},[e._v("We just saved you")]),e._v(" "),e.totalFilesize>0?t("div",{staticClass:"summary-percent"},[e._v("\n "+e._s(Math.round(e.totalReductions/e.totalFilesize*1e4)/100)+"%\n ")]):t("div",{staticClass:"summary-percent"},[e._v("\n 0%\n ")]),e._v(" "),t("div",{staticClass:"summary-total"},[e._v(e._s(e.formatBytes(e.totalReductions))+" total")])])]),e._v(" "),e.validFiles.length>1?t("button",{staticClass:"btn btn-brand",staticStyle:{"margin-bottom":"20px"},attrs:{disabled:e.zipDownloading},on:{click:e.downloadAllDropzoneFiles}},[e.zipDownloading?t("i",{staticClass:"fa fa-spinner fa-spin"}):e._e(),e._v(" "),e.zipDownloading?e._e():t("span",[e._v("Download all")])]):e._e()]):e._e()])},[function(){var e=this,t=e._self._c;return t("div",{staticClass:"details-row-blocks"},[t("div",{staticClass:"details-row-block"},[t("strong",[e._v("1. Drag and drop")]),e._v(" or "),t("strong",[e._v("upload")]),e._v(" your images.\n ")]),e._v(" "),t("div",{staticClass:"details-row-block"},[t("strong",[e._v("2. Wait a few seconds")]),e._v(" until we reduce file size.\n ")]),e._v(" "),t("div",{staticClass:"details-row-block"},[t("strong",[e._v("3. Click Download")]),e._v(" to get your compressed images.\n ")])])}],!1,null,null,null);const Gs=Ks.exports;window.axios=n(2505),new Yn({el:"#image-compressor",components:{"image-compressor":Gs}})})()})();