UNPKG

@dropzone-ui/react

Version:

The best and most complete React library for managing file uploads. Multilanguage support. Server side support. Material design styles. Code generator on webpage.

1 lines 159 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function t(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var a=n(e),i=t(e),r=function(){return r=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},r.apply(this,arguments)};function o(e){if(!e||"undefined"==typeof window)return;const n=document.createElement("style");return n.setAttribute("type","text/css"),n.innerHTML=e,document.head.appendChild(n),e}var l=function(){return l=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)};function c(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)n.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(t[a[i]]=e[a[i]])}return t}function s(e,n,t,a){return new(t||(t=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,l)}c((a=a.apply(e,n||[])).next())}))}function u(e,n){var t,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&l[0]?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,a=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],a=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function d(e,n,t){if(t||2===arguments.length)for(var a,i=0,r=n.length;i<r;i++)!a&&i in n||(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return e.concat(a||Array.prototype.slice.call(n))}var f=function(e){if(e)return 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"},p={defaultLabel:"Trascina qui i tuoi file",uploadingMessage:function(e){return"Caricamento di ".concat(e," file")},uploadFinished:function(e,n){return"File caricati: ".concat(e,", File rifiutati: ").concat(n)},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,n){return"File ".concat(e,"/").concat(n)}},fakeuploadsuccess:"Il file è stato caricato con successo ",fakeUploadError:"Errore di caricamento del file"},m={fullInfoLayer:{name:"Nome: ",size:"Dimensione: ",type:"Tipo: "},status:{preparing:"preparazione",uploading:"In corso",success:"Successo",valid:"Valido",denied:"Non válido",error:"Errore",aborted:"Interrotto"}},g={maxSizeError:function(e){return"Il file è molto grande. Il tam. il massimo è ".concat(f(e))},acceptError:"Tipo di file illegale",maxFileCount:function(e){return"Numero massimo di file (".concat(e,") raggiunto")}},h={defaultLabel:"Déposez vos fichiers ici",uploadingMessage:function(e){return"Envoi de ".concat(e," fichiers")},uploadFinished:function(e,n){return"Fichiers téléchargés : ".concat(e,", Fichiers rejetés: ").concat(n)},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,n){return"Fichiers ".concat(e,"/").concat(n)}},fakeuploadsuccess:"Le fichier a été téléchargé avec succès",fakeUploadError:"Erreur lors du téléchargement "},b={fullInfoLayer:{name:"Le nom: ",size:"Le taille: ",type:"Le type: "},status:{preparing:"préparer",uploading:"En cours",success:"Succès",valid:"Valide",denied:"Refusé",error:"Erreur",aborted:"Interrompu"}},v={maxSizeError:function(e){return"Le fichier est très volumineux. Le tam. le maximum est de ".concat(f(e))},acceptError:"Type de fichier illégal ",maxFileCount:function(e){return"Limite de fichiers atteinte (".concat(e,")")}},x={defaultLabel:"Drop your files here",uploadingMessage:function(e){return"Uploading ".concat(e," files")},uploadFinished:function(e,n){return"Uploaded files: ".concat(e,", Rejected files: ").concat(n)},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,n){return"Files ".concat(e,"/").concat(n)}},fakeuploadsuccess:"File was successfuly uploaded",fakeUploadError:"Error on uploading. Please try again later."},y={fullInfoLayer:{name:"Name: ",size:"Size: ",type:"Type: "},status:{preparing:"Preparing",uploading:"Uploading",success:"Success",valid:"Valid",denied:"Not valid",error:"Error",aborted:"Aborted"}},w={maxSizeError:function(e){return"File is too big. Max file size allowed is ".concat(f(e))},acceptError:"File type is not allowed",maxFileCount:function(e){return"Max amount of files (".concat(e,") has been reached")}},E={defaultLabel:"Suelta tus archivos aquí",uploadingMessage:function(e){return"Subiendo ".concat(e," archivos")},uploadFinished:function(e,n){return"Archivos subidos: ".concat(e,", Archivos rechazados: ").concat(n)},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,n){return"Archivos ".concat(e,"/").concat(n)}},fakeuploadsuccess:"El archivo se subió correctamente",fakeUploadError:"Error al subir el archivo"},F={fullInfoLayer:{name:"Nombre: ",size:"Tamaño: ",type:"Tipo: "},status:{preparing:"Preparando",uploading:"Subiendo",success:"Éxito",valid:"Válido",denied:"No válido",error:"Error",aborted:"Anulado"}},k={maxSizeError:function(e){return"El archivo es muy grande. El tam. máximo es ".concat(f(e))},acceptError:"Tipo de archivo no permitido",maxFileCount:function(e){return"Cantidad máxima de archivos (".concat(e,") alcanzada")}},z={defaultLabel:"Перетащите сюда свои файлы.",uploadingMessage:function(e){return"Выгрузка ".concat(e," файлов")},uploadFinished:function(e,n){return"Загружено файлов: ".concat(e,", отклоненных файлов: ").concat(n)},noFilesMessage:"Действительный файл не отсутствует для загрузки",footer:{acceptAll:"Принимаются все типы файлов ",acceptCustom:function(e){return"Допустимые типы: ".concat(e)}},header:{uploadFilesMessage:"Отправить",maxSizeMessage:function(e){return"макс размер: ".concat(e)},validFilesMessage:function(e,n){return"Файлы ".concat(e,"/").concat(n)}},fakeuploadsuccess:"Файл был успешно загружен",fakeUploadError:"Ошибка при загрузке"},C={fullInfoLayer:{name:"Имя: ",size:"Размер: ",type:"Tип: "},status:{preparing:"подготовка",uploading:"Загрузка",success:"успех",valid:"годный",denied:"выкинутый",error:"ошибка",aborted:"прерванный"}},S={maxSizeError:function(e){return"Файл слишком большой. Максимально допустимый размер файла - ".concat(f(e))},acceptError:"Тип файла не разрешен",maxFileCount:function(e){return"Достигнуто максимальное количество файлов (".concat(e,")")}},N={defaultLabel:"Solte seus arquivos aqui ",uploadingMessage:function(e){return"Enviando ".concat(e," arquivos")},uploadFinished:function(e,n){return"Arquivos enviados: ".concat(e,", Arquivos rejeitados: ").concat(n)},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,n){return"Arquivos ".concat(e,"/").concat(n)}},fakeuploadsuccess:"O arquivo foi enviado com sucesso",fakeUploadError:"Erro ao enviar"},_={fullInfoLayer:{name:"Nome: ",size:"Tamanho: ",type:"Tipo: "},status:{preparing:"Preparando",uploading:"Enviando",success:"Êxito",valid:"válido",denied:"Negado",error:"Erro",aborted:"Abortado"}},M={maxSizeError:function(e){return"O arquivo é muito grande. O tamanho máximo de arquivo permitido é ".concat(f(e))},acceptError:"O tipo de arquivo não é permitido ",maxFileCount:function(e){return"Quantidade máxima de arquivos (".concat(e,") alcançada")}},R={defaultLabel:"将您的文件放在这里",uploadingMessage:function(e){return"上传 ".concat(e," 个文件")},uploadFinished:function(e,n){return"上传文件:".concat(e,",拒绝文件:").concat(n)},noFilesMessage:"没有缺少要加载的有效文件",footer:{acceptAll:"接受所有文件类型",acceptCustom:function(e){return"允许的类型: ".concat(e)}},header:{uploadFilesMessage:"上传文件",maxSizeMessage:function(e){return"最大文件大小:".concat(e)},validFilesMessage:function(e,n){return"文档 ".concat(e,"/").concat(n)}},fakeuploadsuccess:"文件已成功上传",fakeUploadError:"上传时出错"},D={fullInfoLayer:{name:"文档名称: ",size:"尺寸: ",type:"文件类型: "},status:{preparing:"预加载",uploading:"上传",success:"成功",valid:"接受的文件",denied:"被拒绝的文件",error:"错误",aborted:"中止"}},I={maxSizeError:function(e){return"文件太大。 允许的最大文件大小为 ".concat(f(e))},acceptError:"文件类型不允许",maxFileCount:function(e){return"已达到最大文件数 (".concat(e,")")}},L={defaultLabel:"把你的文件放在這裡 ",uploadingMessage:function(e){return"上傳".concat(e,"個文件")},uploadFinished:function(e,n){return"上傳文件: ".concat(e,", 拒絕的文件:").concat(n)},noFilesMessage:"沒有缺少要上傳的有效文件",footer:{acceptAll:"接受所有文件類型",acceptCustom:function(e){return"允許的類型:".concat(e)}},header:{uploadFilesMessage:"上傳文件",maxSizeMessage:function(e){return"最大文件大小:".concat(e)},validFilesMessage:function(e,n){return" 文件 ".concat(e,"/").concat(n)}},fakeuploadsuccess:"文件已成功上傳",fakeUploadError:"上傳時出錯"},A={fullInfoLayer:{name:"文檔名稱: ",size:"文件大小: ",type:"文件類型: "},status:{preparing:"預加載",uploading:"上傳",success:"成功",valid:"有效文件",denied:"無效文件",error:"錯誤",aborted:"中止"}},B={maxSizeError:function(e){return"文件太大。 允許的最大文件大小為 ".concat(f(e))},acceptError:"文件類型不允許",maxFileCount:function(e){return"已達到最大文件數 (".concat(e,")")}},j={"ES-es":F,"EN-en":y,"FR-fr":b,"IT-it":m,"PT-pt":_,"RU-ru":C,"ZH-cn":D,"ZH-hk":A},T=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"]}},U={"ES-es":E,"EN-en":x,"FR-fr":h,"IT-it":p,"PT-pt":N,"RU-ru":z,"ZH-cn":R,"ZH-hk":L},P=function(e){switch(e){case"ES-es":return U["ES-es"];case"EN-en":default:return U["EN-en"];case"FR-fr":return U["FR-fr"];case"IT-it":return U["IT-it"];case"PT-pt":return U["PT-pt"];case"RU-ru":return U["RU-ru"];case"ZH-cn":return U["ZH-cn"];case"ZH-hk":return U["ZH-hk"]}},O={"ES-es":k,"EN-en":w,"FR-fr":v,"IT-it":g,"PT-pt":M,"RU-ru":S,"ZH-cn":I,"ZH-hk":B},H=function(e){return e&&["ES-es","EN-en","FR-fr","IT-it","PT-pt","RU-ru","ZH-cn","ZH-hk"].includes(e)?O[e]:O["EN-en"]},V=function(e,n,t){return new Promise((function(a,i){try{var r=new FileReader;r.onprogress=function(){null==n||n()},r.onerror=function(){null==t||t()},r.onload=function(){a(r.result)},r.readAsDataURL(e)}catch(e){i(void 0)}}))};function q(e){return new Promise((function(n,t){if(e&&0!==e.length)try{var a=new Image;a.src=e,a.onerror=function(e){t("landscape")},a.onload=function(){var e=a.width,t=a.height;n(e>t?"landscape":"portrait")}}catch(e){"development"===process.env.NODE_ENV&&console.error("An error ocurred when trying to get the image orientation"),t("landscape")}else t("landscape")}))}var Z="https://user-images.githubusercontent.com/43678736/132086518-7026d4f1-ea16-4ed0-89fd-37c1aa8ac3ed.png",W="https://user-images.githubusercontent.com/43678736/132086519-863c63b4-917e-4471-94ff-7e15651cc14b.png",X="https://user-images.githubusercontent.com/43678736/132086520-9bc6aa3b-51c9-4da2-9ef7-349162b86d0b.png",G="https://user-images.githubusercontent.com/43678736/132086625-1b8f2652-1de0-4475-8c12-7da4a9973ffb.png",J="https://user-images.githubusercontent.com/43678736/132086666-ab3c505d-b2c0-4177-9a06-aed5d9c39ee4.png",K=function(e){var n=/(?:\.([^.]+))?$/.exec(e);return n?n[1]:""},Q="octet",Y=function(e){if(!e||!e.includes("/"))return Q;var n=e.split("/")[0],t=e.split("/")[1];switch(n){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":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";default:return Q}}(t);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 Q}}(t);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 Q}}(t);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 Q}}(t);case"image":return function(e){switch(e){case"bmp":return"bmp";case"gif":return"gif";case"jpg":case"jpeg":return"jpeg";case"png":return"png";case"tiff":return"tiff";case"webp":return"webp";default:return Q}}(t);case"font":return function(e){switch(e){case"otf":return"otf";case"ttf":return"ttf";case"woff":case"woff2":return"woff";default:return Q}}(t);default:return Q}},$=function(e){var n="octet";return e&&""!==e&&(e.includes("zip")||e.includes("rar")?n="zip":e.includes("doc")?n="docx":e.includes("xls")?n="xlsx":e.includes("drawio")?n="drawio":e.includes("psd")?n="psd":e.includes("csv")?n="csv":"jsx"===e?n="react":"py"===e?n="python":"vue"===e?n="vue":"java"===e?n="java":"ts"===e?n="typescript":"sass"!==e&&"scss"!==e||(n="sass")),n},ee=function(e){var n="text";return e&&""!==e&&("jsx"===e?n="react":"py"===e?n="python":"vue"===e?n="vue":"java"===e?n="java":"ts"===e||"tsx"===e?n="typescript":"js"===e?n="javascript":"xml"===e?n="xml":"php"===e&&(n="php")),n},ne=function(e,n){var t="fallBack";if(!e)return t=Q,(null==n?void 0:n.fallBack)?{url:null==n?void 0:n.fallBack,mimeResume:t}:{url:ae[t],mimeResume:t};t=Y(e.type);var a=K(e.name);"text"===t&&(t=ee(a)),t===Q&&(t=$(a));var i=null==n?void 0:n[t];return void 0!==i?{url:i,mimeResume:t}:{url:ae[t],mimeResume:t}},te=function(e,n,t){var a="octet";if(!e)return a=Q,(null==t?void 0:t.fallBack)?{url:null==t?void 0:t.fallBack,mimeResume:a}:{url:ae[a],mimeResume:a};a=Y(n);var i=K(e);"text"===a&&(a=ee(i)),a===Q&&(a=$(i));var r=null==t?void 0:t[a];return void 0!==r?{url:r,mimeResume:a}:{url:ae[a],mimeResume:a}},ae={aac:Z,accdb:X,abw:W,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:J,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:G,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:J,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:G,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",fallBack:J},ie=function(){function e(e){var n=e.id,t=e.file,a=e.name,i=e.size,r=e.type,o=e.imageUrl,l=e.valid,c=e.errors,s=e.uploadMessage,u=e.uploadStatus,d=e.progress,f=e.xhr,p=e.extraData,m=e.extraUploadData,g=e.serverResponse,h=e.downloadUrl,b=e.videoUrl;this.id=n,this.file=t,this.name=a,this.size=i,this.type=r,this.imageUrl=o,this.valid=l,this.errors=c,this.uploadStatus=u,this.uploadMessage=s,this.progress=d,this.xhr=f,this.extraData=p,this.extraUploadData=m,this.serverResponse=g,this.downloadUrl=h,this.videoUrl=b}return e.toExtFile=function(e){for(var n={},t=Object.keys(e),a=Object.values(e),i=0;i<a.length;i++){var r=a[i],o=t[i];void 0!==r&&(n[o]=r)}return n},e.prototype.toExtFile=function(){return e.toExtFile(this)},e}(),re=function(){return re=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},re.apply(this,arguments)};function oe(e,n,t,a){return new(t||(t=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,l)}c((a=a.apply(e,n||[])).next())}))}function le(e,n){var t,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&l[0]?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,a=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],a=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function ce(e,n,t){if(t||2===arguments.length)for(var a,i=0,r=n.length;i<r;i++)!a&&i in n||(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return e.concat(a||Array.prototype.slice.call(n))}var se=function(){function e(){}return e.getNextId=function(){return e.nextId++,e.nextId},e.setFileList=function(n,t){return n?(e.fileLists[n]=ce([],t,!0),n):0},e.createFileListMap=function(){var n=e.getNextId();return e.fileLists[n]=[],n},e.removeFileListMap=function(n){if(!n)return 0;try{return e.fileLists[n]=void 0,n}catch(e){return"development"===process.env.NODE_ENV&&console.error("Error on remove",e),0}},e.getExtFileInstanceList=function(n){try{if(!n)return;return e.fileLists[n]}catch(e){return void("development"===process.env.NODE_ENV&&console.error("Error on getExtFileInstanceList",e))}},e.setFileListMapPreparing=function(n,t,a,i){if("number"==typeof n||"string"==typeof n)try{var r,o=ce([],t,!0);i&&a&&(o=o.filter((function(e){return e.valid}))),r=(o=a?o.map((function(e){return"success"!==e.uploadStatus&&e.valid?re(re({},e),{uploadStatus:"preparing"}):re({},e)})):o.map((function(e){return"success"!==e.uploadStatus?re(re({},e),{uploadStatus:"preparing"}):re({},e)}))).map((function(e){return new ie(e)}));e.setFileList(n,r);return r}catch(e){return void("development"===process.env.NODE_ENV&&console.error("setFileListMapPreparing Error on get List",e))}},e.setFileListMapPreparing2=function(n,t,a,i){return e.setFileList(n,t.map((function(e){return new ie(re(re({},e),{uploadStatus:"preparing"}))}))),e.getExtFileInstanceList(n)},e.nextId=0,e.fileLists={},e}(),ue=function(){function e(){}return e.createFile=function(e,n,t){var a=new File([],e,{type:t});return Object.defineProperty(a,"size",{get:function(){return n}}),a},e.create_aac=function(n){return e.createFile("acc_audio-file-with-large-name.aac",n||3516516,"audio/aac")},e.create_abw=function(n){return e.createFile("abiword-file-with-large-name.abw",n||3516516,"application/x-abiword")},e.create_freearc=function(n){return e.createFile("freearc-file-with-large-name.arc",n||3516516,"application/x-freearc")},e.create_avi=function(n){return e.createFile("avi-file-with-large-name.avi",n||3516516,"video/x-msvideo")},e.create_azw=function(n){return e.createFile("amazon_kindle_ebook-file-with-large-name.azw",n||3516516,"application/vnd.amazon.ebook")},e.create_octet=function(n){return e.createFile("binary_octet_stream-file-with-large-name.bin",n||3516516,"application/octet-stream")},e.create_bmp=function(n){return e.createFile("bit_map-file-with-large-name.bmp",n||3516516,"image/bmp")},e.create_bz=function(n){return e.createFile("x_bzip-file-with-large-name.bz",n||3516516,"application/x-bzip")},e.create_bz2=function(n){return e.createFile("x_bzip_2-file-with-large-name.bz2",n||3516516,"application/x-bzip2")},e.create_cda=function(n){return e.createFile("cd_audio-file-with-large-name.cda",n||3516516,"application/x-cdf")},e.create_csh=function(n){return e.createFile("test-file-with-large-name.csh",n||3516516,"application/x-csh")},e.create_css=function(n){return e.createFile("test-file-with-large-name.css",n||3516516,"text/css")},e.create_csv=function(n){return e.createFile("test-file-with-large-name.csv",n||3516516,"text/csv")},e.create_doc=function(n){return e.createFile("test-file-with-large-name.doc",n||3516516,"application/msword")},e.create_docx=function(n){return e.createFile("test-file-with-large-name.docx",n||3516516,"application/vnd.openxmlformats-officedocument.wordprocessingml.document")},e.create_eot=function(n){return e.createFile("test-file-with-large-name.eot",n||3516516,"application/vnd.ms-fontobject")},e.create_epub=function(n){return e.createFile("test-file-with-large-name.epub",n||3516516,"application/epub+zip")},e.create_gzip=function(n){return e.createFile("test-file-with-large-name.gz",n||3516516,"application/gzip")},e.create_gif=function(n){return e.createFile("test-file-with-large-name.gif",n||3516516,"image/gif")},e.create_htm=function(n){return e.createFile("test-file-with-large-name.htm",n||3516516,"text/html")},e.create_html=function(n){return e.createFile("test-file-with-large-name.html",n||3516516,"text/html")},e.create_ico=function(n){return e.createFile("test-file-with-large-name.ico",n||3516516,"image/vnd.microsoft.icon")},e.create_icalendar=function(n){return e.createFile("test-file-with-large-name.ics",n||3516516,"text/calendar")},e.create_jar=function(n){return e.createFile("test-file-with-large-name.jar",n||3516516,"application/java-archive")},e.create_jpeg=function(n){return e.createFile("test-file-with-large-name.jpeg",n||3516516,"image/jpeg")},e.create_jpg=function(n){return e.createFile("test-file-with-large-name.jpg",n||3516516,"image/jpeg")},e.create_js=function(n){return e.createFile("test-file-with-large-name.js",n||3516516,"text/javascript")},e.create_json=function(n){return e.createFile("test-file-with-large-name.json",n||3516516,"application/json")},e.create_jsonld=function(n){return e.createFile("test-file-with-large-name.jsonld",n||3516516,"application/ld+json")},e.create_mid=function(n){return e.createFile("test-file-with-large-name.mid",n||3516516,"audio/midi")},e.create_x_mid=function(n){return e.createFile("test-file-with-large-name.mid",n||3516516,"audio/x-midi")},e.create_midi=function(n){return e.createFile("test-file-with-large-name.midi",n||3516516,"audio/x-midi")},e.create_x_midi=function(n){return e.createFile("test-file-with-large-name.midi",n||3516516,"audio/x-midi")},e.create_mjs=function(n){return e.createFile("test-file-with-large-name.mjs",n||3516516,"text/javascript")},e.create_mp3=function(n){return e.createFile("test-file-with-large-name.mp3",n||3516516,"audio/mpeg")},e.create_mp4=function(n){return e.createFile("test-file-with-large-name.mp4",n||3516516,"video/mp4")},e.create_mpeg=function(n){return e.createFile("test-file-with-large-name.mpeg",n||3516516,"video/mpeg")},e.create_mpkg=function(n){return e.createFile("test-file-with-large-name.mpkg",n||3516516,"application/vnd.apple.installer+xml")},e.create_odp=function(n){return e.createFile("test-file-with-large-name.odp",n||3516516,"application/vnd.oasis.opendocument.presentation")},e.create_ods=function(n){return e.createFile("test-file-with-large-name.ods",n||3516516,"application/vnd.oasis.opendocument.spreadsheet")},e.create_odt=function(n){return e.createFile("test-file-with-large-name.odt",n||3516516,"application/vnd.oasis.opendocument.text")},e.create_oga=function(n){return e.createFile("test-file-with-large-name.oga",n||3516516,"audio/ogg")},e.create_ogv=function(n){return e.createFile("test-file-with-large-name.ogv",n||3516516,"video/ogg")},e.create_ogx=function(n){return e.createFile("test-file-with-large-name.ogx",n||3516516,"application/ogg")},e.create_opus=function(n){return e.createFile("test-file-with-large-name.opus",n||3516516,"audio/opus")},e.create_otf=function(n){return e.createFile("test-file-with-large-name.otf",n||3516516,"font/otf")},e.create_png=function(n){return e.createFile("test-file-with-large-name.png",n||3516516,"image/png")},e.create_pdf=function(n){return e.createFile("test-file-with-large-name.pdf",n||3516516,"application/pdf")},e.create_php=function(n){return e.createFile("test-file-with-large-name.php",n||3516516,"application/x-httpd-php")},e.create_ppt=function(n){return e.createFile("test-file-with-large-name.ppt",n||3516516,"application/vnd.ms-powerpoint")},e.create_pptx=function(n){return e.createFile("test-file-with-large-name.pptx",n||3516516,"application/vnd.openxmlformats-officedocument.presentationml.presentation")},e.create_rar=function(n){return e.createFile("test-file-with-large-name.rar",n||3516516,"application/vnd.rar")},e.create_rtf=function(n){return e.createFile("test-file-with-large-name.rtf",n||3516516,"application/rtf")},e.create_sh=function(n){return e.createFile("test-file-with-large-name.sh",n||3516516,"application/x-sh")},e.create_svg=function(n){return e.createFile("test-file-with-large-name.svg",n||3516516,"image/svg+xml")},e.create_swf=function(n){return e.createFile("test-file-with-large-name.swf",n||3516516,"application/x-shockwave-flash")},e.create_tar=function(n){return e.createFile("test-file-with-large-name.tar",n||3516516,"application/x-tar")},e.create_tif=function(n){return e.createFile("test-file-with-large-name.tif",n||3516516,"image/tiff")},e.create_tiff=function(n){return e.createFile("test-file-with-large-name.tiff",n||3516516,"image/tiff")},e.create_ts=function(n){return e.createFile("mp2t_video-file-with-large-name.ts",n||3516516,"video/mp2t")},e.create_ttf=function(n){return e.createFile("test-file-with-large-name.ttf",n||3516516,"font/ttf")},e.create_text=function(n){return e.createFile("test-file-with-large-name.txt",n||3516516,"text/plain")},e.create_typescript=function(n){return e.createFile("typescript-file-with-large-name.ts",n||3516516,"text/plain")},e.create_vsd=function(n){return e.createFile("ms_visio-file-with-large-name.vsd",n||3516516,"application/vnd.visio")},e.create_wav=function(n){return e.createFile("wav_audio-file-with-large-name.wav",n||3516516,"audio/wav")},e.create_weba=function(n){return e.createFile("web_audio-file-with-large-name.weba",n||3516516,"audio/webm")},e.create_webm=function(n){return e.createFile("web_video-file-with-large-name.webm",n||3516516,"video/webm")},e.create_webp=function(n){return e.createFile("web_image-file-with-large-name.webp",n||3516516,"image/webp")},e.create_woff=function(n){return e.createFile("test-file-with-large-name.woff",n||3516516,"font/woff")},e.create_woff2=function(n){return e.createFile("test-file-with-large-name.woff2",n||3516516,"font/woff2")},e.create_xhtml=function(n){return e.createFile("test-file-with-large-name.xhtml",n||3516516,"application/xhtml+xml")},e.create_xlsx=function(n){return e.createFile("test-file-with-large-name.xls",n||3516516,"application/vnd.ms-excel")},e.create_xls=function(n){return e.createFile("test-file-with-large-name.xlsx",n||3516516,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")},e.create_xml=function(n){return e.createFile("xml-file-with-large-name.xml",n||3516516,"application/xml")},e.create_xml_txt=function(n){return e.createFile("xml_plain_text-file-with-large-name.xml",n||3516516,"application/xml")},e.create_xul=function(n){return e.createFile("test-file-with-large-name.xul",n||3516516,"application/vnd.mozilla.xul+xml")},e.create_zip=function(n){return e.createFile("zip-file-with-large-name.zip",n||3516516,"application/zip")},e.create_3gp=function(n){return e.createFile("3gp_video-file-with-large-name.3gp",n||3516516,"video/3gpp")},e.create_3gp2=function(n){return e.createFile("3gp2_video-file-with-large-name.3g2",n||3516516,"video/3gpp2")},e.create_3gp_a=function(n){return e.createFile("3gp_audio-file-with-large-name.3gp",n||3516516,"audio/3gpp")},e.create_3gp_v=function(n){return e.createFile("3gp_audio-file-with-large-name.3gp2",n||3516516,"audio/3gpp2")},e.create_7z=function(n){return e.createFile("seven_zip-file-with-large-name.7z",n||3516516,"application/x-7z-compressed")},e.create_python=function(n){return e.createFile("python-file-with-large-name.py",n||3516516,"text/plain")},e.create_java=function(n){return e.createFile("java-file-with-large-name.java",n||3516516,"text/plain")},e.create_react=function(n){return e.createFile("react_jsx-file-with-large-name.jsx",n||3516516,"text/plain")},e.create_vue=function(n){return e.createFile("vue-file-with-large-name.vue",n||3516516,"text/plain")},e.createFileListMiscelanious=function(n){var t=[];return t.push(e.create_aac(n)),t.push(e.create_abw(n)),t.push(e.create_freearc(n)),t.push(e.create_avi(n)),t.push(e.create_azw(n)),t.push(e.create_octet(n)),t.push(e.create_bmp(n)),t.push(e.create_bz(n)),t.push(e.create_bz2(n)),t.push(e.create_cda(n)),t.push(e.create_csh(n)),t.push(e.create_css(n)),t.push(e.create_csv(n)),t.push(e.create_doc(n)),t.push(e.create_docx(n)),t.push(e.create_eot(n)),t.push(e.create_epub(n)),t.push(e.create_gzip(n)),t.push(e.create_gif(n)),t.push(e.create_htm(n)),t.push(e.create_html(n)),t.push(e.create_ico(n)),t.push(e.create_icalendar(n)),t.push(e.create_jar(n)),t.push(e.create_jpeg(n)),t.push(e.create_jpg(n)),t.push(e.create_js(n)),t.push(e.create_json(n)),t.push(e.create_jsonld(n)),t.push(e.create_mid(n)),t.push(e.create_midi(n)),t.push(e.create_x_mid(n)),t.push(e.create_x_midi(n)),t.push(e.create_mjs(n)),t.push(e.create_mp3(n)),t.push(e.create_mp4(n)),t.push(e.create_mpeg(n)),t.push(e.create_mpkg(n)),t.push(e.create_odp(n)),t.push(e.create_ods(n)),t.push(e.create_odt(n)),t.push(e.create_oga(n)),t.push(e.create_ogv(n)),t.push(e.create_ogx(n)),t.push(e.create_opus(n)),t.push(e.create_otf(n)),t.push(e.create_png(n)),t.push(e.create_pdf(n)),t.push(e.create_php(n)),t.push(e.create_ppt(n)),t.push(e.create_pptx(n)),t.push(e.create_rar(n)),t.push(e.create_rtf(n)),t.push(e.create_sh(n)),t.push(e.create_svg(n)),t.push(e.create_swf(n)),t.push(e.create_tar(n)),t.push(e.create_tif(n)),t.push(e.create_tiff(n)),t.push(e.create_ts(n)),t.push(e.create_ttf(n)),t.push(e.create_text(n)),t.push(e.create_typescript(n)),t.push(e.create_vsd(n)),t.push(e.create_wav(n)),t.push(e.create_weba(n)),t.push(e.create_webm(n)),t.push(e.create_webp(n)),t.push(e.create_woff(n)),t.push(e.create_woff2(n)),t.push(e.create_xhtml(n)),t.push(e.create_xlsx(n)),t.push(e.create_xls(n)),t.push(e.create_xml(n)),t.push(e.create_xml_txt(n)),t.push(e.create_xul(n)),t.push(e.create_zip(n)),t.push(e.create_python(n)),t.push(e.create_java(n)),t.push(e.create_react(n)),t.push(e.create_vue(n)),t},e}(),de=function(e,n,t){return void 0===e&&(e="png-image-file-with-large-name.png"),void 0===n&&(n=455555),void 0===t&&(t="image/png"),ue.createFile(e,n,t)},fe=function(){function e(){}return e.getNextId=function(){return e.nextId++,e.nextId},e.nextId=0,e}(),pe=function(e){for(var n=[],t=0,a=void 0;a=e[t];t++)n.push({id:fe.getNextId(),file:a,name:a.name,size:a.size,type:a.type});return n},me=function(e,n,t,a){return null!=e||null!=n||null!=t||null!=a},ge=function(e,n){void 0===e&&(e=""),void 0===n&&(n=!1);var t=e;return n?e.length>=20&&(t=e.slice(0,10)+"..."+e.slice(-7)):e.length>=30&&(t=e.slice(0,13)+"..."+e.slice(-8)),t},he=function(e){return void 0===e&&(e=5e3),new Promise((function(n,t){setTimeout((function(){n()}),e)}))},be=function(e,n){void 0===n&&(n=P("EN-en"));var t=e.toExtFile();return new Promise((function(e,a){setTimeout((function(){if(Math.floor(10*Math.random())%2==0){var a=!0,i=n.fakeuploadsuccess,r={url:""};e(re(re({},t),{serverResponse:{success:a,message:i,payload:r},uploadStatus:"success",uploadMessage:i}))}else{a=!1,i=n.fakeUploadError,r={};e(re(re({},t),{serverResponse:{success:a,message:i,payload:r},uploadStatus:"error",uploadMessage:i}))}}),1700)}))};function ve(e,n){return void 0===e&&(e=0),void 0===n&&(n=0),Math.floor(Math.random()*(n-e))+e}var xe=function(e){e&&(e.value="")},ye=function(e,n){return n?"".concat(e," ").concat(n):e},we=function(e,n){return(!n||n&&e.valid)&&"success"!==e.uploadStatus},Ee=function(e,n,t,a){var i="",r=void 0,o=void 0;return e&&"string"==typeof e.name?(i=e.name,r=e.type,o=e.size):n&&"string"==typeof n&&(i=n,r=t,o=a),[i,r,o]},Fe=function(e){return e&&0!==e.length?e.split(",").map((function(e){return e.trim()})):[]},ke=function(e,n){for(var t=n.name,a=n.type,i=0;i<e.length;i++){var r=e[i];if(0!==r.length){if("."===r.charAt(0)&&r.includes(K(t)))return!0;if(a&&a.length>0&&r.includes("/")&&a.includes("/")){var o=r.split("/")[0],l=r.split("/")[1],c=a.split("/")[0],s=a.split("/")[1];if(o===c){if("*"===l)return!0;if(l===s)return!0}}}}return!1},ze=function(e,n,t,a,i,r){var o=[];if(!n)return o;for(var l=n,c=H(r),s=c.maxFileCount,u=0;u<e.length;u++){var d=e[u];if((d=Ce(d,a,t,c)).valid){var f=l>0;d.valid=f,f||(d.errors=d.errors?ce(ce([],d.errors,!0),[s(i||1/0)],!1):[s(i||1/0)]),l--}o.push(d)}return o},Ce=function(e,n,t,a){var i=re({},e),r=[];if(!e.file)return re({},i);if(n){var o=n(i.file).errors;o&&r.push.apply(r,o)}var l=t.maxFileSize,c=t.accept,s=e.file;if(l&&s.size>l){var u=a.maxSizeError;r.push(u(l))}c&&!ke(Fe(c),s)&&r.push(a.acceptError);var d=0===r.length;return i=re(re({},i),{valid:d,errors:d?void 0:r})},Se=function(e,n,t,a){var i=fe.getNextId(),r=[];if(n)return re({id:i,file:e},n(e));var o=t.maxFileSize,l=t.accept;if(o&&e.size>o){var c=a.maxSizeError;r.push(c(o))}return l&&!ke(Fe(l),e)&&r.push(a.acceptError),{id:i,file:e,valid:0===r.length,errors:r}},Ne=["File is too big. Max file size allowed is 80mb.","File's type is not allowed.","Max amount of files (28) has been reached."];function _e(e,n){for(var t=Object.keys(n||{}),a=0;a<t.length&&n;a++)e.append(t[a],n[t[a]])}function Me(e,n){for(var t=Object.keys(n||{}),a=0;a<t.length&&n;a++)e.setRequestHeader(t[a],n[t[a]])}var Re={success:!1,message:"Timeout error",payload:{}},De={success:!1,message:"Upload aborted",payload:{}},Ie={success:!1,message:"Error when parsing JSON response",payload:{}},Le={success:!1,message:"Unexpected error",payload:{}},Ae=function(e){return re(re({},e),{uploadMessage:"Unable to upload. xhr object was not provided",uploadStatus:"error",serverResponse:{success:!1}})},Be=function(e){try{var n=JSON.parse(e.response),t=n.success,a=n.message;return{success:"boolean"==typeof t&&t,message:"string"==typeof a?a:"Error on message response",payload:n.payload||{}}}catch(e){return Ie}},je=function(e,n){return re(re({},e),{serverResponse:n,uploadMessage:n.message,uploadStatus:"success"})},Te=function(e,n){return re(re({},e),{uploadMessage:n.message,uploadStatus:"error",serverResponse:n})},Ue=function(e,n,t,a,i){return void 0===n&&(n="POST"),new Promise((function(r,o){var l=["POST","PUT","PATCH"].includes(n.toUpperCase())?n:"POST";e.upload.onload=function(){},e.upload.ontimeout=function(){return r(Re)},e.upload.onabort=function(){r(De)},e.onloadend=function(e){return oe(void 0,void 0,void 0,(function(){return le(this,(function(e){return[2]}))}))},e.onreadystatechange=function(n){return oe(void 0,void 0,void 0,(function(){return le(this,(function(n){return 4===e.readyState&&(""!==e.response?r(Be(e)):r(De)),[2]}))}))},e.open(l,t,!0),Me(e,i),e.send(a)}))},Pe=function(e,n,t,a,i){return oe(void 0,void 0,void 0,(function(){return le(this,(function(r){return[2,new Promise((function(r,o){return oe(void 0,void 0,void 0,(function(){var o,l,c,s,u,d;return le(this,(function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),(o=e.xhr)?(l=t||"POST",c=e.file,(s=new FormData).append(i||"file",c),u=re({},e.extraUploadData),_e(s,u),d=void 0,[4,Ue(o,l,n,s,a||{})]):(r(Ae(e)),[2]);case 1:return(d=f.sent()).success?r(je(e,d)):r(Te(e,d)),[3,3];case 2:return f.sent(),r(Te(e,Le)),[3,3];case 3:return[2]}}))}))}))]}))}))};var Oe=function(e){return re(re({},e),{uploadMessage:"Unexpected error",uploadStatus:"error",serverResponse:{success:!1,message:"Error on upload: unexpected error ",payload:{}}})},He=function(e){return e?e.map((function(e){return re(re({},e),{xhr:new XMLHttpRequest})})):[]},Ve=function(e){return"preparing"===e.uploadStatus?(e.uploadStatus="uploading",re(re({},e),{uploadStatus:"uploading"})):e},qe=function(e){return void 0===e&&(e=1500),new Promise((function(n,t){setTimeout((function(){n(!0)}),e)}))},Ze=function(e){return e.filter((function(e){var n;return!(null===(n=e.extraData)||void 0===n?void 0:n.deleted)})).map((function(e){return"aborted"!==e.uploadStatus||e.uploadMessage||(e.uploadMessage="Upload aborted by user"),ie.toExtFile(e)}))},We=function(e,n){var t=e.uploadStatus,a=n.uploadStatus;"preparing"===t&&["aborted",void 0].includes(a)?(e.uploadStatus=void 0,e.uploadMessage=n.uploadMessage):"uploading"===t&&["aborted",void 0].includes(a)&&(e.uploadStatus="aborted",e.uploadMessage=n.uploadMessage)},Xe={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"},Ge=function(e,n){void 0===n&&(n=25);var t="",a=(100-n)/100,i=0,r=0,o=0;if(Ke(Qe(e)))i=16*en(e.charAt(1))+en(e.charAt(2)),r=16*en(e.charAt(3))+en(e.charAt(4)),o=16*en(e.charAt(5))+en(e.charAt(6)),t="rgb(".concat(i*a,", ").concat(r*a,",").concat(o*a,")");else if(e.includes("rgba")){var l=e.replace("rgba(","").split(",");t="rgb(".concat(parseInt(l[0],10)*a,", ").concat(parseInt(l[1],10)*a,",").concat(parseInt(l[2],10)*a,")")}else if(e.includes("rgb")){l=e.r