diff --git a/public/build/assets/kao-logic-DaTLkRG8.js b/public/build/assets/kao-logic-tOTTPXJc.js
similarity index 95%
rename from public/build/assets/kao-logic-DaTLkRG8.js
rename to public/build/assets/kao-logic-tOTTPXJc.js
index d4586c51..cf97b3c0 100644
--- a/public/build/assets/kao-logic-DaTLkRG8.js
+++ b/public/build/assets/kao-logic-tOTTPXJc.js
@@ -21,7 +21,7 @@ import{M as W}from"./index-D1AB55dp.js";var X=$;function $(){var i=[].slice.call
`;let ae={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2097152,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,defaultHeaders:!0,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init(){},params(i,e,t){if(t)return{dzuuid:t.file.upload.uuid,dzchunkindex:t.index,dztotalfilesize:t.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:t.file.upload.totalChunkCount,dzchunkbyteoffset:t.index*this.options.chunkSize}},accept(i,e){return e()},chunksUploaded:function(i,e){e()},binaryBody:!1,fallback(){let i;this.element.className=`${this.element.className} dz-browser-not-supported`;for(let t of this.element.getElementsByTagName("div"))if(/(^| )dz-message($| )/.test(t.className)){i=t,t.className="dz-message";break}i||(i=a.createElement('
'),this.element.appendChild(i));let e=i.getElementsByTagName("span")[0];return e&&(e.textContent!=null?e.textContent=this.options.dictFallbackMessage:e.innerText!=null&&(e.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize(i,e,t,n){let l={srcX:0,srcY:0,srcWidth:i.width,srcHeight:i.height},r=i.width/i.height;e==null&&t==null?(e=l.srcWidth,t=l.srcHeight):e==null?e=t*r:t==null&&(t=e/r),e=Math.min(e,l.srcWidth),t=Math.min(t,l.srcHeight);let s=e/t;if(l.srcWidth>e||l.srcHeight>t)if(n==="crop")r>s?(l.srcHeight=i.height,l.srcWidth=l.srcHeight*s):(l.srcWidth=i.width,l.srcHeight=l.srcWidth/s);else if(n==="contain")r>s?t=e/r:e=t*r;else throw new Error(`Unknown resizeMethod '${n}'`);return l.srcX=(i.width-l.srcWidth)/2,l.srcY=(i.height-l.srcHeight)/2,l.trgWidth=e,l.trgHeight=t,l},transformFile(i,e){return(this.options.resizeWidth||this.options.resizeHeight)&&i.type.match(/image.*/)?this.resizeImage(i,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(i)},previewTemplate:oe(ee),drop(i){return this.element.classList.remove("dz-drag-hover")},dragstart(i){},dragend(i){return this.element.classList.remove("dz-drag-hover")},dragenter(i){return this.element.classList.add("dz-drag-hover")},dragover(i){return this.element.classList.add("dz-drag-hover")},dragleave(i){return this.element.classList.remove("dz-drag-hover")},paste(i){},reset(){return this.element.classList.remove("dz-started")},addedfile(i){if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){i.previewElement=a.createElement(this.options.previewTemplate.trim()),i.previewTemplate=i.previewElement,this.previewsContainer.appendChild(i.previewElement);for(var e of i.previewElement.querySelectorAll("[data-dz-name]"))e.textContent=i.name;for(e of i.previewElement.querySelectorAll("[data-dz-size]"))e.innerHTML=this.filesize(i.size);this.options.addRemoveLinks&&(i._removeLink=a.createElement(`${this.options.dictRemoveFile}`),i.previewElement.appendChild(i._removeLink));let t=n=>(n.preventDefault(),n.stopPropagation(),i.status===a.UPLOADING?a.confirm(this.options.dictCancelUploadConfirmation,()=>this.removeFile(i)):this.options.dictRemoveFileConfirmation?a.confirm(this.options.dictRemoveFileConfirmation,()=>this.removeFile(i)):this.removeFile(i));for(let n of i.previewElement.querySelectorAll("[data-dz-remove]"))n.addEventListener("click",t)}},removedfile(i){return i.previewElement!=null&&i.previewElement.parentNode!=null&&i.previewElement.parentNode.removeChild(i.previewElement),this._updateMaxFilesReachedClass()},thumbnail(i,e){if(i.previewElement){i.previewElement.classList.remove("dz-file-preview");for(let t of i.previewElement.querySelectorAll("[data-dz-thumbnail]"))t.alt=i.name,t.src=e;return setTimeout(()=>i.previewElement.classList.add("dz-image-preview"),1)}},error(i,e){if(i.previewElement){i.previewElement.classList.add("dz-error"),typeof e!="string"&&e.error&&(e=e.error);for(let t of i.previewElement.querySelectorAll("[data-dz-errormessage]"))t.textContent=e}},errormultiple(){},processing(i){if(i.previewElement&&(i.previewElement.classList.add("dz-processing"),i._removeLink))return i._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple(){},uploadprogress(i,e,t){if(i.previewElement)for(let n of i.previewElement.querySelectorAll("[data-dz-uploadprogress]"))n.nodeName==="PROGRESS"?n.value=e:n.style.width=`${e}%`},totaluploadprogress(){},sending(){},sendingmultiple(){},success(i){if(i.previewElement)return i.previewElement.classList.add("dz-success")},successmultiple(){},canceled(i){return this.emit("error",i,this.options.dictUploadCanceled)},canceledmultiple(){},complete(i){if(i._removeLink&&(i._removeLink.innerHTML=this.options.dictRemoveFile),i.previewElement)return i.previewElement.classList.add("dz-complete")},completemultiple(){},maxfilesexceeded(){},maxfilesreached(){},queuecomplete(){},addedfiles(){}};var de=ae;class a extends K{static initClass(){this.prototype.Emitter=K,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}getAcceptedFiles(){return this.files.filter(e=>e.accepted).map(e=>e)}getRejectedFiles(){return this.files.filter(e=>!e.accepted).map(e=>e)}getFilesWithStatus(e){return this.files.filter(t=>t.status===e).map(t=>t)}getQueuedFiles(){return this.getFilesWithStatus(a.QUEUED)}getUploadingFiles(){return this.getFilesWithStatus(a.UPLOADING)}getAddedFiles(){return this.getFilesWithStatus(a.ADDED)}getActiveFiles(){return this.files.filter(e=>e.status===a.UPLOADING||e.status===a.QUEUED).map(e=>e)}init(){if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(a.createElement(``)),this.clickableElements.length){let n=()=>{this.hiddenFileInput&&this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=document.createElement("input"),this.hiddenFileInput.setAttribute("type","file"),(this.options.maxFiles===null||this.options.maxFiles>1)&&this.hiddenFileInput.setAttribute("multiple","multiple"),this.hiddenFileInput.className="dz-hidden-input",this.options.acceptedFiles!==null&&this.hiddenFileInput.setAttribute("accept",this.options.acceptedFiles),this.options.capture!==null&&this.hiddenFileInput.setAttribute("capture",this.options.capture),this.hiddenFileInput.setAttribute("tabindex","-1"),this.hiddenFileInput.style.visibility="hidden",this.hiddenFileInput.style.position="absolute",this.hiddenFileInput.style.top="0",this.hiddenFileInput.style.left="0",this.hiddenFileInput.style.height="0",this.hiddenFileInput.style.width="0",a.getElement(this.options.hiddenInputContainer,"hiddenInputContainer").appendChild(this.hiddenFileInput),this.hiddenFileInput.addEventListener("change",()=>{let{files:l}=this.hiddenFileInput;if(l.length)for(let r of l)this.addFile(r);this.emit("addedfiles",l),n()})};n()}this.URL=window.URL!==null?window.URL:window.webkitURL;for(let n of this.events)this.on(n,this.options[n]);this.on("uploadprogress",()=>this.updateTotalUploadProgress()),this.on("removedfile",()=>this.updateTotalUploadProgress()),this.on("canceled",n=>this.emit("complete",n)),this.on("complete",n=>{if(this.getAddedFiles().length===0&&this.getUploadingFiles().length===0&&this.getQueuedFiles().length===0)return setTimeout(()=>this.emit("queuecomplete"),0)});const e=function(n){if(n.dataTransfer.types){for(var l=0;lthis.emit("dragstart",n),dragenter:n=>(t(n),this.emit("dragenter",n)),dragover:n=>{let l;try{l=n.dataTransfer.effectAllowed}catch{}return n.dataTransfer.dropEffect=l==="move"||l==="linkMove"?"move":"copy",t(n),this.emit("dragover",n)},dragleave:n=>this.emit("dragleave",n),drop:n=>(t(n),this.drop(n)),dragend:n=>this.emit("dragend",n)}}],this.clickableElements.forEach(n=>this.listeners.push({element:n,events:{click:l=>((n!==this.element||l.target===this.element||a.elementInside(l.target,this.element.querySelector(".dz-message")))&&this.hiddenFileInput.click(),!0)}})),this.enable(),this.options.init.call(this)}destroy(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,a.instances.splice(a.instances.indexOf(this),1)}updateTotalUploadProgress(){let e,t=0,n=0;if(this.getActiveFiles().length){for(let r of this.getActiveFiles())t+=r.upload.bytesSent,n+=r.upload.total;e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}_getParamName(e){return typeof this.options.paramName=="function"?this.options.paramName(e):`${this.options.paramName}${this.options.uploadMultiple?`[${e}]`:""}`}_renameFile(e){return typeof this.options.renameFile!="function"?e.name:this.options.renameFile(e)}getFallbackForm(){let e,t;if(e=this.getExistingFallback())return e;let n='
';this.options.dictFallbackText&&(n+=`
${this.options.dictFallbackText}
`),n+=`
`;let l=a.createElement(n);return this.element.tagName!=="FORM"?(t=a.createElement(``),t.appendChild(l)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),t??l}getExistingFallback(){let e=function(n){for(let l of n)if(/(^| )fallback($| )/.test(l.className))return l};for(let n of["div","form"]){var t;if(t=e(this.element.getElementsByTagName(n)))return t}}setupEventListeners(){return this.listeners.map(e=>(()=>{let t=[];for(let n in e.events){let l=e.events[n];t.push(e.element.addEventListener(n,l,!1))}return t})())}removeEventListeners(){return this.listeners.map(e=>(()=>{let t=[];for(let n in e.events){let l=e.events[n];t.push(e.element.removeEventListener(n,l,!1))}return t})())}disable(){return this.clickableElements.forEach(e=>e.classList.remove("dz-clickable")),this.removeEventListeners(),this.disabled=!0,this.files.map(e=>this.cancelUpload(e))}enable(){return delete this.disabled,this.clickableElements.forEach(e=>e.classList.add("dz-clickable")),this.setupEventListeners()}filesize(e){let t=0,n="b";if(e>0){let l=["tb","gb","mb","kb","b"];for(let r=0;r=o){t=e/Math.pow(this.options.filesizeBase,4-r),n=s;break}}t=Math.round(10*t)/10}return`${t} ${this.options.dictFileSizeUnits[n]}`}_updateMaxFilesReachedClass(){return this.options.maxFiles!=null&&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")}drop(e){if(!e.dataTransfer)return;this.emit("drop",e);let t=[];for(let n=0;nn.items)==null)return;this.emit("paste",e);let{items:t}=e.clipboardData;if(t.length)return this._addFilesFromItems(t)}handleFiles(e){for(let t of e)this.addFile(t)}_addFilesFromItems(e){return(()=>{let t=[];for(let l of e){var n;l.webkitGetAsEntry!=null&&(n=l.webkitGetAsEntry())?n.isFile?t.push(this.addFile(l.getAsFile())):n.isDirectory?t.push(this._addFilesFromDirectory(n,n.name)):t.push(void 0):l.getAsFile!=null&&(l.kind==null||l.kind==="file")?t.push(this.addFile(l.getAsFile())):t.push(void 0)}return t})()}_addFilesFromDirectory(e,t){let n=e.createReader(),l=s=>ge(console,"log",o=>o.log(s));var r=()=>n.readEntries(s=>{if(s.length>0){for(let o of s)o.isFile?o.file(d=>{if(!(this.options.ignoreHiddenFiles&&d.name.substring(0,1)==="."))return d.fullPath=`${t}/${d.name}`,this.addFile(d)}):o.isDirectory&&this._addFilesFromDirectory(o,`${t}/${o.name}`);r()}return null},l);return r()}accept(e,t){this.options.maxFilesize&&e.size>this.options.maxFilesize*1048576?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):a.isValidFile(e,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}addFile(e){e.upload={uuid:a.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e)},this.files.push(e),e.status=a.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,t=>{t?(e.accepted=!1,this._errorProcessing([e],t)):(e.accepted=!0,this.options.autoQueue&&this.enqueueFile(e)),this._updateMaxFilesReachedClass()})}enqueueFiles(e){for(let t of e)this.enqueueFile(t);return null}enqueueFile(e){if(e.status===a.ADDED&&e.accepted===!0){if(e.status=a.QUEUED,this.options.autoProcessQueue)return setTimeout(()=>this.processQueue(),0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}_enqueueThumbnail(e){if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=this.options.maxThumbnailFilesize*1048576)return this._thumbnailQueue.push(e),setTimeout(()=>this._processThumbnailQueue(),0)}_processThumbnailQueue(){if(this._processingThumbnail||this._thumbnailQueue.length===0)return;this._processingThumbnail=!0;let e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,t=>(this.emit("thumbnail",e,t),this._processingThumbnail=!1,this._processThumbnailQueue()))}removeFile(e){if(e.status===a.UPLOADING&&this.cancelUpload(e),this.files=ue(this.files,e),this.emit("removedfile",e),this.files.length===0)return this.emit("reset")}removeAllFiles(e){e==null&&(e=!1);for(let t of this.files.slice())(t.status!==a.UPLOADING||e)&&this.removeFile(t);return null}resizeImage(e,t,n,l,r){return this.createThumbnail(e,t,n,l,!0,(s,o)=>{if(o==null)return r(e);{let{resizeMimeType:d}=this.options;d==null&&(d=e.type);let u=o.toDataURL(d,this.options.resizeQuality);return(d==="image/jpeg"||d==="image/jpg")&&(u=te.restore(e.dataURL,u)),r(a.dataURItoBlob(u))}})}createThumbnail(e,t,n,l,r,s){let o=new FileReader;o.onload=()=>{if(e.dataURL=o.result,e.type==="image/svg+xml"){s!=null&&s(o.result);return}this.createThumbnailFromUrl(e,t,n,l,r,s)},o.readAsDataURL(e)}displayExistingFile(e,t,n,l,r=!0){if(this.emit("addedfile",e),this.emit("complete",e),!r)this.emit("thumbnail",e,t),n&&n();else{let s=o=>{this.emit("thumbnail",e,o),n&&n()};e.dataURL=t,this.createThumbnailFromUrl(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,s,l)}}createThumbnailFromUrl(e,t,n,l,r,s,o){let d=document.createElement("img");return o&&(d.crossOrigin=o),r=getComputedStyle(document.body).imageOrientation=="from-image"?!1:r,d.onload=()=>{let u=y=>y(1);return typeof EXIF<"u"&&EXIF!==null&&r&&(u=y=>EXIF.getData(d,function(){return y(EXIF.getTag(this,"Orientation"))})),u(y=>{e.width=d.width,e.height=d.height;let w=this.options.resize.call(this,e,t,n,l),I=document.createElement("canvas"),b=I.getContext("2d");switch(I.width=w.trgWidth,I.height=w.trgHeight,y>4&&(I.width=w.trgHeight,I.height=w.trgWidth),y){case 2:b.translate(I.width,0),b.scale(-1,1);break;case 3:b.translate(I.width,I.height),b.rotate(Math.PI);break;case 4:b.translate(0,I.height),b.scale(1,-1);break;case 5:b.rotate(.5*Math.PI),b.scale(1,-1);break;case 6:b.rotate(.5*Math.PI),b.translate(0,-I.width);break;case 7:b.rotate(.5*Math.PI),b.translate(I.height,-I.width),b.scale(-1,1);break;case 8:b.rotate(-.5*Math.PI),b.translate(-I.height,0);break}pe(b,d,w.srcX!=null?w.srcX:0,w.srcY!=null?w.srcY:0,w.srcWidth,w.srcHeight,w.trgX!=null?w.trgX:0,w.trgY!=null?w.trgY:0,w.trgWidth,w.trgHeight);let Q=I.toDataURL("image/png");if(s!=null)return s(Q,I)})},s!=null&&(d.onerror=s),d.src=e.dataURL}processQueue(){let{parallelUploads:e}=this.options,t=this.getUploadingFiles().length,n=t;if(t>=e)return;let l=this.getQueuedFiles();if(l.length>0){if(this.options.uploadMultiple)return this.processFiles(l.slice(0,e-t));for(;nt.xhr===e).map(t=>t)}cancelUpload(e){if(e.status===a.UPLOADING){let t=this._getFilesWithXhr(e.xhr);for(let n of t)n.status=a.CANCELED;typeof e.xhr<"u"&&e.xhr.abort();for(let n of t)this.emit("canceled",n);this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else(e.status===a.ADDED||e.status===a.QUEUED)&&(e.status=a.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}resolveOption(e,...t){return typeof e=="function"?e.apply(this,t):e}uploadFile(e){return this.uploadFiles([e])}uploadFiles(e){this._transformFiles(e,t=>{if(this.options.chunking){let n=t[0];e[0].upload.chunked=this.options.chunking&&(this.options.forceChunking||n.size>this.options.chunkSize),e[0].upload.totalChunkCount=Math.ceil(n.size/this.options.chunkSize)}if(e[0].upload.chunked){let n=e[0],l=t[0];n.upload.chunks=[];let r=()=>{let s=0;for(;n.upload.chunks[s]!==void 0;)s++;if(s>=n.upload.totalChunkCount)return;let o=s*this.options.chunkSize,d=Math.min(o+this.options.chunkSize,l.size),u={name:this._getParamName(0),data:l.webkitSlice?l.webkitSlice(o,d):l.slice(o,d),filename:n.upload.filename,chunkIndex:s};n.upload.chunks[s]={file:n,index:s,dataBlock:u,status:a.UPLOADING,progress:0,retries:0},this._uploadData(e,[u])};if(n.upload.finishedChunkUpload=(s,o)=>{let d=!0;s.status=a.SUCCESS,s.dataBlock=null,s.response=s.xhr.responseText,s.responseHeaders=s.xhr.getAllResponseHeaders(),s.xhr=null;for(let u=0;u{this._finished(e,o,null)})},this.options.parallelChunkUploads)for(let s=0;s{this._finishedUploading(e,n,u)},n.ontimeout=()=>{this._handleUploadError(e,n,`Request timedout after ${this.options.timeout/1e3} seconds`)},n.onerror=()=>{this._handleUploadError(e,n)};let o=n.upload!=null?n.upload:n;o.onprogress=u=>this._updateFilesUploadProgress(e,n,u);let d=this.options.defaultHeaders?{Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}:{};this.options.binaryBody&&(d["Content-Type"]=e[0].type),this.options.headers&&X(d,this.options.headers);for(let u in d){let y=d[u];y&&n.setRequestHeader(u,y)}if(this.options.binaryBody){for(let u of e)this.emit("sending",u,n);this.options.uploadMultiple&&this.emit("sendingmultiple",e,n),this.submitRequest(n,null,e)}else{let u=new FormData;if(this.options.params){let y=this.options.params;typeof y=="function"&&(y=y.call(this,e,n,e[0].upload.chunked?this._getChunk(e[0],n):null));for(let w in y){let I=y[w];if(Array.isArray(I))for(let b=0;b{n[r]=s,++l===e.length&&t(n)})}_addFormElementData(e){if(this.element.tagName==="FORM")for(let t of this.element.querySelectorAll("input, textarea, select, button")){let n=t.getAttribute("name"),l=t.getAttribute("type");if(l&&(l=l.toLowerCase()),!(typeof n>"u"||n===null))if(t.tagName==="SELECT"&&t.hasAttribute("multiple"))for(let r of t.options)r.selected&&e.append(n,r.value);else(!l||l!=="checkbox"&&l!=="radio"||t.checked)&&e.append(n,t.value)}}_updateFilesUploadProgress(e,t,n){if(e[0].upload.chunked){let l=e[0],r=this._getChunk(l,t);n?(r.progress=100*n.loaded/n.total,r.total=n.total,r.bytesSent=n.loaded):(r.progress=100,r.bytesSent=r.total),l.upload.progress=0,l.upload.total=0,l.upload.bytesSent=0;for(let s=0;sthis.options.renameFilename.call(this,s.name,s)),typeof this.options.method=="string"&&(this.options.method=this.options.method.toUpperCase()),(n=this.getExistingFallback())&&n.parentNode&&n.parentNode.removeChild(n),this.options.previewsContainer!==!1&&(this.options.previewsContainer?this.previewsContainer=a.getElement(this.options.previewsContainer,"previewsContainer"):this.previewsContainer=this.element),this.options.clickable&&(this.options.clickable===!0?this.clickableElements=[this.element]:this.clickableElements=a.getElements(this.options.clickable,"clickable")),this.init()}}a.initClass();a.options={};a.optionsForElement=function(i){if(i.getAttribute("id"))return a.options[ce(i.getAttribute("id"))]};a.instances=[];a.forElement=function(i){if(typeof i=="string"&&(i=document.querySelector(i)),(i!=null?i.dropzone:void 0)==null)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 i.dropzone};a.discover=function(){let i;if(document.querySelectorAll)i=document.querySelectorAll(".dropzone");else{i=[];let e=t=>(()=>{let n=[];for(let l of t)/(^| )dropzone($| )/.test(l.className)?n.push(i.push(l)):n.push(void 0);return n})();e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return(()=>{let e=[];for(let t of i)a.optionsForElement(t)!==!1?e.push(new a(t)):e.push(void 0);return e})()};a.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i];a.isBrowserSupported=function(){let i=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))i=!1;else{a.blacklistedBrowsers!==void 0&&(a.blockedBrowsers=a.blacklistedBrowsers);for(let e of a.blockedBrowsers)if(e.test(navigator.userAgent)){i=!1;continue}}else i=!1;return i};a.dataURItoBlob=function(i){let e=atob(i.split(",")[1]),t=i.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(e.length),l=new Uint8Array(n);for(let r=0,s=e.length,o=0<=s;o?r<=s:r>=s;o?r++:r--)l[r]=e.charCodeAt(r);return new Blob([n],{type:t})};const ue=(i,e)=>i.filter(t=>t!==e).map(t=>t),ce=i=>i.replace(/[\-_](\w)/g,e=>e.charAt(1).toUpperCase());a.createElement=function(i){let e=document.createElement("div");return e.innerHTML=i,e.childNodes[0]};a.elementInside=function(i,e){if(i===e)return!0;for(;i=i.parentNode;)if(i===e)return!0;return!1};a.getElement=function(i,e){let t;if(typeof i=="string"?t=document.querySelector(i):i.nodeType!=null&&(t=i),t==null)throw new Error(`Invalid \`${e}\` option provided. Please provide a CSS selector or a plain HTML element.`);return t};a.getElements=function(i,e){let t,n;if(i instanceof Array){n=[];try{for(t of i)n.push(this.getElement(t,e))}catch{n=null}}else if(typeof i=="string"){n=[];for(t of document.querySelectorAll(i))n.push(t)}else i.nodeType!=null&&(n=[i]);if(n==null||!n.length)throw new Error(`Invalid \`${e}\` option provided. Please provide a CSS selector, a plain HTML element or a list of those.`);return n};a.confirm=function(i,e,t){if(window.confirm(i))return e();if(t!=null)return t()};a.isValidFile=function(i,e){if(!e)return!0;e=e.split(",");let t=i.type,n=t.replace(/\/.*$/,"");for(let l of e)if(l=l.trim(),l.charAt(0)==="."){if(i.name.toLowerCase().indexOf(l.toLowerCase(),i.name.length-l.length)!==-1)return!0}else if(/\/\*$/.test(l)){if(n===l.replace(/\/.*$/,""))return!0}else if(t===l)return!0;return!1};typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(i){return this.each(function(){return new a(this,i)})});a.ADDED="added";a.QUEUED="queued";a.ACCEPTED=a.QUEUED;a.UPLOADING="uploading";a.PROCESSING=a.UPLOADING;a.CANCELED="canceled";a.ERROR="error";a.SUCCESS="success";let me=function(i){i.naturalWidth;let e=i.naturalHeight,t=document.createElement("canvas");t.width=1,t.height=e;let n=t.getContext("2d");n.drawImage(i,0,0);let{data:l}=n.getImageData(1,0,1,e),r=0,s=e,o=e;for(;o>r;)l[(o-1)*4+3]===0?s=o:r=o,o=s+r>>1;let d=o/e;return d===0?1:d};var pe=function(i,e,t,n,l,r,s,o,d,u){let y=me(e);return i.drawImage(e,t,n,l,r,s,o,d,u/y)};class te{static initClass(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}static encode64(e){let t="",n,l,r="",s,o,d,u="",y=0;for(;n=e[y++],l=e[y++],r=e[y++],s=n>>2,o=(n&3)<<4|l>>4,d=(l&15)<<2|r>>6,u=r&63,isNaN(l)?d=u=64:isNaN(r)&&(u=64),t=t+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(d)+this.KEY_STR.charAt(u),n=l=r="",s=o=d=u="",ye.length)break}return n}static decode64(e){let t,n,l="",r,s,o,d="",u=0,y=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn(`There were invalid base64 characters in the input text.
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
-Expect errors in decoding.`),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");r=this.KEY_STR.indexOf(e.charAt(u++)),s=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),d=this.KEY_STR.indexOf(e.charAt(u++)),t=r<<2|s>>4,n=(s&15)<<4|o>>2,l=(o&3)<<6|d,y.push(t),o!==64&&y.push(n),d!==64&&y.push(l),t=n=l="",r=s=o=d="",u{},onShow:()=>{},onToggle:()=>{}},c=new W(fe,Z),m=new W(ye,Z),ne=new W(ve,Z),xe=new W(Ee,Z),Ie=new W(we,Z);let A,F;var p=document.getElementById("altSubMessageModal"),h=document.getElementById("errMessageModal"),g=document.getElementById("errSubMessageModal"),be=document.getElementById("err-list"),v=document.getElementById("err-list-title"),B=document.getElementById("submitBtn"),S=document.getElementById("titleMessageModal"),D=[],ie=document.getElementById("dropzoneArea"),Fe=document.getElementById("dropzoneAreaCnv"),Te=document.getElementById("dropzoneAreaSingle"),le="STATIC_CLIENT_ID",z="http://192.168.0.2",_="STATIC_BEARER",Be="https://docs.google.com/viewerng/viewer?url=",q="/storage/upload/",k=0,C=0;B&&De().then(function(){B.onclick=function(i){k>0&&C>0?k==C?Ce(i):(i.preventDefault(),h.innerText="Sorry, we're still uploading your files",g.innerText="",v.innerText="Error message",E(),f(k+" of "+C+" files are still uploading"),p.style=null,m.hide(),c.show()):(i.preventDefault(),h.innerText="PDF file can not be processed !",g.innerText="",v.innerText="Error message",E(),f("No file has been chosen"),p.style=null,m.hide(),c.show())}}).catch(function(i){h.innerText="There was unexpected error !",g.innerText="",v.innerText="Error message",E(),f("Cannot establish connection with the server"),p.style=null,m.hide(),c.show(),console.log(i)});if(ie){let i=new a("#dropzoneArea",{url:z+"/api/v1/file/upload",paramName:"file",maxFilesize:25,maxFiles:5,acceptedFiles:"application/pdf",addRemoveLinks:!0,dictDefaultMessage:"",dictRemoveFile:"Remove",timeout:6e5,previewTemplate:'