UNPKG

109 kBJavaScriptView Raw
1function e(e){if(!e||"undefined"==typeof window)return;const t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}import t,{useState as n,useEffect as a,Fragment as r,useRef as i}from"react";import o from"axios";var l=function(){function e(){}return e.createFile=function(e,t,n){var a=new File([],e,{type:n});return Object.defineProperty(a,"size",{get:function(){return t}}),a},e.create_aac=function(t){return e.createFile("acc_audio-file-with-large-name.aac",t||3516516,"audio/aac")},e.create_abw=function(t){return e.createFile("abiword-file-with-large-name.abw",t||3516516,"application/x-abiword")},e.create_freearc=function(t){return e.createFile("freearc-file-with-large-name.arc",t||3516516,"application/x-freearc")},e.create_avi=function(t){return e.createFile("avi-file-with-large-name.avi",t||3516516,"video/x-msvideo")},e.create_azw=function(t){return e.createFile("amazon_kindle_ebook-file-with-large-name.azw",t||3516516,"application/vnd.amazon.ebook")},e.create_octet=function(t){return e.createFile("binary_octet_stream-file-with-large-name.bin",t||3516516,"application/octet-stream")},e.create_bmp=function(t){return e.createFile("bit_map-file-with-large-name.bmp",t||3516516,"image/bmp")},e.create_bz=function(t){return e.createFile("x_bzip-file-with-large-name.bz",t||3516516,"application/x-bzip")},e.create_bz2=function(t){return e.createFile("x_bzip_2-file-with-large-name.bz2",t||3516516,"application/x-bzip2")},e.create_cda=function(t){return e.createFile("cd_audio-file-with-large-name.cda",t||3516516,"application/x-cdf")},e.create_csh=function(t){return e.createFile("test-file-with-large-name.csh",t||3516516,"application/x-csh")},e.create_css=function(t){return e.createFile("test-file-with-large-name.css",t||3516516,"text/css")},e.create_csv=function(t){return e.createFile("test-file-with-large-name.csv",t||3516516,"text/csv")},e.create_doc=function(t){return e.createFile("test-file-with-large-name.doc",t||3516516,"application/msword")},e.create_docx=function(t){return e.createFile("test-file-with-large-name.docx",t||3516516,"application/vnd.openxmlformats-officedocument.wordprocessingml.document")},e.create_eot=function(t){return e.createFile("test-file-with-large-name.eot",t||3516516,"application/vnd.ms-fontobject")},e.create_epub=function(t){return e.createFile("test-file-with-large-name.epub",t||3516516,"application/epub+zip")},e.create_gzip=function(t){return e.createFile("test-file-with-large-name.gz",t||3516516,"application/gzip")},e.create_gif=function(t){return e.createFile("test-file-with-large-name.gif",t||3516516,"image/gif")},e.create_htm=function(t){return e.createFile("test-file-with-large-name.htm",t||3516516,"text/html")},e.create_html=function(t){return e.createFile("test-file-with-large-name.html",t||3516516,"text/html")},e.create_ico=function(t){return e.createFile("test-file-with-large-name.ico",t||3516516,"image/vnd.microsoft.icon")},e.create_icalendar=function(t){return e.createFile("test-file-with-large-name.ics",t||3516516,"text/calendar")},e.create_jar=function(t){return e.createFile("test-file-with-large-name.jar",t||3516516,"application/java-archive")},e.create_jpeg=function(t){return e.createFile("test-file-with-large-name.jpeg",t||3516516,"image/jpeg")},e.create_jpg=function(t){return e.createFile("test-file-with-large-name.jpg",t||3516516,"image/jpeg")},e.create_js=function(t){return e.createFile("test-file-with-large-name.js",t||3516516,"text/javascript")},e.create_json=function(t){return e.createFile("test-file-with-large-name.json",t||3516516,"application/json")},e.create_jsonld=function(t){return e.createFile("test-file-with-large-name.jsonld",t||3516516,"application/ld+json")},e.create_mid=function(t){return e.createFile("test-file-with-large-name.mid",t||3516516,"audio/midi")},e.create_x_mid=function(t){return e.createFile("test-file-with-large-name.mid",t||3516516,"audio/x-midi")},e.create_midi=function(t){return e.createFile("test-file-with-large-name.midi",t||3516516,"audio/x-midi")},e.create_x_midi=function(t){return e.createFile("test-file-with-large-name.midi",t||3516516,"audio/x-midi")},e.create_mjs=function(t){return e.createFile("test-file-with-large-name.mjs",t||3516516,"text/javascript")},e.create_mp3=function(t){return e.createFile("test-file-with-large-name.mp3",t||3516516,"audio/mpeg")},e.create_mp4=function(t){return e.createFile("test-file-with-large-name.mp4",t||3516516,"video/mp4")},e.create_mpeg=function(t){return e.createFile("test-file-with-large-name.mpeg",t||3516516,"video/mpeg")},e.create_mpkg=function(t){return e.createFile("test-file-with-large-name.mpkg",t||3516516,"application/vnd.apple.installer+xml")},e.create_odp=function(t){return e.createFile("test-file-with-large-name.odp",t||3516516,"application/vnd.oasis.opendocument.presentation")},e.create_ods=function(t){return e.createFile("test-file-with-large-name.ods",t||3516516,"application/vnd.oasis.opendocument.spreadsheet")},e.create_odt=function(t){return e.createFile("test-file-with-large-name.odt",t||3516516,"application/vnd.oasis.opendocument.text")},e.create_oga=function(t){return e.createFile("test-file-with-large-name.oga",t||3516516,"audio/ogg")},e.create_ogv=function(t){return e.createFile("test-file-with-large-name.ogv",t||3516516,"video/ogg")},e.create_ogx=function(t){return e.createFile("test-file-with-large-name.ogx",t||3516516,"application/ogg")},e.create_opus=function(t){return e.createFile("test-file-with-large-name.opus",t||3516516,"audio/opus")},e.create_otf=function(t){return e.createFile("test-file-with-large-name.otf",t||3516516,"font/otf")},e.create_png=function(t){return e.createFile("test-file-with-large-name.png",t||3516516,"image/png")},e.create_pdf=function(t){return e.createFile("test-file-with-large-name.pdf",t||3516516,"application/pdf")},e.create_php=function(t){return e.createFile("test-file-with-large-name.php",t||3516516,"application/x-httpd-php")},e.create_ppt=function(t){return e.createFile("test-file-with-large-name.ppt",t||3516516,"application/vnd.ms-powerpoint")},e.create_pptx=function(t){return e.createFile("test-file-with-large-name.pptx",t||3516516,"application/vnd.openxmlformats-officedocument.presentationml.presentation")},e.create_rar=function(t){return e.createFile("test-file-with-large-name.rar",t||3516516,"application/vnd.rar")},e.create_rtf=function(t){return e.createFile("test-file-with-large-name.rtf",t||3516516,"application/rtf")},e.create_sh=function(t){return e.createFile("test-file-with-large-name.sh",t||3516516,"application/x-sh")},e.create_svg=function(t){return e.createFile("test-file-with-large-name.svg",t||3516516,"image/svg+xml")},e.create_swf=function(t){return e.createFile("test-file-with-large-name.swf",t||3516516,"application/x-shockwave-flash")},e.create_tar=function(t){return e.createFile("test-file-with-large-name.tar",t||3516516,"application/x-tar")},e.create_tif=function(t){return e.createFile("test-file-with-large-name.tif",t||3516516,"image/tiff")},e.create_tiff=function(t){return e.createFile("test-file-with-large-name.tiff",t||3516516,"image/tiff")},e.create_ts=function(t){return e.createFile("mp2t_video-file-with-large-name.ts",t||3516516,"video/mp2t")},e.create_ttf=function(t){return e.createFile("test-file-with-large-name.ttf",t||3516516,"font/ttf")},e.create_text=function(t){return e.createFile("test-file-with-large-name.txt",t||3516516,"text/plain")},e.create_typescript=function(t){return e.createFile("typescript-file-with-large-name.ts",t||3516516,"text/plain")},e.create_vsd=function(t){return e.createFile("ms_visio-file-with-large-name.vsd",t||3516516,"application/vnd.visio")},e.create_wav=function(t){return e.createFile("wav_audio-file-with-large-name.wav",t||3516516,"audio/wav")},e.create_weba=function(t){return e.createFile("web_audio-file-with-large-name.weba",t||3516516,"audio/webm")},e.create_webm=function(t){return e.createFile("web_video-file-with-large-name.webm",t||3516516,"video/webm")},e.create_webp=function(t){return e.createFile("web_image-file-with-large-name.webp",t||3516516,"image/webp")},e.create_woff=function(t){return e.createFile("test-file-with-large-name.woff",t||3516516,"font/woff")},e.create_woff2=function(t){return e.createFile("test-file-with-large-name.woff2",t||3516516,"font/woff2")},e.create_xhtml=function(t){return e.createFile("test-file-with-large-name.xhtml",t||3516516,"application/xhtml+xml")},e.create_xlsx=function(t){return e.createFile("test-file-with-large-name.xls",t||3516516,"application/vnd.ms-excel")},e.create_xls=function(t){return e.createFile("test-file-with-large-name.xlsx",t||3516516,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")},e.create_xml=function(t){return e.createFile("xml-file-with-large-name.xml",t||3516516,"application/xml")},e.create_xml_txt=function(t){return e.createFile("xml_plain_text-file-with-large-name.xml",t||3516516,"application/xml")},e.create_xul=function(t){return e.createFile("test-file-with-large-name.xul",t||3516516,"application/vnd.mozilla.xul+xml")},e.create_zip=function(t){return e.createFile("zip-file-with-large-name.zip",t||3516516,"application/zip")},e.create_3gp=function(t){return e.createFile("3gp_video-file-with-large-name.3gp",t||3516516,"video/3gpp")},e.create_3gp2=function(t){return e.createFile("3gp2_video-file-with-large-name.3g2",t||3516516,"video/3gpp2")},e.create_3gp_a=function(t){return e.createFile("3gp_audio-file-with-large-name.3gp",t||3516516,"audio/3gpp")},e.create_3gp_v=function(t){return e.createFile("3gp_audio-file-with-large-name.3gp2",t||3516516,"audio/3gpp2")},e.create_7z=function(t){return e.createFile("seven_zip-file-with-large-name.7z",t||3516516,"application/x-7z-compressed")},e.create_python=function(t){return e.createFile("python-file-with-large-name.py",t||3516516,"text/plain")},e.create_java=function(t){return e.createFile("java-file-with-large-name.java",t||3516516,"text/plain")},e.create_react=function(t){return e.createFile("react_jsx-file-with-large-name.jsx",t||3516516,"text/plain")},e.create_vue=function(t){return e.createFile("vue-file-with-large-name.vue",t||3516516,"text/plain")},e.createFileListMiscelanious=function(t){var n=[];return n.push(e.create_aac(t)),n.push(e.create_abw(t)),n.push(e.create_freearc(t)),n.push(e.create_avi(t)),n.push(e.create_azw(t)),n.push(e.create_octet(t)),n.push(e.create_bmp(t)),n.push(e.create_bz(t)),n.push(e.create_bz2(t)),n.push(e.create_cda(t)),n.push(e.create_csh(t)),n.push(e.create_css(t)),n.push(e.create_csv(t)),n.push(e.create_doc(t)),n.push(e.create_docx(t)),n.push(e.create_eot(t)),n.push(e.create_epub(t)),n.push(e.create_gzip(t)),n.push(e.create_gif(t)),n.push(e.create_htm(t)),n.push(e.create_html(t)),n.push(e.create_ico(t)),n.push(e.create_icalendar(t)),n.push(e.create_jar(t)),n.push(e.create_jpeg(t)),n.push(e.create_jpg(t)),n.push(e.create_js(t)),n.push(e.create_json(t)),n.push(e.create_jsonld(t)),n.push(e.create_mid(t)),n.push(e.create_midi(t)),n.push(e.create_x_mid(t)),n.push(e.create_x_midi(t)),n.push(e.create_mjs(t)),n.push(e.create_mp3(t)),n.push(e.create_mp4(t)),n.push(e.create_mpeg(t)),n.push(e.create_mpkg(t)),n.push(e.create_odp(t)),n.push(e.create_ods(t)),n.push(e.create_odt(t)),n.push(e.create_oga(t)),n.push(e.create_ogv(t)),n.push(e.create_ogx(t)),n.push(e.create_opus(t)),n.push(e.create_otf(t)),n.push(e.create_png(t)),n.push(e.create_pdf(t)),n.push(e.create_php(t)),n.push(e.create_ppt(t)),n.push(e.create_pptx(t)),n.push(e.create_rar(t)),n.push(e.create_rtf(t)),n.push(e.create_sh(t)),n.push(e.create_svg(t)),n.push(e.create_swf(t)),n.push(e.create_tar(t)),n.push(e.create_tif(t)),n.push(e.create_tiff(t)),n.push(e.create_ts(t)),n.push(e.create_ttf(t)),n.push(e.create_text(t)),n.push(e.create_typescript(t)),n.push(e.create_vsd(t)),n.push(e.create_wav(t)),n.push(e.create_weba(t)),n.push(e.create_webm(t)),n.push(e.create_webp(t)),n.push(e.create_woff(t)),n.push(e.create_woff2(t)),n.push(e.create_xhtml(t)),n.push(e.create_xlsx(t)),n.push(e.create_xls(t)),n.push(e.create_xml(t)),n.push(e.create_xml_txt(t)),n.push(e.create_xul(t)),n.push(e.create_zip(t)),n.push(e.create_python(t)),n.push(e.create_java(t)),n.push(e.create_react(t)),n.push(e.create_vue(t)),n},e}(),c=function(e,t,n){return void 0===e&&(e="pdf-file-with-large-name.pdf"),void 0===t&&(t=455005),void 0===n&&(n="application/pdf"),l.createFile(e,t,n)},s=function(e,t,n){return void 0===e&&(e="word-file-with-large-name.docx"),void 0===t&&(t=4555),void 0===n&&(n="application/vnd.openxmlformats-officedocument.wordprocessingml.document"),l.createFile(e,t,n)},u=function(e){return l.createFileListMiscelanious(e)},d=function(e,t,n){return void 0===e&&(e="png-image-file-with-large-name.png"),void 0===t&&(t=455555),void 0===n&&(n="image/png"),l.createFile(e,t,n)},p=function(e){return e?e<1024?e+" Bytes":e<1048576?(e/1024).toFixed(2)+" KB":e<1073741824?(e/1024/1024).toFixed(2)+" MB":e<1099511627776?(e/1024/1024/1024).toFixed(2)+" GB":(e/1024/1024/1024/1024).toFixed(2)+" TB":"0 Bytes"},f=function(e){var t=/(?:\.([^.]+))?$/.exec(e);return t?t[1]:""},m="https://user-images.githubusercontent.com/43678736/132086625-1b8f2652-1de0-4475-8c12-7da4a9973ffb.png",h="https://user-images.githubusercontent.com/43678736/132086666-ab3c505d-b2c0-4177-9a06-aed5d9c39ee4.png",g={img:"https://ssl.gstatic.com/docs/doclist/images/mediatype/icon_1_image_x16.png",video:"https://ssl.gstatic.com/docs/doclist/images/mediatype/icon_1_video_x16.png",audio:"https://ssl.gstatic.com/docs/doclist/images/mediatype/icon_1_audio_x16.png",aac:"https://user-images.githubusercontent.com/43678736/132086518-7026d4f1-ea16-4ed0-89fd-37c1aa8ac3ed.png",accdb:"https://user-images.githubusercontent.com/43678736/132086520-9bc6aa3b-51c9-4da2-9ef7-349162b86d0b.png",abw:"https://user-images.githubusercontent.com/43678736/132086519-863c63b4-917e-4471-94ff-7e15651cc14b.png",arc:"https://user-images.githubusercontent.com/43678736/132086621-3b95fb64-2533-4ccc-abcd-bd2beba572e9.png",avi:"https://user-images.githubusercontent.com/43678736/132086521-dbd6cf0d-d4d7-4b92-bb26-17e8a51a9383.png",azw:"https://user-images.githubusercontent.com/43678736/132086522-070f48e8-78a8-4294-8dbb-aab81525e164.png",octet:h,bmp:"https://user-images.githubusercontent.com/43678736/132086595-90ab7f90-f87e-4900-94d9-d0b26745df48.png",bz:"https://user-images.githubusercontent.com/43678736/132086597-e285ad5c-613a-4679-a270-493e5be4ffd9.png",bz2:"https://user-images.githubusercontent.com/43678736/132086598-623c410a-084a-4395-a448-211b2ff61cfe.png",cda:"https://user-images.githubusercontent.com/43678736/132086600-8b70a007-512d-4252-9c66-eabd3ddd6573.png",csh:"https://user-images.githubusercontent.com/43678736/132086601-e62e5d1a-d8a2-4475-a14f-85922cec9272.png",css:"https://user-images.githubusercontent.com/43678736/132086602-4c772934-f608-4f01-8459-c4622cee8ad5.png",csv:"https://user-images.githubusercontent.com/43678736/132086604-b5b019fe-572e-477e-92c2-3769a48a1304.png",docx:"https://user-images.githubusercontent.com/43678736/132086606-715ccb66-4702-4f7d-9b09-ac93ba17b643.png",drawio:"https://user-images.githubusercontent.com/43678736/132086608-bcae9d57-8e54-488c-90c4-4952ae530b5e.png",eot:"https://user-images.githubusercontent.com/43678736/132086618-397d6bd2-9fda-43ed-a135-cb40388c35af.png",epub:"https://user-images.githubusercontent.com/43678736/132086620-2586ba40-c583-4589-b1a4-8bb5b258b44d.png",gzip:"https://user-images.githubusercontent.com/43678736/132086624-89141a46-64e4-4fa0-bf69-54a0eb4d48c9.png",gif:"https://user-images.githubusercontent.com/43678736/132086622-af705a0c-2b25-4ba7-8ab6-bd69ec97f7e2.png",html:m,icalendar:"https://user-images.githubusercontent.com/43678736/132086626-38699705-1e6f-4bca-984b-03167b236faa.png",jar:"https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png",jpeg:"https://user-images.githubusercontent.com/43678736/132086653-0487e7e2-1ee3-49e2-8cfe-3e20f1f7490a.png",javascript:"https://user-images.githubusercontent.com/43678736/132086652-4562942e-aaea-466c-968f-380fffabf3f9.png",json:"https://user-images.githubusercontent.com/43678736/132086656-6e96c815-e4e2-4ffd-9d71-57e9cc2450bc.png",jsonld:"https://user-images.githubusercontent.com/43678736/132086658-5d27d3c2-394f-43fb-b512-9b414a257875.png",midi:"https://user-images.githubusercontent.com/43678736/132086659-98f3ef6e-b9f3-4b6d-b18f-469b5334ba27.png",mp3:"https://user-images.githubusercontent.com/43678736/132086661-a5484553-06c7-4ffa-a8f9-96b57b1b0344.png",mp4:"https://user-images.githubusercontent.com/43678736/132086662-05ad1597-d5e5-4efa-833e-2876e966a745.png",mpeg:"https://user-images.githubusercontent.com/43678736/132086663-90c58955-f7fb-4bdb-ac53-92667d16d4a3.png",mpkg:"https://user-images.githubusercontent.com/43678736/132086664-9a7530e7-6d78-4ef3-a176-20cf7f57b555.png",mp2t:h,odp:"https://user-images.githubusercontent.com/43678736/132086667-6c7dcbcc-8d83-41a2-8e0a-85b09e2791ae.png",ods:"https://user-images.githubusercontent.com/43678736/132086668-9f246e91-cf2e-49cf-9617-e1fbb71abbbb.png",odt:"https://user-images.githubusercontent.com/43678736/132086669-46113762-84d1-4b32-9441-b0138ce17a5d.png",oga:"https://user-images.githubusercontent.com/43678736/145835364-2054509d-3448-4d34-921f-73dd6e297fc7.png",ogv:"https://user-images.githubusercontent.com/43678736/145835367-19172bf8-cd5a-4cbe-b512-d0de1d91f269.png",ogx:"https://user-images.githubusercontent.com/43678736/145835373-a57ef0f5-3968-483b-9f55-6d67e7f1dcea.png",opus:"https://user-images.githubusercontent.com/43678736/132086670-0f96e770-cedc-4635-a5f9-cf97894c1d7a.png",otf:"https://user-images.githubusercontent.com/43678736/132086671-02ad35ef-ec3a-4a65-abd5-5bf794dfcf7b.png",png:"https://user-images.githubusercontent.com/43678736/132086674-fdb56d02-5845-49b7-8462-6357bc963464.png",pdf:"https://user-images.githubusercontent.com/43678736/132086672-3a856fda-823d-4997-b802-c7c640e6ef44.png",php:"https://user-images.githubusercontent.com/43678736/132086673-0c4409ab-754e-4619-8cfa-179d0ccf1bd9.png",pptx:"https://user-images.githubusercontent.com/43678736/132086675-c879645d-acb4-41a6-ab3c-4e6c2048badb.png",psd:"https://user-images.githubusercontent.com/43678736/132086685-4e327c4c-a409-4b83-b36a-8d88936b314b.png",rar:"https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png",rtf:"https://user-images.githubusercontent.com/43678736/132086693-9d43571e-0c86-438f-b247-e2cb42e19e06.png",sass:"https://user-images.githubusercontent.com/43678736/132086694-4e661d6a-1118-441e-8bc3-c52fcb2133b6.png",sh:"https://user-images.githubusercontent.com/43678736/132086697-1d82d724-35b6-4f06-847a-3c59a5deda6e.png",swf:"https://user-images.githubusercontent.com/43678736/132086698-19384230-dbd7-4e05-bc69-ef4537b6aae3.png",tar:"https://user-images.githubusercontent.com/43678736/132086689-fe1fef9f-d2db-455b-8f4b-09acd095f571.png",tiff:"https://user-images.githubusercontent.com/43678736/132086700-c23461c8-6819-46e1-aecd-0a1f8d3507bb.png",ttf:"https://user-images.githubusercontent.com/43678736/132086701-c8044c09-8d95-4af1-9410-66761001d7da.png",typescript:"https://user-images.githubusercontent.com/43678736/132086702-59294337-ed99-4302-badd-316b2c1ff62f.png",text:"https://user-images.githubusercontent.com/43678736/132086699-5993a482-04f4-4915-b105-9037f527cf61.png",vsd:"https://user-images.githubusercontent.com/43678736/132086704-8fd51e7c-afa2-47a3-ab2f-d0bcd0ecae9f.png",wav:"https://user-images.githubusercontent.com/43678736/132086706-22f805d0-39d4-494b-824e-47dc75d05eb7.png",weba:"https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png",webm:"https://user-images.githubusercontent.com/43678736/132086707-e61a84de-d396-4dbf-8d1b-1d6ee19e1ac8.png",webp:"https://user-images.githubusercontent.com/43678736/132086708-21d096dd-7148-40aa-97f1-cbb099339740.png",woff:"https://user-images.githubusercontent.com/43678736/132086711-1524a3e7-3e33-4822-a34f-ff3235404045.png",wma:"https://user-images.githubusercontent.com/43678736/132086709-811d4e90-3cfa-4044-a956-aeda9c67fc92.png",wmv:"https://user-images.githubusercontent.com/43678736/132086710-c5479c6c-0249-4542-adad-48b0ef40b775.png",xhtml:m,xlsx:"https://user-images.githubusercontent.com/43678736/132086712-17e2c491-f6e4-4586-aef6-06bcc5f4b0e5.png",xml:"https://user-images.githubusercontent.com/43678736/132086715-204b5a8b-9c5a-4bac-8294-9237ebc16089.png",xul:"https://user-images.githubusercontent.com/43678736/132086716-64511d20-58cb-45a8-85df-f4d9408b469d.png",zip:"https://user-images.githubusercontent.com/43678736/132086718-a8499333-6282-4820-aa1f-4d133eb54648.png",sevenzip:"https://user-images.githubusercontent.com/43678736/132086517-72a51a12-e403-4675-bfd7-22c23affa730.png",python:"https://user-images.githubusercontent.com/43678736/132086688-8e82fae4-3a9b-49c0-bf99-77189525514c.png",java:"https://user-images.githubusercontent.com/43678736/132086650-f1166246-b361-4c30-a04e-9781c555d14a.png",react:"https://user-images.githubusercontent.com/43678736/132086691-d472576b-ec6a-4332-acd2-dd6a00b72952.png",vue:"https://user-images.githubusercontent.com/43678736/132086705-33294da1-5c0f-49f7-b890-e4857cec0a6d.png"};var v,b=function(e){return new Promise((function(t,n){try{var a=new FileReader;a.onload=function(){t(a.result)},a.readAsDataURL(e)}catch(e){n(void 0)}}))};!function(e){e.uploading="uploading",e.success="success",e.error="error"}(v||(v={}));var x=function(e,t,n){var a=F.getNextId(),r=[],i=t.maxFileSize,o=t.accept;if(i&&e.size>i){var l=n.maxSizeError;r.push(l(i))}return o&&!function(e,t){for(var n=t.name,a=t.type,r=0;r<e.length;r++){var i=e[r];if(0!==i.length){if("."===i.charAt(0)&&i.includes(f(n)))return!0;if(a&&a.length>0&&i.includes("/")&&a.includes("/")){var o=i.split("/")[0],l=i.split("/")[1],c=a.split("/")[0],s=a.split("/")[1];if(o===c){if("*"===l)return!0;if(l===s)return!0}}}}return!1}(function(e){return e&&0!==e.length?e.split(",").map((function(e){return e.trim()})):[]}(o),e)&&r.push(n.acceptError),{id:a,file:e,valid:0===r.length,errors:r}},w=function(e,t){var n=F.getNextId(),a=t(e);return{id:n,file:e,valid:a.valid,errors:a.errors}},F=function(){function e(){}return e.getNextId=function(){return e.nextId++,e.nextId},e.nextId=0,e}();function y(e,t){return Math.floor(Math.random()*(t-e))+e}var E=function(e,t,n,a){void 0===t&&(t=Math.ceil(28*Math.random())%2==0);var r=[],i=n||function(){switch(y(0,4)){case 0:return v.error;case 1:return v.uploading;case 2:return v.success;default:return}}(),o=a||"";if(t){if(!a)switch(i){case v.error:o="Upload failed. There was an error";break;case v.success:o="File was successfully upload";break;default:a=void 0}r=void 0}else{var l=y(0,3);r.push(z[l]),i=void 0,o=void 0}return{id:F.getNextId(),valid:t,file:e,uploadStatus:i,uploadMessage:o,errors:r}},z=["File is too big. Max file size allowed is 80mb.","File's type is not allowed","Max amount of files (28) has been reached"],k={defaultLabel:"Trascina qui i tuoi file",uploadingMessage:function(e){return"Caricamento di ".concat(e," file")},uploadFinished:function(e,t){return"File caricati: ".concat(e,", File rifiutati: ").concat(t)},noFilesMessage:"Nessun file valido in attesa di essere caricato",footer:{acceptAll:"Tutti i tipi di file sono accettati",acceptCustom:function(e){return"Tipi di file consentiti: ".concat(e)}},header:{uploadFilesMessage:"Caricamento",maxSizeMessage:function(e){return"Dimensione massima ".concat(e)},validFilesMessage:function(e,t){return"File ".concat(e,"/").concat(t)}},fakeuploadsuccess:"Il file è stato caricato con successo ",fakeUploadError:"Errore di caricamento del file"},C={fullInfoLayer:{name:"Nome: ",size:"Dimensione: ",type:"Tipo: "},status:{uploading:"In corso",success:"Successo",valid:"Valido",denied:"Non válido",error:"Errore"}},_={maxSizeError:function(e){return"Il file è molto grande. Il tam. il massimo è ".concat(p(e))},acceptError:"Tipo di file illegale",maxFileCount:function(e){return"Numero massimo di file (".concat(e,") raggiunto")}},A={defaultLabel:"Déposez vos fichiers ici",uploadingMessage:function(e){return"Envoi de ".concat(e," fichiers")},uploadFinished:function(e,t){return"Fichiers téléchargés : ".concat(e,", Fichiers rejetés: ").concat(t)},noFilesMessage:"Aucun fichier valide ne manque",footer:{acceptAll:"Tous types de fichiers acceptés ",acceptCustom:function(e){return"Types de fichier: ".concat(e)}},header:{uploadFilesMessage:"Envoyer",maxSizeMessage:function(e){return"Taille maximale ".concat(e)},validFilesMessage:function(e,t){return"Fichiers ".concat(e,"/").concat(t)}},fakeuploadsuccess:"Le fichier a été téléchargé avec succès",fakeUploadError:"Erreur lors du téléchargement "},N={fullInfoLayer:{name:"Le nom: ",size:"Le taille: ",type:"Le type: "},status:{uploading:"En cours",success:"Succès",valid:"Valide",denied:"Refusé",error:"Erreur"}},B={maxSizeError:function(e){return"Le fichier est très volumineux. Le tam. le maximum est de ".concat(p(e))},acceptError:"Type de fichier illégal ",maxFileCount:function(e){return"Limite de fichiers atteinte (".concat(e,")")}},D={defaultLabel:"Drop your files here",uploadingMessage:function(e){return"Uploading ".concat(e," files")},uploadFinished:function(e,t){return"Uploaded files: ".concat(e,", Rejected files: ").concat(t)},noFilesMessage:"There is no missing valid file to upload",footer:{acceptAll:"All file types accepted",acceptCustom:function(e){return"Allowed types: ".concat(e)}},header:{uploadFilesMessage:"Upload files",maxSizeMessage:function(e){return"Max file size: ".concat(e)},validFilesMessage:function(e,t){return"Files ".concat(e,"/").concat(t)}},fakeuploadsuccess:"File was successfuly uploaded",fakeUploadError:"Error on uploading. Please try again later."},M={fullInfoLayer:{name:"Name: ",size:"Size: ",type:"Type: "},status:{uploading:"Uploading",success:"Success",valid:"Valid",denied:"Not valid",error:"Error"}},S={maxSizeError:function(e){return"File is too big. Max file size allowed is ".concat(p(e))},acceptError:"File type is not allowed",maxFileCount:function(e){return"Max amount of files (".concat(e,") has been reached")}},j={defaultLabel:"Suelta tus archivos aquí",uploadingMessage:function(e){return"Subiendo ".concat(e," archivos")},uploadFinished:function(e,t){return"Archivos subidos: ".concat(e,", Archivos rechazados: ").concat(t)},noFilesMessage:"No hay archivos válidos pendientes por subir",footer:{acceptAll:"Todos los tipos de archivo aceptados",acceptCustom:function(e){return"Tipo(s) de archivo permitidos: ".concat(e)}},header:{uploadFilesMessage:"Subir",maxSizeMessage:function(e){return"Tam. máximo ".concat(e)},validFilesMessage:function(e,t){return"Archivos ".concat(e,"/").concat(t)}},fakeuploadsuccess:"El archivo se subió correctamente",fakeUploadError:"Error al subir el archivo"},L={fullInfoLayer:{name:"Nombre: ",size:"Tamaño: ",type:"Tipo: "},status:{uploading:"Subiendo",success:"Éxito",valid:"Válido",denied:"No válido",error:"Error"}},T={maxSizeError:function(e){return"El archivo es muy grande. El tam. máximo es ".concat(p(e))},acceptError:"Tipo de archivo no permitido",maxFileCount:function(e){return"Cantidad máxima de archivos (".concat(e,") alcanzada")}},R={defaultLabel:"Перетащите сюда свои файлы.",uploadingMessage:function(e){return"Выгрузка ".concat(e," файлов")},uploadFinished:function(e,t){return"Загружено файлов: ".concat(e,", отклоненных файлов: ").concat(t)},noFilesMessage:"Действительный файл не отсутствует для загрузки",footer:{acceptAll:"Принимаются все типы файлов ",acceptCustom:function(e){return"Допустимые типы: ".concat(e)}},header:{uploadFilesMessage:"Отправить",maxSizeMessage:function(e){return"макс размер: ".concat(e)},validFilesMessage:function(e,t){return"Файлы ".concat(e,"/").concat(t)}},fakeuploadsuccess:"Файл был успешно загружен",fakeUploadError:"Ошибка при загрузке"},I={fullInfoLayer:{name:"Имя: ",size:"Размер: ",type:"Tип: "},status:{uploading:"Загрузка",success:"успех",valid:"годный",denied:"выкинутый",error:"ошибка"}},H={maxSizeError:function(e){return"Файл слишком большой. Максимально допустимый размер файла - ".concat(p(e))},acceptError:"Тип файла не разрешен",maxFileCount:function(e){return"Достигнуто максимальное количество файлов (".concat(e,")")}},V={defaultLabel:"Solte seus arquivos aqui ",uploadingMessage:function(e){return"Enviando ".concat(e," arquivos")},uploadFinished:function(e,t){return"Arquivos enviados: ".concat(e,", Arquivos rejeitados: ").concat(t)},noFilesMessage:"Nenhum arquivo válido está faltando para enviar",footer:{acceptAll:"Todos os tipos de arquivo são aceitos",acceptCustom:function(e){return"Tipos permitidos: ".concat(e)}},header:{uploadFilesMessage:"Enviar",maxSizeMessage:function(e){return"Tamanho máximo: ".concat(e)},validFilesMessage:function(e,t){return"Arquivos ".concat(e,"/").concat(t)}},fakeuploadsuccess:"O arquivo foi enviado com sucesso",fakeUploadError:"Erro ao enviar"},P={fullInfoLayer:{name:"Nome: ",size:"Tamanho: ",type:"Tipo: "},status:{uploading:"Enviando",success:"Êxito",valid:"válido",denied:"Negado",error:"Erro"}},U={maxSizeError:function(e){return"O arquivo é muito grande. O tamanho máximo de arquivo permitido é ".concat(p(e))},acceptError:"O tipo de arquivo não é permitido ",maxFileCount:function(e){return"Quantidade máxima de arquivos (".concat(e,") alcançada")}},O={defaultLabel:"将您的文件放在这里",uploadingMessage:function(e){return"上传 ".concat(e," 个文件")},uploadFinished:function(e,t){return"上传文件:".concat(e,",拒绝文件:").concat(t)},noFilesMessage:"没有缺少要加载的有效文件",footer:{acceptAll:"接受所有文件类型",acceptCustom:function(e){return"允许的类型: ".concat(e)}},header:{uploadFilesMessage:"上传文件",maxSizeMessage:function(e){return"最大文件大小:".concat(e)},validFilesMessage:function(e,t){return"文档 ".concat(e,"/").concat(t)}},fakeuploadsuccess:"文件已成功上传",fakeUploadError:"上传时出错"},q={fullInfoLayer:{name:"文档名称: ",size:"尺寸: ",type:"文件类型: "},status:{uploading:"上传",success:"成功",valid:"接受的文件",denied:"被拒绝的文件",error:"错误"}},Z={maxSizeError:function(e){return"文件太大。 允许的最大文件大小为 ".concat(p(e))},acceptError:"文件类型不允许",maxFileCount:function(e){return"已达到最大文件数 (".concat(e,")")}},G={defaultLabel:"把你的文件放在這裡 ",uploadingMessage:function(e){return"上傳".concat(e,"個文件")},uploadFinished:function(e,t){return"上傳文件: ".concat(e,", 拒絕的文件:").concat(t)},noFilesMessage:"沒有缺少要上傳的有效文件",footer:{acceptAll:"接受所有文件類型",acceptCustom:function(e){return"允許的類型:".concat(e)}},header:{uploadFilesMessage:"上傳文件",maxSizeMessage:function(e){return"最大文件大小:".concat(e)},validFilesMessage:function(e,t){return" 文件 ".concat(e,"/").concat(t)}},fakeuploadsuccess:"文件已成功上傳",fakeUploadError:"上傳時出錯"},W={fullInfoLayer:{name:"文檔名稱: ",size:"文件大小: ",type:"文件類型: "},status:{uploading:"上傳",success:"成功",valid:"有效文件",denied:"無效文件",error:"錯誤"}},Y={maxSizeError:function(e){return"文件太大。 允許的最大文件大小為 ".concat(p(e))},acceptError:"文件類型不允許",maxFileCount:function(e){return"已達到最大文件數 (".concat(e,")")}},K={"ES-es":L,"EN-en":M,"FR-fr":N,"IT-it":C,"PT-pt":P,"RU-ru":I,"ZH-cn":q,"ZH-hk":W},X=function(e){switch(e){case"ES-es":return K["ES-es"];case"EN-en":default:return K["EN-en"];case"FR-fr":return K["FR-fr"];case"IT-it":return K["IT-it"];case"PT-pt":return K["PT-pt"];case"RU-ru":return K["RU-ru"];case"ZH-cn":return K["ZH-cn"];case"ZH-hk":return K["ZH-hk"]}},Q={"ES-es":j,"EN-en":D,"FR-fr":A,"IT-it":k,"PT-pt":V,"RU-ru":R,"ZH-cn":O,"ZH-hk":G},$=function(e){switch(e){case"ES-es":return Q["ES-es"];case"EN-en":default:return Q["EN-en"];case"FR-fr":return Q["FR-fr"];case"IT-it":return Q["IT-it"];case"PT-pt":return Q["PT-pt"];case"RU-ru":return Q["RU-ru"];case"ZH-cn":return Q["ZH-cn"];case"ZH-hk":return Q["ZH-hk"]}},J={"ES-es":T,"EN-en":S,"FR-fr":B,"IT-it":_,"PT-pt":U,"RU-ru":H,"ZH-cn":Z,"ZH-hk":Y},ee=function(e){switch(e){case"ES-es":return J["ES-es"];case"EN-en":default:return J["EN-en"];case"FR-fr":return J["FR-fr"];case"IT-it":return J["IT-it"];case"PT-pt":return J["PT-pt"];case"RU-ru":return J["RU-ru"];case"ZH-cn":return J["ZH-cn"];case"ZH-hk":return J["ZH-hk"]}},te=function(){return te=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},te.apply(this,arguments)};function ne(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))}function ae(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function re(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}
2/*! *****************************************************************************
3Copyright (c) Microsoft Corporation.
4
5Permission to use, copy, modify, and/or distribute this software for any
6purpose with or without fee is hereby granted.
7
8THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14PERFORMANCE OF THIS SOFTWARE.
15***************************************************************************** */var ie=function(){return ie=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ie.apply(this,arguments)},oe=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],le=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],ce=function(e){return oe.includes(e)?le[oe.indexOf(e)]:0},se=function(e,t,n){void 0===t&&(t=0);var a=n||"rgba(255, 255, 255, 0.6)";if(!e)return a;var r=e.toUpperCase();if(r.includes("RGBA"))return r;if(r.includes("RGB"))return r.replace("RGB","rgba").replace(")",", "+t+")");if(!function(e){if("#"!==e.charAt(0))return!1;if(7!==e.length)return!1;for(var t=1;t<e.length;t++)if(!oe.includes(e.charAt(t)))return!1;return!0}(pe(r)))return a;return"rgba("+(16*ce(r.charAt(1))+ce(r.charAt(2)))+", "+(16*ce(r.charAt(3))+ce(r.charAt(4)))+","+(16*ce(r.charAt(5))+ce(r.charAt(6)))+" , "+t+")"};function ue(e,t){return e?ie(ie({},t),e):t}var de=function(e){return void 0!==e&&""!==e?e:"#5d6475"};function pe(e){return e?void 0!==me[e.toLocaleLowerCase()]?me[e.toLocaleLowerCase()]:e:""}var fe,me={indianred:"#CD5C5C",lightcoral:"#F08080",salmon:"#FA8072",darksalmon:"#E9967A",lightsalmon:"#FFA07A",crimson:"#DC143C",red:"#FF0000",firebrick:"#B22222",darkred:"#8B0000",pink:"#FFC0CB",lightpink:"#FFB6C1",hotpink:"#FF69B4",deeppink:"#FF1493",mediumvioletred:"#C71585",palevioletred:"#DB7093",coral:"#FF7F50",tomato:"#FF6347",orangered:"#FF4500",darkorange:"#FF8C00",orange:"#FFA500",gold:"#FFD700",yellow:"#FFFF00",lightyellow:"#FFFFE0",lemonchiffon:"#FFFACD",lightgoldenrodyellow:"#FAFAD2",papayawhip:"#FFEFD5",moccasin:"#FFE4B5",peachpuff:"#FFDAB9",palegoldenrod:"#EEE8AA",khaki:"#F0E68C",darkkhaki:"#BDB76B",lavender:"#E6E6FA",thistle:"#D8BFD8",plum:"#DDA0DD",violet:"#EE82EE",orchid:"#DA70D6",fuchsia:"#FF00FF",magenta:"#FF00FF",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",rebeccapurple:"#663399",blueviolet:"#8A2BE2",darkviolet:"#9400D3",darkorchid:"#9932CC",darkmagenta:"#8B008B",purple:"#800080",indigo:"#4B0082",slateblue:"#6A5ACD",darkslateblue:"#483D8B",mediumslateblue:"#7B68EE",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",lime:"#00FF00",limegreen:"#32CD32",palegreen:"#98FB98",lightgreen:"#90EE90",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",mediumseagreen:"#3CB371",seagreen:"#2E8B57",forestgreen:"#228B22",green:"#008000",darkgreen:"#006400",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",olive:"#808000",darkolivegreen:"#556B2F",mediumaquamarine:"#66CDAA",darkseagreen:"#8FBC8B",lightseagreen:"#20B2AA",darkcyan:"#008B8B",teal:"#008080",aqua:"#00FFFF",cyan:"#00FFFF",lightcyan:"#E0FFFF",paleturquoise:"#AFEEEE",aquamarine:"#7FFFD4",turquoise:"#40E0D0",mediumturquoise:"#48D1CC",darkturquoise:"#00CED1",cadetblue:"#5F9EA0",steelblue:"#4682B4",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",lightblue:"#ADD8E6",skyblue:"#87CEEB",lightskyblue:"#87CEFA",deepskyblue:"#00BFFF",dodgerblue:"#1E90FF",cornflowerblue:"#6495ED",royalblue:"#4169E1",blue:"#0000FF",mediumblue:"#0000CD",darkblue:"#00008B",navy:"#000080",midnightblue:"#191970",cornsilk:"#FFF8DC",blanchedalmond:"#FFEBCD",bisque:"#FFE4C4",navajowhite:"#FFDEAD",wheat:"#F5DEB3",burlywood:"#DEB887",tan:"#D2B48C",rosybrown:"#BC8F8F",sandybrown:"#F4A460",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",peru:"#CD853F",chocolate:"#D2691E",saddlebrown:"#8B4513",sienna:"#A0522D",brown:"#A52A2A",maroon:"#800000",white:"#FFFFFF",snow:"#FFFAFA",honeydew:"#F0FFF0",mintcream:"#F5FFFA",azure:"#F0FFFF",aliceblue:"#F0F8FF",ghostwhite:"#F8F8FF",whitesmoke:"#F5F5F5",seashell:"#FFF5EE",beige:"#F5F5DC",oldlace:"#FDF5E6",floralwhite:"#FFFAF0",ivory:"#FFFFF0",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lavenderblush:"#FFF0F5",mistyrose:"#FFE4E1",gainsboro:"#DCDCDC",lightgray:"#D3D3D3",silver:"#C0C0C0",darkgray:"#A9A9A9",gray:"#808080",dimgray:"#696969",lightslategray:"#778899",slategray:"#708090",darkslategray:"#2F4F4F",black:"#000000"};function he(e){for(var t,n="",a=" ",r=!1,i=0;i<e.length;i++){var o=e[i];if((t=o)&&!/[a-z]/.test(t)&&/[A-Z]/.test(t)){a=o,r=!0;break}}if(r){var l=e.split(a);n=l[0]+"-"+a.toLowerCase()+l[1]}else n=e;return n}function ge(e){var t="",n=e.trim().split(" ");if(n.length>1){for(var a=0;a<n.length;a++)t+="."+n[a];t+="{\n"}else t+="."+e+"{\n";return t}function ve(e){if(!e)return"";for(var t,n="",a=[],r=0;r<e.length;r++){var i="";i+=ge((d=e[r]).className);for(var o=Object.keys(d.rules),l=0;l<o.length;l++){var c=he(p=o[l]);if((t=c)&&t.includes(":")){var s=d.className+c;a.push({className:s,rules:d.rules[c]})}else{i+="\t"+c+" : "+d.rules[p]+";\n"}}n+=i+="}\n"}for(var u=0;u<a.length;u++){i="";var d=a[u];o=Object.keys(d.rules);i+="."+d.className+"{\n";for(l=0;l<o.length;l++){var p;i+="\t"+(c=he(p=o[l]))+" : "+d.rules[p]+";\n"}n+=i+="}\n"}return n}e('@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");\n@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap");\n@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap");\n.dropzone-ui {\n color: #646c7f;\n position: relative;\n min-height: 280px;\n border-radius: 4px;\n width: calc(100% - 2px);\n background-color: white;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n /* span.ripple {\n // width: 100%;\n //height: 100%;\n // overflow: hidden;\n position: absolute;\n border-radius: 50%;\n transform: scale(0);\n animation: ripple 500ms linear;\n background-color: rgba(255, 255, 255, 0.7);\n }\n\n @keyframes ripple {\n to {\n transform: scale(4);\n opacity: 0;\n }\n } */\n}\n.dropzone-ui .dropzone-ui-ripple {\n position: absolute;\n width: 0%;\n height: 0%;\n top: 0;\n left: 0;\n overflow: hidden;\n}\n.dropzone-ui .dropzone-ui-ripple span.ripple {\n position: absolute;\n border-radius: 50%;\n transform: scale(0);\n animation: ripple 500ms linear;\n background-color: rgba(255, 255, 255, 0.7);\n}\n@keyframes ripple {\n to {\n transform: scale(4);\n opacity: 0;\n }\n}\n.dropzone-ui.drag {\n border: none;\n}\n.dropzone-ui.clickable {\n cursor: pointer;\n}\n.dropzone-ui .dz-ui-header {\n height: 22px;\n position: absolute;\n cursor: text;\n top: 0;\n display: flex;\n width: calc(100% - 10px);\n flex-direction: row;\n align-items: center;\n justify-content: flex-end;\n font-family: "Poppins", sans-serif;\n padding-right: 10px;\n font-size: 0.9em;\n}\n.dropzone-ui .dz-ui-footer {\n height: 23px;\n position: absolute;\n cursor: text;\n bottom: 0;\n width: calc(100% - 10px);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n border-top: 1px dotted grey;\n background-color: #80808021;\n font-family: "Poppins", sans-serif;\n padding-left: 10px;\n font-size: 1em;\n}\n\n.dropzone-ui-layer {\n width: 0%;\n height: 0%;\n z-index: 20;\n}\n.dropzone-ui-layer.drag {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n\n.dz-ui-label {\n text-rendering: optimizeLegibility;\n font-size: 1.5em;\n font-family: "Poppins", sans-serif;\n text-align: center;\n font-weight: 500;\n letter-spacing: 0.02857em;\n word-break: normal;\n}\n@media (max-width: 600px) {\n .dz-ui-label {\n font-size: 1.3em;\n }\n}'),function(e){e.insertStyleSheet=function(e){var t;if("undefined"==typeof window)return"";if(!e)return"";if(document.getElementById(e.id))return e.id;t=e.id;var n=document.createElement("style");n.id=t,n.setAttribute("type","text/css");var a=ve(e.sheetRules||[])+e.raw||"";return n.textContent=a,document.head.appendChild(n)?t:""},e.editStyleSheet=function(e,t){if("undefined"==typeof window)return"";if(!e||!t)return"";var n=document.getElementById(e);return n?(n.textContent=ve(t),""):""},e.removeStyleSheet=function(e){var t="";if(!e)return"";var n=document.getElementById(e);return n&&(document.head.removeChild(n),t=e),t},e.existStyleSheet=function(e){return!!e&&!!document.getElementById(e)},e.makeStyleSheet=function(e){return e||null}}(fe||(fe={}));var be={children:void 0,uploadOnDrop:!1,maxFiles:void 0,style:{},disableRipple:!1,clickable:!0,view:void 0,maxHeight:"450px",minHeight:"280px",footer:!0,header:!0,config:{headers:{"content-type":"multipart/form-data"}},value:void 0,onUploadFinish:void 0,uploadingMessage:void 0,onClean:void 0,behaviour:"add",label:void 0,localization:"EN-en",disableScroll:void 0};function xe(e,t,n){if(e){var a=e;a.style.height="100%",a.style.width="100%";var r=document.createElement("span"),i=Math.max(a.clientWidth,a.clientHeight),o=i/2;r.style.width=r.style.height="".concat(i,"px"),r.style.left="".concat(t.clientX-a.offsetLeft-o,"px"),r.style.top="".concat(t.clientY-a.offsetTop-o,"px"),r.classList.add("ripple"),r.style.backgroundColor=se(de(pe(n)),.4);var l=a.getElementsByClassName("ripple")[0];l&&l.remove(),a.appendChild(r),setTimeout((function(){a.style.height="0%",a.style.width="0%"}),500)}}var we=function(e){switch(e){case"micro":return 8;case"small":return 15;case"semi-medium":return 18;case"medium":return 25;case"large":return 28;default:return 24}},Fe=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=we(n);return t.createElement("svg",{style:i?{cursor:"pointer"}:{},xmlns:"http://www.w3.org/2000/svg",height:"".concat(o,"px"),viewBox:"0 0 24 24",width:"".concat(o,"px"),fill:a||"#000000",onClick:function(){return null==i?void 0:i()}},t.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),t.createElement("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm1 13h-2v-6h2v6zm0-8h-2V7h2v2z",fill:r||"none",opacity:".7"}),t.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}))},ye=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=e.style,l=e.className,c=we(n),s=o||{};return t.createElement("svg",{className:l||"",style:i?te({},te({cursor:"pointer"},s)):s,onClick:function(){return null==i?void 0:i()},xmlns:"http://www.w3.org/2000/svg",height:"".concat(c,"px"),viewBox:"0 0 24 24",width:"".concat(c,"px"),fill:a||"#000000"},t.createElement("path",{d:"M0 0h24v24H0z",fill:r||"none"}),t.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))},Ee=function(e){var n=e.size,a=e.color,r=e.onClick,i=e.style,o=e.className,l=we(n),c=i||{};return t.createElement("svg",{className:o||"",style:r?te({},te({cursor:"pointer"},c)):c,onClick:function(){return null==r?void 0:r()},xmlns:"http://www.w3.org/2000/svg",height:l?"".concat(l,"px"):"24px",viewBox:"0 0 24 24",width:l?"".concat(l,"px"):"24px",fill:a||"#000000"},t.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),t.createElement("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8z",opacity:".4"}),t.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z"}))},ze=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=e.style,l=e.className,c=we(n),s=o||{};return t.createElement("svg",{style:i?te({},te({cursor:"pointer"},s)):s,onClick:function(e){return null==i?void 0:i(e)},xmlns:"http://www.w3.org/2000/svg",height:"".concat(c,"px"),viewBox:"0 0 24 24",width:"".concat(c,"px"),fill:a||"#000000",className:l||""},t.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none",opacity:".87"}),t.createElement("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm5 11.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z",fill:r||"none",opacity:".5"}),t.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}))},ke=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=e.style,l=e.className,c=we(n),s=o||{};return t.createElement("svg",{className:l||"",style:i?te({cursor:"pointer"},s):s,xmlns:"http://www.w3.org/2000/svg",height:"".concat(c,"px"),viewBox:"0 0 24 24",width:"".concat(c,"px"),fill:a||"#000000",onClick:function(e){return null==i?void 0:i(e)}},t.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),t.createElement("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8z",opacity:".9",fill:r||"none"}),t.createElement("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}))},Ce=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=e.style,l=e.className,c=we(n),s=o||{};return t.createElement("svg",{style:i?te({},te({cursor:"pointer"},s)):s,onClick:function(){return null==i?void 0:i()},xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"".concat(c,"px"),viewBox:"0 0 24 24",width:"".concat(c,"px"),fill:a||"#000000",className:l||""},t.createElement("rect",{fill:r||"none",height:n||"24",width:n||"24"}),t.createElement("path",{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M8,18H4V6h4V18z M14,18h-4V6h4V18z M20,18h-4V6h4V18z"}))},_e=function(e){var n=e.size,a=e.color,r=e.onClick,i=e.style,o=e.className,l=we(n),c=i||{};return t.createElement("svg",{style:r?te({},te({cursor:"pointer"},c)):c,onClick:function(){return null==r?void 0:r()},xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"".concat(l,"px"),viewBox:"0 0 24 24",width:"".concat(l,"px"),fill:a||"#000000",className:o||""},t.createElement("g",null,t.createElement("path",{d:"M0,0h24v24H0V0z",fill:"none"})),t.createElement("g",null,t.createElement("path",{d:"M20,4H4C2.9,4,2,4.9,2,6v12c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V6C22,4.9,21.1,4,20,4z M8,11H4V6h4V11z M14,11h-4V6h4V11z M20,11h-4V6h4V11z M8,18H4v-5h4V18z M14,18h-4v-5h4V18z M20,18h-4v-5h4V18z"})))},Ae=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=e.style,l=e.className,c=we(n),s=o||{};return t.createElement("svg",{className:l||"",style:i?te({},te({cursor:"pointer"},s)):s,onClick:function(){return null==i?void 0:i()},xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"".concat(c,"px"),viewBox:"0 0 24 24",width:"".concat(c,"px"),fill:a||"#000000"},t.createElement("g",null,t.createElement("rect",{fill:r||"none",height:c,width:c})),t.createElement("g",null,t.createElement("g",null,t.createElement("polygon",{points:"20.13,5.41 18.72,4 9.53,13.19 5.28,8.95 3.87,10.36 9.53,16.02"}),t.createElement("rect",{height:"2",width:"14",x:"5",y:"18"}))))},Ne=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=e.style,l=e.className,c=we(n),s=o||{};return t.createElement("svg",{className:l||"",style:i?te({},te({cursor:"pointer"},s)):s,onClick:function(){return null==i?void 0:i()},xmlns:"http://www.w3.org/2000/svg",height:"".concat(c,"px"),viewBox:"0 0 24 24",width:"".concat(c,"px"),fill:a||"#000000"},t.createElement("rect",{fill:r||"none",height:c,width:c}),t.createElement("path",{d:"M18,15.17V15h2v2.17L18,15.17z M15.41,12.59L17,11l-1.41-1.41L14,11.17L15.41,12.59z M13,10.17V4h-2v4.17L13,10.17z M21.19,21.19l-1.78-1.78L2.81,2.81L1.39,4.22l6.19,6.19L7,11l5,5l0.59-0.59L15.17,18H6v-3H4v3c0,1.1,0.9,2,2,2h11.17l2.61,2.61 L21.19,21.19z"}))},Be=function(e){var n=e.size,a=e.color,r=e.onClick,i=e.style,o=e.className,l=we(n),c=i||{};return t.createElement("svg",{className:o||"",style:r?te({},te({cursor:"pointer"},c)):c,onClick:function(){return null==r?void 0:r()},xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:l?"".concat(l,"px"):"24px",viewBox:"0 0 24 24",width:l?"".concat(l,"px"):"24px",fill:a||"#000000"},t.createElement("g",null,t.createElement("rect",{fill:"none",height:l||"24",width:l||"24"})),t.createElement("g",null,t.createElement("g",null,t.createElement("path",{d:"M16,11h-1V3c0-1.1-0.9-2-2-2h-2C9.9,1,9,1.9,9,3v8H8c-2.76,0-5,2.24-5,5v7h18v-7C21,13.24,18.76,11,16,11z M11,3h2v8h-2V3 z M19,21h-2v-3c0-0.55-0.45-1-1-1s-1,0.45-1,1v3h-2v-3c0-0.55-0.45-1-1-1s-1,0.45-1,1v3H9v-3c0-0.55-0.45-1-1-1s-1,0.45-1,1v3H5 v-5c0-1.65,1.35-3,3-3h8c1.65,0,3,1.35,3,3V21z"}))))},De=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=e.style,l=e.className,c=we(n),s=o||{};return t.createElement("svg",{className:l||"",style:i?te({cursor:"pointer"},s):s,xmlns:"http://www.w3.org/2000/svg",height:"".concat(c,"px"),viewBox:"0 0 24 24",width:"".concat(c,"px"),fill:a||"#000000",onClick:function(e){return null==i?void 0:i(e)}},t.createElement("path",{d:"M0 0h24v24H0V0z",opacity:".9",fill:r||"none"}),t.createElement("path",{d:"M8 5v14l11-7L8 5z"}))};e("@keyframes dui-rotate-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.dui-rotate {\n cursor: default;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .dui-rotate {\n animation: dui-rotate-spin infinite 2s linear;\n }\n}");var Me=function(e){var n=e.size,a=e.color,r=e.onClick,i=e.style,o=e.className,l=e.spin,c=we(n),s=i||{},u=o||"";return u+=l?"dui-rotate":"",t.createElement("svg",{className:u,style:r?te({},te({cursor:"pointer"},s)):s,onClick:function(){return null==r?void 0:r()},xmlns:"http://www.w3.org/2000/svg",height:c?"".concat(c,"px"):"24px",viewBox:"0 0 24 24",width:c?"".concat(c,"px"):"24px",fill:a||"#000000"},t.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}),t.createElement("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}))},Se=function(e){var n=e.size,a=e.color,r=e.colorFill,i=e.onClick,o=e.style,l=e.className,c=we(n),s=o||{};return t.createElement("svg",{style:i?te({},te({cursor:"pointer"},s)):s,onClick:function(){return null==i?void 0:i()},xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"".concat(c,"px"),viewBox:"0 0 24 24",width:"".concat(c,"px"),fill:a||"#000000",className:l||""},t.createElement("g",null,t.createElement("rect",{fill:r||"none",height:n||"24",width:n||"24"})),t.createElement("g",null,t.createElement("path",{d:"M18,15v3H6v-3H4v3c0,1.1,0.9,2,2,2h12c1.1,0,2-0.9,2-2v-3H18z M7,9l1.41,1.41L11,7.83V16h2V7.83l2.59,2.58L17,9l-5-5L7,9z"})))},je=function(e){var n=e.maxFileSize,a=e.numberOfValidFiles,i=e.onReset,o=e.onClean,l=e.maxFiles,c=e.view,s=e.onChangeView,u=e.onUploadStart,d=e.onUploadingStart,f=e.urlPresent,m=e.localization,h=e.hideViewIcon,g=$(m).header,v=function(){null==o||o()},b=function(){null==u||u()};return t.createElement("div",{className:"dz-ui-header",onClick:function(e){e.stopPropagation()}},function(){var e=[];u&&f&&a&&(d?e.push(t.createElement(Me,{spin:!0,color:"#646c7f"})):e.push(t.createElement(r,null,t.createElement(t.Fragment,null,g.uploadFilesMessage,t.createElement(Se,{color:"#646c7f",onClick:b})))),e.push(t.createElement(r,null,","," ")));var m=g.maxSizeMessage;n&&(e.push(m(p(n))),e.push(t.createElement(r,null,","," ")));var x=g.validFilesMessage;return l&&(e.push(x(a,l)),e.push(t.createElement(r,null,","," "))),o&&e.push(t.createElement(Be,{color:"#646c7f",onClick:v,size:"semi-medium"})),s&&!h&&e.push(t.createElement(t.Fragment,null,"grid"!==c?t.createElement(_e,{onClick:function(){null==s||s("grid")},color:"#646c7f"}):t.createElement(Ce,{onClick:function(){null==s||s("list")},color:"#646c7f"}))),i&&e.push(t.createElement(ze,{color:"#646c7f",onClick:function(){return null==i?void 0:i()},colorFill:"rgba(255,255,255,0.8)"})),e}().map((function(e,n){return t.createElement("span",{key:n,style:{display:"flex"}},e)})))},Le=function(e){var n=e.accept,a=e.message,r=e.localization,i=$(r).footer,o=i.acceptCustom;return t.createElement("div",{className:"dz-ui-footer",onClick:void 0},t.createElement(t.Fragment,null,a||(n?o(n):i.acceptAll)))};e(".file-item-list-container {\n padding: 5px;\n background-color: transparent;\n color: black;\n min-height: 280px;\n width: calc(100% - 10px);\n align-items: center;\n scrollbar-width: thin;\n}\n.file-item-list-container::-webkit-scrollbar {\n width: 9px;\n}\n.file-item-list-container::-webkit-scrollbar-track {\n background: transparent;\n}\n.file-item-list-container::-webkit-scrollbar-thumb {\n background-color: #646c7fa9;\n border-radius: 20px;\n border: transparent;\n}\n.file-item-list-container.file-item-list-grid {\n overflow: auto;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-evenly;\n}\n.file-item-list-container.file-item-list-no-scroll {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-evenly;\n overflow: unset;\n}\n.file-item-list-container.file-item-list-list {\n overflow: auto;\n align-items: center;\n display: inline-flex;\n}");var Te=function(e){var n=e.children,a=e.view,r=e.style,i=e.disableScroll?"no-scroll":a||"list";return t.createElement("div",{className:"file-item-list-container file-item-list-".concat(i),style:r},n)},Re=function(e){var n=e.children;return t.createElement("div",{className:"dz-ui-label"},n)},Ie={headers:{"content-type":"multipart/form-data;"}},He=function(e,t,n,a){return ne(void 0,void 0,void 0,(function(){return ae(this,(function(r){return[2,new Promise((function(r,i){return ne(void 0,void 0,void 0,(function(){var i,l,c,s,u,d;return ae(this,(function(p){switch(p.label){case 0:switch(p.trys.push([0,10,,11]),i=n||"POST",l=e.file,(c=new FormData).append("file",l),s=a?te(te(te({},a),Ie),{headers:te(te({},null==a?void 0:a.headers),null==Ie?void 0:Ie.headers)}):Ie,u=void 0,i){case"POST":return[3,1];case"PATCH":return[3,3];case"PUT":return[3,5]}return[3,7];case 1:return[4,o.post(t,c,s)];case 2:return u=p.sent(),[3,9];case 3:return[4,o.patch(t,c,s)];case 4:return u=p.sent(),[3,9];case 5:return[4,o.put(t,c,s)];case 6:return u=p.sent(),[3,9];case 7:return[4,o.post(t,c,s)];case 8:u=p.sent(),p.label=9;case 9:return u&&u.data||r({uploadedFile:te(te({},e),{uploadMessage:"Connection error",uploadStatus:v.error}),serverResponse:{id:e.id,serverResponse:{}}}),(d=u.data).status?r({uploadedFile:te(te({},e),{uploadMessage:d.message,uploadStatus:v.success}),serverResponse:{id:e.id,serverResponse:d}}):r({uploadedFile:te(te({},e),{uploadMessage:d.message,uploadStatus:v.error}),serverResponse:{id:e.id,serverResponse:d}}),[3,11];case 10:return p.sent(),r({uploadedFile:te(te({},e),{uploadMessage:"Unexpected error",uploadStatus:v.error}),serverResponse:{id:e.id,serverResponse:{}}}),[3,11];case 11:return[2]}}))}))}))]}))}))},Ve=function(e){var r=ue(e,be),o=r.onDrop,l=r.children,c=r.onReset,s=r.color,u=r.style,d=r.backgroundColor,p=r.onClick,f=r.validator,m=r.maxFileSize,h=r.maxFiles,g=r.accept,b=r.disableRipple,F=r.clickable,y=r.onChangeView,E=r.view,z=r.maxHeight,k=r.minHeight,C=r.onClean,_=r.uploadOnDrop,A=r.footer,N=r.header,B=r.method,D=r.url,M=r.config,S=r.value,j=r.onUploadStart,L=r.onUploadFinish,T=r.uploadingMessage,R=r.onChange,I=r.behaviour,H=r.label,V=r.fakeUploading,P=r.localization,U=r.disableScroll,O=i(null);a((function(){if(Q.length>0){var e=Q.map((function(e){return e.file})),t=Ae(e,(h||1/0)-ze,{accept:g,maxFileSize:m});null==R||R(t)}}),[g,m,h]);var q=$(P),Z=ee(P),G=i(null),W=n(!1),Y=W[0],K=W[1],X=n([]),Q=X[0],J=X[1],ie=n("grid"),oe=ie[0],le=ie[1],ce=n(""),me=ce[0],he=ce[1],ge=n(!1),ve=ge[0],we=ge[1],Fe=function(e,t,r,i,o){var l=n(""),c=l[0],s=l[1],u=n(!1),d=u[0],p=u[1],f=n(""),m=f[0],h=f[1];return a((function(){!function(e,t,n,a,r){var i={id:"dropzone-ui-styles",sheetRules:[{className:"dropzone-ui-extra",rules:{border:"1px dashed ".concat(se(de(pe(e)),1)),backgroundColor:t,maxHeight:n,minHeight:"calc(".concat(a," + ").concat(r,"px)")}},{className:"drag",rules:{border:"2px dashed ".concat(se(de(pe(e)),1)),backgroundColor:se(de(pe(e)),.085)}}]},o="";d?fe.editStyleSheet(c,i.sheetRules||[]):(o=fe.insertStyleSheet(i),h(" dropzone-ui-extra"),s(o),""!==o&&p(!0))}(e,t,r,i,o)}),[e,t,r,i,o]),m}(s,d,U?void 0:z,k,N&&A?50:!N&&A?23:N&&!A?22:0),ye="dropzone-ui".concat(Fe).concat(Y?" drag":"").concat(F?" clickable":""),Ee=n(0),ze=Ee[0],ke=Ee[1];a((function(){S&&(J(S),ke(S.filter((function(e){return e.valid})).length))}),[S]),a((function(){U?le("grid"):E&&le(E)}),[E,U]),a((function(){T&&he(T)}),[T]);var Ce=function(e){return ne(void 0,void 0,void 0,(function(){var t,n,a,r,i,o,l,c,s,u,d;return ae(this,(function(p){switch(p.label){case 0:if(t=e.length,n=e.filter((function(e){return e.valid&&"success"!==e.uploadStatus})).length,a=0,r=0,i=q.uploadingMessage,we(!0),!(n>0&&D))return[3,5];he(i("".concat(n,"/").concat(t))),o=e.map((function(e){return e.uploadStatus!==v.success&&e.valid?te(te({},e),{uploadStatus:v.uploading}):e})),null==R||R(o),l=o,c=[],null==j||j(o.filter((function(e){return e.uploadStatus===v.uploading}))),s=function(e){var t,s,u,d,p;return ae(this,(function(f){switch(f.label){case 0:return(t=o[e]).uploadStatus!==v.uploading?[3,5]:(he(i("".concat(++r,"/").concat(n))),V?[4,(m=t,new Promise((function(e,t){setTimeout((function(){if(Math.floor(10*Math.random())%2==0){var t=q.fakeuploadsuccess,n={url:""};e({uploadedFile:te(te({},m),{uploadStatus:v.success,uploadMessage:t}),serverResponse:{id:m.id,serverResponse:{status:!0,message:t,payload:n}}})}else t=q.fakeUploadError,n={},e({uploadedFile:te(te({},m),{uploadStatus:v.error,uploadMessage:t}),serverResponse:{id:m.id,serverResponse:{status:!1,message:t,payload:n}}})}),1500)})))]:[3,2]);case 1:return p=f.sent(),[3,4];case 2:return[4,He(t,D,B,M)];case 3:p=f.sent(),f.label=4;case 4:u=(s=p).serverResponse,d=s.uploadedFile,c.push(u),"error"===d.uploadStatus&&a++,l=l.map((function(e){return e.id===t.id?d:e})),null==R||R(l),f.label=5;case 5:return[2]}var m}))},u=0,p.label=1;case 1:return u<o.length?[5,s(u)]:[3,4];case 2:p.sent(),p.label=3;case 3:return u++,[3,1];case 4:return null==L||L(c),d=q.uploadFinished,he(d(n-a,a)),setTimeout((function(){we(!1)}),2300),[3,6];case 5:he(q.noFilesMessage),setTimeout((function(){we(!1)}),2300),p.label=6;case 6:return[2]}}))}))},_e=function(e){null==o||o(e),null==R||R("replace"===I?e:re(re([],Q,!0),e,!0)),J(e),_&&Ce("replace"===I?e:re(re([],Q,!0),e,!0))},Ae=function(e,t,n){for(var a=[],r=t,i=0,o=void 0;o=e[i];i++){var l=f?w(o,f):x(o,n,Z);if(l.valid){var c=r>0;if(l.valid=c,!c){var s=Z.maxFileCount;l.errors=l.errors?re(re([],l.errors,!0),[s(h||1/0)],!1):[s(h||1/0)]}r--}a.push(l)}return a};return t.createElement("div",{className:ye,style:u,onDragOver:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="link",K(!0)},onClick:F?function(e){var t=G.current;null==t||t.click(),b||xe(O.current,e,s),null==p||p(e)}:function(){}},t.createElement("div",{className:"dropzone-ui-ripple",ref:O}),N&&t.createElement(je,{maxFileSize:m,numberOfValidFiles:Q.filter((function(e){return e.valid})).length,onReset:ve?void 0:function(){null==c||c(),J([]),null==R||R([])},maxFiles:h,onUploadingStart:ve,view:oe,hideViewIcon:!(!E&&!U),onChangeView:function(e){le(e),null==y||y(e)},onUploadStart:_?void 0:function(){ze>0&&Ce(Q)},onClean:C&&!ve?function(){var e;e=Q.filter((function(e){return e.valid}));try{null==C||C(e)}catch(e){"production"===process.env.NODE_ENV&&console.error(e)}null==R||R(e)}:void 0,urlPresent:void 0!==D,localization:P}),l&&S&&Q&&Q.length>0?t.createElement(Te,{view:oe,style:{minHeight:k,maxHeight:U?void 0:z,marginBottom:A?"23px":void 0,marginTop:N?"22px":void 0},disableScroll:U},l):t.createElement(t.Fragment,null,l?t.createElement(t.Fragment,null,l):t.createElement(Re,null,H||q.defaultLabel)),A&&t.createElement(Le,{accept:g,message:ve?me:void 0,localization:P}),t.createElement("div",{onDragLeave:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="link",K(!1)},onDrop:function(e){return ne(void 0,void 0,void 0,(function(){var t,n,a;return ae(this,(function(r){return e.stopPropagation(),e.preventDefault(),ve?(K(!1),[2]):(t=e.dataTransfer.files,n=(h||1/0)-ze,a=Ae(t,"replace"===I?h||1/0:n,{accept:g,maxFileSize:m}),b||xe(O.current,e,s),K(!1),_e(a),[2])}))}))},className:"dropzone-ui-layer".concat(Y?" drag":"")}),t.createElement("input",{ref:G,onChange:function(e){if(!ve){var t=e.target.files,n=Ae(t,"replace"===I?h||1/0:(h||1/0)-ze,{accept:g,maxFileSize:m}),a=G.current;a&&(a.value=""),_e(n)}},type:"file",accept:g,style:{display:"none"},multiple:!h||h>1}))},Pe={onDelete:void 0,file:void 0,color:"#071e25",id:void 0,style:{},preview:!1,valid:!1,info:!1,hd:void 0,localization:"EN-en",onlyImage:!1,imageUrl:void 0,errors:void 0,elevation:!1,alwaysActive:void 0};e('@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");\n@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,500,700,900");\n/* .file-item-full-list {\n display: inline-flex;\n} */\n.file-item-full-container-container {\n cursor: text;\n box-sizing: border-box;\n font-family: "Poppins", sans-serif;\n margin: 8px;\n width: 133px;\n word-break: break-word;\n}\n.file-item-full-container-container .file-item-icon-container {\n position: relative;\n height: 133px;\n width: 133px;\n border-radius: 8px;\n}\n.file-item-full-container-container .file-item-icon-container .img-container {\n position: absolute;\n left: 0;\n top: 0;\n width: inherit;\n height: inherit;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: 8px;\n}\n.file-item-full-container-container .file-item-icon-container .img-container.blur img {\n filter: blur(4px);\n width: 200%;\n height: 200%;\n}\n.file-item-full-container-container .file-item-icon-container .img-container img {\n width: 100%;\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n}\n.file-item-full-container-container .file-item-icon-container .info-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n position: relative;\n height: inherit;\n width: inherit;\n}\n.file-item-full-container-container .file-item-icon-container .info-container .status-close {\n flex-direction: row;\n display: flex;\n align-items: flex-start;\n justify-content: flex-end;\n width: inherit;\n}\n.file-item-full-container-container .file-item-icon-container .info-container .status-close .x-button-file-item {\n padding: 5px 8px !important;\n min-width: 0;\n border-radius: 50%;\n font-size: 0.5em;\n}\n.file-item-full-container-container .file-item-icon-container .info-container .status-close.hide {\n display: none;\n}\n.file-item-full-container-container .file-item-icon-container .info-container .status-close.uploading {\n opacity: 0;\n}\n.file-item-full-container-container .file-item-icon-container .full-info {\n text-align: left;\n position: absolute;\n left: 0;\n top: 0;\n scrollbar-width: thin;\n line-height: 1.5;\n letter-spacing: 0.02857em;\n border: 1px solid white;\n font-family: "Poppins", sans-serif;\n width: inherit;\n background-color: rgba(0, 0, 0, 0.85);\n word-break: break-word;\n border-radius: 7px;\n height: 100%;\n width: 100%;\n font-size: 0.8rem;\n transition: all 0.5s ease 0s;\n overflow: auto;\n color: white;\n}\n.file-item-full-container-container .file-item-icon-container .full-info::-webkit-scrollbar {\n width: 9px;\n}\n.file-item-full-container-container .file-item-icon-container .full-info::-webkit-scrollbar-track {\n background: transparent;\n}\n.file-item-full-container-container .file-item-icon-container .full-info::-webkit-scrollbar-thumb {\n background-color: #646c7fa9;\n border-radius: 20px;\n border: transparent;\n}\n.file-item-full-container-container .file-item-icon-container .full-info .name {\n padding: 0 5px;\n font-weight: 399;\n}\n.file-item-full-container-container .file-item-icon-container .full-info .name .sub-label {\n font-weight: 600;\n}\n.file-item-full-container-container .file-item-icon-container .full-info .name.success {\n border: 1px dashed #2e7d32;\n background-color: #1b5e20;\n font-size: 0.7rem;\n border-radius: 4px;\n}\n.file-item-full-container-container .file-item-icon-container .full-info .name.error {\n background-color: #c62828;\n border: 1px dashed #d32f2f;\n font-size: 0.7rem;\n border-radius: 4px;\n}\n.file-item-full-container-container .file-item-icon-container .full-info .size {\n padding: 0 5px;\n font-weight: 500;\n}\n.file-item-full-container-container .file-item-icon-container .full-info .size .sub-label {\n font-weight: 600;\n}\n.file-item-full-container-container .file-item-icon-container .full-info .mime {\n padding: 0 5px;\n font-weight: 399;\n}\n.file-item-full-container-container .file-item-icon-container .full-info .mime .sub-label {\n font-weight: 600;\n}\n.file-item-full-container-container .file-item-icon-container .full-info.hide {\n display: none;\n}\n.file-item-full-container-container .file-item-icon-container .file-item-footer {\n display: flex;\n width: inherit;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-end;\n}\n.file-item-full-container-container .file-item-icon-container .file-item-footer.hide {\n display: none;\n}\n.file-item-full-container-container .file-item-icon-container .file-item-footer .size-open-info {\n width: inherit;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n}\n.file-item-full-container-container .file-item-icon-container .file-item-footer .size-open-info .file-item-size {\n font-size: 0.7rem;\n border: 1px solid wheat;\n color: white;\n margin: 0% 0% 0% 0%;\n padding: 0% 5%;\n border-radius: 7px;\n background-color: rgba(0, 0, 0, 0.7);\n word-break: break-word;\n}\n.file-item-full-container-container .file-item-icon-container .file-item-footer .size-open-info .file-item-size.not-allowed {\n background-color: rgba(180, 16, 16, 0.7);\n}\n.file-item-full-container-container .file-item-icon-container .file-item-footer .size-open-info.hide {\n display: none;\n}\n.file-item-full-container-container .file-item-icon-container .file-item-footer .size-open-info .file-item-open-info {\n height: 1rem;\n width: 1rem;\n text-align: center;\n background-color: rgba(0, 0, 0, 0.75);\n font-size: 0.6rem;\n font-weight: 600;\n font-family: "Poppins", sans-serif;\n cursor: pointer;\n border-radius: 50%;\n color: aliceblue;\n border: 1px solid wheat;\n}\n.file-item-full-container-container .file-item-name {\n margin-top: 3px;\n height: 37px;\n width: 133px;\n color: black;\n font-size: 0.95rem;\n line-height: 0.85rem;\n font-weight: 400;\n letter-spacing: 0.125em;\n word-break: break-all;\n padding: 0.5px;\n text-align: center;\n}\n.file-item-full-container-container .file-item-name.not-allowed {\n background-color: rgba(180, 16, 16, 0.7);\n}\n\n.file-item-container {\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n}\n\n.file-status {\n text-align: center;\n font-size: 0.8rem;\n margin: -5px 0;\n background-color: rgba(255, 255, 255, 0.7);\n border-radius: 4px;\n padding: 0 2px;\n}\n.file-status.hide {\n display: none;\n}\n.file-status .status-icon {\n margin: -2px 0;\n}\n.file-status .file-status-error {\n color: #f44336;\n}\n.file-status .file-status-ok {\n color: #5c7a1f;\n}\n.file-status .file-status-loading {\n display: flex;\n color: #8b6b10;\n flex-direction: column;\n background-color: transparent;\n}\n.file-status .file-status-loading p {\n margin-top: -25px;\n}\n\n.view-in-image-file-item {\n font-size: 0.7rem;\n min-width: 20px;\n min-height: 20px;\n margin: 0;\n padding: 2px 2px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.7);\n word-break: break-word;\n}\n\n.dz-ui-file-item-container.dz-ui-tooltip {\n cursor: default;\n position: relative;\n display: inline-block;\n}\n.dz-ui-file-item-container.dz-ui-tooltip:hover {\n z-index: 2;\n}\n.dz-ui-file-item-container.dz-ui-tooltip:hover .dropzone-ui-tooltiptext {\n visibility: visible;\n opacity: 1;\n z-index: 2;\n}\n.dz-ui-file-item-container.dz-ui-tooltip .dropzone-ui-tooltiptext {\n font-family: "Poppins", sans-serif;\n font-size: 0.8rem;\n visibility: hidden;\n width: 133px;\n color: #fff;\n text-align: center;\n border-radius: 6px;\n padding: 2px 2px;\n position: absolute;\n top: 180px;\n left: 66px;\n margin-left: -60px;\n /* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */\n opacity: 0;\n transition: opacity 1s;\n}\n.dz-ui-file-item-container.dz-ui-tooltip .dropzone-ui-tooltiptext.not-valid-error {\n background: linear-gradient(to top, #c62828, #d32f2f);\n}\n.dz-ui-file-item-container.dz-ui-tooltip .dropzone-ui-tooltiptext.not-valid-error::after {\n border-color: transparent transparent #d32f2f transparent;\n}\n.dz-ui-file-item-container.dz-ui-tooltip .dropzone-ui-tooltiptext.success {\n background: linear-gradient(to top, #1b5e20, #2e7d32);\n}\n.dz-ui-file-item-container.dz-ui-tooltip .dropzone-ui-tooltiptext.success::after {\n border-color: transparent transparent #2e7d32 transparent;\n}\n.dz-ui-file-item-container.dz-ui-tooltip .dropzone-ui-tooltiptext::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n}');var Ue={children:void 0,shadow:2,className:"",style:{},onMouseEnter:void 0,onMouseLeave:void 0,component:"div"};e(".paper-root {\n border-radius: 4px;\n transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n width: 100%;\n height: 100%;\n word-break: break-all;\n}\n\n.paper-root.shadow1 {\n box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n}\n\n.paper-root.shadow2 {\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n\n.paper-root.shadow3 {\n box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n}\n\n.paper-root.shadow4 {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);\n}");var Oe=function(e){var n,a=ue(e,Ue),r=a.children,i=a.shadow,o=a.style,l=a.className,c=a.onMouseEnter,s=a.onMouseLeave,u=a.component;return t.createElement(u||"div",{className:(n="",n=i?"paper-root shadow".concat(i):"paper-root shadow",l&&(n+=" ".concat(l)),n),style:o,onMouseEnter:function(e){null==c||c()},onMouseLeave:function(e){null==s||s()}},r)},qe=function(e){var n=e.color,a=void 0===n?"#8b6b10":n;return t.createElement("svg",{width:"80px",height:"60px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",className:"lds-colorbar"},t.createElement("defs",null,t.createElement("clipPath",{"ng-attr-id":"{{config.cpid}}",x:"0",y:"0",width:"100",height:"100",id:"lds-colorbar-cpid-9d2a9cfa91489"},t.createElement("path",{d:"M81.3,58.7H18.7c-4.8,0-8.7-3.9-8.7-8.7v0c0-4.8,3.9-8.7,8.7-8.7h62.7c4.8,0,8.7,3.9,8.7,8.7v0C90,54.8,86.1,58.7,81.3,58.7z"}))),t.createElement("path",{fill:"none","ng-attr-stroke":"{{config.cf}}",strokeWidth:"2.7928",d:"M82,63H18c-7.2,0-13-5.8-13-13v0c0-7.2,5.8-13,13-13h64c7.2,0,13,5.8,13,13v0C95,57.2,89.2,63,82,63z",stroke:"#5d5d5d"}),t.createElement("g",{"ng-attr-clip-path":"url(#{{config.cpid}})",clipPath:"url(#lds-colorbar-cpid-9d2a9cfa91489)"},t.createElement("g",{transform:"translate(10 0)"},t.createElement("rect",{x:"-100",y:"0",width:"25",height:"100","ng-attr-fill":"{{config.c1}}",fill:a}),t.createElement("rect",{x:"-75",y:"0",width:"25",height:"100","ng-attr-fill":"{{config.c2}}",fill:se(a,.5)}),t.createElement("rect",{x:"-50",y:"0",width:"25",height:"100","ng-attr-fill":"{{config.c3}}",fill:a}),t.createElement("rect",{x:"-25",y:"0",width:"25",height:"100","ng-attr-fill":"{{config.c4}}",fill:se(a,.5)}),t.createElement("rect",{x:"0",y:"0",width:"25",height:"100","ng-attr-fill":"{{config.c1}}",fill:a}),t.createElement("rect",{x:"25",y:"0",width:"25",height:"100","ng-attr-fill":"{{config.c2}}",fill:se(a,.5)}),t.createElement("rect",{x:"50",y:"0",width:"25",height:"100","ng-attr-fill":"{{config.c3}}",fill:a}),t.createElement("rect",{x:"75",y:"0",width:"25",height:"100","ng-attr-fill":"{{config.c4}}",fill:se(a,.5)}),t.createElement("animateTransform",{attributeName:"transform",type:"translate",calcMode:"linear",values:"0;100",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"}))))},Ze=function(e){var n=e.valid,a=e.uploadStatus,i=e.localization,o=X(i).status;return t.createElement(r,null,a?"uploading"===a?t.createElement("div",{className:"file-status-loading"},t.createElement(qe,null),t.createElement("p",null,o.uploading)):"success"===a?t.createElement("div",{className:"file-status-ok upload"},t.createElement(Ae,{color:"#4caf50",size:"small",className:"status-icon"}),o.success):t.createElement("div",{className:"file-status-error upload"},t.createElement(Ne,{color:"#f44336",size:"semi-medium",className:"status-icon"}),o.error):n?t.createElement("div",{className:"file-status-ok"},t.createElement(ye,{color:"#4caf50",size:"small",className:"status-icon"}),o.valid):t.createElement("div",{className:"file-status-error"},t.createElement(Ee,{color:"#f44336",size:"small",className:"status-icon"}),o.denied))},Ge=function(e){var n=e.showInfo,a=e.valid,r=e.onClose,i=e.fileName,o=e.fileSize,l=e.fileType,c=e.uploadStatus,s=e.uploadMessage,u=e.localization,d=e.errors,p=e.resultOnTooltip,f=X(u).fullInfoLayer;return t.createElement("div",{className:n?"full-info":"full-info hide"},t.createElement("span",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"}},t.createElement(ze,{style:{margin:0,right:0,top:0},color:"rgba(255,255,255,0.8)",onClick:function(){null==r||r()},colorFill:"black"}),c&&"uploading"!==c?t.createElement("div",{className:"file-status"},t.createElement(Ze,{uploadStatus:c,localization:u})):t.createElement("div",{className:"file-status"},t.createElement(Ze,{valid:a,localization:u}))),!p&&!s&&d&&d.length>0&&t.createElement("div",{className:"name error"},d.map((function(e,n){return t.createElement("div",{key:n+1},"- ".concat(e,".\n"))}))),!p&&s&&t.createElement("div",{className:"name ".concat(c)},s),t.createElement("div",{className:"name"},t.createElement("span",{className:"sub-label"},f.name)),t.createElement("div",{className:"name"},i),t.createElement("div",{className:"size"},t.createElement("span",{className:"sub-label"},f.size)),t.createElement("div",{className:"name"},o),t.createElement("div",{className:"mime"},t.createElement("span",{className:"sub-label"},f.type)),t.createElement("div",{className:"mime"},l))},We=function(e){var n=e.imageSource,a=e.url,i=e.fileName;return t.createElement(r,null,n&&t.createElement("div",{className:"img-container blur"},t.createElement("img",{src:n,alt:"blur ".concat(i)})),t.createElement("div",{className:"img-container"},t.createElement("img",{src:n||a,alt:"preview ".concat(i)})))},Ye=function(e){var i=e.showInfo,o=e.onDelete,l=e.info,c=e.valid,s=e.isImage,u=e.isVideo,d=e.onlyImage,p=e.onOpenInfo,f=e.onOpenImage,m=e.onOpenVideo,h=e.sizeFormatted,g=e.uploadStatus,v=e.localization,b=e.hovering,x=n(!1),w=x[0],F=x[1];return a((function(){"success"===g&&setTimeout((function(){F(!0)}),2e3)}),[g]),t.createElement(r,null,b?t.createElement("div",{className:"info-container"},t.createElement("div",{className:"uploading"!==g&&o?i?"status-close hide":"status-close":"status-close uploading"},t.createElement(ze,{color:"rgba(255,255,255,0.8)",onClick:"uploading"===g?void 0:function(){null==o||o()},colorFill:"black"})),g&&!i&&t.createElement("div",{className:w?"file-status hide":"file-status"},t.createElement(Ze,{uploadStatus:g,localization:v})),t.createElement("div",{className:"file-item-footer"},!d&&g&&w?t.createElement("div",{className:i?"file-status hide":"file-status"},t.createElement("div",{className:"file-status-ok"},t.createElement(Ze,{uploadStatus:g,localization:v}))):t.createElement("div",{className:i?"file-status hide":"file-status"},t.createElement(Ze,{valid:c,localization:v})),t.createElement("div",{className:i?"size-open-info hide":"size-open-info"},!d&&t.createElement("div",{className:"file-item-size"},h),s&&f&&c&&t.createElement(ke,{className:"view-in-image-file-item",color:"rgba(255,255,255,0.9)",onClick:function(){null==f||f()},size:"small"}),u&&m&&c&&t.createElement(De,{className:"view-in-image-file-item",color:"rgba(255,255,255,0.9)",onClick:function(){null==m||m()},size:"small"}),!d&&l&&t.createElement(Fe,{color:"rgba(255,255,255,0.8)",onClick:function(){null==p||p()},colorFill:"black"})))):t.createElement(r,null,t.createElement("div",{className:"info-container"},t.createElement("div",{className:"uploading"!==g&&o?i?"status-close hide":"status-close":"status-close uploading"}),g&&!i&&t.createElement("div",{className:w?"file-status hide":"file-status"},t.createElement(Ze,{uploadStatus:g,localization:v})),t.createElement("div",{className:"file-item-footer"},!d&&g&&w?t.createElement("div",{className:i?"file-status hide":"file-status"},t.createElement("div",{className:"file-status-ok",style:{marginBottom:"1px"}},t.createElement(Ze,{uploadStatus:g,localization:v}))):t.createElement("div",{className:i?"file-status hide":"file-status",style:{marginBottom:"1px"}},t.createElement(Ze,{valid:c,localization:v})),t.createElement("div",{className:i?"size-open-info hide":"size-open-info"})))))};e('.dropzone-ui-tooltipppp {\n position: relative;\n display: inline-block;\n border-bottom: 1px dotted black;\n}\n.dropzone-ui-tooltipppp:hover .dropzosne-ui-toolatiptext {\n visibility: visible;\n opacity: 1;\n}\n.dropzone-ui-tooltipppp .dropzaone-ui-tooltiptsext {\n visibility: hidden;\n width: 120px;\n color: #fff;\n text-align: center;\n border-radius: 6px;\n padding: 5px 5px;\n position: absolute;\n z-index: 1;\n top: 150%;\n left: 50%;\n margin-left: -60px;\n /* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */\n opacity: 0;\n transition: opacity 1s;\n}\n.dropzone-ui-tooltipppp .dropzaone-ui-tooltiptsext.not-valisd-error {\n background-color: red;\n}\n.dropzone-ui-tooltipppp .dropzaone-ui-tooltiptsext.not-valisd-error::after {\n border-color: transparent transparent red transparent;\n}\n.dropzone-ui-tooltipppp .dropzaone-ui-tooltiptsext.successs {\n background-color: green;\n}\n.dropzone-ui-tooltipppp .dropzaone-ui-tooltiptsext.successs::after {\n border-color: transparent transparent green transparent;\n}\n.dropzone-ui-tooltipppp .dropzaone-ui-tooltiptsext::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-style: solid;\n}');var Ke=function(e){var i=e.uploadStatus,o=e.valid,l=e.errors,c=e.uploadMessage,s=e.open,u=n(void 0),d=u[0],p=u[1],f=n(void 0),m=f[0],h=f[1];return a((function(){!function(e,t){t?e?(h(c),p("success"===e?"success":"error"===e?"not-valid-error":void 0)):h(void 0):(p("not-valid-error"),h(l?l.reduce((function(e,t){return e+"".concat(t,". ")}),""):""))}(i,o)}),[i,o]),t.createElement(r,null,s&&m&&d&&t.createElement("span",{className:"dropzone-ui-tooltiptext ".concat(d)},m))},Xe=function(e){var i=ue(e,Pe),o=i.file,l=i.onDelete,c=i.onSee,s=i.onWatch,u=i.style,d=i.preview,m=i.onlyImage,h=i.info,v=i.id,x=i.valid,w=i.uploadStatus,F=i.uploadMessage,y=i.hd,E=i.localization,z=i.errors,k=i.imageUrl,C=i.elevation,_=i.alwaysActive,A=i.resultOnTooltip,N=n(!1),B=N[0],D=N[1],M=o?p(o.size):"0 KB",S=n(!1),j=S[0],L=S[1],T=n(!1),R=T[0],I=T[1],H=n(""),V=H[0],P=H[1],U=n(void 0),O=U[0],q=U[1],Z=n(!1),G=Z[0],W=Z[1];a((function(){return Y(o,x||!1,d||!1,k),function(){q(void 0),L(!1),I(!1)}}),[o,x,d,k]);var Y=function(e,t,n,a){return ne(void 0,void 0,void 0,(function(){var r,i,o,l,c;return ae(this,(function(s){switch(s.label){case 0:return e?(r=function(e){var t="";if(!e)return{url:g[t="octet"],mimeResume:t};t=function(e){if(!e||!e.includes("/"))return"octet";var t=e.split("/")[0],n=e.split("/")[1];switch(t){case"application":return function(e){switch(e){case"x-abiword":case"abiword":return"abw";case"x-freearc":case"freearc":return"arc";case"vnd.amazon.ebook":return"azw";case"octet-stream":default:return"octet";case"x-bzip":case"bzip":return"bz";case"x-bzip2":case"bzip2":return"bz2";case"x-cdf":return"cda";case"msaccess":return"accdb";case"csh":case"x-csh":return"csh";case"vnd.ms-fontobject":return"eot";case"epub+zip":return"epub";case"gzip":return"gzip";case"java-archive":return"jar";case"x-javascript":return"javascript";case"json":return"json";case"ld+json":return"jsonld";case"vnd.apple.installer+xml":return"mpkg";case"ogg":return"ogx";case"vnd.rar":return"rar";case"rtf":return"rtf";case"x-sh":case"sh":return"sh";case"x-shockwave-flash":return"swf";case"x-tar":return"tar";case"x-httpd-php":return"php";case"vnd.visio":return"vsd";case"xhtml+xml":return"xhtml";case"xml":return"xml";case"vnd.mozilla.xul+xml":return"xul";case"vnd.openxmlformats-officedocument.wordprocessingml.document":case"msword":return"docx";case"vnd.openxmlformats-officedocument.spreadsheetml.sheet":return"xlsx";case"vnd.openxmlformats-officedocument.presentationml.presentation":case"vnd.ms-powerpoint":return"pptx";case"vnd.oasis.opendocument.presentation":return"odp";case"vnd.oasis.opendocument.text":return"odt";case"vnd.oasis.opendocument.spreadsheet":return"ods";case"zip":case"x-zip-compressed":return"zip";case"pdf":return"pdf"}}(n);case"audio":return function(e){switch(e){case"aac":return"aac";case"midi":case"x-midi":return"midi";case"mpeg":return"mpeg";case"ogg":return"oga";case"opus":return"opus";case"wav":return"wav";case"webm":return"webm";case"wma":return"wma";default:return"octet"}}(n);case"video":return function(e){switch(e){case"x-msvideo":case"msvideo":case"avi":return"avi";case"mp4":return"mp4";case"mpeg":return"mpeg";case"ogg":return"ogv";case"mp2t":return"mp2t";case"wmv":return"wmv";case"webm":return"webm";default:return"octet"}}(n);case"text":return function(e){switch(e){case"css":return"css";case"csv":return"csv";case"html":return"html";case"calendar":return"icalendar";case"javascript":case"x-javascript":return"javascript";case"plain":return"text";case"xml":return"xml";default:return"octet"}}(n);case"image":return function(e){switch(e){case"bmp":return"bmp";case"gif":return"gif";case"ico":return"ico";case"jpg":case"jpeg":return"jpeg";case"png":return"png";case"tiff":return"tiff";case"webp":return"webp";default:return"octet"}}(n);case"font":return function(e){switch(e){case"otf":return"otf";case"ttf":return"ttf";case"woff":case"woff2":return"woff";default:return"octet"}}(n);default:return"octet"}}(e.type);var n,a,r=f(e.name);return"text"===t&&(a="text",(n=r)&&""!==n&&("jsx"===n?a="react":"py"===n?a="python":"vue"===n?a="vue":"java"===n?a="java":"ts"===n||"tsx"===n?a="typescript":"js"===n?a="javascript":"xml"===n?a="xml":"php"===n&&(a="php")),t=a),"octet"===t&&(t=function(e){var t="octet";return e&&""!==e&&(e.includes("zip")||e.includes("rar")?t="zip":e.includes("doc")?t="docx":e.includes("xls")?t="xlsx":e.includes("drawio")?t="drawio":e.includes("psd")?t="psd":e.includes("csv")?t="csv":"jsx"===e?t="react":"py"===e?t="python":"vue"===e?t="vue":"java"===e?t="java":"ts"===e?t="ts":"sass"!==e&&"scss"!==e||(t="sass")),t}(r)),{url:g[t],mimeResume:t}}(e).url,P(r),a?(L(!0),q(a),[2]):[3,1]):[2];case 1:return i=e.type?e.type.split("/")[0]:"octet",o=e.type?e.type.split("/")[1]:"octet",L("image"===i),I("video"===i&&["mp4","ogg","webm"].includes(o)),n&&t&&"image"===i?[4,b(e)]:[3,5];case 2:return(l=s.sent())?[4,(u=l,void 0===d&&(d=135),void 0===p&&(p=120),new Promise((function(e,t){try{var n=new Image;n.src=u,n.onload=function(){var a=document.createElement("canvas"),r=d,i=p,o=n.width,l=n.height;d>o&&p>l?e(u):o>l?o>r&&(l*=r/o,o=r):l>i&&(o*=i/l,l=i),a.width=o,a.height=l;var c=a.getContext("2d");c?(c.drawImage(n,0,0,o,l),e(a.toDataURL())):(console.error("An error ocurred when trying to make a thumnail"),t(void 0))}}catch(e){console.error("An error ocurred when trying to make a thumnail"),t(void 0)}})))]:[3,4];case 3:return c=s.sent(),q(c),[3,5];case 4:q(void 0),s.label=5;case 5:return[2]}var u,d,p}))}))};return o&&"string"==typeof o.name?t.createElement("div",{className:"dz-ui-file-item-container".concat(A?" dz-ui-tooltip":""),onClick:function(e){e.stopPropagation()},onMouseEnter:function(){D(!0)},onMouseLeave:function(){D(!1)}},t.createElement("div",{className:"file-item-full-container-container",style:u},t.createElement(Oe,{shadow:C,className:"file-item-icon-container ".concat(G?" hide":"")},t.createElement(We,{imageSource:O,url:V,fileName:o.name}),t.createElement(Ye,{showInfo:G,fileName:o.name,onDelete:l?function(){l&&l(v)}:void 0,onOpenImage:c&&d?function(){return ne(void 0,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return O&&o?y?[4,b(o)]:[3,2]:[3,3];case 1:return e=t.sent(),null==c||c(e||""),[3,3];case 2:null==c||c(O),t.label=3;case 3:return[2]}}))}))}:void 0,onOpenVideo:s&&d?function(){return ne(void 0,void 0,void 0,(function(){return ae(this,(function(e){return o&&(null==s||s(o)),[2]}))}))}:void 0,isVideo:R,onOpenInfo:function(){W(!0)},info:h||!1,valid:x||!1,isImage:j,sizeFormatted:M,uploadStatus:w,localization:E,onlyImage:m,hovering:_||B}),t.createElement(Ge,{showInfo:G,errors:z,fileName:o.name,fileSize:p(o.size),fileType:o.type,valid:x||!1,onClose:function(){W(!0),W(!1)},uploadStatus:w,uploadMessage:F,localization:E,resultOnTooltip:A})),!m&&t.createElement("div",{className:"file-item-name"},function(e){void 0===e&&(e="");var t=e;return e.length>=30&&(t=e.slice(0,13)+"..."+e.slice(-8)),t}(o.name))),A&&t.createElement(Ke,{open:!0,uploadStatus:w,valid:x,errors:z,uploadMessage:F})):t.createElement(r,null)};e(".image-container {\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.534);\n transform: translate(100%);\n transition: transform 0.2s ease-in-out;\n z-index: 4;\n}\n.image-container.show {\n transform: translate(0);\n}\n\n.img-rel-container {\n position: relative;\n height: 80%;\n max-width: 95%;\n}\n@media (max-width: 600px) {\n .img-rel-container {\n width: 80%;\n height: auto;\n }\n}\n@media (max-width: 960px) {\n .img-rel-container {\n width: 90%;\n height: auto;\n }\n}\n\n.image-full-screen {\n position: relative;\n transform: scale(0);\n border-radius: 10px;\n transition: transform 0.3s 0.2s;\n}\n.image-full-screen.show-image {\n transform: scale(1);\n}\n\n.button-full-screen {\n position: absolute;\n}");var Qe=function(e){var n=e.imgSource,a=e.openImage,r=e.onClose;function i(e){e.stopPropagation(),null==r||r()}return t.createElement("div",{className:a?"image-container show":"image-container",onClick:i},n&&a&&t.createElement("div",{className:"img-rel-container"},t.createElement("img",{width:"100%",height:"100%",src:n,alt:"full-screen-preview",className:"image-full-screen show-image"}),t.createElement(ze,{color:"rgba(255,255,255,0.8)",onClick:i,colorFill:"black",className:"button-full-screen"})))};e(".video-container {\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.734);\n transform: translate(100%);\n transition: transform 0.2s ease-in-out;\n z-index: 4;\n}\n.video-container.show {\n transform: translate(0);\n}\n\n.vid-rel-container {\n position: relative;\n height: 80%;\n max-width: 95%;\n}\n@media (max-width: 600px) {\n .vid-rel-container {\n width: 80%;\n height: auto;\n }\n}\n@media (max-width: 960px) {\n .vid-rel-container {\n width: 90%;\n height: auto;\n }\n}\n\n.video-full-screen {\n position: relative;\n transform: scale(0);\n border-radius: 10px;\n transition: transform 0.3s 0.2s;\n}\n.video-full-screen.show-video {\n transform: scale(1);\n}\n\n.button-full-screen {\n position: absolute;\n}");var $e=function(e){var o=e.videoSrc,l=e.openVideo,c=e.onClose,s=e.autoplay,u=e.controls,d=e.style,p=i(null),f=n(void 0),m=f[0],h=f[1];function g(e){e.stopPropagation(),null==c||c()}return a((function(){if(o)if("string"==typeof o)h(o);else{var e=o.type?o.type.split("/")[0]:"octet",t=o.type?o.type.split("/")[1]:"octet";if("video"===e&&["mp4","ogg","webm"].includes(t)){var n=URL.createObjectURL(o);h(n)}}}),[o]),a((function(){m&&p.current&&p.current.load()}),[m]),o?t.createElement("div",{className:l?"video-container show":"video-container",onClick:g},l&&t.createElement("div",{className:"vid-rel-container",onClick:function(e){e.preventDefault()}},t.createElement("video",{onClick:function(e){e.preventDefault()},id:"dropzone-ui-video",controls:u,ref:p,className:"video-full-screen show-video",autoPlay:s,src:m,width:"100%",height:"100%",style:d},t.createElement("source",{type:"video/webm"}),t.createElement("source",{type:"video/ogg"}),t.createElement("source",{type:"video/mp4"})),t.createElement(ze,{color:"rgba(255,255,255,0.8)",onClick:g,colorFill:"black",className:"button-full-screen"}))):t.createElement(r,null)};
16/*! *****************************************************************************
17Copyright (c) Microsoft Corporation.
18
19Permission to use, copy, modify, and/or distribute this software for any
20purpose with or without fee is hereby granted.
21
22THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28PERFORMANCE OF THIS SOFTWARE.
29***************************************************************************** */
30function Je(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))}function et(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}!function(e){if(!e)return;if("undefined"==typeof window)return;const t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");\n.material-button-root {\n border: 0;\n cursor: pointer;\n display: inline-flex;\n outline: 0;\n position: relative;\n align-items: center;\n vertical-align: middle;\n justify-content: center;\n text-decoration: none;\n text-transform: none;\n}\n\n.material-button {\n transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n overflow: hidden;\n min-width: 64px;\n box-sizing: border-box;\n border-radius: 4px;\n font-family: "Roboto", "Helvetica", "Arial", sans-serif;\n font-size: 0.875rem;\n font-weight: 500;\n line-height: 1.75;\n letter-spacing: 0.02857em;\n}\n\n.material-button.uppercase {\n text-transform: uppercase;\n}\n\n.material-button.lowercase {\n text-transform: lowercase;\n}\n\n.material-button.capitalize {\n text-transform: capitalize;\n}\n\n.material-button.contained {\n padding: 6px 16px;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n\n.material-button.outlined {\n padding: 5px 15px;\n}\n\n.material-button.text {\n padding: 5px 15px;\n}\n\n.material-button-root.contained:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);\n}\n\n.material-button span.label {\n width: 100%;\n display: inherit;\n align-items: inherit;\n justify-content: inherit;\n}\n\nspan.ripple {\n position: absolute;\n border-radius: 50%;\n transform: scale(0);\n animation: ripple 500ms linear;\n background-color: rgba(255, 255, 255, 0.7);\n}\n\n@keyframes ripple {\n to {\n transform: scale(4);\n opacity: 0;\n }\n}\n.material-button-root.disabled {\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n background-color: rgba(0, 0, 0, 0.12);\n color: rgba(0, 0, 0, 0.26);\n padding: 6px 16px;\n}\n\n@media screen and (max-width: 600px) {\n .material-button {\n min-width: 30px;\n font-size: 0.78rem;\n line-height: 1.5;\n letter-spacing: 0.025em;\n }\n\n .material-button.contained {\n padding: 4px 13px;\n }\n\n .material-button.outlined {\n padding: 4px 12px;\n }\n}');
31/*! *****************************************************************************
32Copyright (c) Microsoft Corporation.
33
34Permission to use, copy, modify, and/or distribute this software for any
35purpose with or without fee is hereby granted.
36
37THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43PERFORMANCE OF THIS SOFTWARE.
44***************************************************************************** */
45var tt=function(){return tt=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},tt.apply(this,arguments)},nt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],at=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],rt=function(e){return nt.includes(e)?at[nt.indexOf(e)]:0},it=function(e){if("#"!==e.charAt(0))return!1;if(7!==e.length)return!1;for(var t=1;t<e.length;t++)if(!nt.includes(e.charAt(t)))return!1;return!0},ot=function(e,t,n){void 0===t&&(t=0);var a=n||"rgba(255, 255, 255, 0.6)";if(!e)return a;var r=e.toUpperCase();if(r.includes("RGBA"))return r;if(r.includes("RGB"))return r.replace("RGB","rgba").replace(")",", "+t+")");if(!it(st(r)))return a;return"rgba("+(16*rt(r.charAt(1))+rt(r.charAt(2)))+", "+(16*rt(r.charAt(3))+rt(r.charAt(4)))+","+(16*rt(r.charAt(5))+rt(r.charAt(6)))+" , "+t+")"},lt=function(e,t){void 0===t&&(t=25);var n="",a=(100-t)/100;if(it(st(e)))n="rgb("+(16*rt(e.charAt(1))+rt(e.charAt(2)))*a+", "+(16*rt(e.charAt(3))+rt(e.charAt(4)))*a+","+(16*rt(e.charAt(5))+rt(e.charAt(6)))*a+")";else if(e.includes("rgba")){var r=e.replace("rgba(","").split(",");n="rgb("+parseInt(r[0],10)*a+", "+parseInt(r[1],10)*a+","+parseInt(r[2],10)*a+")"}else if(e.includes("rgb")){r=e.replace("rgb(","").split(",");n="rgb("+parseInt(r[0],10)*a+", "+parseInt(r[1],10)*a+","+parseInt(r[2],10)*a+")"}return n};var ct=function(e){return void 0!==e&&""!==e?e:"#5d6475"};function st(e){return e?void 0!==ut[e.toLocaleLowerCase()]?ut[e.toLocaleLowerCase()]:e:""}var ut={indianred:"#CD5C5C",lightcoral:"#F08080",salmon:"#FA8072",darksalmon:"#E9967A",lightsalmon:"#FFA07A",crimson:"#DC143C",red:"#FF0000",firebrick:"#B22222",darkred:"#8B0000",pink:"#FFC0CB",lightpink:"#FFB6C1",hotpink:"#FF69B4",deeppink:"#FF1493",mediumvioletred:"#C71585",palevioletred:"#DB7093",coral:"#FF7F50",tomato:"#FF6347",orangered:"#FF4500",darkorange:"#FF8C00",orange:"#FFA500",gold:"#FFD700",yellow:"#FFFF00",lightyellow:"#FFFFE0",lemonchiffon:"#FFFACD",lightgoldenrodyellow:"#FAFAD2",papayawhip:"#FFEFD5",moccasin:"#FFE4B5",peachpuff:"#FFDAB9",palegoldenrod:"#EEE8AA",khaki:"#F0E68C",darkkhaki:"#BDB76B",lavender:"#E6E6FA",thistle:"#D8BFD8",plum:"#DDA0DD",violet:"#EE82EE",orchid:"#DA70D6",fuchsia:"#FF00FF",magenta:"#FF00FF",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",rebeccapurple:"#663399",blueviolet:"#8A2BE2",darkviolet:"#9400D3",darkorchid:"#9932CC",darkmagenta:"#8B008B",purple:"#800080",indigo:"#4B0082",slateblue:"#6A5ACD",darkslateblue:"#483D8B",mediumslateblue:"#7B68EE",greenyellow:"#ADFF2F",chartreuse:"#7FFF00",lawngreen:"#7CFC00",lime:"#00FF00",limegreen:"#32CD32",palegreen:"#98FB98",lightgreen:"#90EE90",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",mediumseagreen:"#3CB371",seagreen:"#2E8B57",forestgreen:"#228B22",green:"#008000",darkgreen:"#006400",yellowgreen:"#9ACD32",olivedrab:"#6B8E23",olive:"#808000",darkolivegreen:"#556B2F",mediumaquamarine:"#66CDAA",darkseagreen:"#8FBC8B",lightseagreen:"#20B2AA",darkcyan:"#008B8B",teal:"#008080",aqua:"#00FFFF",cyan:"#00FFFF",lightcyan:"#E0FFFF",paleturquoise:"#AFEEEE",aquamarine:"#7FFFD4",turquoise:"#40E0D0",mediumturquoise:"#48D1CC",darkturquoise:"#00CED1",cadetblue:"#5F9EA0",steelblue:"#4682B4",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",lightblue:"#ADD8E6",skyblue:"#87CEEB",lightskyblue:"#87CEFA",deepskyblue:"#00BFFF",dodgerblue:"#1E90FF",cornflowerblue:"#6495ED",royalblue:"#4169E1",blue:"#0000FF",mediumblue:"#0000CD",darkblue:"#00008B",navy:"#000080",midnightblue:"#191970",cornsilk:"#FFF8DC",blanchedalmond:"#FFEBCD",bisque:"#FFE4C4",navajowhite:"#FFDEAD",wheat:"#F5DEB3",burlywood:"#DEB887",tan:"#D2B48C",rosybrown:"#BC8F8F",sandybrown:"#F4A460",goldenrod:"#DAA520",darkgoldenrod:"#B8860B",peru:"#CD853F",chocolate:"#D2691E",saddlebrown:"#8B4513",sienna:"#A0522D",brown:"#A52A2A",maroon:"#800000",white:"#FFFFFF",snow:"#FFFAFA",honeydew:"#F0FFF0",mintcream:"#F5FFFA",azure:"#F0FFFF",aliceblue:"#F0F8FF",ghostwhite:"#F8F8FF",whitesmoke:"#F5F5F5",seashell:"#FFF5EE",beige:"#F5F5DC",oldlace:"#FDF5E6",floralwhite:"#FFFAF0",ivory:"#FFFFF0",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lavenderblush:"#FFF0F5",mistyrose:"#FFE4E1",gainsboro:"#DCDCDC",lightgray:"#D3D3D3",silver:"#C0C0C0",darkgray:"#A9A9A9",gray:"#808080",dimgray:"#696969",lightslategray:"#778899",slategray:"#708090",darkslategray:"#2F4F4F",black:"#000000"},dt=function(){function e(){}return e.getNext=function(){return e.nextButtonClassNameNumber++,e.nextButtonClassNameNumber},e.nextButtonClassNameNumber=0,e}();var pt,ft=function(e,t,n,a,r){var i={id:"material-button-styles-"+r,sheetRules:[{className:"material-button."+e+"-"+r,rules:{}},{className:"material-button-root."+e+"-"+r,rules:{}}]},o=i.sheetRules;if(!t)switch(e){case"contained":o[0].rules={color:ct(st(a)),backgroundColor:ct(st(n))},o[1].rules={":hover":{backgroundColor:lt(ot(ct(st(n)),1))}};break;case"outlined":o[0].rules={border:"1px solid "+ot(ct(st(n)),.5),color:ct(st(n)),backgroundColor:"transparent"},o[1].rules={":hover":{border:"1px solid "+ot(ct(st(n)),1),backgroundColor:ot(ct(st(n)),.085)}};break;case"text":o[0].rules={color:ct(st(n)),backgroundColor:"transparent"},o[1].rules={":hover":{backgroundColor:ot(ct(st(n)),.085)}}}return i.sheetRules=o,i},mt={children:void 0,style:{},onClick:function(){},variant:"contained",disabled:!1,color:"#071e25",textColor:"#FFFFFF",text:"uppercase"};function ht(e){for(var t,n="",a=" ",r=!1,i=0;i<e.length;i++){var o=e[i];if((t=o)&&!/[a-z]/.test(t)&&/[A-Z]/.test(t)){a=o,r=!0;break}}if(r){var l=e.split(a);n=l[0]+"-"+a.toLowerCase()+l[1]}else n=e;return n}function gt(e){var t="",n=e.trim().split(" ");if(n.length>1){for(var a=0;a<n.length;a++)t+="."+n[a];t+="{\n"}else t+="."+e+"{\n";return t}function vt(e){if(!e)return"";for(var t,n="",a=[],r=0;r<e.length;r++){var i="";i+=gt((d=e[r]).className);for(var o=Object.keys(d.rules),l=0;l<o.length;l++){var c=ht(p=o[l]);if((t=c)&&t.includes(":")){var s=d.className+c;a.push({className:s,rules:d.rules[c]})}else{i+="\t"+c+" : "+d.rules[p]+";\n"}}n+=i+="}\n"}for(var u=0;u<a.length;u++){i="";var d=a[u];o=Object.keys(d.rules);i+="."+d.className+"{\n";for(l=0;l<o.length;l++){var p;i+="\t"+(c=ht(p=o[l]))+" : "+d.rules[p]+";\n"}n+=i+="}\n"}return n}!function(e){e.insertStyleSheet=function(e){var t;if("undefined"==typeof window)return"";if(!e)return"";if(document.getElementById(e.id))return e.id;t=e.id;var n=document.createElement("style");n.id=t,n.setAttribute("type","text/css");var a=vt(e.sheetRules||[])+e.raw||"";return n.textContent=a,document.head.appendChild(n)?t:""},e.editStyleSheet=function(e,t){if("undefined"==typeof window)return"";if(!e||!t)return"";var n=document.getElementById(e);return n?(n.textContent=vt(t),""):""},e.removeStyleSheet=function(e){var t="";if(!e)return"";var n=document.getElementById(e);return n&&(document.head.removeChild(n),t=e),t},e.existStyleSheet=function(e){return!!e&&!!document.getElementById(e)},e.makeStyleSheet=function(e){return e||null}}(pt||(pt={}));var bt=function(e){var r,o,l=(o=mt,(r=e)?tt(tt({},o),r):o),c=l.children,s=l.onClick,u=l.disabled,d=l.style,p=l.href,f=l.variant,m=l.color,h=l.textColor,g=l.className,v=l.text,b=n(""),x=b[0],w=b[1],F=n(!1),y=F[0],E=F[1],z=n(0),k=z[0],C=z[1],_=n(""),A=_[0],N=_[1];a((function(){return function(){return M()}}),[x]);var B=function(e,t,n,a,r){return Je(void 0,void 0,void 0,(function(){var r,i,o,l;return et(this,(function(c){return r=g||"",o="",0!==k||y?(i=ft(e,t,n,a,k),pt.editStyleSheet(x,i.sheetRules||[]),D(e,r,k)):(l=dt.getNext(),i=ft(e,t,n,a,l),C(l),o=pt.insertStyleSheet(i),D(e,r,l),w(o),""!==o&&E(!0)),[2]}))}))},D=function(e,t,n){var a="material-button-root material-button ";a+=u?"disabled":e+" "+e+"-"+n,t&&(a+=" "+a+" "+t),v&&(a+=" "+v),N(a)},M=function(){y&&(pt.removeStyleSheet(x),E(!1),w(""))};a((function(){B(f,u,m,h)}),[f,u,m,h,v]);var S=i(null),j=i(null);return t.createElement(t.Fragment,null,y&&t.createElement(p?"a":"button",{className:A,"data-testid":p?"material-anchor":"material-button",onClick:function(e){!function(e,t,n){var a=e.currentTarget,r=document.createElement("span"),i=Math.max(a.clientWidth,a.clientHeight),o=i/2;r.style.width=r.style.height=i+"px",r.style.left=e.clientX-a.offsetLeft-o+"px",r.style.top=e.clientY-a.offsetTop-o+"px",r.classList.add("ripple"),r.style.backgroundColor=ot("contained"!==t?ct(st(n)):"#ffffff",.4);var l=a.getElementsByClassName("ripple")[0];l&&l.remove(),a.appendChild(r)}(e,f,m),s&&s(e)},ref:S,href:p,style:d,children:p?t.createElement("span",{ref:j,className:"label"},c):t.createElement("span",{className:"label"},c),disabled:u}))},xt=te(te({},mt),{multiple:!1,accept:"",label:"Browse ...",onChange:function(){},localization:"EN-en"}),wt=function(e){var n=ue(e,xt),a=n.accept,o=n.color,l=n.disabled,c=n.id,s=n.label,u=n.maxFileSize,d=n.multiple,p=n.onChange,f=n.style,m=n.textColor,h=n.validator,g=n.variant,v=n.localization,b=i(null),F={maxFileSize:u},y=ee(v);return t.createElement(r,null,t.createElement(bt,{style:f,color:o,variant:g,onClick:function(e){e.stopPropagation(),e.preventDefault();var t=b.current;t&&t.click()},disabled:l,textColor:m},s),t.createElement("input",{id:c||"",style:{display:"none"},ref:b,onChange:function(e){var t=e.target.files,n=[];if(t&&t.length>0)for(var a=0,r=void 0;r=t[a];a++){var i=h?w(r,h):x(r,F,y);n.push(i)}var o=b.current;o&&(o.value=""),null==p||p(n)},type:"file",multiple:d,accept:a}))};export{Ve as Dropzone,D as DropzoneEnglish,A as DropzoneFrench,k as DropzoneItalian,Re as DropzoneLabel,Q as DropzoneLocalizer,$ as DropzoneLocalizerSelector,V as DropzonePortuguese,R as DropzoneRussian,O as DropzoneSimplifiedChinese,j as DropzoneSpanish,G as DropzoneTraditionalChinese,Xe as FileItem,Te as FileItemContainer,M as FileItemEnglish,N as FileItemFrench,We as FileItemImage,C as FileItemItalian,K as FileItemLocalizer,X as FileItemLocalizerSelector,P as FileItemPortuguese,I as FileItemRussian,q as FileItemSimplifiedChinese,L as FileItemSpanish,W as FileItemTraditionalChinese,Qe as FullScreenPreview,wt as InputButton,v as UPLOADSTATUS,S as ValidateErrorEnglish,B as ValidateErrorFrench,_ as ValidateErrorItalian,J as ValidateErrorLocalizer,ee as ValidateErrorLocalizerSelector,U as ValidateErrorPortuguese,H as ValidateErrorRussian,Z as ValidateErrorSimplifiedChinese,T as ValidateErrorSpanish,Y as ValidateErrorTraditionalChinese,$e as VideoPreview,u as createListOfMultiTypeFile,c as createPDF,d as createSyntheticFile,s as createWord,E as makeSynthticFileValidate};
46//# sourceMappingURL=index.es.js.map