@abtnode/webapp 1.16.24 → 1.16.25-beta-fe54d1bc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +1 -1
  2. package/blocklet.js +1 -1
  3. package/blocklet.yml +1 -1
  4. package/build/asset-manifest.json +22 -22
  5. package/build/index.html +1 -1
  6. package/build/service-worker.js +1 -1
  7. package/build/static/js/{1059.04403ac6.chunk.js → 1059.47c68713.chunk.js} +1 -1
  8. package/build/static/js/{1575.23c59d43.chunk.js → 1575.7c51888f.chunk.js} +1 -1
  9. package/build/static/js/{2019.aeb81cec.chunk.js → 2019.b2fd5835.chunk.js} +1 -1
  10. package/build/static/js/{233.17b4abe4.chunk.js → 233.6633c4f0.chunk.js} +1 -1
  11. package/build/static/js/{318.3075b48e.chunk.js → 318.169a3e69.chunk.js} +2 -2
  12. package/build/static/js/{3674.cbc6d802.chunk.js → 3674.c701bb70.chunk.js} +2 -2
  13. package/build/static/js/{3803.98a690a5.chunk.js → 3803.c0312e3c.chunk.js} +1 -1
  14. package/build/static/js/{3930.5e6cc374.chunk.js → 3930.bfa70d11.chunk.js} +1 -1
  15. package/build/static/js/{4423.15ad2bdc.chunk.js → 4423.bd20b413.chunk.js} +1 -1
  16. package/build/static/js/{4465.35605c67.chunk.js → 4465.0f74e0ab.chunk.js} +1 -1
  17. package/build/static/js/4550.af6850d6.chunk.js +1 -0
  18. package/build/static/js/{5672.a17eafba.chunk.js → 5672.066bb632.chunk.js} +1 -1
  19. package/build/static/js/{5748.7c8cbfe3.chunk.js → 5748.2d3e72b1.chunk.js} +1 -1
  20. package/build/static/js/{6906.2ffc3260.chunk.js → 6906.44480f01.chunk.js} +1 -1
  21. package/build/static/js/{6944.15144834.chunk.js → 6944.4c8d8699.chunk.js} +1 -1
  22. package/build/static/js/7022.f6c43a8f.chunk.js +1 -0
  23. package/build/static/js/{8170.3901a03b.chunk.js → 8170.7bcdd129.chunk.js} +1 -1
  24. package/build/static/js/{8590.637663f8.chunk.js → 8590.f6ea2144.chunk.js} +1 -1
  25. package/build/static/js/{9132.cb895073.chunk.js → 9132.edb81af8.chunk.js} +1 -1
  26. package/build/static/js/{9586.73537daa.chunk.js → 9586.ce440947.chunk.js} +1 -1
  27. package/build/static/js/main.0aca0cd7.js +2 -0
  28. package/package.json +1 -1
  29. package/build/static/js/2334.fc389087.chunk.js +0 -1
  30. package/build/static/js/7022.6a2b1919.chunk.js +0 -1
  31. package/build/static/js/main.1b19d449.js +0 -2
  32. /package/build/static/js/{318.3075b48e.chunk.js.LICENSE.txt → 318.169a3e69.chunk.js.LICENSE.txt} +0 -0
  33. /package/build/static/js/{3674.cbc6d802.chunk.js.LICENSE.txt → 3674.c701bb70.chunk.js.LICENSE.txt} +0 -0
  34. /package/build/static/js/{main.1b19d449.js.LICENSE.txt → main.0aca0cd7.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 3674.cbc6d802.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[3674],{87806:(e,t,i)=>{"use strict";t.Z=void 0;(n=i(5057))&&n.__esModule;var n,a=i(96266);function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var l=function(e){return(0,a.jsx)("svg",s(s({},e),{},{children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0zM10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5zM8.03 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 1 0 1.06-1.06l-5-5z"})}))};l.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},l.displayName="revoke";t.Z=l},84804:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Uploader:()=>n.Uploader,UploaderContext:()=>c,UploaderProvider:()=>d,UploaderTrigger:()=>u,initUploader:()=>n.initUploader,useUploaderContext:()=>p});var n=i(32892),a=i(96266),o=i(39948),s=i(5057),r=i(53627);const l=(0,s.lazy)((()=>Promise.resolve().then(i.bind(i,32892)).then((e=>({default:e.Uploader}))))),c=(0,s.createContext)(null);function p(){const e=(0,s.useContext)(c);if(!e)throw new Error("useUploaderContext must be used within an UploaderProvider");return e}function u(e){let{onChange:t,children:i,...n}=e;const s=p();return(0,a.jsx)(o.Z,{onClick:()=>{var e;const i=null===s||void 0===s||null===(e=s.current)||void 0===e?void 0:e.getUploader();null===i||void 0===i||i.open(),t&&i.onceUploadSuccess((function(){t(...arguments)}))},...n,children:i})}function d(e){let{children:t,...i}=e;const n=(0,s.useRef)(null);return(0,a.jsxs)(c.Provider,{value:n,children:[t,(0,r.createPortal)((0,a.jsx)(l,{ref:n,popup:!0,...i},"uploader"),document.body)]})}},32892:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Uploader:()=>gm,default:()=>vm,initUploader:()=>fm});var n={};i.r(n),i.d(n,{getItem:()=>Qt,removeItem:()=>$t,setItem:()=>Jt});var a=i(96266),o=i(96056),s=i.n(o),r=i(12673),l=i(82073),c=i(5057),p=i(99678),u=i(74965),d=i(67680),h=i(39948),m=i(15715);const f=(0,i(57471).Z)((0,a.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.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"}),"CancelOutlined");function g(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var v=0;function b(e){return"__private_"+v+++"_"+e}function y(e,t,i){const n=[];return e.forEach((e=>"string"!==typeof e?n.push(e):t[Symbol.split](e).forEach(((e,t,a)=>{""!==e&&n.push(e),t<a.length-1&&n.push(i)})))),n}function x(e,t){const i=/\$/g;let n=[e];if(null==t)return n;for(const a of Object.keys(t))if("_"!==a){let e=t[a];"string"===typeof e&&(e=i[Symbol.replace](e,"$$$$")),n=y(n,new RegExp("%\\{".concat(a,"\\}"),"g"),e)}return n}const w=e=>{throw new Error("missing string: ".concat(e))};var P=b("onMissingKey"),S=b("apply");class k{constructor(e,t){let{onMissingKey:i=w}=void 0===t?{}:t;Object.defineProperty(this,S,{value:_}),Object.defineProperty(this,P,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(g(this,S)[S],this):g(this,S)[S](e),g(this,P)[P]=i}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let i=this.locale.strings[e];null==i&&(g(this,P)[P](e),i=e);if("object"===typeof i){if(t&&"undefined"!==typeof t.smart_count){return x(i[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if("string"!==typeof i)throw new Error("string was not a string");return x(i,t)}}function _(e){if(null==e||!e.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}var C=i(29480);let F=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e};var T=i(8406);function O(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var E=0;function D(e){return"__private_"+E+++"_"+e}var R=D("callbacks"),U=D("publish");class I{constructor(){Object.defineProperty(this,U,{value:j}),this.state={},Object.defineProperty(this,R,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},i={...this.state,...e};this.state=i,O(this,U)[U](t,i,e)}subscribe(e){return O(this,R)[R].add(e),()=>{O(this,R)[R].delete(e)}}}function j(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];O(this,R)[R].forEach((e=>{e(...t)}))}I.VERSION="3.2.2";const A=I;function N(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const B={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function M(e){var t;if(e.type)return e.type;const i=e.name?null==(t=N(e.name).extension)?void 0:t.toLowerCase():null;return i&&i in B?B[i]:"application/octet-stream"}function L(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+="-".concat(function(e){return e.charCodeAt(0).toString(32)}(e)),"/")))+t}function z(e){if(function(e){return!(!e.isRemote||!e.remote)&&new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}(e))return e.id;const t=M(e);return function(e){let t="uppy";return"string"===typeof e.name&&(t+="-".concat(L(e.name.toLowerCase()))),void 0!==e.type&&(t+="-".concat(e.type)),e.meta&&"string"===typeof e.meta.relativePath&&(t+="-".concat(L(e.meta.relativePath.toLowerCase()))),void 0!==e.data.size&&(t+="-".concat(e.data.size)),void 0!==e.data.lastModified&&(t+="-".concat(e.data.lastModified)),t}({...e,type:t})}function q(e){if(null==e&&"undefined"!==typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const i=t[1].split(".",2),n=parseInt(i[0],10),a=parseInt(i[1],10);return n<15||15===n&&a<15063||(n>18||18===n&&a>=18218)}function H(e){return e<10?"0".concat(e):e.toString()}function W(){const e=new Date,t=H(e.getHours()),i=H(e.getMinutes()),n=H(e.getSeconds());return"".concat(t,":").concat(i,":").concat(n)}const V={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.error("[Uppy] [".concat(W(),"]"),...t)}},G={debug:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.debug("[Uppy] [".concat(W(),"]"),...t)},warn:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.warn("[Uppy] [".concat(W(),"]"),...t)},error:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.error("[Uppy] [".concat(W(),"]"),...t)}};var K=i(80422),X=i(2763);const Y={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Z extends Error{constructor(e,t){var i;super(e),this.isRestriction=!0,this.isUserFacing=null==(i=null==t?void 0:t.isUserFacing)||i,null!=t&&t.file&&(this.file=t.file)}}class J{constructor(e,t){this.i18n=t,this.getOpts=()=>{var t;const i=e();if(null!=(null==(t=i.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(i.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return i}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:i,maxNumberOfFiles:n}=this.getOpts().restrictions;if(n){const i=e.filter((e=>!e.isGhost));if(i.length+t.length>n)throw new Z("".concat(this.i18n("youCanOnlyUploadX",{smart_count:n})))}if(i){let n=e.reduce(((e,t)=>{var i;return e+(null!=(i=t.size)?i:0)}),0);for(const e of t)if(null!=e.size&&(n+=e.size,n>i))throw new Z(this.i18n("exceedsSize",{size:K(i),file:e.name}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:i,allowedFileTypes:n}=this.getOpts().restrictions;if(n){if(!n.some((t=>t.includes("/")?!!e.type&&X(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const t=n.join(", ");throw new Z(this.i18n("youCanOnlyUploadFileTypes",{types:t}),{file:e})}}if(t&&null!=e.size&&e.size>t)throw new Z(this.i18n("exceedsSize",{size:K(t),file:e.name}),{file:e});if(i&&null!=e.size&&e.size<i)throw new Z(this.i18n("inferiorSize",{size:K(i)}),{file:e})}validate(e,t){t.forEach((e=>{this.validateSingleFile(e)})),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length<t)throw new Z(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new Z(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:i}=this.getOpts().restrictions,n=[];for(const a of i)Object.hasOwn(e.meta,a)&&""!==e.meta[a]||n.push(a);return{missingFields:n,error:t}}}const Q={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled"}};let $,ee;function te(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ie=0;function ne(e){return"__private_"+ie+++"_"+e}const ae={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var oe=ne("plugins"),se=ne("restricter"),re=ne("storeUnsubscribe"),le=ne("emitter"),ce=ne("preProcessors"),pe=ne("uploaders"),ue=ne("postProcessors"),de=ne("informAndEmit"),he=ne("checkRequiredMetaFieldsOnFile"),me=ne("checkRequiredMetaFields"),fe=ne("assertNewUploadAllowed"),ge=ne("transformFile"),ve=ne("startIfAutoProceed"),be=ne("checkAndUpdateFileState"),ye=ne("addListeners"),xe=ne("updateOnlineStatus"),we=ne("requestClientById"),Pe=ne("createUpload"),Se=ne("getUpload"),ke=ne("removeUpload"),_e=ne("runUpload");$=Symbol.for("uppy test: getPlugins"),ee=Symbol.for("uppy test: createUpload");class Ce{constructor(e){Object.defineProperty(this,_e,{value:Be}),Object.defineProperty(this,ke,{value:Ne}),Object.defineProperty(this,Se,{value:Ae}),Object.defineProperty(this,Pe,{value:je}),Object.defineProperty(this,ye,{value:Ie}),Object.defineProperty(this,be,{value:Ue}),Object.defineProperty(this,ve,{value:Re}),Object.defineProperty(this,ge,{value:De}),Object.defineProperty(this,fe,{value:Ee}),Object.defineProperty(this,me,{value:Oe}),Object.defineProperty(this,he,{value:Te}),Object.defineProperty(this,de,{value:Fe}),Object.defineProperty(this,oe,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,se,{writable:!0,value:void 0}),Object.defineProperty(this,re,{writable:!0,value:void 0}),Object.defineProperty(this,le,{writable:!0,value:C()}),Object.defineProperty(this,ce,{writable:!0,value:new Set}),Object.defineProperty(this,pe,{writable:!0,value:new Set}),Object.defineProperty(this,ue,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=T(((e,t)=>{const i=this.getFile(null==e?void 0:e.id);if(null==e||!i)return void this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id));if(100===i.progress.percentage)return void this.log("Not setting progress for a file that has been already uploaded: ".concat(e.id));const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...i.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}),500,{leading:!0,trailing:!0}),Object.defineProperty(this,xe,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,we,{writable:!0,value:new Map}),this.defaultLocale=Q;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:Y,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new A,logger:V,infoTimeout:5e3},i={...t,...e};this.opts={...i,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=G),this.log("Using Core v".concat(Ce.VERSION)),this.i18nInit(),this.store=this.opts.store,this.setState({...ae,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:q(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),te(this,se)[se]=new J((()=>this.opts),this.i18n),te(this,re)[re]=this.store.subscribe(((e,t,i)=>{this.emit("state-update",e,t,i),this.updateAll(t)})),this.opts.debug&&"undefined"!==typeof window&&(window[this.opts.id]=this),te(this,ye)[ye]()}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];te(this,le)[le].emit(e,...i)}on(e,t){return te(this,le)[le].on(e,t),this}once(e,t){return te(this,le)[le].once(e,t),this}off(e,t){return te(this,le)[le].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}patchFilesState(e){const t=this.getState().files;this.setState({files:{...t,...Object.fromEntries(Object.entries(e).map((e=>{let[i,n]=e;return[i,{...t[i],...n}]})))}})}setFileState(e,t){if(!this.getState().files[e])throw new Error("Can\u2019t set state for ".concat(e," (the file could have been removed)"));this.patchFilesState({[e]:t})}i18nInit(){const e=new k([this.defaultLocale,this.opts.locale],{onMissingKey:e=>this.log("Missing i18n string: ".concat(e),"error")});this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...null==e?void 0:e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((t=>{t.setOptions(e)})),this.setState(void 0)}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},i={};Object.keys(t).forEach((n=>{i[n]={...t[n],progress:{...t[n].progress,...e}}})),this.setState({files:i,...ae}),this.emit("reset-progress")}clearUploadedFiles(){this.setState({...ae,files:{}})}addPreProcessor(e){te(this,ce)[ce].add(e)}removePreProcessor(e){return te(this,ce)[ce].delete(e)}addPostProcessor(e){te(this,ue)[ue].add(e)}removePostProcessor(e){return te(this,ue)[ue].delete(e)}addUploader(e){te(this,pe)[pe].add(e)}removeUploader(e){return te(this,pe)[pe].delete(e)}setMeta(e){const t={...this.getState().meta,...e},i={...this.getState().files};Object.keys(i).forEach((t=>{i[t]={...i[t],meta:{...i[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:i})}setFileMeta(e,t){const i={...this.getState().files};if(!i[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const n={...i[e].meta,...t};i[e]={...i[e],meta:n},this.setState({files:i})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getFilesByIds(e){return e.map((e=>this.getFile(e)))}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:i}=this.getState(),n=Object.values(e),a=n.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),o=n.filter((e=>!e.progress.uploadStarted)),s=n.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),r=n.filter((e=>e.progress.uploadStarted)),l=n.filter((e=>e.isPaused)),c=n.filter((e=>e.progress.uploadComplete)),p=n.filter((e=>e.error)),u=a.filter((e=>!e.isPaused)),d=n.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:o,startedFiles:s,uploadStartedFiles:r,pausedFiles:l,completeFiles:c,erroredFiles:p,inProgressFiles:a,inProgressNotPausedFiles:u,processingFiles:d,isUploadStarted:r.length>0,isAllComplete:100===t&&c.length===n.length&&0===d.length,isAllErrored:!!i&&p.length===n.length,isAllPaused:0!==a.length&&l.length===a.length,isUploadInProgress:a.length>0,isSomeGhost:n.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{te(this,se)[se].validate(t,[e])}catch(i){return i}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){te(this,fe)[fe](e);const{nextFilesState:t,validFilesToAdd:i,errors:n}=te(this,be)[be]([e]),a=n.filter((e=>e.isRestriction));if(te(this,de)[de](a),n.length>0)throw n[0];this.setState({files:t});const[o]=i;return this.emit("file-added",o),this.emit("files-added",i),this.log("Added file: ".concat(o.name,", ").concat(o.id,", mime type: ").concat(o.type)),te(this,ve)[ve](),o.id}addFiles(e){te(this,fe)[fe]();const{nextFilesState:t,validFilesToAdd:i,errors:n}=te(this,be)[be](e),a=n.filter((e=>e.isRestriction));te(this,de)[de](a);const o=n.filter((e=>!e.isRestriction));if(o.length>0){let e="Multiple errors occurred while adding files:\n";if(o.forEach((t=>{e+="\n * ".concat(t.message)})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:e},"error",this.opts.infoTimeout),"function"===typeof AggregateError)throw new AggregateError(o,e);{const t=new Error(e);throw t.errors=o,t}}this.setState({files:t}),i.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",i),i.length>5?this.log("Added batch of ".concat(i.length," files")):Object.values(i).forEach((e=>{this.log("Added file: ".concat(e.name,"\n id: ").concat(e.id,"\n type: ").concat(e.type))})),i.length>0&&te(this,ve)[ve]()}removeFiles(e,t){const{files:i,currentUploads:n}=this.getState(),a={...i},o={...n},s=Object.create(null);function r(e){return void 0===s[e]}e.forEach((e=>{i[e]&&(s[e]=i[e],delete a[e])})),Object.keys(o).forEach((e=>{const t=n[e].fileIDs.filter(r);if(0===t.length)return void delete o[e];const{capabilities:i}=this.getState();if(t.length!==n[e].fileIDs.length&&!i.individualCancellation)throw new Error("individualCancellation is disabled");o[e]={...n[e],fileIDs:t}}));const l={currentUploads:o,files:a};0===Object.keys(a).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach((e=>{this.emit("file-removed",s[e],t)})),c.length>5?this.log("Removed ".concat(c.length," files")):this.log("Removed files: ".concat(c.join(", ")))}removeFile(e,t){this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).progress.uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const i={...e[t],isPaused:!0};e[t]=i})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const i={...e[t],isPaused:!1,error:null};e[t]=i})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const i={...e[t],isPaused:!1,error:null};e[t]=i})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const i=te(this,Pe)[Pe](t,{forceAllowNewUpload:!0});return te(this,_e)[_e](i)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState(ae)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=te(this,Pe)[Pe]([e],{forceAllowNewUpload:!0});return te(this,_e)[_e](t)}logout(){this.iteratePlugins((e=>{var t;null==(t=e.provider)||null==t.logout||t.logout()}))}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),i=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,n=i.reduce(((e,t)=>e+t.progress.percentage),0),a=Math.round(n/t*100);return void this.setState({totalProgress:a})}let n=t.reduce(((e,t)=>{var i;return e+(null!=(i=t.progress.bytesTotal)?i:0)}),0);const a=n/t.length;n+=a*i.length;let o=0;t.forEach((e=>{o+=e.progress.bytesUploaded})),i.forEach((e=>{o+=a*(e.progress.percentage||0)/100}));let s=0===n?0:Math.round(o/n*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){var e;null==(e=window.navigator.onLine)||e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!==typeof e){const t="Expected a plugin class, but got ".concat(null===e?"null":typeof e,".")+" Please verify that the plugin was imported and spelled correctly.";throw new TypeError(t)}const i=new e(this,t),n=i.id;if(!n)throw new Error("Your plugin must have an id");if(!i.type)throw new Error("Your plugin must have a type");const a=this.getPlugin(n);if(a){const e="Already found a plugin named '".concat(a.id,"'. ")+"Tried to use: '".concat(n,"'.\n")+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(e)}return e.VERSION&&this.log("Using ".concat(n," v").concat(e.VERSION)),i.type in te(this,oe)[oe]?te(this,oe)[oe][i.type].push(i):te(this,oe)[oe][i.type]=[i],i.install(),this.emit("plugin-added",i),this}getPlugin(e){for(const t of Object.values(te(this,oe)[oe])){const i=t.find((t=>t.id===e));if(null!=i)return i}}[$](e){return te(this,oe)[oe][e]}iteratePlugins(e){Object.values(te(this,oe)[oe]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin ".concat(e.id)),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=te(this,oe)[oe][e.type],i=t.findIndex((t=>t.id===e.id));-1!==i&&t.splice(i,1);const n={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(n)}close(e){let{reason:t}=void 0===e?{}:e;this.log("Closing Uppy instance ".concat(this.opts.id,": removing all files and uninstalling plugins")),this.cancelAll({reason:t}),te(this,re)[re](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!==typeof window&&window.removeEventListener&&(window.removeEventListener("online",te(this,xe)[xe]),window.removeEventListener("offline",te(this,xe)[xe]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,i){void 0===t&&(t="info"),void 0===i&&(i=3e3);const n="object"===typeof e;this.setState({info:[...this.getState().info,{type:t,message:n?e.message:e,details:n?e.details:null}]}),setTimeout((()=>this.hideInfo()),i),this.emit("info-visible")}log(e,t){const{logger:i}=this.opts;switch(t){case"error":i.error(e);break;case"warning":i.warn(e);break;default:i.debug(e)}}registerRequestClient(e,t){te(this,we)[we].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error("Tried to get RequestClient for a non-remote file ".concat(e.id));const t=te(this,we)[we].get(e.remote.requestClientId);if(null==t)throw new Error('requestClientId "'.concat(e.remote.requestClientId,'" not registered for file "').concat(e.id,'"'));return t}restore(e){return this.log('Core: attempting to restore upload "'.concat(e,'"')),this.getState().currentUploads[e]?te(this,_e)[_e](e):(te(this,ke)[ke](e),Promise.reject(new Error("Nonexistent upload")))}[ee](){return te(this,Pe)[Pe](...arguments)}addResultData(e,t){if(!te(this,Se)[Se](e))return void this.log("Not setting result for an upload that has been removed: ".concat(e));const{currentUploads:i}=this.getState(),n={...i[e],result:{...i[e].result,...t}};this.setState({currentUploads:{...i,[e]:n}})}upload(){var e;null!=(e=te(this,oe)[oe].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const i=this.opts.onBeforeUpload(t);return!1===i?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(i&&"object"===typeof i&&(t=i,this.setState({files:t})),Promise.resolve().then((()=>te(this,se)[se].validateMinNumberOfFiles(t))).catch((e=>{throw te(this,de)[de]([e]),e})).then((()=>{if(!te(this,me)[me](t))throw new Z(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),i=Object.values(e).flatMap((e=>e.fileIDs)),n=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==i.indexOf(e)||n.push(t.id)}));const a=te(this,Pe)[Pe](n);return te(this,_e)[_e](a)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Fe(e){for(const a of e)a.isRestriction?this.emit("restriction-failed",a.file,a):this.emit("error",a,a.file),this.log(a,"warning");const t=e.filter((e=>e.isUserFacing)),i=t.slice(0,4),n=t.slice(4);i.forEach((e=>{let{message:t,details:i=""}=e;this.info({message:t,details:i},"error",this.opts.infoTimeout)})),n.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:n.length})})}function Te(e){const{missingFields:t,error:i}=te(this,se)[se].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(i.message),this.emit("restriction-failed",e,i),!1)}function Oe(e){let t=!0;for(const i of Object.values(e))te(this,he)[he](i)||(t=!1);return t}function Ee(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new Z(this.i18n("noMoreFilesAllowed"),{file:e});throw te(this,de)[de]([t]),t}}function De(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,i=M(t),n=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?"".concat(e.split("/")[0],".").concat(e.split("/")[1]):"noname"}(i,t),a=N(n).extension,o=z(t),s=t.meta||{};s.name=n,s.type=i;const r=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:o,name:n,extension:a||"",meta:{...this.getState().meta,...s},type:i,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:r,uploadComplete:!1,uploadStarted:null},size:r,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function Re(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Ue(e){const{files:t}=this.getState(),i={...t},n=[],a=[];for(const r of e)try{var o;let e=te(this,ge)[ge](r);const a=null==(o=t[e.id])?void 0:o.isGhost;if(a){e={...t[e.id],isGhost:!1,data:r.data},this.log("Replaced the blob in the restored ghost file: ".concat(e.name,", ").concat(e.id))}const s=this.opts.onBeforeFileAdded(e,i);if(!s&&this.checkIfFileAlreadyExists(e.id))throw new Z(this.i18n("noDuplicates",{fileName:e.name}),{file:r});if(!1===s&&!a)throw new Z("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:r});"object"===typeof s&&null!==s&&(e=s),te(this,se)[se].validateSingleFile(e),i[e.id]=e,n.push(e)}catch(s){a.push(s)}try{te(this,se)[se].validateAggregateRestrictions(Object.values(t),n)}catch(s){return a.push(s),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:i,validFilesToAdd:n,errors:a}}function Ie(){const e=(e,t,i)=>{let n=e.message||"Unknown error";e.details&&(n+=" ".concat(e.details)),this.setState({error:n}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:n,response:i})};this.on("error",e),this.on("upload-error",((t,i,n)=>{if(e(i,t,n),"object"===typeof i&&i.message){var a;this.log(i.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(a=null==t?void 0:t.name)?a:""}));e.isUserFacing=!0,e.details=i.message,i.details&&(e.details+=" ".concat(i.details)),te(this,de)[de]([e])}else te(this,de)[de]([i])}));let t=null;this.on("upload-stalled",((e,i)=>{const{message:n}=e,a=i.map((e=>e.meta.name)).join(", ");t||(this.info({message:n,details:a},"warning",this.opts.infoTimeout),t=setTimeout((()=>{t=null}),this.opts.infoTimeout)),this.log("".concat(n," ").concat(a).trim(),"warning")})),this.on("upload",(()=>{this.setState({error:null})}));const i=e=>{const t=e.filter((e=>{const t=null!=e&&this.getFile(e.id);return t||this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id)),t})),i=Object.fromEntries(t.map((e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}])));this.patchFilesState(i)};this.on("upload-start",(e=>{e.forEach((e=>{this.emit("upload-started",e)})),i(e)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id));const i=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...i,postprocess:te(this,ue)[ue].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id))})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id));const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id))})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id));const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&te(this,he)[he](e)})),"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("online",te(this,xe)[xe]),window.addEventListener("offline",te(this,xe)[xe]),setTimeout(te(this,xe)[xe],3e3))}function je(e,t){void 0===t&&(t={});const{forceAllowNewUpload:i=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!i)throw new Error("Cannot create a new upload: already uploading.");const o=F();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...a,[o]:{fileIDs:e,step:0,result:{}}}}),o}function Ae(e){const{currentUploads:t}=this.getState();return t[e]}function Ne(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Be(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let i=t();const n=[...te(this,ce)[ce],...te(this,pe)[pe],...te(this,ue)[ue]];try{for(let a=i.step||0;a<n.length&&i;a++){const o=n[a];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...i,step:a}}});const{fileIDs:s}=i;await o(s,e),i=t()}}catch(o){throw te(this,ke)[ke](e),o}if(i){i.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const n=i.fileIDs.map((e=>this.getFile(e))),a=n.filter((e=>!e.error)),o=n.filter((e=>e.error));this.addResultData(e,{successful:a,failed:o,uploadID:e}),i=t()}let a;return i&&(a=i.result,this.emit("complete",a),te(this,ke)[ke](e)),null==a&&this.log("Not setting result for an upload that has been removed: ".concat(e)),a}Ce.VERSION="3.9.3";const Me=Ce;var Le=i(5698);function ze(e){return"object"===typeof e&&null!==e&&("nodeType"in e&&e.nodeType===Node.ELEMENT_NODE)}const qe=function(e,t){return void 0===t&&(t=document),"string"===typeof e?t.querySelector(e):ze(e)?e:null};const He=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};class We{constructor(e,t){this.uppy=e,this.opts=null!=t?t:{}}getPluginState(){const{plugins:e}=this.uppy.getState();return(null==e?void 0:e[this.id])||{}}setPluginState(e){if(!e)return;const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new k([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}function Ve(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ge=0;function Ke(e){return"__private_"+Ge+++"_"+e}var Xe=Ke("updateUI");class Ye extends We{constructor(){super(...arguments),Object.defineProperty(this,Xe,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"===typeof(null==e?void 0:e.addTarget))t=e,t instanceof Ye||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:Ye}}));else if("function"===typeof e){const i=e;this.uppy.iteratePlugins((e=>{e instanceof i&&(t=e)}))}return t}mount(e,t){const i=t.id,n=qe(e);if(n){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Ve(this,Xe)[Xe]=function(e){let t,i=null;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=a,i||(i=Promise.resolve().then((()=>(i=null,e(...t))))),i}}((e=>{this.uppy.getPlugin(this.id)&&((0,Le.sY)(this.render(e),t),this.afterUpdate())})),this.uppy.log("Installing ".concat(i," to a DOM element '").concat(e,"'")),this.opts.replaceTargetContent&&(n.innerHTML=""),(0,Le.sY)(this.render(this.uppy.getState()),t),this.el=t,n.appendChild(t),t.dir=this.opts.direction||He(t)||"ltr",this.onMount(),this.el}const a=this.getTargetPlugin(e);if(a)return this.uppy.log("Installing ".concat(i," to ").concat(a.id)),this.parent=a,this.el=a.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing ".concat(i));let o="Invalid target option given to ".concat(i,".");throw o+="function"===typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}render(e){throw new Error("Extend the render method to add your plugin to a DOM element")}update(e){var t,i;null!=this.el&&(null==(t=(i=Ve(this,Xe))[Xe])||t.call(i,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}const Ze=Ye,Je={__proto__:null,"audio/mp3":"mp3","audio/mp4":"mp4","audio/ogg":"ogg","audio/webm":"webm","image/gif":"gif","image/heic":"heic","image/heif":"heif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","video/mp4":"mp4","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-matroska":"mkv","video/x-msvideo":"avi"};function Qe(e){return[e]=e.split(";",1),Je[e]||null}var $e=i(90318);const et=()=>(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},(0,Le.h)("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z",fillRule:"evenodd"})),tt=e=>{let{onSnapshot:t,i18n:i}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:i("takePicture"),"aria-label":i("takePicture"),onClick:t,"data-uppy-super-focusable":!0},et())};function it(e){let{recording:t,onStartRecording:i,onStopRecording:n,i18n:a}=e;return t?(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:a("stopRecording"),"aria-label":a("stopRecording"),onClick:n,"data-uppy-super-focusable":!0},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},(0,Le.h)("rect",{x:"15",y:"15",width:"70",height:"70"}))):(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:a("startRecording"),"aria-label":a("startRecording"),onClick:i,"data-uppy-super-focusable":!0},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},(0,Le.h)("circle",{cx:"50",cy:"50",r:"40"})))}function nt(e){let{recordingLengthSeconds:t,i18n:i}=e;const n=(a=t,"".concat(Math.floor(a/60),":").concat(String(a%60).padStart(2,0)));var a;return(0,Le.h)("span",{"aria-label":i("recordingLength",{recording_length:n})},n)}const at=function(e){let{onSubmit:t,i18n:i}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--submit",type:"button",title:i("submitRecordedFile"),"aria-label":i("submitRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},(0,Le.h)("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},(0,Le.h)("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))};const ot=function(e){let{onDiscard:t,i18n:i}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--discard",type:"button",title:i("discardRecordedFile"),"aria-label":i("discardRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},(0,Le.h)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},(0,Le.h)("g",{fill:"#FFF",fillRule:"evenodd"},(0,Le.h)("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),(0,Le.h)("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))};function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},st.apply(this,arguments)}function rt(e,t){return e.includes(t)}class lt extends Le.wA{componentDidMount(){const{onFocus:e}=this.props;e()}componentWillUnmount(){const{onStop:e}=this.props;e()}render(){const{src:e,recordedVideo:t,recording:i,modes:n,supportsRecording:a,videoSources:o,showVideoSourceDropdown:s,showRecordingLength:r,onSubmit:l,i18n:c,mirror:p,onSnapshot:u,onStartRecording:d,onStopRecording:h,onDiscardRecordedVideo:m,recordingLengthSeconds:f}=this.props,g=!!t,v=!g&&a&&(rt(n,"video-only")||rt(n,"audio-only")||rt(n,"video-audio")),b=!g&&rt(n,"picture"),y=a&&r&&!g,x=s&&o&&o.length>1,w={playsinline:!0};return t?(w.muted=!1,w.controls=!0,w.src=t,this.videoElement&&(this.videoElement.srcObject=void 0)):(w.muted=!0,w.autoplay=!0,w.srcObject=e),(0,Le.h)("div",{className:"uppy uppy-Webcam-container"},(0,Le.h)("div",{className:"uppy-Webcam-videoContainer"},(0,Le.h)("video",st({ref:e=>this.videoElement=e,className:"uppy-Webcam-video ".concat(p?"uppy-Webcam-video--mirrored":"")},w))),(0,Le.h)("div",{className:"uppy-Webcam-footer"},(0,Le.h)("div",{className:"uppy-Webcam-videoSourceContainer"},x?(e=>{let{currentDeviceId:t,videoSources:i,onChangeVideoSource:n}=e;return(0,Le.h)("div",{className:"uppy-Webcam-videoSource"},(0,Le.h)("select",{className:"uppy-u-reset uppy-Webcam-videoSource-select",onChange:e=>{n(e.target.value)}},i.map((e=>(0,Le.h)("option",{key:e.deviceId,value:e.deviceId,selected:e.deviceId===t},e.label)))))})(this.props):null),(0,Le.h)("div",{className:"uppy-Webcam-buttonContainer"},b&&(0,Le.h)(tt,{onSnapshot:u,i18n:c}),v&&(0,Le.h)(it,{recording:i,onStartRecording:d,onStopRecording:h,i18n:c}),g&&(0,Le.h)(at,{onSubmit:l,i18n:c}),g&&(0,Le.h)(ot,{onDiscard:m,i18n:c})),(0,Le.h)("div",{className:"uppy-Webcam-recordingLength"},y&&(0,Le.h)(nt,{recordingLengthSeconds:f,i18n:c}))))}}const ct=lt,pt=e=>{let{icon:t,i18n:i,hasCamera:n}=e;return(0,Le.h)("div",{className:"uppy-Webcam-permissons"},(0,Le.h)("div",{className:"uppy-Webcam-permissonsIcon"},t()),(0,Le.h)("h1",{className:"uppy-Webcam-title"},i(n?"allowAccessTitle":"noCameraTitle")),(0,Le.h)("p",null,i(n?"allowAccessDescription":"noCameraDescription")))},ut={strings:{pluginNameCamera:"Camera",noCameraTitle:"Camera Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file",smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",recordingLength:"Recording length %{recording_length}",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site."}};function dt(){return dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},dt.apply(this,arguments)}function ht(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mt=0;function ft(e){return"__private_"+mt+++"_"+e}function gt(e){return"."===e[0]?B[e.slice(1)]:e}function vt(e){return/^video\/[^*]+$/.test(e)}function bt(e){return/^image\/[^*]+$/.test(e)}function yt(e,t){return e.includes(t)}var xt=ft("enableMirror");class wt extends Ze{constructor(e,t){super(e,t),Object.defineProperty(this,xt,{writable:!0,value:void 0}),this.mediaDevices=navigator.mediaDevices,this.supportsUserMedia=!!this.mediaDevices,this.protocol=location.protocol.match(/https/i)?"https":"http",this.id=this.opts.id||"Webcam",this.type="acquirer",this.capturedMediaFile=null,this.icon=()=>(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383",fillRule:"nonzero"})),this.defaultLocale=ut;const i={onBeforeSnapshot:()=>Promise.resolve(),countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,showVideoSourceDropdown:!1,facingMode:"user",videoConstraints:void 0,preferredImageMimeType:null,preferredVideoMimeType:null,showRecordingLength:!1,mobileNativeCamera:$e({tablet:!0})};this.opts={...i,...t},this.i18nInit(),this.title=this.i18n("pluginNameCamera"),ht(this,xt)[xt]=this.opts.mirror,this.install=this.install.bind(this),this.setPluginState=this.setPluginState.bind(this),this.render=this.render.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.takeSnapshot=this.takeSnapshot.bind(this),this.startRecording=this.startRecording.bind(this),this.stopRecording=this.stopRecording.bind(this),this.discardRecordedVideo=this.discardRecordedVideo.bind(this),this.submit=this.submit.bind(this),this.oneTwoThreeSmile=this.oneTwoThreeSmile.bind(this),this.focus=this.focus.bind(this),this.changeVideoSource=this.changeVideoSource.bind(this),this.webcamActive=!1,this.opts.countdown&&(this.opts.onBeforeSnapshot=this.oneTwoThreeSmile),this.setPluginState({hasCamera:!1,cameraReady:!1,cameraError:null,recordingLengthSeconds:0,videoSources:[],currentDeviceId:null})}setOptions(e){super.setOptions({...e,videoConstraints:{...this.opts.videoConstraints,...null==e?void 0:e.videoConstraints}})}hasCameraCheck(){return this.mediaDevices?this.mediaDevices.enumerateDevices().then((e=>e.some((e=>"videoinput"===e.kind)))):Promise.resolve(!1)}isAudioOnly(){return 1===this.opts.modes.length&&"audio-only"===this.opts.modes[0]}getConstraints(e){void 0===e&&(e=null);const t=-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("audio-only"),i=!this.isAudioOnly()&&(-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("video-only")||-1!==this.opts.modes.indexOf("picture")),n={...this.opts.videoConstraints||{facingMode:this.opts.facingMode},...e?{deviceId:e,facingMode:null}:{}};return{audio:t,video:!!i&&n}}start(e){if(void 0===e&&(e=null),!this.supportsUserMedia)return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0,this.opts.mirror&&(ht(this,xt)[xt]=!0);const t=this.getConstraints(e&&e.deviceId?e.deviceId:null);this.hasCameraCheck().then((i=>(this.setPluginState({hasCamera:i}),this.mediaDevices.getUserMedia(t).then((t=>{this.stream=t;let i=null;const n=this.isAudioOnly()?t.getAudioTracks():t.getVideoTracks();e&&e.deviceId?n.forEach((t=>{t.getSettings().deviceId===e.deviceId&&(i=t.getSettings().deviceId)})):i=n[0].getSettings().deviceId,this.updateVideoSources(),this.setPluginState({currentDeviceId:i,cameraReady:!0})})).catch((e=>{this.setPluginState({cameraReady:!1,cameraError:e}),this.uppy.info(e.message,"error")})))))}getMediaRecorderOptions(){const e={};if(MediaRecorder.isTypeSupported){const{restrictions:t}=this.uppy.opts;let i=[];this.opts.preferredVideoMimeType?i=[this.opts.preferredVideoMimeType]:t.allowedFileTypes&&(i=t.allowedFileTypes.map(gt).filter(vt));const n=e=>MediaRecorder.isTypeSupported(e)&&Qe(e),a=i.filter(n);a.length>0&&(e.mimeType=a[0])}return e}startRecording(){this.recorder=new MediaRecorder(this.stream,this.getMediaRecorderOptions()),this.recordingChunks=[];let e=!1;this.recorder.addEventListener("dataavailable",(t=>{this.recordingChunks.push(t.data);const{restrictions:i}=this.uppy.opts;if(this.recordingChunks.length>1&&null!=i.maxFileSize&&!e){const t=this.recordingChunks.reduce(((e,t)=>e+t.size),0),n=3*((t-this.recordingChunks[0].size)/(this.recordingChunks.length-1));t>Math.max(0,i.maxFileSize-n)&&(e=!0,this.uppy.info(this.i18n("recordingStoppedMaxSize"),"warning",4e3),this.stopRecording())}})),this.recorder.start(500),this.opts.showRecordingLength&&(this.recordingLengthTimer=setInterval((()=>{const e=this.getPluginState().recordingLengthSeconds;this.setPluginState({recordingLengthSeconds:e+1})}),1e3)),this.setPluginState({isRecording:!0})}stopRecording(){return new Promise((e=>{this.recorder.addEventListener("stop",(()=>{e()})),this.recorder.stop(),this.opts.showRecordingLength&&(clearInterval(this.recordingLengthTimer),this.setPluginState({recordingLengthSeconds:0}))})).then((()=>(this.setPluginState({isRecording:!1}),this.getVideo()))).then((e=>{try{this.capturedMediaFile=e,this.setPluginState({recordedVideo:URL.createObjectURL(e.data)}),ht(this,xt)[xt]=!1}catch(t){t.isRestriction||this.uppy.log(t)}})).then((()=>{this.recordingChunks=null,this.recorder=null}),(e=>{throw this.recordingChunks=null,this.recorder=null,e}))}discardRecordedVideo(){this.setPluginState({recordedVideo:null}),this.opts.mirror&&(ht(this,xt)[xt]=!0),this.capturedMediaFile=null}submit(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(e){e.isRestriction||this.uppy.log(e,"error")}}async stop(){if(this.stream){const e=this.stream.getAudioTracks(),t=this.stream.getVideoTracks();e.concat(t).forEach((e=>e.stop()))}this.recorder&&await new Promise((e=>{this.recorder.addEventListener("stop",e,{once:!0}),this.recorder.stop(),this.opts.showRecordingLength&&clearInterval(this.recordingLengthTimer)})),this.recordingChunks=null,this.recorder=null,this.webcamActive=!1,this.stream=null,this.setPluginState({recordedVideo:null,isRecording:!1,recordingLengthSeconds:0})}getVideoElement(){return this.el.querySelector(".uppy-Webcam-video")}oneTwoThreeSmile(){return new Promise(((e,t)=>{let i=this.opts.countdown;const n=setInterval((()=>{if(!this.webcamActive)return clearInterval(n),this.captureInProgress=!1,t(new Error("Webcam is not active"));i>0?(this.uppy.info("".concat(i,"..."),"warning",800),i--):(clearInterval(n),this.uppy.info(this.i18n("smile"),"success",1500),setTimeout((()=>e()),1500))}),1e3)}))}takeSnapshot(){this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch((e=>{const t="object"===typeof e?e.message:e;return this.uppy.info(t,"error",5e3),Promise.reject(new Error("onBeforeSnapshot: ".concat(t)))})).then((()=>this.getImage())).then((e=>{this.captureInProgress=!1;try{this.uppy.addFile(e)}catch(t){t.isRestriction||this.uppy.log(t)}}),(e=>{throw this.captureInProgress=!1,e})))}getImage(){const e=this.getVideoElement();if(!e)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));const t=e.videoWidth,i=e.videoHeight,n=document.createElement("canvas");n.width=t,n.height=i;n.getContext("2d").drawImage(e,0,0);const{restrictions:a}=this.uppy.opts;let o=[];this.opts.preferredImageMimeType?o=[this.opts.preferredImageMimeType]:a.allowedFileTypes&&(o=a.allowedFileTypes.map(gt).filter(bt));const s=o[0]||"image/jpeg",r=Qe(s)||"jpg",l="cam-".concat(Date.now(),".").concat(r);return function(e,t,i){return new Promise((n=>{e.toBlob(n,t,i)}))}(n,s).then((e=>({source:this.id,name:l,data:new Blob([e],{type:s}),type:s})))}getVideo(){const e=this.recordingChunks.find((e=>{var t;return(null==(t=e.type)?void 0:t.length)>0})).type,t=Qe(e);if(!t)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'.concat(e,'"')));const i="webcam-".concat(Date.now(),".").concat(t),n=new Blob(this.recordingChunks,{type:e}),a={source:this.id,name:i,data:new Blob([n],{type:e}),type:e};return Promise.resolve(a)}focus(){this.opts.countdown&&setTimeout((()=>{this.uppy.info(this.i18n("smile"),"success",1500)}),1e3)}changeVideoSource(e){this.stop(),this.start({deviceId:e})}updateVideoSources(){this.mediaDevices.enumerateDevices().then((e=>{this.setPluginState({videoSources:e.filter((e=>"videoinput"===e.kind))})}))}render(){this.webcamActive||this.start();const e=this.getPluginState();return e.cameraReady&&e.hasCamera?(0,Le.h)(ct,dt({},e,{onChangeVideoSource:this.changeVideoSource,onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onDiscardRecordedVideo:this.discardRecordedVideo,onSubmit:this.submit,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,showRecordingLength:this.opts.showRecordingLength,showVideoSourceDropdown:this.opts.showVideoSourceDropdown,supportsRecording:"function"===typeof MediaRecorder&&!!MediaRecorder.prototype&&"function"===typeof MediaRecorder.prototype.start,recording:e.isRecording,mirror:ht(this,xt)[xt],src:this.stream})):(0,Le.h)(pt,{icon:et,i18n:this.i18n,hasCamera:e.hasCamera})}install(){const{mobileNativeCamera:e,modes:t,facingMode:i,videoConstraints:n}=this.opts,{target:a}=this.opts;var o;e&&a?null==(o=this.getTargetPlugin(a))||o.setOptions({showNativeVideoCameraButton:yt(t,"video-only")||yt(t,"video-audio"),showNativePhotoCameraButton:yt(t,"picture"),nativeCameraFacingMode:(null==n?void 0:n.facingMode)||i}):(this.setPluginState({cameraReady:!1,recordingLengthSeconds:0}),a&&this.mount(a,this),this.mediaDevices&&(this.updateVideoSources(),this.mediaDevices.ondevicechange=()=>{if(this.updateVideoSources(),this.stream){let e=!0;const{videoSources:t,currentDeviceId:i}=this.getPluginState();t.forEach((t=>{i===t.deviceId&&(e=!1)})),e&&(this.stop(),this.start())}}))}uninstall(){this.stop(),this.unmount()}onUnmount(){this.stop()}}wt.VERSION="3.3.6";class Pt extends Error{constructor(){super(...arguments),this.name="UserFacingApiError"}}const St=Pt;var kt=i(35499);const _t=Object.prototype.toString,Ct=e=>"[object Error]"===_t.call(e),Ft=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed"]);class Tt extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,({message:e}=e)):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}const Ot=(e,t,i)=>{const n=i.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e};async function Et(e,t){return new Promise(((i,n)=>{t={onFailedAttempt(){},retries:10,...t};const a=kt.operation(t),o=()=>{var e;a.stop(),n(null===(e=t.signal)||void 0===e?void 0:e.reason)};t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",o,{once:!0});const s=()=>{var e;null===(e=t.signal)||void 0===e||e.removeEventListener("abort",o),a.stop()};a.attempt((async o=>{try{const t=await e(o);s(),i(t)}catch(_c){try{if(!(_c instanceof Error))throw new TypeError('Non-error was thrown: "'.concat(_c,'". You should only throw errors.'));if(_c instanceof Tt)throw _c.originalError;if(_c instanceof TypeError&&!function(e){return!(!e||!Ct(e)||"TypeError"!==e.name||"string"!==typeof e.message)&&("Load failed"===e.message?void 0===e.stack:Ft.has(e.message))}(_c))throw _c;if(await t.onFailedAttempt(Ot(_c,o,t)),!a.retry(_c))throw a.mainError()}catch(r){Ot(r,o,t),s(),n(r)}}}))}))}class Dt extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}const Rt=Dt;function Ut(e,t){return Object.prototype.hasOwnProperty.call(e,t)}class It extends Error{constructor(e,t){super(e),this.cause=null==t?void 0:t.cause,this.cause&&Ut(this.cause,"isNetworkError")?this.isNetworkError=this.cause.isNetworkError:this.isNetworkError=!1}}const jt=It;const At=T((function(e,t,i){const{progress:n,bytesUploaded:a,bytesTotal:o}=t;n&&(e.uppy.log("Upload progress: ".concat(n)),e.uppy.emit("upload-progress",i,{uploader:e,bytesUploaded:a,bytesTotal:o}))}),300,{leading:!0,trailing:!0});class Nt extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}const Bt=Nt;let Mt;function Lt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zt=0;function qt(e){return"__private_"+zt+++"_"+e}class Ht extends Error{constructor(e){let{statusCode:t,message:i}=e;super(i),this.name="HttpError",this.statusCode=t}}var Wt=qt("companionHeaders"),Vt=qt("getUrl"),Gt=qt("requestSocketToken"),Kt=qt("awaitRemoteFileUpload");Mt=Symbol.for("uppy test: getCompanionHeaders");class Xt{constructor(e,t){Object.defineProperty(this,Kt,{value:Zt}),Object.defineProperty(this,Vt,{value:Yt}),Object.defineProperty(this,Wt,{writable:!0,value:void 0}),Object.defineProperty(this,Gt,{writable:!0,value:async e=>{var t;let{file:i,postBody:n,signal:a}=e;if(null==(null==(t=i.remote)?void 0:t.url))throw new Error("Cannot connect to an undefined URL");return(await this.post(i.remote.url,{...i.remote.body,...n},{signal:a})).token}}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),Lt(this,Wt)[Wt]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){Lt(this,Wt)[Wt]=e}[Mt](){return Lt(this,Wt)[Wt]}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}async headers(e){void 0===e&&(e=!1);return{...{Accept:"application/json",...e?void 0:{"Content-Type":"application/json"}},...Lt(this,Wt)[Wt]}}onReceiveResponse(e){const{headers:t}=e,i=this.uppy.getState().companion||{},n=this.opts.companionUrl;t.has("i-am")&&t.get("i-am")!==i[n]&&this.uppy.setState({companion:{...i,[n]:t.get("i-am")}})}async request(e){let{path:t,method:i="GET",data:n,skipPostResponse:a,signal:o}=e;try{const e=await this.headers(!n),s=await function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new Rt(e)}))}(Lt(this,Vt)[Vt](t),{method:i,signal:o,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null});return a||this.onReceiveResponse(s),await async function(e){if(401===e.status)throw new Bt;if(e.ok)return e.json();let t,i="Failed request with status: ".concat(e.status,". ").concat(e.statusText);try{t=await e.json(),t.message&&(i="".concat(i," message: ").concat(t.message)),t.requestId&&(i="".concat(i," request-Id: ").concat(t.requestId))}catch(n){throw new Error(i,{cause:n})}if(e.status>=400&&e.status<=499&&t.message)throw new St(t.message);throw new Ht({statusCode:e.status,message:i})}(s)}catch(s){if(s.isAuthError||"UserFacingApiError"===s.name||"AbortError"===s.name)throw s;throw new jt("Could not ".concat(i," ").concat(Lt(this,Vt)[Vt](t)),{cause:s})}}async get(e,t){return"boolean"===typeof t&&(t={skipPostResponse:t}),this.request({...t,path:e})}async post(e,t,i){return"boolean"===typeof i&&(i={skipPostResponse:i}),this.request({...i,path:e,method:"POST",data:t})}async delete(e,t,i){return"boolean"===typeof i&&(i={skipPostResponse:i}),this.request({...i,path:e,method:"DELETE",data:t})}async uploadRemoteFile(e,t,i){var n=this;try{const{signal:a,getQueue:o}=i||{};return await Et((async()=>{var i;const s=null==(i=this.uppy.getFile(e.id))?void 0:i.serverToken;if(null!=s)return this.uppy.log("Connecting to exiting websocket ".concat(s)),Lt(this,Kt)[Kt]({file:e,queue:o(),signal:a});const r=o().wrapPromiseFunction((async function(){try{return await Lt(n,Gt)[Gt](...arguments)}catch(e){if(e.isAuthError)throw new Tt(e);if(null==e.cause)throw e;const t=e.cause,i=()=>[408,409,429,418,423].includes(t.statusCode)||t.statusCode>=500&&t.statusCode<=599&&![501,505].includes(t.statusCode);if("HttpError"===t.name&&!i())throw new Tt(t);throw t}}),{priority:-1}),l=await r({file:e,postBody:t,signal:a}).abortOn(a);return this.uppy.getFile(e.id)?(this.uppy.setFileState(e.id,{serverToken:l}),Lt(this,Kt)[Kt]({file:this.uppy.getFile(e.id),queue:o(),signal:a})):void 0}),{retries:10,signal:a,onFailedAttempt:e=>this.uppy.log("Retrying upload due to: ".concat(e.message),"warning")})}catch(a){if("AbortError"===a.name)return;throw this.uppy.emit("upload-error",e,a),a}}}function Yt(e){return/^(https?:|)\/\//.test(e)?e:"".concat(this.hostname,"/").concat(e)}async function Zt(e){let t,{file:i,queue:n,signal:a}=e;const{capabilities:o}=this.uppy.getState();try{return await new Promise(((e,s)=>{const r=i.serverToken,l=function(e){var t;const i=null==(t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e))?void 0:t[1],n=/^http:\/\//i.test(e)?"ws":"wss";return"".concat(n,"://").concat(i)}(i.remote.companionUrl);let c,p,u,{isPaused:d}=i;const h=(e,t)=>{var n;null!=c&&c.readyState===c.OPEN?c.send(JSON.stringify({action:e,payload:null!=t?t:{}})):this.uppy.log('Cannot send "'.concat(e,'" to socket ').concat(i.id," because the socket state was ").concat(String(null==(n=c)?void 0:n.readyState)),"warning")};function m(){o.resumableUploads&&h(d?"pause":"resume")}const f=async()=>{p&&p.abort(),p=new AbortController;const t=e=>{var t;this.uppy.setFileState(i.id,{serverToken:null}),null==(t=p)||null==t.abort||t.abort(),s(e)};function a(){clearTimeout(u),d||(u=setTimeout((()=>t(new Error("Timeout waiting for message from Companion socket"))),3e5))}try{await n.wrapPromiseFunction((async()=>{await Et((async()=>new Promise(((n,o)=>{c=new WebSocket("".concat(l,"/api/").concat(r)),a(),c.addEventListener("close",(()=>{c=void 0,o(new Error("Socket closed unexpectedly"))})),c.addEventListener("error",(e=>{var t;this.uppy.log("Companion socket error ".concat(JSON.stringify(e),", closing socket"),"warning"),null==(t=c)||t.close()})),c.addEventListener("open",(()=>{m()})),c.addEventListener("message",(n=>{a();try{const{action:t,payload:a}=JSON.parse(n.data);switch(t){case"progress":At(this,a,this.uppy.getFile(i.id));break;case"success":{var o,s,r,l;const t=null==(o=a.response)?void 0:o.responseText;this.uppy.emit("upload-success",this.uppy.getFile(i.id),{uploadURL:a.url,status:null!=(s=null==(r=a.response)?void 0:r.status)?s:200,body:t?JSON.parse(t):void 0}),null==(l=p)||null==l.abort||l.abort(),e();break}case"error":{const{message:e}=a.error;throw Object.assign(new Error(e),{cause:a.error})}default:this.uppy.log("Companion socket unknown action ".concat(t),"warning")}}catch(c){t(c)}}));const s=()=>{this.uppy.log("Closing socket ".concat(i.id),"info"),clearTimeout(u),c&&c.close(),c=void 0};p.signal.addEventListener("abort",(()=>{s()}))}))),{retries:10,signal:p.signal,onFailedAttempt:()=>{p.signal.aborted||this.uppy.log("Retrying websocket ".concat(i.id),"info")}})}))().abortOn(p.signal)}catch(o){if(p.signal.aborted)return;t(o)}},g=e=>{var t;o.resumableUploads&&(d=e,c&&m(),e?null==(t=p)||null==t.abort||t.abort():f())},v=t=>{var n;o.individualCancellation&&t.id===i.id&&(h("cancel"),null==(n=p)||null==n.abort||n.abort(),this.uppy.log("upload ".concat(i.id," was removed"),"info"),e())},b=t=>{var n;let{reason:a}=t;"user"===a&&h("cancel"),null==(n=p)||null==n.abort||n.abort(),this.uppy.log("upload ".concat(i.id," was canceled"),"info"),e()},y=(e,t)=>{e===i.id&&g(t)},x=()=>g(!0),w=()=>g(!1);this.uppy.on("file-removed",v),this.uppy.on("cancel-all",b),this.uppy.on("upload-pause",y),this.uppy.on("pause-all",x),this.uppy.on("resume-all",w),t=()=>{this.uppy.off("file-removed",v),this.uppy.off("cancel-all",b),this.uppy.off("upload-pause",y),this.uppy.off("pause-all",x),this.uppy.off("resume-all",w)},a.addEventListener("abort",(()=>{var e;null==(e=p)||e.abort()})),f()}))}finally{null==t||t()}}function Jt(e,t){return new Promise((i=>{localStorage.setItem(e,t),i()}))}function Qt(e){return Promise.resolve(localStorage.getItem(e))}function $t(e){return new Promise((t=>{localStorage.removeItem(e),t()}))}function ei(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Xt.VERSION="3.7.4";var ti=0;function ii(e){return"__private_"+ti+++"_"+e}function ni(e){return"string"===typeof e?new RegExp("^".concat(e,"$")):e instanceof RegExp?e:void 0}var ai=ii("refreshingTokenPromise"),oi=ii("getAuthToken"),si=ii("getPlugin");class ri extends Xt{constructor(e,t){var i;super(e,t),Object.defineProperty(this,si,{value:ci}),Object.defineProperty(this,oi,{value:li}),Object.defineProperty(this,ai,{writable:!0,value:void 0}),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey="companion-".concat(this.pluginId,"-auth-token"),this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null,this.supportsRefreshToken=null==(i=t.supportsRefreshToken)||i}async headers(){const[e,t]=await Promise.all([super.headers(),ei(this,oi)[oi]()]),i={};return t&&(i["uppy-auth-token"]=t),this.companionKeysParams&&(i["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...i}}onReceiveResponse(e){super.onReceiveResponse(e);const t=ei(this,si)[si](),i=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:i}),e}async setAuthToken(e){return ei(this,si)[si]().storage.setItem(this.tokenKey,e)}async removeAuthToken(){return ei(this,si)[si]().storage.removeItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw new Error("Could not load authentication data required for third-party login. Please try again later.")}authQuery(e){return{}}authUrl(e){let{authFormData:t,query:i}=e;const n=new URLSearchParams({...i,state:btoa(JSON.stringify({origin:location.origin})),...this.authQuery({authFormData:t})});return this.preAuthToken&&n.set("uppyPreAuthToken",this.preAuthToken),"".concat(this.hostname,"/").concat(this.id,"/connect?").concat(n)}async loginSimpleAuth(e){let{uppyVersions:t,authFormData:i,signal:n}=e;const a=await this.post("".concat(this.id,"/simple-auth"),{form:i},{qs:{uppyVersions:t},signal:n});this.setAuthToken(a.uppyAuthToken)}async loginOAuth(e){let{uppyVersions:t,authFormData:i,signal:n}=e;return await this.ensurePreAuth(),n.throwIfAborted(),new Promise(((e,a)=>{const o=this.authUrl({query:{uppyVersions:t},authFormData:i}),s=window.open(o,"_blank");let r;const l=t=>{if(t.source!==s){let e="";try{e=JSON.stringify(t.data)}catch(c){}return void this.uppy.log("ignoring event from unknown source ".concat(e),"warning")}const{companionAllowedHosts:i}=ei(this,si)[si]().opts;if(n=t.origin,o=i,!(Array.isArray(o)?o.map(ni):[ni(o)]).some((e=>(null==e?void 0:e.test(n))||(null==e?void 0:e.test("".concat(n,"/"))))))return void a(new Error("rejecting event from ".concat(t.origin," vs allowed pattern ").concat(i)));var n,o;const l="string"===typeof t.data?JSON.parse(t.data):t.data;if(l.error){const{uppy:e}=this,t=e.i18n("authAborted");return e.info({message:t},"warning",5e3),void a(new Error("auth aborted"))}l.token?(r(),e(this.setAuthToken(l.token))):a(new Error("did not receive token from auth window"))};r=()=>{null==s||s.close(),window.removeEventListener("message",l),n.removeEventListener("abort",r)},n.addEventListener("abort",r),window.addEventListener("message",l)}))}async login(e){let{uppyVersions:t,authFormData:i,signal:n}=e;return this.loginOAuth({uppyVersions:t,authFormData:i,signal:n})}refreshTokenUrl(){return"".concat(this.hostname,"/").concat(this.id,"/refresh-token")}fileUrl(e){return"".concat(this.hostname,"/").concat(this.id,"/get/").concat(e)}async request(){await ei(this,ai)[ai];try{return await super.request(...arguments)}catch(e){if(!this.supportsRefreshToken)throw e;const t=await ei(this,oi)[oi]();if(!e.isAuthError||!t)throw e;return null==ei(this,ai)[ai]&&(ei(this,ai)[ai]=(async()=>{try{this.uppy.log("[CompanionClient] Refreshing expired auth token","info");const e=await super.request({path:this.refreshTokenUrl(),method:"POST"});await this.setAuthToken(e.uppyAuthToken)}catch(t){throw t.isAuthError&&await this.removeAuthToken(),e}finally{ei(this,ai)[ai]=void 0}})()),await ei(this,ai)[ai],super.request(...arguments)}}async fetchPreAuthToken(){if(this.companionKeysParams)try{const e=await this.post("".concat(this.id,"/preauth/"),{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log("[CompanionClient] unable to fetch preAuthToken ".concat(e),"warning")}}list(e,t){return this.get("".concat(this.id,"/list/").concat(e||""),t)}async logout(e){const t=await this.get("".concat(this.id,"/logout"),e);return await this.removeAuthToken(),t}static initPlugin(e,t,i){if(e.type="acquirer",e.files=[],i&&(e.opts={...i,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const i=t.companionAllowedHosts;if("string"!==typeof i&&!Array.isArray(i)&&!(i instanceof RegExp))throw new TypeError("".concat(e.id,': the option "companionAllowedHosts" must be one of string, Array, RegExp'));e.opts.companionAllowedHosts=i}else if(/^(?!https?:\/\/).*$/i.test(t.companionUrl)){var a;e.opts.companionAllowedHosts="https://".concat(null==(a=t.companionUrl)?void 0:a.replace(/^\/\//,""))}else e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||n}}async function li(){return ei(this,si)[si]().storage.getItem(this.tokenKey)}function ci(){const e=this.uppy.getPlugin(this.pluginId);if(null==e)throw new Error("Plugin was nullish");return e}class pi extends Xt{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return"".concat(this.hostname,"/search/").concat(this.id,"/get/").concat(e)}search(e,t){return this.get("search/".concat(this.id,"/list?q=").concat(encodeURIComponent(e)).concat(t?"&".concat(t):""))}}let ui,di;ui=Symbol.for("uppy test: getSocket"),di=Symbol.for("uppy test: getQueued");const hi=Array.from;function mi(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fi=0;function gi(e){return"__private_"+fi+++"_"+e}var vi=gi("handleSubmit");class bi extends Le.wA{constructor(e){super(e),this.form=document.createElement("form"),Object.defineProperty(this,vi,{writable:!0,value:e=>{e.preventDefault();const{addFile:t}=this.props;t(this.input.value.trim())}}),this.form.id=F()}componentDidMount(){this.input.value="",this.form.addEventListener("submit",mi(this,vi)[vi]),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",mi(this,vi)[vi]),document.body.removeChild(this.form)}render(){const{i18n:e}=this.props;return(0,Le.h)("div",{className:"uppy-Url"},(0,Le.h)("input",{className:"uppy-u-reset uppy-c-textInput uppy-Url-input",type:"text","aria-label":e("enterUrlToImport"),placeholder:e("enterUrlToImport"),ref:e=>{this.input=e},"data-uppy-super-focusable":!0,form:this.form.id}),(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Url-importButton",type:"submit",form:this.form.id},e("import")))}}const yi=bi;function xi(e,t,i){const n=hi(e.items);let a;switch(t){case"paste":{const e=n.some((e=>"file"===e.kind));if(e)return;a=n.filter((e=>"string"===e.kind&&"text/plain"===e.type));break}case"drop":a=n.filter((e=>"string"===e.kind&&"text/uri-list"===e.type));break;default:throw new Error("isDropOrPaste must be either 'drop' or 'paste', but it's ".concat(t))}a.forEach((e=>{e.getAsString((e=>i(e)))}))}const wi={strings:{import:"Import",enterUrlToImport:"Enter URL to import a file",failedToFetch:"Companion failed to fetch this URL, please make sure it\u2019s correct",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file"}};function Pi(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{d:"M23.637 15.312l-2.474 2.464a3.582 3.582 0 01-.577.491c-.907.657-1.897.986-2.968.986a4.925 4.925 0 01-3.959-1.971c-.248-.329-.164-.902.165-1.149.33-.247.907-.164 1.155.164 1.072 1.478 3.133 1.724 4.618.656a.642.642 0 00.33-.328l2.473-2.463c1.238-1.313 1.238-3.366-.082-4.597a3.348 3.348 0 00-4.618 0l-1.402 1.395a.799.799 0 01-1.154 0 .79.79 0 010-1.15l1.402-1.394a4.843 4.843 0 016.843 0c2.062 1.805 2.144 5.007.248 6.896zm-8.081 5.664l-1.402 1.395a3.348 3.348 0 01-4.618 0c-1.319-1.23-1.319-3.365-.082-4.596l2.475-2.464.328-.328c.743-.492 1.567-.739 2.475-.657.906.165 1.648.574 2.143 1.314.248.329.825.411 1.155.165.33-.248.412-.822.165-1.15-.825-1.068-1.98-1.724-3.216-1.888-1.238-.247-2.556.082-3.628.902l-.495.493-2.474 2.464c-1.897 1.969-1.814 5.09.083 6.977.99.904 2.226 1.396 3.463 1.396s2.473-.492 3.463-1.395l1.402-1.396a.79.79 0 000-1.15c-.33-.328-.908-.41-1.237-.082z",fill:"#FF753E","fill-rule":"nonzero"}))}function Si(e){const{pathname:t}=new URL(e);return t.substring(t.lastIndexOf("/")+1)}class ki extends Ze{constructor(e,t){super(e,t),this.id=this.opts.id||"Url",this.title=this.opts.title||"Link",this.type="acquirer",this.icon=()=>(0,Le.h)(Pi,null),this.defaultLocale=wi;if(this.opts={...t},this.i18nInit(),this.hostname=this.opts.companionUrl,!this.hostname)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");this.getMeta=this.getMeta.bind(this),this.addFile=this.addFile.bind(this),this.handleRootDrop=this.handleRootDrop.bind(this),this.handleRootPaste=this.handleRootPaste.bind(this),this.client=new Xt(e,{companionUrl:this.opts.companionUrl,companionHeaders:this.opts.companionHeaders,companionCookiesRule:this.opts.companionCookiesRule}),this.uppy.registerRequestClient(ki.requestClientId,this.client)}getMeta(e){return this.client.post("url/meta",{url:e}).then((e=>{if(e.error)throw this.uppy.log("[URL] Error:"),this.uppy.log(e.error),new Error("Failed to fetch the file");return e}))}async addFile(e,t){void 0===t&&(t=void 0);const i=function(e){return/^[a-z0-9]+:\/\//.test(e)?e:"http://"+e}(e);if(!function(e){if(!e)return!1;const t=e.match(/^([a-z0-9]+):\/\//)[1];return"http"===t||"https"===t}(i))return this.uppy.log("[URL] Incorrect URL entered: ".concat(i)),void this.uppy.info(this.i18n("enterCorrectUrl"),"error",4e3);try{const e=await this.getMeta(i),a={meta:t,source:this.id,name:e.name||Si(i),type:e.type,data:{size:e.size},isRemote:!0,body:{url:i},remote:{companionUrl:this.opts.companionUrl,url:"".concat(this.hostname,"/url/get"),body:{fileId:i,url:i},requestClientId:ki.requestClientId}};this.uppy.log("[Url] Adding remote file");try{return this.uppy.addFile(a)}catch(n){return n.isRestriction||this.uppy.log(n),n}}catch(n){return this.uppy.log(n),this.uppy.info({message:this.i18n("failedToFetch"),details:n},"error",4e3),n}}handleRootDrop(e){xi(e.dataTransfer,"drop",(e=>{this.uppy.log("[URL] Adding file from dropped url: ".concat(e)),this.addFile(e)}))}handleRootPaste(e){xi(e.clipboardData,"paste",(e=>{this.uppy.log("[URL] Adding file from pasted url: ".concat(e)),this.addFile(e)}))}render(){return(0,Le.h)(yi,{i18n:this.i18n,addFile:this.addFile})}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}ki.VERSION="3.5.0",ki.requestClientId=ki.name,ki.prototype.canHandleRootDrop=function(e){const t=hi(e.dataTransfer.items).filter((e=>"string"===e.kind&&"text/uri-list"===e.type));return t.length>0};var _i=i(91428);var Ci=i(97885);var Fi,Ti=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Fi=new WeakMap;const Oi=class{constructor(){Fi.set(this,[])}enqueue(e,t){const i={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&Ti(this,Fi,"f")[this.size-1].priority>=t.priority)return void Ti(this,Fi,"f").push(i);const n=function(e,t,i){let n=0,a=e.length;for(;a>0;){const o=Math.trunc(a/2);let s=n+o;i(e[s],t)<=0?(n=++s,a-=o+1):a=o}return n}(Ti(this,Fi,"f"),i,((e,t)=>t.priority-e.priority));Ti(this,Fi,"f").splice(n,0,i)}dequeue(){const e=Ti(this,Fi,"f").shift();return null===e||void 0===e?void 0:e.run}filter(e){return Ti(this,Fi,"f").filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return Ti(this,Fi,"f").length}};var Ei,Di,Ri,Ui,Ii,ji,Ai,Ni,Bi,Mi,Li,zi,qi,Hi,Wi,Vi,Gi,Ki,Xi,Yi,Zi,Ji,Qi,$i,en,tn,nn=function(e,t,i,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,i):a?a.value=i:t.set(e,i),i},an=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};class on extends Error{}Di=new WeakMap,Ri=new WeakMap,Ui=new WeakMap,Ii=new WeakMap,ji=new WeakMap,Ai=new WeakMap,Ni=new WeakMap,Bi=new WeakMap,Mi=new WeakMap,Li=new WeakMap,zi=new WeakMap,qi=new WeakMap,Hi=new WeakMap,Wi=new WeakMap,Ei=new WeakSet,Vi=function(){return an(this,Ri,"f")||an(this,Ui,"f")<an(this,Ii,"f")},Gi=function(){return an(this,zi,"f")<an(this,qi,"f")},Ki=function(){var e;nn(this,zi,(e=an(this,zi,"f"),--e),"f"),an(this,Ei,"m",Zi).call(this),this.emit("next")},Xi=function(){an(this,Ei,"m",Qi).call(this),an(this,Ei,"m",Ji).call(this),nn(this,Bi,void 0,"f")},Yi=function(){const e=Date.now();if(void 0===an(this,Ni,"f")){const t=an(this,Ai,"f")-e;if(!(t<0))return void 0===an(this,Bi,"f")&&nn(this,Bi,setTimeout((()=>{an(this,Ei,"m",Xi).call(this)}),t),"f"),!0;nn(this,Ui,an(this,Di,"f")?an(this,zi,"f"):0,"f")}return!1},Zi=function(){if(0===an(this,Mi,"f").size)return an(this,Ni,"f")&&clearInterval(an(this,Ni,"f")),nn(this,Ni,void 0,"f"),this.emit("empty"),0===an(this,zi,"f")&&this.emit("idle"),!1;if(!an(this,Hi,"f")){const e=!an(this,Ei,"a",Yi);if(an(this,Ei,"a",Vi)&&an(this,Ei,"a",Gi)){const t=an(this,Mi,"f").dequeue();return!!t&&(this.emit("active"),t(),e&&an(this,Ei,"m",Ji).call(this),!0)}}return!1},Ji=function(){an(this,Ri,"f")||void 0!==an(this,Ni,"f")||(nn(this,Ni,setInterval((()=>{an(this,Ei,"m",Qi).call(this)}),an(this,ji,"f")),"f"),nn(this,Ai,Date.now()+an(this,ji,"f"),"f"))},Qi=function(){0===an(this,Ui,"f")&&0===an(this,zi,"f")&&an(this,Ni,"f")&&(clearInterval(an(this,Ni,"f")),nn(this,Ni,void 0,"f")),nn(this,Ui,an(this,Di,"f")?an(this,zi,"f"):0,"f"),an(this,Ei,"m",$i).call(this)},$i=function(){for(;an(this,Ei,"m",Zi).call(this););},en=async function(e){return new Promise(((t,i)=>{e.addEventListener("abort",(()=>{i(new on("The task was aborted."))}),{once:!0})}))},tn=async function(e,t){return new Promise((i=>{const n=()=>{t&&!t()||(this.off(e,n),i())};this.on(e,n)}))};const sn=class extends _i{constructor(e){var t,i,n,a;if(super(),Ei.add(this),Di.set(this,void 0),Ri.set(this,void 0),Ui.set(this,0),Ii.set(this,void 0),ji.set(this,void 0),Ai.set(this,0),Ni.set(this,void 0),Bi.set(this,void 0),Mi.set(this,void 0),Li.set(this,void 0),zi.set(this,0),qi.set(this,void 0),Hi.set(this,void 0),Wi.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"===typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Oi,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(i=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==i?i:"","` (").concat(typeof e.intervalCap,")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(a=null===(n=e.interval)||void 0===n?void 0:n.toString())&&void 0!==a?a:"","` (").concat(typeof e.interval,")"));nn(this,Di,e.carryoverConcurrencyCount,"f"),nn(this,Ri,e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,"f"),nn(this,Ii,e.intervalCap,"f"),nn(this,ji,e.interval,"f"),nn(this,Mi,new e.queueClass,"f"),nn(this,Li,e.queueClass,"f"),this.concurrency=e.concurrency,this.timeout=e.timeout,nn(this,Wi,!0===e.throwOnTimeout,"f"),nn(this,Hi,!1===e.autoStart,"f")}get concurrency(){return an(this,qi,"f")}set concurrency(e){if(!("number"===typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(typeof e,")"));nn(this,qi,e,"f"),an(this,Ei,"m",$i).call(this)}async add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t={timeout:this.timeout,throwOnTimeout:an(this,Wi,"f"),...t},new Promise(((i,n)=>{an(this,Mi,"f").enqueue((async()=>{var a,o,s;nn(this,zi,(o=an(this,zi,"f"),++o),"f"),nn(this,Ui,(s=an(this,Ui,"f"),++s),"f");try{if(null===(a=t.signal)||void 0===a?void 0:a.aborted)throw new on("The task was aborted.");let n=e({signal:t.signal});t.timeout&&(n=Ci(Promise.resolve(n),t.timeout)),t.signal&&(n=Promise.race([n,an(this,Ei,"m",en).call(this,t.signal)]));const o=await n;i(o),this.emit("completed",o)}catch(_c){if(_c instanceof Ci.TimeoutError&&!t.throwOnTimeout)return void i();n(_c),this.emit("error",_c)}finally{an(this,Ei,"m",Ki).call(this)}}),t),this.emit("add"),an(this,Ei,"m",Zi).call(this)}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return an(this,Hi,"f")?(nn(this,Hi,!1,"f"),an(this,Ei,"m",$i).call(this),this):this}pause(){nn(this,Hi,!0,"f")}clear(){nn(this,Mi,new(an(this,Li,"f")),"f")}async onEmpty(){0!==an(this,Mi,"f").size&&await an(this,Ei,"m",tn).call(this,"empty")}async onSizeLessThan(e){an(this,Mi,"f").size<e||await an(this,Ei,"m",tn).call(this,"next",(()=>an(this,Mi,"f").size<e))}async onIdle(){0===an(this,zi,"f")&&0===an(this,Mi,"f").size||await an(this,Ei,"m",tn).call(this,"idle")}get size(){return an(this,Mi,"f").size}sizeBy(e){return an(this,Mi,"f").filter(e).length}get pending(){return an(this,zi,"f")}get isPaused(){return an(this,Hi,"f")}};var rn,ln,cn,pn,un=0,dn=[],hn=[],mn=Le.YM,fn=mn.__b,gn=mn.__r,vn=mn.diffed,bn=mn.__c,yn=mn.unmount,xn=mn.__;function wn(e,t){mn.__h&&mn.__h(ln,e,un||t),un=0;var i=ln.__H||(ln.__H={__:[],__h:[]});return e>=i.__.length&&i.__.push({__V:hn}),i.__[e]}function Pn(e){return un=1,function(e,t,i){var n=wn(rn++,2);if(n.t=e,!n.__c&&(n.__=[i?i(t):Rn(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],i=n.t(t,e);t!==i&&(n.__N=[i,n.__[1]],n.__c.setState({}))}],n.__c=ln,!ln.u)){var a=function(e,t,i){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter((function(e){return!!e.__c}));if(a.every((function(e){return!e.__N})))return!o||o.call(this,e,t,i);var s=!1;return a.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&n.__c.props===e)&&(!o||o.call(this,e,t,i))};ln.u=!0;var o=ln.shouldComponentUpdate,s=ln.componentWillUpdate;ln.componentWillUpdate=function(e,t,i){if(this.__e){var n=o;o=void 0,a(e,t,i),o=n}s&&s.call(this,e,t,i)},ln.shouldComponentUpdate=a}return n.__N||n.__}(Rn,e)}function Sn(e,t){var i=wn(rn++,3);!mn.__s&&Dn(i.__H,t)&&(i.__=e,i.i=t,ln.__H.__h.push(i))}function kn(e,t){var i=wn(rn++,7);return Dn(i.__H,t)?(i.__V=e(),i.i=t,i.__h=e,i.__V):i.__}function _n(e,t){return un=8,kn((function(){return e}),t)}function Cn(){for(var e;e=dn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(On),e.__H.__h.forEach(En),e.__H.__h=[]}catch(rn){e.__H.__h=[],mn.__e(rn,e.__v)}}mn.__b=function(e){ln=null,fn&&fn(e)},mn.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),xn&&xn(e,t)},mn.__r=function(e){gn&&gn(e),rn=0;var t=(ln=e.__c).__H;t&&(cn===ln?(t.__h=[],ln.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=hn,e.__N=e.i=void 0}))):(t.__h.forEach(On),t.__h.forEach(En),t.__h=[],rn=0)),cn=ln},mn.diffed=function(e){vn&&vn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==dn.push(t)&&pn===mn.requestAnimationFrame||((pn=mn.requestAnimationFrame)||Tn)(Cn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==hn&&(e.__=e.__V),e.i=void 0,e.__V=hn}))),cn=ln=null},mn.__c=function(e,t){t.some((function(e){try{e.__h.forEach(On),e.__h=e.__h.filter((function(e){return!e.__||En(e)}))}catch(i){t.some((function(e){e.__h&&(e.__h=[])})),t=[],mn.__e(i,e.__v)}})),bn&&bn(e,t)},mn.unmount=function(e){yn&&yn(e);var t,i=e.__c;i&&i.__H&&(i.__H.__.forEach((function(e){try{On(e)}catch(e){t=e}})),i.__H=void 0,t&&mn.__e(t,i.__v))};var Fn="function"==typeof requestAnimationFrame;function Tn(e){var t,i=function(){clearTimeout(n),Fn&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(i,100);Fn&&(t=requestAnimationFrame(i))}function On(e){var t=ln,i=e.__c;"function"==typeof i&&(e.__c=void 0,i()),ln=t}function En(e){var t=ln;e.__c=e.__(),ln=t}function Dn(e,t){return!e||e.length!==t.length||t.some((function(t,i){return t!==e[i]}))}function Rn(e,t){return"function"==typeof t?t(e):t}function Un(){return(0,Le.h)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg"},(0,Le.h)("g",{fill:"none","fill-rule":"evenodd"},(0,Le.h)("circle",{fill:"#FFF",cx:"13",cy:"13",r:"13"}),(0,Le.h)("path",{d:"M21.64 13.205c0-.639-.057-1.252-.164-1.841H13v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z",fill:"#4285F4","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M13 22c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H4.957v2.332A8.997 8.997 0 0013 22z",fill:"#34A853","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M7.964 14.71A5.41 5.41 0 017.682 13c0-.593.102-1.17.282-1.71V8.958H4.957A8.996 8.996 0 004 13c0 1.452.348 2.827.957 4.042l3.007-2.332z",fill:"#FBBC05","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M13 7.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C17.463 4.891 15.426 4 13 4a8.997 8.997 0 00-8.043 4.958l3.007 2.332C8.672 9.163 10.656 7.58 13 7.58z",fill:"#EA4335","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M4 4h18v18H4z"})))}function In(e){let{pluginName:t,i18n:i,onAuth:n}=e;const a="Google Drive"===t,o=_n((e=>{e.preventDefault(),n()}),[n]);return(0,Le.h)("form",{onSubmit:o},a?(0,Le.h)("button",{type:"submit",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn uppy-Provider-btn-google","data-uppy-super-focusable":!0},(0,Le.h)(Un,null),i("signInWithGoogle")):(0,Le.h)("button",{type:"submit",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn","data-uppy-super-focusable":!0},i("authenticateWith",{pluginName:t})))}const jn=e=>{let{pluginName:t,i18n:i,onAuth:n}=e;return(0,Le.h)(In,{pluginName:t,i18n:i,onAuth:n})};function An(e){const{loading:t,pluginName:i,pluginIcon:n,i18n:a,handleAuth:o,renderForm:s=jn}=e;return(0,Le.h)("div",{className:"uppy-Provider-auth"},(0,Le.h)("div",{className:"uppy-Provider-authIcon"},n()),(0,Le.h)("div",{className:"uppy-Provider-authTitle"},a("authenticateWithTitle",{pluginName:i})),(0,Le.h)("div",{className:"uppy-Provider-authForm"},s({pluginName:i,i18n:a,loading:t,onAuth:o})))}function Nn(e){let{i18n:t,logout:i,username:n}=e;return(0,Le.h)(Le.HY,null,(0,Le.h)("span",{className:"uppy-ProviderBrowser-user",key:"username"},n),(0,Le.h)("button",{type:"button",onClick:i,className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowser-userLogout",key:"logout"},t("logOut")))}const Bn=e=>{const{getFolder:t,title:i,isLast:n}=e;return(0,Le.h)(Le.HY,null,(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:t},i),n?"":" / ")};function Mn(e){const{getFolder:t,title:i,breadcrumbsIcon:n,breadcrumbs:a}=e;return(0,Le.h)("div",{className:"uppy-Provider-breadcrumbs"},(0,Le.h)("div",{className:"uppy-Provider-breadcrumbsIcon"},n),a.map(((e,n)=>(0,Le.h)(Bn,{key:e.id,getFolder:()=>t(e.requestPath,e.name),title:0===n?i:e.name,isLast:n+1===a.length}))))}function Ln(e){return(0,Le.h)(Le.HY,null,e.showBreadcrumbs&&(0,Le.h)(Mn,{getFolder:e.getFolder,breadcrumbs:e.breadcrumbs,breadcrumbsIcon:e.pluginIcon&&e.pluginIcon(),title:e.title}),(0,Le.h)(Nn,{logout:e.logout,username:e.username,i18n:e.i18n}))}var zn=i(52277);function qn(e){return{...e,type:e.mimeType,extension:e.name?N(e.name).extension:null}}function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Hn.apply(this,arguments)}const Wn={position:"relative",width:"100%",minHeight:"100%"},Vn={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};class Gn extends Le.wA{constructor(e){super(e),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:i,renderRow:n,overscanCount:a=10,...o}=e;const{offset:s,height:r}=this.state;let l=Math.floor(s/i),c=Math.floor(r/i);a&&(l=Math.max(0,l-l%a),c+=a);const p=l+c+4,u=t.slice(l,p),d={...Wn,height:t.length*i},h={...Vn,top:l*i};return(0,Le.h)("div",Hn({onScroll:this.handleScroll},o),(0,Le.h)("div",{role:"presentation",style:d},(0,Le.h)("div",{role:"presentation",style:h},u.map(n))))}}const Kn=Gn;function Xn(e){const{search:t,searchOnInput:i,searchTerm:n,showButton:a,inputLabel:o,clearSearchLabel:s,buttonLabel:r,clearSearch:l,inputClassName:c,buttonCSSClassName:p}=e,[u,d]=Pn(null!=n?n:""),h=_n((e=>{e.preventDefault(),t(u)}),[t,u]),m=_n((e=>{const n=e.target.value;d(n),i&&t(n)}),[d,i,t]),[f]=Pn((()=>{const e=document.createElement("form");return e.setAttribute("tabindex","-1"),e.id=F(),e}));return Sn((()=>(document.body.appendChild(f),f.addEventListener("submit",h),()=>{f.removeEventListener("submit",h),document.body.removeChild(f)})),[f,h]),(0,Le.h)(Le.HY,null,(0,Le.h)("input",{className:"uppy-u-reset ".concat(c),type:"search","aria-label":o,placeholder:o,value:u,onInput:m,form:f.id,"data-uppy-super-focusable":!0}),!a&&(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-ProviderBrowser-searchFilterIcon",width:"12",height:"12",viewBox:"0 0 12 12"},(0,Le.h)("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),!a&&u&&(0,Le.h)("button",{className:"uppy-u-reset uppy-ProviderBrowser-searchFilterReset",type:"button","aria-label":s,title:s,onClick:()=>{d(""),l&&l()}},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",viewBox:"0 0 19 19"},(0,Le.h)("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))),a&&(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary ".concat(p),type:"submit",form:f.id},r))}function Yn(e){let{cancel:t,done:i,i18n:n,selected:a}=e;return(0,Le.h)("div",{className:"uppy-ProviderBrowser-footer"},(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onClick:i,type:"button"},n("selectX",{smart_count:a})),(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onClick:t,type:"button"},n("cancel")))}function Zn(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:11,height:14.5,viewBox:"0 0 44 58"},(0,Le.h)("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}))}function Jn(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",style:{minWidth:16,marginRight:3},viewBox:"0 0 276.157 276.157"},(0,Le.h)("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}))}function Qn(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",style:{width:16,marginRight:4},viewBox:"0 0 58 58"},(0,Le.h)("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),(0,Le.h)("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}))}function $n(e){const{itemIconString:t}=e;if(null===t)return null;switch(t){case"file":return(0,Le.h)(Zn,null);case"folder":return(0,Le.h)(Jn,null);case"video":return(0,Le.h)(Qn,null);default:{const{alt:i}=e;return(0,Le.h)("img",{src:t,alt:i,referrerPolicy:"no-referrer",loading:"lazy",width:16,height:16})}}}const ea=function(e){const{className:t,isDisabled:i,restrictionError:n,isChecked:a,title:o,itemIconEl:s,showTitles:r,toggleCheckbox:l,recordShiftKeyPress:c,id:p,children:u}=e,d=zn("uppy-u-reset","uppy-ProviderBrowserItem-checkbox","uppy-ProviderBrowserItem-checkbox--grid",{"uppy-ProviderBrowserItem-checkbox--is-checked":a});return(0,Le.h)("li",{className:t,title:i?null==n?void 0:n.message:void 0},(0,Le.h)("input",{type:"checkbox",className:d,onChange:l,onKeyDown:c,onMouseDown:c,name:"listitem",id:p,checked:a,disabled:i,"data-uppy-super-focusable":!0}),(0,Le.h)("label",{htmlFor:p,"aria-label":o,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},s,r&&o,u))};function ta(e){const{className:t,isDisabled:i,restrictionError:n,isCheckboxDisabled:a,isChecked:o,toggleCheckbox:s,recordShiftKeyPress:r,type:l,id:c,itemIconEl:p,title:u,handleFolderClick:d,showTitles:h,i18n:m}=e;return(0,Le.h)("li",{className:t,title:i?null==n?void 0:n.message:void 0},a?null:(0,Le.h)("input",{type:"checkbox",className:"uppy-u-reset uppy-ProviderBrowserItem-checkbox ".concat(o?"uppy-ProviderBrowserItem-checkbox--is-checked":""),onChange:s,onKeyDown:r,onMouseDown:r,name:"listitem",id:c,checked:o,"aria-label":"file"===l?null:m("allFilesFromFolderNamed",{name:u}),disabled:i,"data-uppy-super-focusable":!0}),"file"===l?(0,Le.h)("label",{htmlFor:c,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},(0,Le.h)("div",{className:"uppy-ProviderBrowserItem-iconWrap"},p),h&&u):(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowserItem-inner",onClick:d,"aria-label":m("openFolderNamed",{name:u})},(0,Le.h)("div",{className:"uppy-ProviderBrowserItem-iconWrap"},p),h&&(0,Le.h)("span",null,u)))}function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},ia.apply(this,arguments)}function na(e){const{author:t,getItemIcon:i,isChecked:n,isDisabled:a,viewType:o}=e,s=i(),r=zn("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":n},{"uppy-ProviderBrowserItem--disabled":a},{"uppy-ProviderBrowserItem--noPreview":"video"===s}),l=(0,Le.h)($n,{itemIconString:s});switch(o){case"grid":return(0,Le.h)(ea,ia({},e,{className:r,itemIconEl:l}));case"list":return(0,Le.h)(ta,ia({},e,{className:r,itemIconEl:l}));case"unsplash":return(0,Le.h)(ea,ia({},e,{className:r,itemIconEl:l}),(0,Le.h)("a",{href:"".concat(t.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer",className:"uppy-ProviderBrowserItem-author",tabIndex:-1},t.name));default:throw new Error("There is no such type ".concat(o))}}const aa="shared-with-me";function oa(e){const{currentSelection:t,uppyFiles:i,viewType:n,isChecked:a,toggleCheckbox:o,recordShiftKeyPress:s,showTitles:r,i18n:l,validateRestrictions:c,getNextFolder:p,f:u}=e;if(u.isFolder)return na({showTitles:r,viewType:n,i18n:l,id:u.id,title:u.name,getItemIcon:()=>u.icon,isChecked:a(u),toggleCheckbox:e=>o(e,u),recordShiftKeyPress:s,type:"folder",isDisabled:!1,isCheckboxDisabled:u.id===aa,handleFolderClick:()=>p(u)});const d=c(qn(u),[...i,...t]);return na({id:u.id,title:u.name,author:u.author,getItemIcon:()=>u.icon,isChecked:a(u),toggleCheckbox:e=>o(e,u),isCheckboxDisabled:!1,recordShiftKeyPress:s,showTitles:r,viewType:n,i18n:l,type:"file",isDisabled:Boolean(d)&&!a(u),restrictionError:d})}const sa=function(e){const{currentSelection:t,folders:i,files:n,uppyFiles:a,viewType:o,headerComponent:s,showBreadcrumbs:r,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,handleScroll:u,showTitles:d,i18n:h,validateRestrictions:m,isLoading:f,showSearchFilter:g,search:v,searchTerm:b,clearSearch:y,searchOnInput:x,searchInputLabel:w,clearSearchLabel:P,getNextFolder:S,cancel:k,done:_,noResultsLabel:C,loadAllFiles:F}=e,T=t.length,O=kn((()=>[...i,...n]),[i,n]);return(0,Le.h)("div",{className:zn("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--".concat(o))},s&&(0,Le.h)("div",{className:"uppy-ProviderBrowser-header"},(0,Le.h)("div",{className:zn("uppy-ProviderBrowser-headerBar",!r&&"uppy-ProviderBrowser-headerBar--simple")},s)),g&&(0,Le.h)("div",{class:"uppy-ProviderBrowser-searchFilter"},(0,Le.h)(Xn,{search:v,searchTerm:b,clearSearch:y,inputLabel:w,clearSearchLabel:P,inputClassName:"uppy-ProviderBrowser-searchFilterInput",searchOnInput:x})),f?(0,Le.h)("div",{className:"uppy-Provider-loading"},(0,Le.h)("span",null,h("loading"))):i.length||n.length?F?(0,Le.h)("div",{className:"uppy-ProviderBrowser-body"},(0,Le.h)("ul",{className:"uppy-ProviderBrowser-list"},(0,Le.h)(Kn,{data:O,renderRow:e=>(0,Le.h)(oa,{currentSelection:t,uppyFiles:a,viewType:o,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,showTitles:d,i18n:h,validateRestrictions:m,getNextFolder:S,f:e}),rowHeight:31}))):(0,Le.h)("div",{className:"uppy-ProviderBrowser-body"},(0,Le.h)("ul",{className:"uppy-ProviderBrowser-list",onScroll:u,role:"listbox",tabIndex:-1},O.map((e=>(0,Le.h)(oa,{currentSelection:t,uppyFiles:a,viewType:o,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,showTitles:d,i18n:h,validateRestrictions:m,getNextFolder:S,f:e}))))):(0,Le.h)("div",{className:"uppy-Provider-empty"},C),T>0&&(0,Le.h)(Yn,{selected:T,done:_,cancel:k,i18n:h}))};class ra extends Le.wA{componentWillUnmount(){const{onUnmount:e}=this.props;e()}render(){const{children:e}=this.props;return(0,Le.bR)(e)[0]}}function la(e){return!!e&&/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e)}class ca{constructor(e,t){this.filterItems=e=>{const t=this.plugin.getPluginState();return t.filterInput&&""!==t.filterInput?e.filter((e=>-1!==e.name.toLowerCase().indexOf(t.filterInput.toLowerCase()))):e},this.recordShiftKeyPress=e=>{this.isShiftKeyPressed=e.shiftKey},this.toggleCheckbox=(e,t)=>{e.stopPropagation(),e.preventDefault(),e.currentTarget.focus();const{folders:i,files:n}=this.plugin.getPluginState(),a=this.filterItems(i.concat(n));if(this.lastCheckbox&&this.isShiftKeyPressed){const{currentSelection:e}=this.plugin.getPluginState(),i=a.indexOf(this.lastCheckbox),n=a.indexOf(t),o=i<n?a.slice(i,n+1):a.slice(n,i+1),s=[];for(const t of o){const{uppy:e}=this.plugin,i=e.validateRestrictions(qn(t),[...e.getFiles(),...s]);i?e.info({message:i.message},"error",e.opts.infoTimeout):s.push(t)}return void this.plugin.setPluginState({currentSelection:[...new Set([...e,...s])]})}this.lastCheckbox=t;const{currentSelection:o}=this.plugin.getPluginState();this.isChecked(t)?this.plugin.setPluginState({currentSelection:o.filter((e=>e.id!==t.id))}):this.plugin.setPluginState({currentSelection:o.concat([t])})},this.isChecked=e=>{const{currentSelection:t}=this.plugin.getPluginState();return t.some((t=>t.id===e.id))},this.plugin=e,this.provider=t.provider,this.opts=t,this.isHandlingScroll=!1,this.preFirstRender=this.preFirstRender.bind(this),this.handleError=this.handleError.bind(this),this.clearSelection=this.clearSelection.bind(this),this.cancelPicking=this.cancelPicking.bind(this)}preFirstRender(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()}shouldHandleScroll(e){const{scrollHeight:t,scrollTop:i,offsetHeight:n}=e.target;return t-(i+n)<50&&!this.isHandlingScroll}clearSelection(){this.plugin.setPluginState({currentSelection:[],filterInput:""})}cancelPicking(){this.clearSelection();const e=this.plugin.uppy.getPlugin("Dashboard");e&&e.hideAllPanels()}handleError(e){var t;const{uppy:i}=this.plugin,n=i.i18n("companionError");i.log(e.toString()),e.isAuthError||"AbortError"===(null==(t=e.cause)?void 0:t.name)||i.info({message:n,details:e.toString()},"error",5e3)}registerRequestClient(){this.requestClientId=this.provider.provider,this.plugin.uppy.registerRequestClient(this.requestClientId,this.provider)}getTagFile(e){const t={id:e.id,source:this.plugin.id,name:e.name||e.id,type:e.mimeType,isRemote:!0,data:e,meta:{},body:{fileId:e.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:"".concat(this.provider.fileUrl(e.requestPath)),body:{fileId:e.id},providerName:this.provider.name,provider:this.provider.provider,requestClientId:this.requestClientId}},i=M(t);return i&&la(i)&&(t.preview=e.thumbnail),e.author&&(null!=e.author.name&&(t.meta.authorName=String(e.author.name)),e.author.url&&(t.meta.authorUrl=e.author.url)),null!=e.relDirPath&&(t.meta.relativePath=e.relDirPath?"".concat(e.relDirPath,"/").concat(t.name):null),null!=e.absDirPath&&(t.meta.absolutePath=e.absDirPath?"/".concat(e.absDirPath,"/").concat(t.name):"/".concat(t.name)),t}setLoading(e){this.plugin.setPluginState({loading:e})}}function pa(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ua=0;function da(e){return"__private_"+ua+++"_"+e}function ha(e,t){return e?"".concat(e,"/").concat(t):t}function ma(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,Le.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}const fa={viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0,loadAllFiles:!1};var ga=da("abortController"),va=da("withAbort"),ba=da("list"),ya=da("listFilesAndFolders"),xa=da("recursivelyListAllFiles");async function wa(e){var t;null==(t=pa(this,ga)[ga])||t.abort();const i=new AbortController;pa(this,ga)[ga]=i;const n=()=>{i.abort(),this.clearSelection()};try{this.plugin.uppy.on("dashboard:close-panel",n),this.plugin.uppy.on("cancel-all",n),await e(i.signal)}finally{this.plugin.uppy.off("dashboard:close-panel",n),this.plugin.uppy.off("cancel-all",n),pa(this,ga)[ga]=void 0}}async function Pa(e){let{requestPath:t,absDirPath:i,signal:n}=e;const{username:a,nextPagePath:o,items:s}=await this.provider.list(t,{signal:n});return this.username=a||this.username,{items:s.map((e=>({...e,absDirPath:i}))),nextPagePath:o}}async function Sa(e){let{breadcrumbs:t,signal:i}=e;const n=function(e){return e.slice(1).map((e=>e.name)).join("/")}(t),{items:a,nextPagePath:o}=await pa(this,ba)[ba]({requestPath:this.nextPagePath,absDirPath:n,signal:i});this.nextPagePath=o;const s=[],r=[];return a.forEach((e=>{e.isFolder?r.push(e):s.push(e)})),{files:s,folders:r}}async function ka(e){let{requestPath:t,absDirPath:i,relDirPath:n,queue:a,onFiles:o,signal:s}=e,r=t;for(;r;){const e=await pa(this,ba)[ba]({requestPath:r,absDirPath:i,signal:s});r=e.nextPagePath;const t=e.items.filter((e=>!e.isFolder)),l=e.items.filter((e=>e.isFolder));o(t);const c=l.map((async e=>a.add((async()=>pa(this,xa)[xa]({requestPath:e.requestPath,absDirPath:ha(i,e.name),relDirPath:ha(n,e.name),queue:a,onFiles:o,signal:s})))));await Promise.all(c)}}function _a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(class extends ca{constructor(e,t){super(e,{...fa,...t}),Object.defineProperty(this,xa,{value:ka}),Object.defineProperty(this,ya,{value:Sa}),Object.defineProperty(this,ba,{value:Pa}),Object.defineProperty(this,va,{value:wa}),Object.defineProperty(this,ga,{writable:!0,value:void 0}),this.filterQuery=this.filterQuery.bind(this),this.clearFilter=this.clearFilter.bind(this),this.getFolder=this.getFolder.bind(this),this.getNextFolder=this.getNextFolder.bind(this),this.logout=this.logout.bind(this),this.handleAuth=this.handleAuth.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.render=this.render.bind(this),this.plugin.setPluginState({authenticated:void 0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[]}),this.registerRequestClient()}tearDown(){}async getFolder(e,t){this.setLoading(!0);try{await pa(this,va)[va]((async i=>{this.lastCheckbox=void 0;let{breadcrumbs:n}=this.plugin.getPluginState();const a=n.findIndex((t=>e===t.requestPath));n=-1!==a?n.slice(0,a+1):[...n,{requestPath:e,name:t}],this.nextPagePath=e;let o=[],s=[];do{const{files:e,folders:t}=await pa(this,ya)[ya]({breadcrumbs:n,signal:i});o=o.concat(e),s=s.concat(t),this.setLoading(this.plugin.uppy.i18n("loadedXFiles",{numFiles:o.length+s.length}))}while(this.opts.loadAllFiles&&this.nextPagePath);this.plugin.setPluginState({folders:s,files:o,breadcrumbs:n,filterInput:""})}))}catch(i){if("UserFacingApiError"===(null==i?void 0:i.name))return void this.plugin.uppy.info({message:this.plugin.uppy.i18n(i.message)},"warning",5e3);this.handleError(i)}finally{this.setLoading(!1)}}getNextFolder(e){this.getFolder(e.requestPath,e.name),this.lastCheckbox=void 0}async logout(){try{await pa(this,va)[va]((async e=>{const t=await this.provider.logout({signal:e});if(t.ok){if(!t.revoked){const e=this.plugin.uppy.i18n("companionUnauthorizeHint",{provider:this.plugin.title,url:t.manual_revoke_url});this.plugin.uppy.info(e,"info",7e3)}const e={authenticated:!1,files:[],folders:[],breadcrumbs:[],filterInput:""};this.plugin.setPluginState(e)}}))}catch(e){this.handleError(e)}}filterQuery(e){this.plugin.setPluginState({filterInput:e})}clearFilter(){this.plugin.setPluginState({filterInput:""})}async handleAuth(e){try{await pa(this,va)[va]((async t=>{this.setLoading(!0),await this.provider.login({authFormData:e,signal:t}),this.plugin.setPluginState({authenticated:!0}),this.preFirstRender()}))}catch(t){if("UserFacingApiError"===t.name)return void this.plugin.uppy.info({message:this.plugin.uppy.i18n(t.message)},"warning",5e3);this.plugin.uppy.log("login failed: ".concat(t.message))}finally{this.setLoading(!1)}}async handleScroll(e){if(this.shouldHandleScroll(e)&&this.nextPagePath){this.isHandlingScroll=!0;try{await pa(this,va)[va]((async e=>{const{files:t,folders:i,breadcrumbs:n}=this.plugin.getPluginState(),{files:a,folders:o}=await pa(this,ya)[ya]({breadcrumbs:n,signal:e}),s=t.concat(a),r=i.concat(o);this.plugin.setPluginState({folders:r,files:s})}))}catch(_c){this.handleError(_c)}finally{this.isHandlingScroll=!1}}}async donePicking(){this.setLoading(!0);try{await pa(this,va)[va]((async e=>{const{currentSelection:t}=this.plugin.getPluginState(),i=[],n=[];for(const a of t){const{requestPath:t}=a,o=e=>({...e,relDirPath:e.absDirPath.replace(a.absDirPath,"").replace(/^\//,"")});if(a.isFolder){let s=!0,r=0;const l=new sn({concurrency:6}),c=e=>{for(const t of e){const e=z(this.getTagFile(t));this.plugin.uppy.checkIfFileAlreadyExists(e)||(n.push(o(t)),r++,this.setLoading(this.plugin.uppy.i18n("addedNumFiles",{numFiles:r}))),s=!1}};let p;await pa(this,xa)[xa]({requestPath:t,absDirPath:ha(a.absDirPath,a.name),relDirPath:a.name,queue:l,onFiles:c,signal:e}),await l.onIdle(),p=s?this.plugin.uppy.i18n("emptyFolderAdded"):0===r?this.plugin.uppy.i18n("folderAlreadyAdded",{folder:a.name}):this.plugin.uppy.i18n("folderAdded",{smart_count:r,folder:a.name}),i.push(p)}else n.push(o(a))}this.plugin.uppy.log("Adding files from a remote provider"),this.plugin.uppy.addFiles(n.map((e=>this.getTagFile(e,this.requestClientId)))),this.plugin.setPluginState({filterInput:""}),i.forEach((e=>this.plugin.uppy.info(e))),this.clearSelection()}))}catch(e){this.handleError(e)}finally{this.setLoading(!1)}}render(e,t){var i=this;void 0===t&&(t={});const{authenticated:n,didFirstRender:a}=this.plugin.getPluginState(),{i18n:o}=this.plugin.uppy;a||this.preFirstRender();const s={...this.opts,...t},{files:r,folders:l,filterInput:c,loading:p,currentSelection:u}=this.plugin.getPluginState(),{isChecked:d,toggleCheckbox:h,recordShiftKeyPress:m,filterItems:f}=this,g=""!==c,v=this.plugin.icon||ma,b={showBreadcrumbs:s.showBreadcrumbs,getFolder:this.getFolder,breadcrumbs:this.plugin.getPluginState().breadcrumbs,pluginIcon:v,title:this.plugin.title,logout:this.logout,username:this.username,i18n:o},y={isChecked:d,toggleCheckbox:h,recordShiftKeyPress:m,currentSelection:u,files:g?f(r):r,folders:g?f(l):l,getNextFolder:this.getNextFolder,getFolder:this.getFolder,loadAllFiles:this.opts.loadAllFiles,showSearchFilter:s.showFilter,search:this.filterQuery,clearSearch:this.clearFilter,searchTerm:c,searchOnInput:!0,searchInputLabel:o("filter"),clearSearchLabel:o("resetFilter"),noResultsLabel:o("noFilesFound"),logout:this.logout,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,headerComponent:(0,Le.h)(Ln,b),title:this.plugin.title,viewType:s.viewType,showTitles:s.showTitles,showBreadcrumbs:s.showBreadcrumbs,pluginIcon:v,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){return i.plugin.uppy.validateRestrictions(...arguments)},isLoading:p};return!1===n?(0,Le.h)(ra,{onUnmount:this.clearSelection},(0,Le.h)(An,{pluginName:this.plugin.title,pluginIcon:v,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18nArray,renderForm:this.opts.renderAuthForm,loading:p})):(0,Le.h)(ra,{onUnmount:this.clearSelection},(0,Le.h)(sa,y))}}).VERSION="3.10.0";var Ca=0;function Fa(e){return"__private_"+Ca+++"_"+e}const Ta={isInputMode:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",currentSelection:[],searchTerm:null},Oa={viewType:"grid",showTitles:!0,showFilter:!0,showBreadcrumbs:!0};var Ea=Fa("updateFilesAndInputMode");class Da extends ca{constructor(e,t){super(e,{...Oa,...t}),Object.defineProperty(this,Ea,{value:Ra}),this.nextPageQuery=null,this.search=this.search.bind(this),this.clearSearch=this.clearSearch.bind(this),this.resetPluginState=this.resetPluginState.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.render=this.render.bind(this),this.plugin.setPluginState(Ta),this.registerRequestClient()}tearDown(){}resetPluginState(){this.plugin.setPluginState(Ta)}async search(e){const{searchTerm:t}=this.plugin.getPluginState();if(!e||e!==t){this.setLoading(!0);try{const t=await this.provider.search(e);_a(this,Ea)[Ea](t,[])}catch(i){this.handleError(i)}finally{this.setLoading(!1)}}}clearSearch(){this.plugin.setPluginState({currentSelection:[],files:[],searchTerm:null})}async handleScroll(e){const t=this.nextPageQuery||null;if(this.shouldHandleScroll(e)&&t){this.isHandlingScroll=!0;try{const{files:e,searchTerm:i}=this.plugin.getPluginState(),n=await this.provider.search(i,t);_a(this,Ea)[Ea](n,e)}catch(_c){this.handleError(_c)}finally{this.isHandlingScroll=!1}}}donePicking(){const{currentSelection:e}=this.plugin.getPluginState();this.plugin.uppy.log("Adding remote search provider files"),this.plugin.uppy.addFiles(e.map((e=>this.getTagFile(e)))),this.resetPluginState()}render(e,t){var i=this;void 0===t&&(t={});const{didFirstRender:n,isInputMode:a,searchTerm:o}=this.plugin.getPluginState(),{i18n:s}=this.plugin.uppy;n||this.preFirstRender();const r={...this.opts,...t},{files:l,folders:c,filterInput:p,loading:u,currentSelection:d}=this.plugin.getPluginState(),{isChecked:h,toggleCheckbox:m,filterItems:f,recordShiftKeyPress:g}=this,v=""!==p,b={isChecked:h,toggleCheckbox:m,recordShiftKeyPress:g,currentSelection:d,files:v?f(l):l,folders:v?f(c):c,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,showSearchFilter:r.showFilter,search:this.search,clearSearch:this.clearSearch,searchTerm:o,searchOnInput:!1,searchInputLabel:s("search"),clearSearchLabel:s("resetSearch"),noResultsLabel:s("noSearchResults"),title:this.plugin.title,viewType:r.viewType,showTitles:r.showTitles,showFilter:r.showFilter,isLoading:u,showBreadcrumbs:r.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:s,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){return i.plugin.uppy.validateRestrictions(...arguments)}};return a?(0,Le.h)(ra,{onUnmount:this.resetPluginState},(0,Le.h)("div",{className:"uppy-SearchProvider"},(0,Le.h)(Xn,{search:this.search,inputLabel:s("enterTextToSearch"),buttonLabel:s("searchImages"),inputClassName:"uppy-c-textInput uppy-SearchProvider-input",buttonCSSClassName:"uppy-SearchProvider-searchButton",showButton:!0}))):(0,Le.h)(ra,{onUnmount:this.resetPluginState},(0,Le.h)(sa,b))}}function Ra(e,t){this.nextPageQuery=e.nextPageQuery,e.items.forEach((e=>{t.push(e)})),this.plugin.setPluginState({currentSelection:[],isInputMode:!1,files:t,searchTerm:e.searchedFor})}Da.VERSION="3.10.0";class Ua extends Ze{constructor(e,t){if(super(e,t),this.id=this.opts.id||"Unsplash",this.title=this.opts.title||"Unsplash",ri.initPlugin(this,t,{}),this.icon=()=>(0,Le.h)("svg",{className:"uppy-DashboardTab-iconUnsplash",viewBox:"0 0 32 32",height:"32",width:"32","aria-hidden":"true"},(0,Le.h)("g",{fill:"currentcolor"},(0,Le.h)("path",{d:"M46.575 10.883v-9h12v9zm12 5h10v18h-32v-18h10v9h12z"}),(0,Le.h)("path",{d:"M13 12.5V8h6v4.5zm6 2.5h5v9H8v-9h5v4.5h6z"}))),!this.opts.companionUrl)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");this.hostname=this.opts.companionUrl,this.provider=new pi(e,{companionUrl:this.opts.companionUrl,companionHeaders:this.opts.companionHeaders,companionCookiesRule:this.opts.companionCookiesRule,provider:"unsplash",pluginId:this.id})}install(){this.view=new Da(this,{provider:this.provider,viewType:"unsplash",showFilter:!0});const{target:e}=this.opts;e&&this.mount(e,this)}onFirstRender(){}render(e){return this.view.render(e)}uninstall(){this.unmount()}}Ua.VERSION="3.2.3";var Ia=i(87384),ja=i.n(Ia),Aa=i(63838);function Na(e,t,i,n){return 0===i||e===t?e:0===n?t:e+(t-e)*2**(-n/i)}const Ba={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"};function Ma(e){const t=[];let i,n="indeterminate";for(const{progress:a}of Object.values(e)){const{preprocess:e,postprocess:o}=a;null==i&&(e||o)&&({mode:n,message:i}=e||o),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==o?void 0:o.mode)&&t.push(o.value)}return{mode:n,message:i,value:t.reduce(((e,i)=>e+i/t.length),0)}}function La(e){const t=(i=e,{hours:Math.floor(i/3600)%24,minutes:Math.floor(i/60)%60,seconds:Math.floor(i%60)});var i;const n=0===t.hours?"":"".concat(t.hours,"h"),a=0===t.minutes?"":"".concat(0===t.hours?t.minutes:" ".concat(t.minutes.toString(10).padStart(2,"0")),"m"),o=0!==t.hours?"":"".concat(0===t.minutes?t.seconds:" ".concat(t.seconds.toString(10).padStart(2,"0")),"s");return"".concat(n).concat(a).concat(o)}const za=()=>" ".concat("\xb7"," ");function qa(e){const{newFiles:t,isUploadStarted:i,recoveredState:n,i18n:a,uploadState:o,isSomeGhost:s,startUpload:r}=e,l=zn("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":o===Ba.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":s}),c=a(t&&i&&!n?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return(0,Le.h)("button",{type:"button",className:l,"aria-label":a("uploadXFiles",{smart_count:t}),onClick:r,disabled:s,"data-uppy-super-focusable":!0},c)}function Ha(e){const{i18n:t,uppy:i}=e;return(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>i.retryAll().catch((()=>{})),"data-uppy-super-focusable":!0,"data-cy":"retry"},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},(0,Le.h)("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))}function Wa(e){const{i18n:t,uppy:i}=e;return(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>i.cancelAll(),"data-cy":"cancel","data-uppy-super-focusable":!0},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,Le.h)("g",{fill:"none",fillRule:"evenodd"},(0,Le.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,Le.h)("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))}function Va(e){const{isAllPaused:t,i18n:i,isAllComplete:n,resumableUploads:a,uppy:o}=e,s=i(t?"resume":"pause");return(0,Le.h)("button",{title:s,"aria-label":s,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){n||(a?t?o.resumeAll():o.pauseAll():o.cancelAll())},"data-cy":"togglePauseResume","data-uppy-super-focusable":!0},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,Le.h)("g",{fill:"none",fillRule:"evenodd"},(0,Le.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,Le.h)("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))}function Ga(e){const{i18n:t,doneButtonHandler:i}=e;return(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:i,"data-uppy-super-focusable":!0},t("done"))}function Ka(){return(0,Le.h)("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},(0,Le.h)("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function Xa(e){const{progress:t}=e,{value:i,mode:n,message:a}=t;return(0,Le.h)("div",{className:"uppy-StatusBar-content"},(0,Le.h)(Ka,null),"determinate"===n?"".concat(Math.round(100*i),"% ").concat("\xb7"," "):"",a)}function Ya(e){const{numUploads:t,complete:i,totalUploadedSize:n,totalSize:a,totalETA:o,i18n:s}=e,r=t>1;return(0,Le.h)("div",{className:"uppy-StatusBar-statusSecondary"},r&&s("filesUploadedOfTotal",{complete:i,smart_count:t}),(0,Le.h)("span",{className:"uppy-StatusBar-additionalInfo"},r&&za(),s("dataUploadedOfTotal",{complete:K(n),total:K(a)}),za(),s("xTimeLeft",{time:La(o)})))}function Za(e){const{i18n:t,complete:i,numUploads:n}=e;return(0,Le.h)("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:i,smart_count:n}))}function Ja(e){const{i18n:t,newFiles:i,startUpload:n}=e,a=zn("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return(0,Le.h)("div",{className:"uppy-StatusBar-statusSecondary"},(0,Le.h)("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:i})),(0,Le.h)("button",{type:"button",className:a,"aria-label":t("uploadXFiles",{smart_count:i}),onClick:n},t("upload")))}function Qa(e){const{i18n:t,supportsUploadProgress:i,totalProgress:n,showProgressDetails:a,isUploadStarted:o,isAllComplete:s,isAllPaused:r,newFiles:l,numUploads:c,complete:p,totalUploadedSize:u,totalSize:d,totalETA:h,startUpload:m}=e,f=l&&o;if(!o||s)return null;const g=t(r?"paused":"uploading");return(0,Le.h)("div",{className:"uppy-StatusBar-content","aria-label":g,title:g},r?null:(0,Le.h)(Ka,null),(0,Le.h)("div",{className:"uppy-StatusBar-status"},(0,Le.h)("div",{className:"uppy-StatusBar-statusPrimary"},i?"".concat(g,": ").concat(n,"%"):g),r||f||!a?null:i?(0,Le.h)(Ya,{numUploads:c,complete:p,totalUploadedSize:u,totalSize:d,totalETA:h,i18n:t}):(0,Le.h)(Za,{i18n:t,complete:p,numUploads:c}),f?(0,Le.h)(Ja,{i18n:t,newFiles:l,startUpload:m}):null))}function $a(e){const{i18n:t}=e;return(0,Le.h)("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},(0,Le.h)("div",{className:"uppy-StatusBar-status"},(0,Le.h)("div",{className:"uppy-StatusBar-statusPrimary"},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},(0,Le.h)("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))}function eo(e){const{error:t,i18n:i,complete:n,numUploads:a}=e;return(0,Le.h)("div",{className:"uppy-StatusBar-content",title:i("uploadFailed")},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,Le.h)("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),(0,Le.h)("div",{className:"uppy-StatusBar-status"},(0,Le.h)("div",{className:"uppy-StatusBar-statusPrimary"},i("uploadFailed"),(0,Le.h)("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":i("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e="".concat(i("uploadFailed")," \n\n ").concat(t);alert(e)},type:"button"},"?")),(0,Le.h)(Za,{i18n:i,complete:n,numUploads:a})))}const{STATE_ERROR:to,STATE_WAITING:io,STATE_PREPROCESSING:no,STATE_UPLOADING:ao,STATE_POSTPROCESSING:oo,STATE_COMPLETE:so}=Ba;function ro(e){const{newFiles:t,allowNewUpload:i,isUploadInProgress:n,isAllPaused:a,resumableUploads:o,error:s,hideUploadButton:r,hidePauseResumeButton:l,hideCancelButton:c,hideRetryButton:p,recoveredState:u,uploadState:d,totalProgress:h,files:m,supportsUploadProgress:f,hideAfterFinish:g,isSomeGhost:v,doneButtonHandler:b,isUploadStarted:y,i18n:x,startUpload:w,uppy:P,isAllComplete:S,showProgressDetails:k,numUploads:_,complete:C,totalSize:F,totalETA:T,totalUploadedSize:O}=e;const E=function(){switch(d){case oo:case no:{const e=Ma(m);return"determinate"===e.mode?100*e.value:h}case to:return null;case ao:return f?h:null;default:return h}}(),D=function(){if(u)return!1;switch(d){case io:return r||0===t;case so:return g;default:return!1}}(),R=null!=E?E:100,U=!s&&t&&!n&&!a&&i&&!r,I=!c&&d!==io&&d!==so,j=o&&!l&&d===ao,A=s&&!S&&!p,N=b&&d===so,B=zn("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(d){case oo:case no:{const{mode:e}=Ma(m);return"indeterminate"===e}case ao:return!f;default:return!1}}()}),M=zn("uppy-StatusBar","is-".concat(d),{"has-ghosts":v});return(0,Le.h)("div",{className:M,"aria-hidden":D},(0,Le.h)("div",{className:B,style:{width:"".concat(R,"%")},role:"progressbar","aria-label":"".concat(R,"%"),"aria-valuetext":"".concat(R,"%"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":E}),(()=>{switch(d){case no:case oo:return(0,Le.h)(Xa,{progress:Ma(m)});case so:return(0,Le.h)($a,{i18n:x});case to:return(0,Le.h)(eo,{error:s,i18n:x,numUploads:_,complete:C});case ao:return(0,Le.h)(Qa,{i18n:x,supportsUploadProgress:f,totalProgress:h,showProgressDetails:k,isUploadStarted:y,isAllComplete:S,isAllPaused:a,newFiles:t,numUploads:_,complete:C,totalUploadedSize:O,totalSize:F,totalETA:T,startUpload:w});default:return null}})(),(0,Le.h)("div",{className:"uppy-StatusBar-actions"},u||U?(0,Le.h)(qa,{newFiles:t,isUploadStarted:y,recoveredState:u,i18n:x,isSomeGhost:v,startUpload:w,uploadState:d}):null,A?(0,Le.h)(Ha,{i18n:x,uppy:P}):null,j?(0,Le.h)(Va,{isAllPaused:a,i18n:x,isAllComplete:S,resumableUploads:o,uppy:P}):null,I?(0,Le.h)(Wa,{i18n:x,uppy:P}):null,N?(0,Le.h)(Ga,{i18n:x,doneButtonHandler:b}):null))}ro.defaultProps={doneButtonHandler:void 0,hideAfterFinish:!1,hideCancelButton:!1,hidePauseResumeButton:!1,hideRetryButton:!1,hideUploadButton:void 0,showProgressDetails:void 0};const lo={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function co(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var po=0;function uo(e){return"__private_"+po+++"_"+e}function ho(e,t,i,n){if(e)return Ba.STATE_ERROR;if(t)return Ba.STATE_COMPLETE;if(i)return Ba.STATE_WAITING;let a=Ba.STATE_WAITING;const o=Object.keys(n);for(let s=0;s<o.length;s++){const{progress:e}=n[o[s]];if(e.uploadStarted&&!e.uploadComplete)return Ba.STATE_UPLOADING;e.preprocess&&(a=Ba.STATE_PREPROCESSING),e.postprocess&&a!==Ba.STATE_PREPROCESSING&&(a=Ba.STATE_POSTPROCESSING)}return a}const mo={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null};var fo=uo("lastUpdateTime"),go=uo("previousUploadedBytes"),vo=uo("previousSpeed"),bo=uo("previousETA"),yo=uo("computeSmoothETA"),xo=uo("onUploadStart");class wo extends Ze{constructor(e,t){super(e,{...mo,...t}),Object.defineProperty(this,yo,{value:Po}),Object.defineProperty(this,fo,{writable:!0,value:void 0}),Object.defineProperty(this,go,{writable:!0,value:void 0}),Object.defineProperty(this,vo,{writable:!0,value:void 0}),Object.defineProperty(this,bo,{writable:!0,value:void 0}),this.startUpload=()=>this.uppy.upload().catch((()=>{})),Object.defineProperty(this,xo,{writable:!0,value:()=>{const{recoveredState:e}=this.uppy.getState();if(co(this,vo)[vo]=null,co(this,bo)[bo]=null,e)return co(this,go)[go]=Object.values(e.files).reduce(((e,t)=>{let{progress:i}=t;return e+i.bytesUploaded}),0),void this.uppy.emit("restore-confirmed");co(this,fo)[fo]=performance.now(),co(this,go)[go]=0}}),this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=lo,this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(e){const{capabilities:t,files:i,allowNewUpload:n,totalProgress:a,error:o,recoveredState:s}=e,{newFiles:r,startedFiles:l,completeFiles:c,isUploadStarted:p,isAllComplete:u,isAllErrored:d,isAllPaused:h,isUploadInProgress:m,isSomeGhost:f}=this.uppy.getObjectOfFilesPerState(),g=s?Object.values(i):r,v=!!t.resumableUploads,b=!1!==t.uploadProgress;let y=0,x=0;l.forEach((e=>{y+=e.progress.bytesTotal||0,x+=e.progress.bytesUploaded||0}));const w=co(this,yo)[yo]({uploaded:x,total:y,remaining:y-x});return ro({error:o,uploadState:ho(o,u,s,e.files||{}),allowNewUpload:n,totalProgress:a,totalSize:y,totalUploadedSize:x,isAllComplete:!1,isAllPaused:h,isAllErrored:d,isUploadStarted:p,isUploadInProgress:m,isSomeGhost:f,recoveredState:s,complete:c.length,newFiles:g.length,numUploads:l.length,totalETA:w,files:i,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:v,supportsUploadProgress:b,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const e=this.el;He(e)||(e.dir="ltr")}install(){const{target:e}=this.opts;e&&this.mount(e,this),this.uppy.on("upload",co(this,xo)[xo]),co(this,fo)[fo]=performance.now(),co(this,go)[go]=this.uppy.getFiles().reduce(((e,t)=>e+t.progress.bytesUploaded),0)}uninstall(){this.unmount(),this.uppy.off("upload",co(this,xo)[xo])}}function Po(e){var t;if(0===e.total||0===e.remaining)return 0;null!=(t=co(this,fo))[fo]||(t[fo]=performance.now());const i=performance.now()-co(this,fo)[fo];var n;if(0===i)return Math.round((null!=(n=co(this,bo)[bo])?n:0)/100)/10;const a=e.uploaded-co(this,go)[go];var o;if(co(this,go)[go]=e.uploaded,a<=0)return Math.round((null!=(o=co(this,bo)[bo])?o:0)/100)/10;const s=a/i,r=null==co(this,vo)[vo]?s:Na(s,co(this,vo)[vo],2e3,i);co(this,vo)[vo]=r;const l=e.remaining/r,c=Math.max(co(this,bo)[bo]-i,0),p=null==co(this,bo)[bo]?l:Na(l,c,2e3,i);return co(this,bo)[bo]=p,co(this,fo)[fo]=performance.now(),Math.round(p/100)/10}wo.VERSION="3.3.0";class So extends Le.wA{constructor(){super(...arguments),this.ref=(0,Le.Vf)()}componentWillEnter(e){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(e,300)}componentWillLeave(e){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(e,300)}render(){const{children:e}=this.props;return(0,Le.h)("div",{className:"uppy-Informer-animated",ref:this.ref},e)}}function ko(e,t){var i;return null!=(i=null==e?void 0:e.key)?i:t}function _o(e){const t={};for(let i=0;i<e.length;i++)if(null!=e[i]){t[ko(e[i],i.toString(36))]=e[i]}return t}function Co(e,t){e=e||{},t=t||{};const i=i=>t.hasOwnProperty(i)?t[i]:e[i],n={};let a=[];for(const s in e)t.hasOwnProperty(s)?a.length&&(n[s]=a,a=[]):a.push(s);const o={};for(const s in t){if(n.hasOwnProperty(s))for(let e=0;e<n[s].length;e++){const t=n[s][e];o[n[s][e]]=i(t)}o[s]=i(s)}for(let s=0;s<a.length;s++)o[a[s]]=i(a[s]);return o}class Fo extends Le.wA{constructor(e,t){super(e,t),this.refs={},this.state={children:_o((0,Le.bR)((0,Le.bR)(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const e=this.state.children;for(const t in e)e[t]&&this.performAppear(t)}componentWillReceiveProps(e){const t=_o((0,Le.bR)(e.children)||[]),i=this.state.children;let n;for(n in this.setState((e=>({children:Co(e.children,t)}))),t)if(t.hasOwnProperty(n)){const e=i&&i.hasOwnProperty(n);t[n]&&e&&this.currentlyTransitioningKeys[n]?(this.keysToEnter.push(n),this.keysToAbortLeave.push(n)):!t[n]||e||this.currentlyTransitioningKeys[n]||this.keysToEnter.push(n)}for(n in i)if(i.hasOwnProperty(n)){const e=t&&t.hasOwnProperty(n);!i[n]||e||this.currentlyTransitioningKeys[n]||this.keysToLeave.push(n)}}componentDidUpdate(){const{keysToEnter:e}=this;this.keysToEnter=[],e.forEach(this.performEnter);const{keysToLeave:t}=this;this.keysToLeave=[],t.forEach(this.performLeave)}_finishAbort(e){const t=this.keysToAbortLeave.indexOf(e);-1!==t&&this.keysToAbortLeave.splice(t,1)}performAppear(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];null!=t&&t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)}_handleDoneAppearing(e){const t=this.refs[e];null!=t&&t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const i=_o((0,Le.bR)(this.props.children)||[]);i&&i.hasOwnProperty(e)||this.performLeave(e)}performEnter(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];null!=t&&t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)}_handleDoneEntering(e){const t=this.refs[e];null!=t&&t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const i=_o((0,Le.bR)(this.props.children)||[]);i&&i.hasOwnProperty(e)||this.performLeave(e)}performLeave(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];null!=t&&t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)}_handleDoneLeaving(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;const t=this.refs[e];null!=t&&t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];const i=_o((0,Le.bR)(this.props.children)||[]);if(i&&i.hasOwnProperty(e))this.performEnter(e);else{const t=(n={},a=this.state.children,Object.assign(n,a));delete t[e],this.setState({children:t})}var n,a}render(e,t){let{childFactory:i,transitionLeave:n,transitionName:a,transitionAppear:o,transitionEnter:s,transitionLeaveTimeout:r,transitionEnterTimeout:l,transitionAppearTimeout:c,component:p,...u}=e,{children:d}=t;const h=Object.entries(d).map((e=>{let[t,n]=e;if(!n)return;const a=function(e,t){const i=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return i[t]||(i[t]=i=>{e.refs[t]=i})}(this,t);return(0,Le.Tm)(i(n),{ref:a,key:t})})).filter(Boolean);return(0,Le.h)(p,u,h)}}Fo.defaultProps={component:"span",childFactory:e=>e};const To=Fo;class Oo extends Ze{constructor(e,t){super(e,t),this.render=e=>(0,Le.h)("div",{className:"uppy uppy-Informer"},(0,Le.h)(To,null,e.info.map((e=>(0,Le.h)(So,{key:e.message},(0,Le.h)("p",{role:"alert"},e.message," ",e.details&&(0,Le.h)("span",{"aria-label":e.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert("".concat(e.message," \n\n ").concat(e.details))},"?"))))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer"}install(){const{target:e}=this.opts;e&&this.mount(e,this)}}Oo.VERSION="3.1.0";const Eo=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;function Do(e){return e.startsWith("blob:")}var Ro=i(24921),Uo=i(55227).Buffer;function Io(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var jo="undefined"!=typeof self?self:global;const Ao="undefined"!=typeof navigator,No=Ao&&"undefined"==typeof HTMLImageElement,Bo=!("undefined"==typeof global||"undefined"==typeof Ro||!Ro.versions||!Ro.versions.node),Mo=jo.Buffer,Lo=!!Mo,zo=e=>void 0!==e;function qo(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(zo).length)}function Ho(e){let t=new Error(e);throw delete t.stack,t}function Wo(e){let t=function(e){let t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}const Vo=e=>String.fromCharCode.apply(null,e),Go="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;class Ko{static from(e,t){return e instanceof this&&e.le===t?e:new Ko(e,void 0,void 0,t)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("boolean"==typeof n&&(this.le=n),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===i&&(i=e.byteLength-t);let n=new DataView(e,t,i);this._swapDataView(n)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof Ko){void 0===i&&(i=e.byteLength-t),(t+=e.byteOffset)+i>e.byteOffset+e.byteLength&&Ho("Creating view outside of available memory in ArrayBuffer");let n=new DataView(e.buffer,t,i);this._swapDataView(n)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else Ho("Invalid input argument for BufferView: "+e)}_swapArrayBuffer(e){this._swapDataView(new DataView(e))}_swapBuffer(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}_swapDataView(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}_lengthToEnd(e){return this.byteLength-e}set(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ko;return e instanceof DataView||e instanceof Ko?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||Ho("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new i(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new Ko(this,e,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}getString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength;return i=this.getUint8Array(e,t),Go?Go.decode(i):Lo?Uo.from(i).toString("utf8"):decodeURIComponent(escape(Vo(i)));var i}getLatin1String(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,i=this.getUint8Array(e,t);return Vo(i)}getUnicodeString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength;const i=[];for(let n=0;n<t&&e+n<this.byteLength;n+=2)i.push(this.getUint16(e+n));return Vo(i)}getInt8(e){return this.dataView.getInt8(e)}getUint8(e){return this.dataView.getUint8(e)}getInt16(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt16(e,t)}getInt32(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt32(e,t)}getUint16(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint16(e,t)}getUint32(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint32(e,t)}getFloat32(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}getFloat64(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}getFloat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}getDouble(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}getUintBytes(e,t,i){switch(t){case 1:return this.getUint8(e,i);case 2:return this.getUint16(e,i);case 4:return this.getUint32(e,i);case 8:return this.getUint64&&this.getUint64(e,i)}}getUint(e,t,i){switch(t){case 8:return this.getUint8(e,i);case 16:return this.getUint16(e,i);case 32:return this.getUint32(e,i);case 64:return this.getUint64&&this.getUint64(e,i)}}toString(e){return this.dataView.toString(e,this.constructor.name)}ensureChunk(){}}function Xo(e,t){Ho("".concat(e," '").concat(t,"' was not loaded, try using full build of exifr."))}class Yo extends Map{constructor(e){super(),this.kind=e}get(e,t){return this.has(e)||Xo(this.kind,e),t&&(e in t||function(e,t){Ho("Unknown ".concat(e," '").concat(t,"'."))}(this.kind,e),t[e].enabled||Xo(this.kind,e)),super.get(e)}keyList(){return Array.from(this.keys())}}var Zo=new Yo("file parser"),Jo=new Yo("segment parser"),Qo=new Yo("file reader");let $o=jo.fetch;function es(e,t){return(i=e).startsWith("data:")||i.length>1e4?is(e,t,"base64"):Bo&&e.includes("://")?ts(e,t,"url",ns):Bo?is(e,t,"fs"):Ao?ts(e,t,"url",ns):void Ho("Invalid input argument");var i}async function ts(e,t,i,n){return Qo.has(i)?is(e,t,i):n?async function(e,t){let i=await t(e);return new Ko(i)}(e,n):void Ho("Parser ".concat(i," is not loaded"))}async function is(e,t,i){let n=new(Qo.get(i))(e,t);return await n.read(),n}const ns=e=>$o(e).then((e=>e.arrayBuffer())),as=e=>new Promise(((t,i)=>{let n=new FileReader;n.onloadend=()=>t(n.result||new ArrayBuffer),n.onerror=i,n.readAsArrayBuffer(e)}));class os extends Map{get tagKeys(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}get tagValues(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}function ss(e,t,i){let n=new os;for(let[a,o]of i)n.set(a,o);if(Array.isArray(t))for(let a of t)e.set(a,n);else e.set(t,n);return n}function rs(e,t,i){let n,a=e.get(t);for(n of i)a.set(n[0],n[1])}const ls=new Map,cs=new Map,ps=new Map,us=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],ds=["jfif","xmp","icc","iptc","ihdr"],hs=["tiff",...ds],ms=["ifd0","ifd1","exif","gps","interop"],fs=[...hs,...ms],gs=["makerNote","userComment"],vs=["translateKeys","translateValues","reviveValues","multiSegment"],bs=[...vs,"sanitize","mergeOutput","silentErrors"];class ys{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class xs extends ys{get needed(){return this.enabled||this.deps.size>0}constructor(e,t,i,n){if(super(),Io(this,"enabled",!1),Io(this,"skip",new Set),Io(this,"pick",new Set),Io(this,"deps",new Set),Io(this,"translateKeys",!1),Io(this,"translateValues",!1),Io(this,"reviveValues",!1),this.key=e,this.enabled=t,this.parse=this.enabled,this.applyInheritables(n),this.canBeFiltered=ms.includes(e),this.canBeFiltered&&(this.dict=ls.get(e)),void 0!==i)if(Array.isArray(i))this.parse=this.enabled=!0,this.canBeFiltered&&i.length>0&&this.translateTagSet(i,this.pick);else if("object"==typeof i){if(this.enabled=!0,this.parse=!1!==i.parse,this.canBeFiltered){let{pick:e,skip:t}=i;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(i)}else!0===i||!1===i?this.parse=this.enabled=i:Ho("Invalid options argument: ".concat(i))}applyInheritables(e){let t,i;for(t of vs)i=e[t],void 0!==i&&(this[t]=i)}translateTagSet(e,t){if(this.dict){let i,n,{tagKeys:a,tagValues:o}=this.dict;for(i of e)"string"==typeof i?(n=o.indexOf(i),-1===n&&(n=a.indexOf(Number(i))),-1!==n&&t.add(Number(a[n]))):t.add(i)}else for(let i of e)t.add(i)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,Cs(this.pick,this.deps)):this.enabled&&this.pick.size>0&&Cs(this.pick,this.deps)}}var ws={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},Ps=new Map;class Ss extends ys{static useCached(e){let t=Ps.get(e);return void 0!==t||(t=new this(e),Ps.set(e,t)),t}constructor(e){super(),!0===e?this.setupFromTrue():void 0===e?this.setupFromUndefined():Array.isArray(e)?this.setupFromArray(e):"object"==typeof e?this.setupFromObject(e):Ho("Invalid options argument ".concat(e)),void 0===this.firstChunkSize&&(this.firstChunkSize=Ao?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of us)this[e]=ws[e];for(e of bs)this[e]=ws[e];for(e of gs)this[e]=ws[e];for(e of fs)this[e]=new xs(e,ws[e],void 0,this)}setupFromTrue(){let e;for(e of us)this[e]=ws[e];for(e of bs)this[e]=ws[e];for(e of gs)this[e]=!0;for(e of fs)this[e]=new xs(e,!0,void 0,this)}setupFromArray(e){let t;for(t of us)this[t]=ws[t];for(t of bs)this[t]=ws[t];for(t of gs)this[t]=ws[t];for(t of fs)this[t]=new xs(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,ms)}setupFromObject(e){let t;for(t of(ms.ifd0=ms.ifd0||ms.image,ms.ifd1=ms.ifd1||ms.thumbnail,Object.assign(this,e),us))this[t]=_s(e[t],ws[t]);for(t of bs)this[t]=_s(e[t],ws[t]);for(t of gs)this[t]=_s(e[t],ws[t]);for(t of hs)this[t]=new xs(t,ws[t],e[t],this);for(t of ms)this[t]=new xs(t,ws[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,ms,fs),!0===e.tiff?this.batchEnableWithBool(ms,!0):!1===e.tiff?this.batchEnableWithUserValue(ms,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,ms):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,ms)}batchEnableWithBool(e,t){for(let i of e)this[i].enabled=t}batchEnableWithUserValue(e,t){for(let i of e){let e=t[i];this[i].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;if(e&&e.length){for(let e of n)this[e].enabled=!1;let t=ks(e,i);for(let[e,i]of t)Cs(this[e].pick,i),this[e].enabled=!0}else if(t&&t.length){let e=ks(t,i);for(let[t,i]of e)Cs(this[t].skip,i)}}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:i,iptc:n,icc:a}=this;this.makerNote?t.deps.add(37500):t.skip.add(37500),this.userComment?t.deps.add(37510):t.skip.add(37510),i.enabled||e.skip.add(700),n.enabled||e.skip.add(33723),a.enabled||e.skip.add(34675)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:i,interop:n}=this;n.needed&&(t.deps.add(40965),e.deps.add(40965)),t.needed&&e.deps.add(34665),i.needed&&e.deps.add(34853),this.tiff.enabled=ms.some((e=>!0===this[e].enabled))||this.makerNote||this.userComment;for(let a of ms)this[a].finalizeFilters()}get onlyTiff(){return!ds.map((e=>this[e].enabled)).some((e=>!0===e))&&this.tiff.enabled}checkLoadedPlugins(){for(let e of hs)this[e].enabled&&!Jo.has(e)&&Xo("segment parser",e)}}function ks(e,t){let i,n,a,o,s=[];for(a of t){for(o of(i=ls.get(a),n=[],i))(e.includes(o[0])||e.includes(o[1]))&&n.push(o[0]);n.length&&s.push([a,n])}return s}function _s(e,t){return void 0!==e?e:void 0!==t?t:void 0}function Cs(e,t){for(let i of t)e.add(i)}Io(Ss,"default",ws);class Fs{constructor(e){Io(this,"parsers",{}),Io(this,"output",{}),Io(this,"errors",[]),Io(this,"pushToErrors",(e=>this.errors.push(e))),this.options=Ss.useCached(e)}async read(e){this.file=await function(e,t){return"string"==typeof e?es(e,t):Ao&&!No&&e instanceof HTMLImageElement?es(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new Ko(e):Ao&&e instanceof Blob?ts(e,t,"blob",as):void Ho("Invalid input argument")}(e,this.options)}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[i,n]of Zo)if(n.canHandle(e,t))return this.fileParser=new n(this.options,this.file,this.parsers),e[i]=!0;this.file.close&&this.file.close(),Ho("Unknown file format")}async parse(){let{output:e,errors:t}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),t.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&t.length>0&&(e.errors=t),qo(i=e)?void 0:i;var i}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map((async t=>{let i=await t.parse();t.assignToOutput(e,i)}));this.options.silentErrors&&(t=t.map((e=>e.catch(this.pushToErrors)))),await Promise.all(t)}async extractThumbnail(){this.setup();let{options:e,file:t}=this,i=Jo.get("tiff",e);var n;if(t.tiff?n={start:0,type:"tiff"}:t.jpeg&&(n=await this.fileParser.getOrFindSegment("tiff")),void 0===n)return;let a=await this.fileParser.ensureSegmentChunk(n),o=this.parsers.tiff=new i(a,e,t),s=await o.extractThumbnail();return t.close&&t.close(),s}}async function Ts(e,t){let i=new Fs(t);return await i.read(e),i.parse()}var Os=Object.freeze({__proto__:null,parse:Ts,Exifr:Fs,fileParsers:Zo,segmentParsers:Jo,fileReaders:Qo,tagKeys:ls,tagValues:cs,tagRevivers:ps,createDictionary:ss,extendDictionary:rs,fetchUrlAsArrayBuffer:ns,readBlobAsArrayBuffer:as,chunkedProps:us,otherSegments:ds,segments:hs,tiffBlocks:ms,segmentsAndBlocks:fs,tiffExtractables:gs,inheritables:vs,allFormatters:bs,Options:Ss});class Es{static findPosition(e,t){let i=e.getUint16(t+2)+2,n="function"==typeof this.headerLength?this.headerLength(e,t,i):this.headerLength,a=t+n,o=i-n;return{offset:t,length:i,headerLength:n,start:a,size:o,end:a+o}}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new this(e,new Ss({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof Ko?e:new Ko(e)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;Io(this,"errors",[]),Io(this,"raw",new Map),Io(this,"handleError",(e=>{if(!this.options.silentErrors)throw e;this.errors.push(e.message)})),this.chunk=this.normalizeInput(e),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=t,this.localOptions=t[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(e,t){let i=ps.get(t),n=cs.get(t),a=ls.get(t),o=this.options[t],s=o.reviveValues&&!!i,r=o.translateValues&&!!n,l=o.translateKeys&&!!a,c={};for(let[p,u]of e)s&&i.has(p)?u=i.get(p)(u):r&&n.has(p)&&(u=this.translateValue(u,n.get(p))),l&&a.has(p)&&(p=a.get(p)||p),c[p]=u;return c}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,i){if(this.globalOptions.mergeOutput)return Object.assign(e,i);e[t]?Object.assign(e[t],i):e[t]=i}}function Ds(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function Rs(e){return e>=224&&e<=239}function Us(e,t,i){for(let[n,a]of Jo)if(a.canHandle(e,t,i))return n}Io(Es,"headerLength",4),Io(Es,"type",void 0),Io(Es,"multiSegment",!1),Io(Es,"canHandle",(()=>!1));class Is extends class{constructor(e,t,i){Io(this,"errors",[]),Io(this,"ensureSegmentChunk",(async e=>{let t=e.start,i=e.size||65536;if(this.file.chunked)if(this.file.available(t,i))e.chunk=this.file.subarray(t,i);else try{e.chunk=await this.file.readChunk(t,i)}catch(t){Ho("Couldn't read segment: ".concat(JSON.stringify(e),". ").concat(t.message))}else this.file.byteLength>t+i?e.chunk=this.file.subarray(t,i):void 0===e.size?e.chunk=this.file.subarray(t):Ho("Segment unreachable: "+JSON.stringify(e));return e.chunk})),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=t,this.parsers=i}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let i=new(Jo.get(e))(t,this.options,this.file);return this.parsers[e]=i}createParsers(e){for(let t of e){let{type:e,chunk:i}=t,n=this.options[e];if(n&&n.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,i)}}}async readSegments(e){let t=e.map(this.ensureSegmentChunk);await Promise.all(t)}}{constructor(){super(...arguments),Io(this,"appSegments",[]),Io(this,"jpegSegments",[]),Io(this,"unknownSegments",[])}static canHandle(e,t){return 65496===t}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(e){!0===e?(this.findAll=!0,this.wanted=new Set(Jo.keyList())):(e=void 0===e?Jo.keyList().filter((e=>this.options[e].enabled)):e.filter((e=>this.options[e].enabled&&Jo.has(e))),this.findAll=!1,this.remaining=new Set(e),this.wanted=new Set(e)),this.unfinishedMultiSegment=!1}async findAppSegments(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.setupSegmentFinderArgs(t);let{file:i,findAll:n,wanted:a,remaining:o}=this;if(!n&&this.file.chunked&&(n=Array.from(a).some((e=>{let t=Jo.get(e),i=this.options[e];return t.multiSegment&&i.multiSegment})),n&&await this.file.readWhole()),e=this.findAppSegmentsInRange(e,i.byteLength),!this.options.onlyTiff&&i.chunked){let t=!1;for(;o.size>0&&!t&&(i.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:n}=i,a=this.appSegments.some((e=>!this.file.available(e.offset||e.start,e.length||e.size)));if(t=e>n&&!a?!await i.readNextChunk(e):!await i.readNextChunk(n),void 0===(e=this.findAppSegmentsInRange(e,i.byteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let i,n,a,o,s,r,{file:l,findAll:c,wanted:p,remaining:u,options:d}=this;for(;e<t;e++)if(255===l.getUint8(e))if(i=l.getUint8(e+1),Rs(i)){if(n=l.getUint16(e+2),a=Us(l,e,n),a&&p.has(a)&&(o=Jo.get(a),s=o.findPosition(l,e),r=d[a],s.type=a,this.appSegments.push(s),!c&&(o.multiSegment&&r.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||u.delete(a)):u.delete(a),0===u.size)))break;d.recordUnknownSegments&&(s=Es.findPosition(l,e),s.marker=i,this.unknownSegments.push(s)),e+=n+1}else if(Ds(i)){if(n=l.getUint16(e+2),218===i&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:n,marker:i}),e+=n+1}return e}mergeMultiSegments(){if(!this.appSegments.some((e=>e.multiSegment)))return;let e=function(e,t){let i,n,a,o=new Map;for(let s=0;s<e.length;s++)i=e[s],n=i.type,o.has(n)?a=o.get(n):o.set(n,a=[]),a.push(i);return Array.from(o)}(this.appSegments);this.mergedAppSegments=e.map((e=>{let[t,i]=e,n=Jo.get(t,this.options);return n.handleMultiSegments?{type:t,chunk:n.handleMultiSegments(i)}:i[0]}))}getSegment(e){return this.appSegments.find((t=>t.type===e))}async getOrFindSegment(e){let t=this.getSegment(e);return void 0===t&&(await this.findAppSegments(0,[e]),t=this.getSegment(e)),t}}Io(Is,"type","jpeg"),Zo.set("jpeg",Is);const js=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class As extends Es{parseHeader(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map,{pick:n,skip:a}=this.options[t];n=new Set(n);let o=n.size>0,s=0===a.size,r=this.chunk.getUint16(e);e+=2;for(let l=0;l<r;l++){let r=this.chunk.getUint16(e);if(o){if(n.has(r)&&(i.set(r,this.parseTag(e,r,t)),n.delete(r),0===n.size))break}else!s&&a.has(r)||i.set(r,this.parseTag(e,r,t));e+=12}return i}parseTag(e,t,i){let{chunk:n}=this,a=n.getUint16(e+2),o=n.getUint32(e+4),s=js[a];if(s*o<=4?e+=8:e=n.getUint32(e+8),(a<1||a>13)&&Ho("Invalid TIFF value type. block: ".concat(i.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(a,", offset ").concat(e)),e>n.byteLength&&Ho("Invalid TIFF value offset. block: ".concat(i.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(a,", offset ").concat(e," is outside of chunk size ").concat(n.byteLength)),1===a)return n.getUint8Array(e,o);if(2===a)return""===(r=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(r=n.getString(e,o)).trim())?void 0:r;var r;if(7===a)return n.getUint8Array(e,o);if(1===o)return this.parseTagValue(a,e);{let t=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(a))(o),i=s;for(let n=0;n<o;n++)t[n]=this.parseTagValue(a,e),e+=i;return t}}parseTagValue(e,t){let{chunk:i}=this;switch(e){case 1:return i.getUint8(t);case 3:return i.getUint16(t);case 4:case 13:return i.getUint32(t);case 5:return i.getUint32(t)/i.getUint32(t+4);case 6:return i.getInt8(t);case 8:return i.getInt16(t);case 9:return i.getInt32(t);case 10:return i.getInt32(t)/i.getInt32(t+4);case 11:return i.getFloat(t);case 12:return i.getDouble(t);default:Ho("Invalid tiff type ".concat(e))}}}class Ns extends As{static canHandle(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}async parse(){this.parseHeader();let{options:e}=this;return e.ifd0.enabled&&await this.parseIfd0Block(),e.exif.enabled&&await this.safeParse("parseExifBlock"),e.gps.enabled&&await this.safeParse("parseGpsBlock"),e.interop.enabled&&await this.safeParse("parseInteropBlock"),e.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(e){let t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}parseBlock(e,t){let i=new Map;return this[t]=i,this.parseTags(e,t,i),i}async parseIfd0Block(){if(this.ifd0)return;let{file:e}=this;this.findIfd0Offset(),this.ifd0Offset<8&&Ho("Malformed EXIF data"),!e.chunked&&this.ifd0Offset>e.byteLength&&Ho("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(this.ifd0Offset,", file.byteLength: ").concat(e.byteLength)),e.tiff&&await e.ensureChunk(this.ifd0Offset,Wo(this.options));let t=this.parseBlock(this.ifd0Offset,"ifd0");return 0!==t.size?(this.exifOffset=t.get(34665),this.interopOffset=t.get(40965),this.gpsOffset=t.get(34853),this.xmp=t.get(700),this.iptc=t.get(33723),this.icc=t.get(34675),this.options.sanitize&&(t.delete(34665),t.delete(40965),t.delete(34853),t.delete(700),t.delete(33723),t.delete(34675)),t):void 0}async parseExifBlock(){if(this.exif)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.exifOffset)return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,Wo(this.options));let e=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=e.get(40965)),this.makerNote=e.get(37500),this.userComment=e.get(37510),this.options.sanitize&&(e.delete(40965),e.delete(37500),e.delete(37510)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let i=e.get(t);i&&1===i.length&&e.set(t,i[0])}async parseGpsBlock(){if(this.gps)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.gpsOffset)return;let e=this.parseBlock(this.gpsOffset,"gps");return e&&e.has(2)&&e.has(4)&&(e.set("latitude",Bs(...e.get(2),e.get(1))),e.set("longitude",Bs(...e.get(4),e.get(3)))),e}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),void 0!==this.interopOffset||this.exif||await this.parseExifBlock(),void 0!==this.interopOffset))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||e))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),void 0===this.ifd1)return;let e=this.ifd1.get(513),t=this.ifd1.get(514);return this.chunk.getUint8Array(e,t)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let e,t,i,n={};for(t of ms)if(e=this[t],!qo(e))if(i=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(n,i)}else n[t]=i;return this.makerNote&&(n.makerNote=this.makerNote),this.userComment&&(n.userComment=this.userComment),n}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[i,n]of Object.entries(t))this.assignObjectToOutput(e,i,n)}}function Bs(e,t,i,n){var a=e+t/60+i/3600;return"S"!==n&&"W"!==n||(a*=-1),a}Io(Ns,"type","tiff"),Io(Ns,"headerLength",10),Jo.set("tiff",Ns);Object.freeze({__proto__:null,default:Os,Exifr:Fs,fileParsers:Zo,segmentParsers:Jo,fileReaders:Qo,tagKeys:ls,tagValues:cs,tagRevivers:ps,createDictionary:ss,extendDictionary:rs,fetchUrlAsArrayBuffer:ns,readBlobAsArrayBuffer:as,chunkedProps:us,otherSegments:ds,segments:hs,tiffBlocks:ms,segmentsAndBlocks:fs,tiffExtractables:gs,inheritables:vs,allFormatters:bs,Options:Ss,parse:Ts});const Ms={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1};Object.assign({},Ms,{firstChunkSize:4e4,gps:[1,2,3,4]});Object.assign({},Ms,{tiff:!1,ifd1:!0,mergeOutput:!1});const Ls=Object.assign({},Ms,{firstChunkSize:4e4,ifd0:[274]});const zs=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});let qs=!0,Hs=!0;if("object"==typeof navigator){let e=navigator.userAgent;if(e.includes("iPad")||e.includes("iPhone")){let t=e.match(/OS (\d+)_(\d+)/);if(t){let[,e,i]=t,n=Number(e)+.1*Number(i);qs=n<13.4,Hs=!1}}else if(e.includes("OS X 10")){let[,t]=e.match(/OS X 10[_.](\d+)/);qs=Hs=Number(t)<15}if(e.includes("Chrome/")){let[,t]=e.match(/Chrome\/(\d+)/);qs=Hs=Number(t)<81}else if(e.includes("Firefox/")){let[,t]=e.match(/Firefox\/(\d+)/);qs=Hs=Number(t)<77}}async function Ws(e){let t=await async function(e){let t=new Fs(Ls);await t.read(e);let i=await t.parse();if(i&&i.ifd0)return i.ifd0[274]}(e);return Object.assign({canvas:qs,css:Hs},zs[t])}class Vs extends Ko{constructor(){super(...arguments),Io(this,"ranges",new Gs),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,i){if(0===e&&0===this.byteLength&&i){let e=new DataView(i.buffer||i,i.byteOffset,i.byteLength);this._swapDataView(e)}else{let i=e+t;if(i>this.byteLength){let{dataView:e}=this._extend(i);this._swapDataView(e)}}}_extend(e){let t;t=Lo?Mo.allocUnsafe(e):new Uint8Array(e);let i=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:i}}subarray(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=t||this._lengthToEnd(e),i&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this._tryExtend(t,e.byteLength,e);let i=super.set(e,t);return this.ranges.add(t,i.byteLength),i}async ensureChunk(e,t){this.chunked&&(this.ranges.available(e,t)||await this.readChunk(e,t))}available(e,t){return this.ranges.available(e,t)}}class Gs{constructor(){Io(this,"list",[])}get length(){return this.list.length}add(e,t){let i=e+t,n=this.list.filter((t=>Ks(e,t.offset,i)||Ks(e,t.end,i)));if(n.length>0){e=Math.min(e,...n.map((e=>e.offset))),i=Math.max(i,...n.map((e=>e.end))),t=i-e;let a=n.shift();a.offset=e,a.length=t,a.end=i,this.list=this.list.filter((e=>!n.includes(e)))}else this.list.push({offset:e,length:t,end:i})}available(e,t){let i=e+t;return this.list.some((t=>t.offset<=e&&i<=t.end))}}function Ks(e,t,i){return e<=t&&t<=i}class Xs extends Vs{constructor(e,t){super(0),Io(this,"chunksRead",0),this.input=e,this.options=t}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.nextChunkOffset;if(this.fullyRead)return this.chunksRead++,!1;let t=this.options.chunkSize,i=await this.readChunk(e,t);return!!i&&i.byteLength===t}async readChunk(e,t){if(this.chunksRead++,0!==(t=this.safeWrapAddress(e,t)))return this._readChunk(e,t)}safeWrapAddress(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}Qo.set("blob",class extends Xs{async readWhole(){this.chunked=!1;let e=await as(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}async _readChunk(e,t){let i=t?e+t:void 0,n=this.input.slice(e,i),a=await as(n);return this.set(a,e,!0)}});const Ys={strings:{generatingThumbnails:"Generating thumbnails..."}};function Zs(e,t,i){try{e.getContext("2d").getImageData(0,0,1,1)}catch(n){if(18===n.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise((n=>{e.toBlob(n,t,i)})).then((e=>{if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e})):Promise.resolve().then((()=>function(e,t,i){var n,a;const o=Eo.exec(e),s=null!=(n=null!=(a=t.mimeType)?a:null==o?void 0:o[1])?n:"plain/text";let r;if(null!=(null==o?void 0:o[2])){const e=atob(decodeURIComponent(o[3])),t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);r=[t]}else null!=(null==o?void 0:o[3])&&(r=[decodeURIComponent(o[3])]);return i?new File(r,t.name||"",{type:s}):new Blob(r,{type:s})}(e.toDataURL(t,i),{}))).then((e=>{if(null===e)throw new Error("could not extract blob, probably an old browser");return e}))}class Js extends Ze{constructor(e,t){super(e,t),this.onFileAdded=e=>{!e.preview&&e.data&&la(e.type)&&!e.isRemote&&this.addToQueue(e.id)},this.onCancelRequest=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1)},this.onFileRemoved=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1),e.preview&&Do(e.preview)&&URL.revokeObjectURL(e.preview)},this.onRestored=()=>{this.uppy.getFiles().filter((e=>e.isRestored)).forEach((e=>{e.preview&&!Do(e.preview)||this.addToQueue(e.id)}))},this.onAllFilesRemoved=()=>{this.queue=[]},this.waitUntilAllProcessed=e=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})}));const t=()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))};return new Promise((e=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",(()=>{t(),e()})):(t(),e())}))},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType||"image/jpeg",this.defaultLocale=Ys;if(this.opts={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1,...t},this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(e,t,i){const n=URL.createObjectURL(e.data),a=new Promise(((e,t)=>{const i=new Image;i.src=n,i.addEventListener("load",(()=>{URL.revokeObjectURL(n),e(i)})),i.addEventListener("error",(e=>{URL.revokeObjectURL(n),t(e.error||new Error("Could not create thumbnail"))}))})),o=Ws(e.data).catch((()=>1));return Promise.all([a,o]).then((e=>{let[n,a]=e;const o=this.getProportionalDimensions(n,t,i,a.deg),s=function(e,t){let i=e.width,n=e.height;90!==t.deg&&270!==t.deg||(i=e.height,n=e.width);const a=document.createElement("canvas");a.width=i,a.height=n;const o=a.getContext("2d");return o.translate(i/2,n/2),t.canvas&&(o.rotate(t.rad),o.scale(t.scaleX,t.scaleY)),o.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),a}(n,a);return Zs(this.resizeImage(s,o.width,o.height),this.thumbnailType,80)})).then((e=>URL.createObjectURL(e)))}getProportionalDimensions(e,t,i,n){let a=e.width/e.height;return 90!==n&&270!==n||(a=e.height/e.width),null!=t?{width:t,height:Math.round(t/a)}:null!=i?{width:Math.round(i*a),height:i}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/a)}}resizeImage(e,t,i){let n=function(e){const t=e.width/e.height,i=5e6,n=4096;let a=Math.floor(Math.sqrt(i*t)),o=Math.floor(i/Math.sqrt(i*t));if(a>n&&(a=n,o=Math.round(a/t)),o>n&&(o=n,a=Math.round(t*o)),e.width>a){const t=document.createElement("canvas");return t.width=a,t.height=o,t.getContext("2d").drawImage(e,0,0,a,o),t}return e}(e),a=Math.ceil(Math.log2(n.width/t));a<1&&(a=1);let o=t*2**(a-1),s=i*2**(a-1);for(;a--;){const e=document.createElement("canvas");e.width=o,e.height=s,e.getContext("2d").drawImage(n,0,0,o,s),n=e,o=Math.round(o/2),s=Math.round(s/2)}return n}setPreviewURL(e,t){this.uppy.setFileState(e,{preview:t})}addToQueue(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const e=this.uppy.getFile(this.queue.shift());return e?this.requestThumbnail(e).catch((()=>{})).then((()=>this.processQueue())):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}requestThumbnail(e){return la(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then((t=>{this.setPreviewURL(e.id,t),this.uppy.log("[ThumbnailGenerator] Generated thumbnail for ".concat(e.id)),this.uppy.emit("thumbnail:generated",this.uppy.getFile(e.id),t)})).catch((t=>{this.uppy.log("[ThumbnailGenerator] Failed thumbnail for ".concat(e.id,":"),"warning"),this.uppy.log(t,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(e.id),t)})):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}function Qs(e){if("string"===typeof e){const t=document.querySelectorAll(e);return 0===t.length?null:Array.from(t)}return"object"===typeof e&&ze(e)?[e]:null}function $s(e,t,i,n){let{onSuccess:a}=n;e.readEntries((n=>{const o=[...t,...n];n.length?queueMicrotask((()=>{$s(e,o,i,{onSuccess:a})})):a(o)}),(e=>{i(e),a(t)}))}function er(e,t){return null==e?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile:()=>new Promise(((t,i)=>e.file(t,i))),async*values(){const i=e.createReader(),n=await new Promise((e=>{$s(i,[],t,{onSuccess:i=>e(i.map((e=>er(e,t))))})}));yield*n},isSameEntry:void 0}}function tr(e,t,i){try{return void 0===i&&(i=void 0),async function*(){const n=()=>"".concat(t,"/").concat(e.name);if("file"===e.kind){const a=await e.getFile();null!=a?(a.relativePath=t?n():null,yield a):null!=i&&(yield i)}else if("directory"===e.kind)for await(const i of e.values())yield*tr(i,t?n():e.name);else null!=i&&(yield i)}()}catch(n){return Promise.reject(n)}}async function ir(e,t){var i;const n=null!=(i=null==t?void 0:t.logDropError)?i:Function.prototype;try{const t=[];for await(const i of async function*(e,t){const i=await Promise.all(Array.from(e.items,(async e=>{let i;return null!=i||(i=er("function"===typeof e.getAsEntry?e.getAsEntry():e.webkitGetAsEntry(),t)),{fileSystemHandle:i,lastResortFile:e.getAsFile()}})));for(const{lastResortFile:a,fileSystemHandle:o}of i)if(null!=o)try{yield*tr(o,"",a)}catch(n){null!=a?yield a:t(n)}else null!=a&&(yield a)}(e,n))t.push(i);return t}catch{return function(e){const t=hi(e.files);return Promise.resolve(t)}(e)}}Js.VERSION="3.0.8";var nr=i(776);const ar=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];function or(e,t){if(t){const i=e.querySelector('[data-uppy-paneltype="'.concat(t,'"]'));if(i)return i}return e}function sr(e,t){const i=t[0];i&&(i.focus(),e.preventDefault())}function rr(e,t,i){const n=or(i,t),a=hi(n.querySelectorAll(ar)),o=a.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(n)?sr(e,a):e.shiftKey&&0===o?function(e,t){const i=t[t.length-1];i&&(i.focus(),e.preventDefault())}(e,a):e.shiftKey||o!==a.length-1||sr(e,a)}var lr=i(67047),cr=i.n(lr);function pr(){const e=document.body;return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)}var ur=i(21379);function dr(e){const t={color:"#838999",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("g",{fill:"#A7AFB7",fillRule:"nonzero"},(0,Le.h)("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),(0,Le.h)("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const i=e.split("/")[0],n=e.split("/")[1];if("text"===i)return{color:"#5a5e69",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))};if("image"===i)return{color:"#686de0",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("g",{fill:"#686DE0",fillRule:"evenodd"},(0,Le.h)("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),(0,Le.h)("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),(0,Le.h)("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))};if("audio"===i)return{color:"#068dbb",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))};if("video"===i)return{color:"#19af67",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))};if("application"===i&&"pdf"===n)return{color:"#e25149",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))};return"application"===i&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(n)?{color:"#00C469",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t}function hr(e){const{file:t}=e;if(t.preview)return(0,Le.h)("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:i,icon:n}=dr(t.type);return(0,Le.h)("div",{className:"uppy-Dashboard-Item-previewIconWrap"},(0,Le.h)("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:i}},n),(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},(0,Le.h)("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}const mr=(e,t)=>{const i=("function"===typeof t?t():t).filter((t=>t.id===e));return i[0].name};function fr(e){const{file:t,toggleFileCard:i,i18n:n,metaFields:a}=e,{missingRequiredMetaFields:o}=t;if(null==o||!o.length)return null;const s=o.map((e=>mr(e,a))).join(", ");return(0,Le.h)("div",{className:"uppy-Dashboard-Item-errorMessage"},n("missingRequiredMetaFields",{smart_count:o.length,fields:s})," ",(0,Le.h)("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>i(!0,t.id)},n("editFile")))}function gr(e){const{file:t,i18n:i,toggleFileCard:n,metaFields:a,showLinkToFileUploadResult:o}=e,s=t.preview?"rgba(255, 255, 255, 0.5)":dr(e.file.type).color;return(0,Le.h)("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:s}},o&&t.uploadURL&&(0,Le.h)("a",{className:"uppy-Dashboard-Item-previewLink",href:t.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":t.meta.name},(0,Le.h)("span",{hidden:!0},t.meta.name)),(0,Le.h)(hr,{file:t}),(0,Le.h)(fr,{file:t,i18n:i,toggleFileCard:n,metaFields:a}))}function vr(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function br(e){return(0,Le.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":vr(e),title:vr(e),onClick:()=>function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.resumableUploads&&!e.hidePauseResumeButton?e.uppy.pauseResume(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.uppy.removeFile(e.file.id):e.uppy.retryUpload(e.file.id))}(e)},e.children))}function yr(e){let{children:t}=e;return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function xr(e){let{progress:t}=e;const i=2*Math.PI*15;return(0,Le.h)("g",null,(0,Le.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),(0,Le.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":i,"stroke-dashoffset":i-i/100*t}))}function wr(e){return e.file.progress.uploadStarted?e.isUploaded?(0,Le.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,Le.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,Le.h)(yr,null,(0,Le.h)("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),(0,Le.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?(0,Le.h)(br,e,(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},(0,Le.h)("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),(0,Le.h)("path",{d:"M7.9 3H10v2H7.9z"}),(0,Le.h)("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),(0,Le.h)("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?(0,Le.h)(br,e,(0,Le.h)(yr,null,(0,Le.h)(xr,{progress:e.file.progress.percentage}),e.file.isPaused?(0,Le.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):(0,Le.h)("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},(0,Le.h)("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),(0,Le.h)("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?(0,Le.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,Le.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,Le.h)(yr,null,(0,Le.h)(xr,{progress:e.file.progress.percentage})))):(0,Le.h)(br,e,(0,Le.h)(yr,null,(0,Le.h)(xr,{progress:e.file.progress.percentage}),(0,Le.h)("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null}const Pr="...";function Sr(e,t){if(0===t)return"";if(e.length<=t)return e;if(t<=4)return"".concat(e.slice(0,t-1),"\u2026");const i=t-3,n=Math.ceil(i/2),a=Math.floor(i/2);return e.slice(0,n)+Pr+e.slice(-a)}const kr=e=>{let{file:t,onClick:i}=e;return t.error?(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:i,type:"button"},"?"):null};function _r(e){const{file:t}=e;return(0,Le.h)("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},(0,Le.h)("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:i}=e.file.meta;return(0,Le.h)("div",{className:"uppy-Dashboard-Item-name",title:i},Sr(i,e.isSingleFile&&e.containerHeight>=350?90:e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),(0,Le.h)(kr,{file:e.file,onClick:()=>alert(e.file.error)})),(0,Le.h)("div",{className:"uppy-Dashboard-Item-status"},(e=>{var t;const{author:i}=e.file.meta,n=null==(t=e.file.remote)?void 0:t.providerName;return i?(0,Le.h)("div",{className:"uppy-Dashboard-Item-author"},(0,Le.h)("a",{href:"".concat(i.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer"},Sr(i.name,13)),n?(0,Le.h)(Le.HY,null," ".concat("\xb7"," "),n," ".concat("\xb7"," ")):null):null})(e),(e=>e.file.size&&(0,Le.h)("div",{className:"uppy-Dashboard-Item-statusSize"},K(e.file.size)))(e),(e=>e.file.isGhost&&(0,Le.h)("span",null," \u2022 ",(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),(0,Le.h)(fr,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))}function Cr(e){let{file:t,uploadInProgressOrComplete:i,metaFields:n,canEditFile:a,i18n:o,onClick:s}=e;return!i&&n&&n.length>0||!i&&a(t)?(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":o("editFileWithFilename",{file:t.meta.name}),title:o("editFileWithFilename",{file:t.meta.name}),onClick:()=>s()},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},(0,Le.h)("g",{fillRule:"evenodd"},(0,Le.h)("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),(0,Le.h)("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),(0,Le.h)("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function Fr(e){let{i18n:t,onClick:i,file:n}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:n.meta.name}),title:t("removeFile",{file:n.meta.name}),onClick:()=>i()},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},(0,Le.h)("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),(0,Le.h)("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}const Tr=(e,t)=>{var i,n;(i=t.file.uploadURL,n=t.i18n("copyLinkToClipboardFallback"),void 0===n&&(n="Copy the URL below"),new Promise((e=>{const t=document.createElement("textarea");t.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),t.value=i,document.body.appendChild(t),t.select();const a=()=>{document.body.removeChild(t),window.prompt(n,i),e()};try{return document.execCommand("copy")?(document.body.removeChild(t),e()):a()}catch(o){return document.body.removeChild(t),a()}}))).then((()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)})).catch(t.uppy.log).then((()=>e.target.focus({preventScroll:!0})))};function Or(e){const{i18n:t}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:t=>Tr(t,e)},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},(0,Le.h)("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}function Er(e){const{uppy:t,file:i,uploadInProgressOrComplete:n,canEditFile:a,metaFields:o,showLinkToFileUploadResult:s,showRemoveButton:r,i18n:l,toggleFileCard:c,openFileEditor:p}=e;return(0,Le.h)("div",{className:"uppy-Dashboard-Item-actionWrapper"},(0,Le.h)(Cr,{i18n:l,file:i,uploadInProgressOrComplete:n,canEditFile:a,metaFields:o,onClick:()=>{o&&o.length>0?c(!0,i.id):p(i)}}),s&&i.uploadURL?(0,Le.h)(Or,{file:i,uppy:t,i18n:l}):null,r?(0,Le.h)(Fr,{i18n:l,file:i,uppy:t,onClick:()=>e.uppy.removeFile(i.id,"removed-by-user")}):null)}class Dr extends Le.wA{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!ur(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,i=e.progress.uploadComplete&&!t&&!e.error,n=e.progress.uploadStarted||t,a=e.progress.uploadStarted&&!e.progress.uploadComplete||t,o=e.error||!1,{isGhost:s}=e;let r=(this.props.individualCancellation||!a)&&!i;i&&this.props.showRemoveButtonAfterComplete&&(r=!0);const l=zn({"uppy-Dashboard-Item":!0,"is-inprogress":a&&!this.props.recoveredState,"is-processing":t,"is-complete":i,"is-error":!!o,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":s});return(0,Le.h)("div",{className:l,id:"uppy_".concat(e.id),role:this.props.role},(0,Le.h)("div",{className:"uppy-Dashboard-Item-preview"},(0,Le.h)(gr,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,Le.h)(wr,{uppy:this.props.uppy,file:e,error:o,isUploaded:i,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),(0,Le.h)("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},(0,Le.h)(_r,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,containerHeight:this.props.containerHeight,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields,isSingleFile:this.props.isSingleFile}),(0,Le.h)(Er,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:r,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:n,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}const Rr=e=>{let{id:t,error:i,i18n:n,uppy:a,files:o,acquirers:s,resumableUploads:r,hideRetryButton:l,hidePauseResumeButton:c,hideCancelButton:p,showLinkToFileUploadResult:u,showRemoveButtonAfterComplete:d,isWide:h,metaFields:m,isSingleFile:f,toggleFileCard:g,handleRequestThumbnail:v,handleCancelThumbnail:b,recoveredState:y,individualCancellation:x,itemsPerRow:w,openFileEditor:P,canEditFile:S,toggleAddFilesPanel:k,containerWidth:_,containerHeight:C}=e;const F=1===w?71:200,T=kn((()=>{const e=Object.keys(o);return y&&e.sort(((e,t)=>o[t].isGhost-o[e].isGhost)),function(e,t){const i=[];let n=[];return e.forEach((e=>{n.length<t?n.push(e):(i.push(n),n=[e])})),n.length&&i.push(n),i}(e,w)}),[o,w,y]),O=e=>(0,Le.h)("div",{class:"uppy-Dashboard-filesInner",role:"presentation",key:e[0]},e.map((e=>(0,Le.h)(Dr,{key:e,uppy:a,id:t,error:i,i18n:n,acquirers:s,resumableUploads:r,individualCancellation:x,hideRetryButton:l,hidePauseResumeButton:c,hideCancelButton:p,showLinkToFileUploadResult:u,showRemoveButtonAfterComplete:d,isWide:h,metaFields:m,recoveredState:y,isSingleFile:f,containerWidth:_,containerHeight:C,toggleFileCard:g,handleRequestThumbnail:v,handleCancelThumbnail:b,role:"listitem",openFileEditor:P,canEditFile:S,toggleAddFilesPanel:k,file:o[e]}))));return f?(0,Le.h)("div",{class:"uppy-Dashboard-files"},O(T[0])):(0,Le.h)(Kn,{class:"uppy-Dashboard-files",role:"list",data:T,renderRow:O,rowHeight:F})};let Ur;Ur=Symbol.for("uppy test: disable unused locale key warning");class Ir extends Le.wA{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.triggerVideoCameraInputClick=()=>{this.mobileVideoFileInput.click()},this.triggerPhotoCameraInputClick=()=>{this.mobilePhotoFileInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>(0,Le.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderHiddenCameraInput=(e,t,i)=>{const n={photo:"image/*",video:"video/*"}[e];return(0,Le.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,type:"file",name:"camera-".concat(e),onChange:this.onFileInputChange,capture:t,accept:n,ref:i})},this.renderMyDeviceAcquirer=()=>(0,Le.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},(0,Le.h)("div",{className:"uppy-DashboardTab-inner"},(0,Le.h)("svg",{className:"uppy-DashboardTab-iconMyDevice","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{d:"M8.45 22.087l-1.305-6.674h17.678l-1.572 6.674H8.45zm4.975-12.412l1.083 1.765a.823.823 0 00.715.386h7.951V13.5H8.587V9.675h4.838zM26.043 13.5h-1.195v-2.598c0-.463-.336-.75-.798-.75h-8.356l-1.082-1.766A.823.823 0 0013.897 8H7.728c-.462 0-.815.256-.815.718V13.5h-.956a.97.97 0 00-.746.37.972.972 0 00-.19.81l1.724 8.565c.095.44.484.755.933.755H24c.44 0 .824-.3.929-.727l2.043-8.568a.972.972 0 00-.176-.825.967.967 0 00-.753-.38z",fill:"currentcolor","fill-rule":"evenodd"}))),(0,Le.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderPhotoCamera=()=>(0,Le.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobilePhotoCamera"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerPhotoCameraInputClick},(0,Le.h)("div",{className:"uppy-DashboardTab-inner"},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383","fill-rule":"nonzero"}))),(0,Le.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("takePictureBtn")))),this.renderVideoCamera=()=>(0,Le.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobileVideoCamera"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerVideoCameraInputClick},(0,Le.h)("div",{className:"uppy-DashboardTab-inner"},(0,Le.h)("svg",{"aria-hidden":"true",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{fill:"#FF675E",fillRule:"nonzero",d:"m21.254 14.277 2.941-2.588c.797-.313 1.243.818 1.09 1.554-.01 2.094.02 4.189-.017 6.282-.126.915-1.145 1.08-1.58.34l-2.434-2.142c-.192.287-.504 1.305-.738.468-.104-1.293-.028-2.596-.05-3.894.047-.312.381.823.426 1.069.063-.384.206-.744.362-1.09zm-12.939-3.73c3.858.013 7.717-.025 11.574.02.912.129 1.492 1.237 1.351 2.217-.019 2.412.04 4.83-.03 7.239-.17 1.025-1.166 1.59-2.029 1.429-3.705-.012-7.41.025-11.114-.019-.913-.129-1.492-1.237-1.352-2.217.018-2.404-.036-4.813.029-7.214.136-.82.83-1.473 1.571-1.454z "}))),(0,Le.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("recordVideoBtn")))),this.renderBrowseButton=(e,t)=>{const i=this.props.acquirers.length;return(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===i},e)},this.renderDropPasteBrowseTagline=e=>{const t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),i=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),n=this.props.fileManagerSelectionType,a=n.charAt(0).toUpperCase()+n.slice(1);return(0,Le.h)("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray("dropPasteImport".concat(a),{browseFiles:t,browseFolders:i,browse:t}):this.props.i18nArray("dropPaste".concat(a),{browseFiles:t,browseFolders:i,browse:t}))},this.renderAcquirer=e=>(0,Le.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":e.id,"aria-controls":"uppy-DashboardContent-panel--".concat(e.id),"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},(0,Le.h)("div",{className:"uppy-DashboardTab-inner"},e.icon()),(0,Le.h)("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=e=>{const t=[...e],i=t.splice(e.length-2,e.length);return(0,Le.h)(Le.HY,null,t.map((e=>this.renderAcquirer(e))),(0,Le.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map((e=>this.renderAcquirer(e)))))},this.renderSourcesList=(e,t)=>{const{showNativePhotoCameraButton:i,showNativeVideoCameraButton:n}=this.props;let a=[];const o="myDevice";t||a.push({key:o,elements:this.renderMyDeviceAcquirer()}),i&&a.push({key:"nativePhotoCameraButton",elements:this.renderPhotoCamera()}),n&&a.push({key:"nativePhotoCameraButton",elements:this.renderVideoCamera()}),a.push(...e.map((e=>({key:e.id,elements:this.renderAcquirer(e)}))));1===a.length&&a[0].key===o&&(a=[]);const s=[...a],r=s.splice(a.length-2,a.length),l=e=>e.map((e=>{let{key:t,elements:i}=e;return(0,Le.h)(Le.HY,{key:t},i)}));return(0,Le.h)(Le.HY,null,this.renderDropPasteBrowseTagline(a.length),(0,Le.h)("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},l(s),(0,Le.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},l(r))))}}[Ur](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:(0,Le.h)("span",null,(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,Le.h)("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),(0,Le.h)("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return(0,Le.h)("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){const{showNativePhotoCameraButton:e,showNativeVideoCameraButton:t,nativeCameraFacingMode:i}=this.props;return(0,Le.h)("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,(e=>{this.fileInput=e})),this.renderHiddenInput(!0,(e=>{this.folderInput=e})),e&&this.renderHiddenCameraInput("photo",i,(e=>{this.mobilePhotoFileInput=e})),t&&this.renderHiddenCameraInput("video",i,(e=>{this.mobileVideoFileInput=e})),this.renderSourcesList(this.props.acquirers,this.props.disableLocalFiles),(0,Le.h)("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&(0,Le.h)("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}const jr=Ir,Ar=e=>(0,Le.h)("div",{className:zn("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":!e.showAddFilesPanel},(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),(0,Le.h)(jr,e));const Nr=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()};const Br=function(e){let{activePickerPanel:t,className:i,hideAllPanels:n,i18n:a,state:o,uppy:s}=e;return(0,Le.h)("div",{className:zn("uppy-DashboardContent-panel",i),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:"uppy-DashboardContent-panel--".concat(t.id),onDragOver:Nr,onDragLeave:Nr,onDrop:Nr,onPaste:Nr},(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},a("importFrom",{name:t.name})),(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:n},a("cancel"))),(0,Le.h)("div",{className:"uppy-DashboardContent-panelBody"},s.getPlugin(t.id).render(o)))};const Mr=function(e){const t=e.files[e.fileCardFor];return(0,Le.h)("div",{className:zn("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:(0,Le.h)("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>{e.uppy.emit("file-editor:cancel",t),e.closeFileEditor()}},e.i18n("cancel")),(0,Le.h)("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),(0,Le.h)("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))},Lr={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete",STATE_PAUSED:"paused"};function zr(e){let{files:t,i18n:i,isAllComplete:n,isAllErrored:a,isAllPaused:o,inProgressNotPausedFiles:s,newFiles:r,processingFiles:l}=e;const c=function(e,t,i,n){if(void 0===n&&(n={}),e)return Lr.STATE_ERROR;if(t)return Lr.STATE_COMPLETE;if(i)return Lr.STATE_PAUSED;let a=Lr.STATE_WAITING;const o=Object.keys(n);for(let s=0;s<o.length;s++){const{progress:e}=n[o[s]];if(e.uploadStarted&&!e.uploadComplete)return Lr.STATE_UPLOADING;e.preprocess&&a!==Lr.STATE_UPLOADING&&(a=Lr.STATE_PREPROCESSING),e.postprocess&&a!==Lr.STATE_UPLOADING&&a!==Lr.STATE_PREPROCESSING&&(a=Lr.STATE_POSTPROCESSING)}return a}(a,n,o,t);switch(c){case"uploading":return i("uploadingXFiles",{smart_count:s.length});case"preprocessing":case"postprocessing":return i("processingXFiles",{smart_count:l.length});case"paused":return i("uploadPaused");case"waiting":return i("xFilesSelected",{smart_count:r.length});case"complete":return i("uploadComplete");case"error":return i("error")}}const qr=function(e){const{i18n:t,isAllComplete:i,hideCancelButton:n,maxNumberOfFiles:a,toggleAddFilesPanel:o,uppy:s}=e;let{allowNewUpload:r}=e;return r&&a&&(r=e.totalFileCount<e.maxNumberOfFiles),(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},i||n?(0,Le.h)("div",null):(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>s.cancelAll()},t("cancel")),(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},(0,Le.h)(zr,e)),r?(0,Le.h)("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":t("addMoreFiles"),title:t("addMoreFiles"),onClick:()=>o(!0)},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},(0,Le.h)("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),(0,Le.h)("span",{className:"uppy-DashboardContent-addMoreCaption"},t("addMore"))):(0,Le.h)("div",null))};function Hr(e){const{computedMetaFields:t,requiredMetaFields:i,updateMeta:n,form:a,formState:o}=e,s={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return t.map((e=>{const t="uppy-Dashboard-FileCard-input-".concat(e.id),r=i.includes(e.id);return(0,Le.h)("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},(0,Le.h)("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:t},e.name),void 0!==e.render?e.render({value:o[e.id],onChange:t=>n(t,e.id),fieldCSSClasses:s,required:r,form:a.id},Le.h):(0,Le.h)("input",{className:s.text,id:t,form:a.id,type:e.type||"text",required:r,value:o[e.id],placeholder:e.placeholder,onInput:t=>n(t.target.value,e.id),"data-uppy-super-focusable":!0}))}))}function Wr(e){var t;const{files:i,fileCardFor:n,toggleFileCard:a,saveFileCard:o,metaFields:s,requiredMetaFields:r,openFileEditor:l,i18n:c,i18nArray:p,className:u,canEditFile:d}=e,h=i[n],m=null!=(t="function"===typeof s?s(i[n]):s)?t:[],f=d(h),g={};m.forEach((e=>{var t;g[e.id]=null!=(t=h.meta[e.id])?t:""}));const[v,b]=Pn(g),y=_n((e=>{e.preventDefault(),o(v,n)}),[o,v,n]),x=()=>{a(!1)},[w]=Pn((()=>{const e=document.createElement("form");return e.setAttribute("tabindex","-1"),e.id=F(),e}));return Sn((()=>(document.body.appendChild(w),w.addEventListener("submit",y),()=>{w.removeEventListener("submit",y),document.body.removeChild(w)})),[w,y]),(0,Le.h)("div",{className:zn("uppy-Dashboard-FileCard",u),"data-uppy-panelType":"FileCard",onDragOver:Nr,onDragLeave:Nr,onDrop:Nr,onPaste:Nr},(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},p("editing",{file:(0,Le.h)("span",{className:"uppy-DashboardContent-titleFile"},h.meta?h.meta.name:h.name)})),(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",form:w.id,title:c("finishEditingFile"),onClick:x},c("cancel"))),(0,Le.h)("div",{className:"uppy-Dashboard-FileCard-inner"},(0,Le.h)("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:dr(h.type).color}},(0,Le.h)(hr,{file:h}),f&&(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:e=>{y(e),l(h)}},c("editImage"))),(0,Le.h)("div",{className:"uppy-Dashboard-FileCard-info"},(0,Le.h)(Hr,{computedMetaFields:m,requiredMetaFields:r,updateMeta:(e,t)=>{b({...v,[t]:e})},form:w,formState:v})),(0,Le.h)("div",{className:"uppy-Dashboard-FileCard-actions"},(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"submit",form:w.id},c("saveChanges")),(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:x,form:w.id},c("cancel")))))}const Vr="uppy-transition-slideDownUp";class Gr extends Le.wA{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,i=(0,Le.bR)(e.children)[0];if(t===i)return null;const n={cachedChildren:i};i&&!t&&(n.className="".concat(Vr,"-enter"),cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:"".concat(Vr,"-enter ").concat(Vr,"-enter-active")}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),250)}))),t&&!i&&void 0===this.leaveTimeout&&(n.cachedChildren=t,n.className="".concat(Vr,"-leave"),cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:"".concat(Vr,"-leave ").concat(Vr,"-leave-active")}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),250)}))),this.setState(n)}render(){const{cachedChildren:e,className:t}=this.state;return e?(0,Le.Tm)(e,{className:zn(t,e.props.className)}):null}}const Kr=Gr;function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Xr.apply(this,arguments)}const Yr={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editImage:"Edit image",editing:"Editing %{file}",error:"Error",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},takePictureBtn:"Take Picture",recordVideoBtn:"Record Video"}};function Zr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Jr=0;function Qr(e){return"__private_"+Jr+++"_"+e}const $r=nr.Z.default||nr.Z;function el(){const e={};return e.promise=new Promise(((t,i)=>{e.resolve=t,e.reject=i})),e}var tl=Qr("disabledNodes"),il=Qr("generateLargeThumbnailIfSingleFile"),nl=Qr("openFileEditorWhenFilesAdded"),al=Qr("attachRenderFunctionToTarget"),ol=Qr("isTargetSupported"),sl=Qr("getAcquirers"),rl=Qr("getProgressIndicators"),ll=Qr("getEditors"),cl=Qr("addSpecifiedPluginsFromOptions"),pl=Qr("autoDiscoverPlugins"),ul=Qr("addSupportedPluginIfNoTarget");class dl extends Ze{constructor(e,t){var i;super(e,t),i=this,Object.defineProperty(this,tl,{writable:!0,value:null}),this.removeTarget=e=>{const t=this.getPluginState().targets.filter((t=>t.id!==e.id));this.setPluginState({targets:t})},this.addTarget=e=>{const t=e.id||e.constructor.name,i=e.title||t,n=e.type;if("acquirer"!==n&&"progressindicator"!==n&&"editor"!==n){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const a={id:t,name:i,type:n},o=this.getPluginState().targets.slice();return o.push(a),this.setPluginState({targets:o}),this.el},this.hideAllPanels=()=>{const e=this.getPluginState(),t={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};e.activePickerPanel===t.activePickerPanel&&e.showAddFilesPanel===t.showAddFilesPanel&&e.showFileEditor===t.showFileEditor&&e.activeOverlayType===t.activeOverlayType||(this.setPluginState(t),this.uppy.emit("dashboard:close-panel",e.activePickerPanel.id))},this.showPanel=e=>{const{targets:t}=this.getPluginState(),i=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:i,activeOverlayType:"PickerPanel"}),this.uppy.emit("dashboard:show-panel",e)},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return Zr(this,ll)[ll](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),i=Zr(this,ll)[ll](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),i.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.closeFileEditor=()=>{const{metaFields:e}=this.getPluginState();e&&e.length>0?this.setPluginState({showFileEditor:!1,activeOverlayType:"FileCard"}):this.setPluginState({showFileEditor:!1,fileCardFor:null,activeOverlayType:"AddFiles"})},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();Zr(this,ll)[ll](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.closeFileEditor()},this.openModal=()=>{const{promise:e,resolve:t}=el();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const e=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",e,!1),t()};this.el.addEventListener("animationend",e,!1)}else this.setPluginState({isHidden:!1}),t();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),e},this.closeModal=function(e){void 0===e&&(e={});const{manualClose:t=!0}=e,{isHidden:n,isClosing:a}=i.getPluginState();if(n||a)return;const{promise:o,resolve:s}=el();if(i.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),i.opts.animateOpenClose){i.setPluginState({isClosing:!0});const e=()=>{i.setPluginState({isHidden:!0,isClosing:!1}),i.superFocus.cancel(),i.savedActiveElement.focus(),i.el.removeEventListener("animationend",e,!1),s()};i.el.addEventListener("animationend",e,!1)}else i.setPluginState({isHidden:!0}),i.superFocus.cancel(),i.savedActiveElement.focus(),s();var r;(document.removeEventListener("keydown",i.handleKeyDownInModal),t)&&(i.opts.browserBackButtonClose&&null!=(r=history.state)&&r[i.modalName]&&history.back());return i.uppy.emit("dashboard:modal-closed"),o},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=e=>{const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,darkMode:e}})},this.handleSystemDarkModeChange=e=>{const t=e.matches;this.uppy.log("[Dashboard] Dark mode is ".concat(t?"on":"off")),this.setDarkModeCapability(t)},this.toggleFileCard=(e,t)=>{const i=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",i):this.uppy.emit("dashboard:file-edit-complete",i),this.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},this.toggleAddFilesPanel=e=>{this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||e.webkitRelativePath||null}})));try{this.uppy.addFiles(t)}catch(i){this.uppy.log(i)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:i,height:n}=t.contentRect;this.setPluginState({containerWidth:i,containerHeight:n,areInsidesReadyToBeVisible:!0})})),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout((()=>{const e=this.getPluginState(),t=!this.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(this.uppy.log("[Dashboard] resize event didn\u2019t fire on time: defaulted to mobile layout","warning"),this.setPluginState({areInsidesReadyToBeVisible:!0}))}),1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=e=>{this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableInteractiveElements=e=>{var t;const i=null!=(t=Zr(this,tl)[tl])?t:hi(this.el.querySelectorAll(["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[role="button"]:not([disabled])'])).filter((e=>!e.classList.contains("uppy-Dashboard-close")));for(const n of i)"A"===n.tagName?n.setAttribute("aria-disabled",e):n.disabled=e;Zr(this,tl)[tl]=e?i:null,this.dashboardIsDisabled=e},this.updateBrowserHistory=()=>{var e;null!=(e=history.state)&&e[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=e=>{var t;!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&null!=(t=e.state)&&t[this.modalName]&&history.back()},this.handleKeyDownInModal=e=>{27===e.keyCode&&this.requestCloseModal(e),9===e.keyCode&&rr(e,this.getPluginState().activeOverlayType,this.el)},this.handleClickOutside=()=>{this.opts.closeModalOnClickOutside&&this.requestCloseModal()},this.handlePaste=e=>{this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootPaste||t.handleRootPaste(e))}));const t=hi(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=hi(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,i;e.preventDefault(),e.stopPropagation();const n=(()=>{let t=!0;return this.uppy.iteratePlugins((i=>{null!=i.canHandleRootDrop&&i.canHandleRootDrop(e)&&(t=!0)})),t})(),a=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!n&&!a||this.opts.disabled||this.opts.disableLocalFiles&&(a||!n)||!this.uppy.getState().allowNewUpload)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(i=this.opts).onDragOver)||t.call(i,e)},this.handleDragLeave=e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(i=this.opts).onDragLeave)||t.call(i,e)},this.handleDrop=async e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let n=!1;this.uppy.log("[Dashboard] Processing dropped files");const a=await ir(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),n||(this.uppy.info(e.message,"error"),n=!0)}});a.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(a)),null==(t=(i=this.opts).onDrop)||t.call(i,e)},this.handleRequestThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",e)},this.handleCancelThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",e)},this.handleKeyDownInInline=e=>{9===e.keyCode&&function(e,t,i){null===t||rr(e,t,i)}(e,this.getPluginState().activeOverlayType,this.el)},this.handlePasteOnBody=e=>{this.el.contains(document.activeElement)&&this.handlePaste(e)},this.handleComplete=e=>{let{failed:t}=e;this.opts.closeAfterFinish&&0===t.length&&this.requestCloseModal()},this.handleCancelRestore=()=>{this.uppy.emit("restore-canceled")},Object.defineProperty(this,il,{writable:!0,value:()=>{if(this.opts.disableThumbnailGenerator)return;const e=this.uppy.getFiles();if(1===e.length){const t=this.uppy.getPlugin("".concat(this.id,":ThumbnailGenerator"));null==t||t.setOptions({thumbnailWidth:600});const i={...e[0],preview:void 0};t.requestThumbnail(i).then((()=>{null==t||t.setOptions({thumbnailWidth:this.opts.thumbnailWidth})}))}}}),Object.defineProperty(this,nl,{writable:!0,value:e=>{const t=e[0],{metaFields:i}=this.getPluginState(),n=i&&i.length>0,a=this.canEditFile(t);n?this.toggleFileCard(!0,t.id):a&&this.openFileEditor(t)}}),this.initEvents=()=>{if(this.opts.trigger&&!this.opts.inline){const e=Qs(this.opts.trigger);e?e.forEach((e=>e.addEventListener("click",this.openModal))):this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}this.startListeningToResize(),document.addEventListener("paste",this.handlePasteOnBody),this.uppy.on("plugin-added",Zr(this,ul)[ul]),this.uppy.on("plugin-remove",this.removeTarget),this.uppy.on("file-added",this.hideAllPanels),this.uppy.on("dashboard:modal-closed",this.hideAllPanels),this.uppy.on("complete",this.handleComplete),this.uppy.on("files-added",Zr(this,il)[il]),this.uppy.on("file-removed",Zr(this,il)[il]),document.addEventListener("focus",this.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",this.recordIfFocusedOnUppyRecently,!0),this.opts.inline&&this.el.addEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.on("files-added",Zr(this,nl)[nl])},this.removeEvents=()=>{const e=Qs(this.opts.trigger);!this.opts.inline&&e&&e.forEach((e=>e.removeEventListener("click",this.openModal))),this.stopListeningToResize(),document.removeEventListener("paste",this.handlePasteOnBody),window.removeEventListener("popstate",this.handlePopState,!1),this.uppy.off("plugin-added",Zr(this,ul)[ul]),this.uppy.off("plugin-remove",this.removeTarget),this.uppy.off("file-added",this.hideAllPanels),this.uppy.off("dashboard:modal-closed",this.hideAllPanels),this.uppy.off("complete",this.handleComplete),this.uppy.off("files-added",Zr(this,il)[il]),this.uppy.off("file-removed",Zr(this,il)[il]),document.removeEventListener("focus",this.recordIfFocusedOnUppyRecently),document.removeEventListener("click",this.recordIfFocusedOnUppyRecently),this.opts.inline&&this.el.removeEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.off("files-added",Zr(this,nl)[nl])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,i=0===this.uppy.getState().info.length,n=!this.opts.inline;i&&(n||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{!this.opts.disabled||this.dashboardIsDisabled?(!this.opts.disabled&&this.dashboardIsDisabled&&this.disableInteractiveElements(!1),this.superFocusOnEachUpdate()):this.disableInteractiveElements(!0)},this.saveFileCard=(e,t)=>{this.uppy.setFileMeta(t,e),this.toggleFileCard(!1,t)},Object.defineProperty(this,al,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return{...e,icon:t.icon||this.opts.defaultPickerIcon,render:t.render}}}),Object.defineProperty(this,ol,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return"function"!==typeof t.isSupported||t.isSupported()}}),Object.defineProperty(this,sl,{writable:!0,value:$r((e=>e.filter((e=>"acquirer"===e.type&&Zr(this,ol)[ol](e))).map(Zr(this,al)[al])))}),Object.defineProperty(this,rl,{writable:!0,value:$r((e=>e.filter((e=>"progressindicator"===e.type)).map(Zr(this,al)[al])))}),Object.defineProperty(this,ll,{writable:!0,value:$r((e=>e.filter((e=>"editor"===e.type)).map(Zr(this,al)[al])))}),this.render=e=>{const t=this.getPluginState(),{files:i,capabilities:n,allowNewUpload:a}=e,{newFiles:o,uploadStartedFiles:s,completeFiles:r,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:p,processingFiles:u,isUploadStarted:d,isAllComplete:h,isAllErrored:m,isAllPaused:f}=this.uppy.getObjectOfFilesPerState(),g=Zr(this,sl)[sl](t.targets),v=Zr(this,rl)[rl](t.targets),b=Zr(this,ll)[ll](t.targets);let y;return y="auto"===this.opts.theme?n.darkMode?"dark":"light":this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn('Unsupported option for "fileManagerSelectionType". Using default of "'.concat(this.opts.fileManagerSelectionType,'".'))),function(e){const t=0===e.totalFileCount,i=1===e.totalFileCount,n=e.containerWidth>576,a=e.containerHeight>330,o=zn({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>576,"uppy-size--lg":e.containerWidth>700,"uppy-size--xl":e.containerWidth>900,"uppy-size--height-md":e.containerHeight>330,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible,"uppy-Dashboard--singleFile":e.singleFileFullScreen&&i&&a});let s=1;e.containerWidth>900?s=5:e.containerWidth>700?s=4:e.containerWidth>576&&(s=3);const r=e.showSelectedFiles&&!t,l=e.recoveredState?Object.keys(e.recoveredState.files).length:null,c=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null,p=(0,Le.h)("div",{className:o,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&pr(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},(0,Le.h)("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),(0,Le.h)("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:(0,Le.h)("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},(0,Le.h)("span",{"aria-hidden":"true"},"\xd7")),(0,Le.h)("div",{className:"uppy-Dashboard-innerWrap"},(0,Le.h)("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),r&&(0,Le.h)(qr,e),l&&(0,Le.h)("div",{className:"uppy-Dashboard-serviceMsg"},(0,Le.h)("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},(0,Le.h)("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},(0,Le.h)("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),(0,Le.h)("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),(0,Le.h)("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),(0,Le.h)("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),(0,Le.h)("div",{className:"uppy-Dashboard-serviceMsg-text"},c>0?e.i18n("recoveredXFiles",{smart_count:c}):e.i18n("recoveredAllFiles"))),r?(0,Le.h)(Rr,{id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,files:e.files,acquirers:e.acquirers,resumableUploads:e.resumableUploads,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail,recoveredState:e.recoveredState,individualCancellation:e.individualCancellation,openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,isSingleFile:i,itemsPerRow:s}):(0,Le.h)(jr,Xr({},e,{isSizeMD:n})),(0,Le.h)(Kr,null,e.showAddFilesPanel?(0,Le.h)(Ar,Xr({key:"AddFiles"},e,{isSizeMD:n})):null),(0,Le.h)(Kr,null,e.fileCardFor?(0,Le.h)(Wr,Xr({key:"FileCard"},e)):null),(0,Le.h)(Kr,null,e.activePickerPanel?(0,Le.h)(Br,Xr({key:"Picker"},e)):null),(0,Le.h)(Kr,null,e.showFileEditor?(0,Le.h)(Mr,Xr({key:"Editor"},e)):null),(0,Le.h)("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))));return p}({state:e,isHidden:t.isHidden,files:i,newFiles:o,uploadStartedFiles:s,completeFiles:r,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:p,processingFiles:u,isUploadStarted:d,isAllComplete:h,isAllErrored:m,isAllPaused:f,totalFileCount:Object.keys(i).length,totalProgress:e.totalProgress,allowNewUpload:a,acquirers:g,theme:y,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:t.activePickerPanel,showFileEditor:t.showFileEditor,saveFileEditor:this.saveFileEditor,closeFileEditor:this.closeFileEditor,disableInteractiveElements:this.disableInteractiveElements,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,progressindicators:v,editors:b,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:e.recoveredState,metaFields:t.metaFields,resumableUploads:n.resumableUploads||!1,individualCancellation:n.individualCancellation,isMobileDevice:n.isMobileDevice,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:t.containerWidth,containerHeight:t.containerHeight,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,showNativePhotoCameraButton:this.opts.showNativePhotoCameraButton,showNativeVideoCameraButton:this.opts.showNativeVideoCameraButton,nativeCameraFacingMode:this.opts.nativeCameraFacingMode,singleFileFullScreen:this.opts.singleFileFullScreen,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},Object.defineProperty(this,cl,{writable:!0,value:()=>{(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t?t.mount(this,t):this.uppy.log("[Uppy] Dashboard could not find plugin '".concat(e,"', make sure to uppy.use() the plugins you are specifying"),"warning")}))}}),Object.defineProperty(this,pl,{writable:!0,value:()=>{this.uppy.iteratePlugins(Zr(this,ul)[ul])}}),Object.defineProperty(this,ul,{writable:!0,value:e=>{var t;if(e&&(null==(t=e.opts)||!t.target)&&["acquirer","editor"].includes(e.type)){this.getPluginState().targets.some((t=>e.id===t.id))||e.mount(this,e)}}}),this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:e,closeAfterFinish:t}=this.opts;if(e&&t)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:i,allowMultipleUploadBatches:n}=this.uppy.opts;(i||n)&&t&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:a}=this.opts;a&&this.mount(a,this),this.opts.disableStatusBar||this.uppy.use(wo,{id:"".concat(this.id,":StatusBar"),target:this,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,showProgressDetails:this.opts.showProgressDetails,hideAfterFinish:this.opts.hideProgressAfterFinish,locale:this.opts.locale,doneButtonHandler:this.opts.doneButtonHandler}),this.opts.disableInformer||this.uppy.use(Oo,{id:"".concat(this.id,":Informer"),target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(Js,{id:"".concat(this.id,":ThumbnailGenerator"),thumbnailWidth:this.opts.thumbnailWidth,thumbnailHeight:this.opts.thumbnailHeight,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery="undefined"!==typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const o=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log("[Dashboard] Dark mode is ".concat(o?"on":"off")),this.setDarkModeCapability(o),"auto"===this.opts.theme&&this.darkModeMediaQuery.addListener(this.handleSystemDarkModeChange),Zr(this,cl)[cl](),Zr(this,pl)[pl](),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const e=this.uppy.getPlugin("".concat(this.id,":Informer"));e&&this.uppy.removePlugin(e)}if(!this.opts.disableStatusBar){const e=this.uppy.getPlugin("".concat(this.id,":StatusBar"));e&&this.uppy.removePlugin(e)}if(!this.opts.disableThumbnailGenerator){const e=this.uppy.getPlugin("".concat(this.id,":ThumbnailGenerator"));e&&this.uppy.removePlugin(e)}(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.unmount()})),"auto"===this.opts.theme&&this.darkModeMediaQuery.removeListener(this.handleSystemDarkModeChange),this.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.modalName="uppy-Dashboard-".concat(F()),this.defaultLocale=Yr;const n={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:ma,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:()=>{this.uppy.clearUploadedFiles(),this.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,singleFileFullScreen:!0,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:()=>this.closeModal(),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,showNativePhotoCameraButton:!1,showNativeVideoCameraButton:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};this.opts={...n,...t},this.i18nInit(),this.superFocus=function(){let e=!1;return lr(((t,i)=>{const n=or(t,i),a=n.contains(document.activeElement);if(a&&e)return;const o=n.querySelector("[data-uppy-super-focusable]");if(!a||o)if(o)o.focus({preventScroll:!0}),e=!0;else{const t=n.querySelector(ar);null==t||t.focus({preventScroll:!0}),e=!1}}),260)}(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}}dl.VERSION="3.7.5";var hl=i(55898),ml=i.n(hl);const fl=hl.instanceOf(Me),gl=hl.arrayOf(hl.string),vl=hl.shape({strings:hl.object,pluralize:hl.func}),bl=hl.shape({id:hl.string.isRequired,name:hl.string.isRequired,placeholder:hl.string}),yl=hl.oneOfType([hl.arrayOf(bl),hl.func]),xl=hl.oneOfType([hl.string,hl.number]),wl={uppy:fl,inline:hl.bool,plugins:gl,width:xl,height:xl,showProgressDetails:hl.bool,hideUploadButton:hl.bool,hideProgressAfterFinish:hl.bool,note:hl.string,metaFields:yl,proudlyDisplayPoweredByUppy:hl.bool,disableStatusBar:hl.bool,disableInformer:hl.bool,disableThumbnailGenerator:hl.bool,thumbnailWidth:hl.number,locale:vl},Pl=["defaultChecked","defaultValue","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML","accessKey","className","contentEditable","contextMenu","dir","draggable","hidden","id","lang","placeholder","slot","spellCheck","style","tabIndex","title","translate","radioGroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","inputMode","is","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Sl=/^(aria-|data-)/,kl=e=>Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return Sl.test(t)||Pl.includes(t)})));function _l(e,t){return Object.keys(e).some((i=>!Object.hasOwn(e,i)&&e[i]!==t[i]))}class Cl extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:Dashboard",...this.props,target:this.container};delete t.uppy,e.use(dl,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Cl.propTypes=wl,Cl.defaultProps={inline:!0};const Fl=Cl;class Tl extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){const{uppy:t,open:i,onRequestClose:n}=this.props;if(e.uppy!==t)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,onRequestCloseModal:n};delete e.uppy,this.plugin.setOptions(e)}e.open&&!i?this.plugin.closeModal():!e.open&&i&&this.plugin.openModal()}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{id:e="react:DashboardModal",uppy:t,target:i,open:n,onRequestClose:a,closeModalOnClickOutside:o,disablePageScrollWhenModalOpen:s,inline:r,plugins:l,width:c,height:p,showProgressDetails:u,note:d,metaFields:h,proudlyDisplayPoweredByUppy:m,autoOpenFileEditor:f,animateOpenClose:g,browserBackButtonClose:v,closeAfterFinish:b,disableStatusBar:y,disableInformer:x,disableThumbnailGenerator:w,disableLocalFiles:P,disabled:S,hideCancelButton:k,hidePauseResumeButton:_,hideProgressAfterFinish:C,hideRetryButton:F,hideUploadButton:T,showLinkToFileUploadResult:O,showRemoveButtonAfterComplete:E,showSelectedFiles:D,waitForThumbnailsBeforeUpload:R,fileManagerSelectionType:U,theme:I,thumbnailType:j,thumbnailWidth:A,locale:N}=this.props,B={id:e,target:i,closeModalOnClickOutside:o,disablePageScrollWhenModalOpen:s,inline:r,plugins:l,width:c,height:p,showProgressDetails:u,note:d,metaFields:h,proudlyDisplayPoweredByUppy:m,autoOpenFileEditor:f,animateOpenClose:g,browserBackButtonClose:v,closeAfterFinish:b,disableStatusBar:y,disableInformer:x,disableThumbnailGenerator:w,disableLocalFiles:P,disabled:S,hideCancelButton:k,hidePauseResumeButton:_,hideProgressAfterFinish:C,hideRetryButton:F,hideUploadButton:T,showLinkToFileUploadResult:O,showRemoveButtonAfterComplete:E,showSelectedFiles:D,waitForThumbnailsBeforeUpload:R,fileManagerSelectionType:U,theme:I,thumbnailType:j,thumbnailWidth:A,locale:N,onRequestCloseModal:a};B.target||(B.target=this.container),delete B.uppy,t.use(dl,B),this.plugin=t.getPlugin(B.id),n&&this.plugin.openModal()}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Tl.propTypes={uppy:fl.isRequired,target:"undefined"!==typeof window?hl.instanceOf(window.HTMLElement):hl.any,open:hl.bool,onRequestClose:hl.func,closeModalOnClickOutside:hl.bool,disablePageScrollWhenModalOpen:hl.bool,inline:hl.bool,plugins:gl,width:xl,height:xl,showProgressDetails:hl.bool,note:hl.string,metaFields:yl,proudlyDisplayPoweredByUppy:hl.bool,autoOpenFileEditor:hl.bool,animateOpenClose:hl.bool,browserBackButtonClose:hl.bool,closeAfterFinish:hl.bool,disableStatusBar:hl.bool,disableInformer:hl.bool,disableThumbnailGenerator:hl.bool,disableLocalFiles:hl.bool,disabled:hl.bool,hideCancelButton:hl.bool,hidePauseResumeButton:hl.bool,hideProgressAfterFinish:hl.bool,hideRetryButton:hl.bool,hideUploadButton:hl.bool,showLinkToFileUploadResult:hl.bool,showRemoveButtonAfterComplete:hl.bool,showSelectedFiles:hl.bool,waitForThumbnailsBeforeUpload:hl.bool,fileManagerSelectionType:hl.string,theme:hl.string,thumbnailType:hl.string,thumbnailWidth:hl.number,locale:vl},Tl.defaultProps={metaFields:[],plugins:[],inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1,open:void 0,target:void 0,locale:null,onRequestClose:void 0};const Ol={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};class El extends Ze{constructor(e,t){super(e,t),this.handleDrop=async e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const n=await ir(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error")}});n.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(n)),null==(t=(i=this.opts).onDrop)||t.call(i,e)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=Ol;this.opts={target:null,inputName:"files[]",width:"100%",height:"100%",note:null,...t},this.i18nInit(),this.isDragDropSupported=pr(),this.removeDragOverClassTimeout=null,this.onInputChange=this.onInputChange.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this),this.addFiles=this.addFiles.bind(this),this.render=this.render.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(i){this.uppy.log(i)}}onInputChange(e){const t=hi(e.target.files);t.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(t)),e.target.value=null}handleDragOver(e){var t,i;e.preventDefault(),e.stopPropagation();const{types:n}=e.dataTransfer,a=n.some((e=>"Files"===e)),{allowNewUpload:o}=this.uppy.getState();if(!a||!o)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(i=this.opts).onDragOver)||t.call(i,e)}handleDragLeave(e){var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(i=this.opts).onDragLeave)||t.call(i,e)}renderHiddenFileInput(){const{restrictions:e}=this.uppy.opts;return(0,Le.h)("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:e=>{this.fileInputRef=e},name:this.opts.inputName,multiple:1!==e.maxNumberOfFiles,accept:e.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},(0,Le.h)("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return(0,Le.h)("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:(0,Le.h)("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return(0,Le.h)("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const e="uppy-u-reset\n uppy-DragDrop-container\n ".concat(this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":"","\n ").concat(this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":"","\n "),t={width:this.opts.width,height:this.opts.height};return(0,Le.h)("button",{type:"button",className:e,style:t,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),(0,Le.h)("div",{className:"uppy-DragDrop-inner"},El.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:e}=this.opts;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)}uninstall(){this.unmount()}}El.VERSION="3.0.3";class Dl extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e,locale:t,inputName:i,width:n,height:a,note:o}=this.props,s={id:"react:DragDrop",locale:t,inputName:i,width:n,height:a,note:o,target:this.container};delete s.uppy,e.use(El,s),this.plugin=e.getPlugin(s.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Dl.propTypes={uppy:fl.isRequired,locale:vl,inputName:hl.string,width:hl.string,height:hl.string,note:hl.string},Dl.defaultProps={locale:null,inputName:"files[]",width:"100%",height:"100%",note:null};class Rl extends Ze{constructor(e,t){super(e,t),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator";this.opts={target:"body",fixed:!1,hideAfterFinish:!0,...t},this.render=this.render.bind(this)}render(e){const t=e.totalProgress||0,i=(0===t||100===t)&&this.opts.hideAfterFinish;return(0,Le.h)("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":i},(0,Le.h)("div",{className:"uppy-ProgressBar-inner",style:{width:"".concat(t,"%")}}),(0,Le.h)("div",{className:"uppy-ProgressBar-percentage"},t))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Rl.VERSION="3.0.4";class Ul extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e,fixed:t,hideAfterFinish:i}=this.props,n={id:"react:ProgressBar",fixed:t,hideAfterFinish:i,target:this.container};delete n.uppy,e.use(Rl,n),this.plugin=e.getPlugin(n.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Ul.propTypes={uppy:fl.isRequired,fixed:hl.bool,hideAfterFinish:hl.bool},Ul.defaultProps={fixed:!1,hideAfterFinish:!0};class Il extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e,hideUploadButton:t,hideRetryButton:i,hidePauseResumeButton:n,hideCancelButton:a,showProgressDetails:o,hideAfterFinish:s,doneButtonHandler:r}=this.props,l={id:"react:StatusBar",hideUploadButton:t,hideRetryButton:i,hidePauseResumeButton:n,hideCancelButton:a,showProgressDetails:o,hideAfterFinish:s,doneButtonHandler:r,target:this.container};delete l.uppy,e.use(wo,l),this.plugin=e.getPlugin(l.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Il.propTypes={uppy:fl.isRequired,hideUploadButton:hl.bool,hideRetryButton:hl.bool,hidePauseResumeButton:hl.bool,hideCancelButton:hl.bool,showProgressDetails:hl.bool,hideAfterFinish:hl.bool,doneButtonHandler:hl.func},Il.defaultProps={hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null};const jl={strings:{chooseFiles:"Choose files"}};class Al extends Ze{constructor(e,t){super(e,t),this.id=this.opts.id||"FileInput",this.title="File Input",this.type="acquirer",this.defaultLocale=jl;this.opts={target:null,pretty:!0,inputName:"files[]",...t},this.i18nInit(),this.render=this.render.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleClick=this.handleClick.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e})));try{this.uppy.addFiles(t)}catch(i){this.uppy.log(i)}}handleInputChange(e){this.uppy.log("[FileInput] Something selected through input...");const t=hi(e.target.files);this.addFiles(t),e.target.value=null}handleClick(){this.input.click()}render(){const{restrictions:e}=this.uppy.opts,t=e.allowedFileTypes?e.allowedFileTypes.join(","):null;return(0,Le.h)("div",{className:"uppy-FileInput-container"},(0,Le.h)("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==e.maxNumberOfFiles,accept:t,ref:e=>{this.input=e}}),this.opts.pretty&&(0,Le.h)("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Al.VERSION="3.0.4";class Nl extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){e.uppy!==this.props.uppy&&(this.uninstallPlugin(e),this.installPlugin())}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e,locale:t,pretty:i,inputName:n}=this.props,a={id:"react:FileInput",locale:t,pretty:i,inputName:n,target:this.container};delete a.uppy,e.use(Al,a),this.plugin=e.getPlugin(a.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e}})}}Nl.propTypes={uppy:fl.isRequired,locale:vl,pretty:hl.bool,inputName:hl.string},Nl.defaultProps={locale:void 0,pretty:!0,inputName:"files[]"};const Bl={target:null};function Ml(e){var t,i;return null!=(t=null==(i=e.dataTransfer)||null==(i=i.types)?void 0:i.some((e=>"Files"===e)))&&t}class Ll extends We{constructor(e,t){super(e,{...Bl,...t}),this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(i){this.uppy.log(i)}},this.handleDrop=async e=>{var t,i,n;if(!Ml(e))return;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),null==(t=e.currentTarget)||t.classList.remove("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let a=!1;const o=await ir(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),a||(this.uppy.info(e.message,"error"),a=!0)}});o.length>0&&(this.uppy.log("[DropTarget] Files were dropped"),this.addFiles(o)),null==(i=(n=this.opts).onDrop)||i.call(n,e)},this.handleDragOver=e=>{var t,i;Ml(e)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),e.currentTarget.classList.add("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!0}),null==(t=(i=this.opts).onDragOver)||t.call(i,e))},this.handleDragLeave=e=>{var t,i;if(!Ml(e))return;e.preventDefault(),e.stopPropagation();const{currentTarget:n}=e;clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{n.classList.remove("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!1})}),50),null==(t=(i=this.opts).onDragLeave)||t.call(i,e)},this.addListeners=()=>{const{target:e}=this.opts;if(e instanceof Element?this.nodes=[e]:"string"===typeof e&&(this.nodes=hi(document.querySelectorAll(e))),!this.nodes||0===this.nodes.length)throw new Error('"'.concat(e,'" does not match any HTML elements'));this.nodes.forEach((e=>{e.addEventListener("dragover",this.handleDragOver,!1),e.addEventListener("dragleave",this.handleDragLeave,!1),e.addEventListener("drop",this.handleDrop,!1)}))},this.removeListeners=()=>{this.nodes&&this.nodes.forEach((e=>{e.removeEventListener("dragover",this.handleDragOver,!1),e.removeEventListener("dragleave",this.handleDragLeave,!1),e.removeEventListener("drop",this.handleDrop,!1)}))},this.type="acquirer",this.id=this.opts.id||"DropTarget",this.title="Drop Target"}install(){this.setPluginState({isDraggingOver:!1}),this.addListeners()}uninstall(){this.removeListeners()}}Ll.VERSION="2.0.4";var zl=i(76631);const ql=function(e,t){const i=e.width/t.width,n=e.height/t.height,a=Math.min(i,n),o=t.width*a,s=t.height*a;return{width:o,height:s,left:(e.width-o)/2,top:(e.height-s)/2}};const Hl=function(e,t,i){const n=Math.abs(i*(Math.PI/180));return Math.max((Math.sin(n)*e+Math.cos(n)*t)/t,(Math.sin(n)*t+Math.cos(n)*e)/e)};const Wl=function(e,t,i){return t.left<e.left?{left:e.left,width:i.width}:t.top<e.top?{top:e.top,height:i.height}:t.left+t.width>e.left+e.width?{left:e.left+e.width-i.width,width:i.width}:t.top+t.height>e.top+e.height?{top:e.top+e.height-i.height,height:i.height}:null};const Vl=function(e,t,i){return t.left<e.left?{left:e.left,width:i.left+i.width-e.left}:t.top<e.top?{top:e.top,height:i.top+i.height-e.top}:t.left+t.width>e.left+e.width?{left:i.left,width:e.left+e.width-i.left}:t.top+t.height>e.top+e.height?{top:i.top,height:e.top+e.height-i.top}:null};class Gl extends Le.wA{constructor(e){super(e),this.onRotate90Deg=()=>{const{angle90Deg:e}=this.state,t=e-90;this.setState({angle90Deg:t,angleGranular:0}),this.cropper.scale(1),this.cropper.rotateTo(t);const i=this.cropper.getCanvasData(),n=this.cropper.getContainerData(),a=ql(n,i);this.cropper.setCanvasData(a),this.cropper.setCropBoxData(a)},this.onRotateGranular=e=>{const t=Number(e.target.value);this.setState({angleGranular:t});const{angle90Deg:i}=this.state,n=i+t;this.cropper.rotateTo(n);const a=this.cropper.getImageData(),o=Hl(a.naturalWidth,a.naturalHeight,t),s=this.cropper.getImageData().scaleX<0?-o:o;this.cropper.scale(s,o)},this.state={angle90Deg:0,angleGranular:0,prevCropboxData:null},this.storePrevCropboxData=this.storePrevCropboxData.bind(this),this.limitCropboxMovement=this.limitCropboxMovement.bind(this)}componentDidMount(){const{opts:e,storeCropperInstance:t}=this.props;this.cropper=new zl(this.imgElement,e.cropperOptions),this.imgElement.addEventListener("cropstart",this.storePrevCropboxData),this.imgElement.addEventListener("cropend",this.limitCropboxMovement),t(this.cropper)}componentWillUnmount(){this.cropper.destroy(),this.imgElement.removeEventListener("cropstart",this.storePrevCropboxData),this.imgElement.removeEventListener("cropend",this.limitCropboxMovement)}storePrevCropboxData(){this.setState({prevCropboxData:this.cropper.getCropBoxData()})}limitCropboxMovement(e){const t=this.cropper.getCanvasData(),i=this.cropper.getCropBoxData(),{prevCropboxData:n}=this.state;if("all"===e.detail.action){const e=Wl(t,i,n);e&&this.cropper.setCropBoxData(e)}else{const e=Vl(t,i,n);e&&this.cropper.setCropBoxData(e)}}renderGranularRotate(){const{i18n:e}=this.props,{angleGranular:t}=this.state;return(0,Le.h)("label",{role:"tooltip","aria-label":"".concat(t,"\xba"),"data-microtip-position":"top",className:"uppy-ImageCropper-rangeWrapper"},(0,Le.h)("input",{className:"uppy-ImageCropper-range uppy-u-reset",type:"range",onInput:this.onRotateGranular,onChange:this.onRotateGranular,value:t,min:"-45",max:"45","aria-label":e("rotate")}))}renderRevert(){const{i18n:e,opts:t}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("revert"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>{this.cropper.reset(),this.cropper.setAspectRatio(t.cropperOptions.initialAspectRatio),this.setState({angle90Deg:0,angleGranular:0})}},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,Le.h)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}))))}renderRotate(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("rotate"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:this.onRotate90Deg},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),(0,Le.h)("path",{d:"M14 10a2 2 0 012 2v7a2 2 0 01-2 2H6a2 2 0 01-2-2v-7a2 2 0 012-2h8zm0 1.75H6a.25.25 0 00-.243.193L5.75 12v7a.25.25 0 00.193.243L6 19.25h8a.25.25 0 00.243-.193L14.25 19v-7a.25.25 0 00-.193-.243L14 11.75zM12 .76V4c2.3 0 4.61.88 6.36 2.64a8.95 8.95 0 012.634 6.025L21 13a1 1 0 01-1.993.117L19 13h-.003a6.979 6.979 0 00-2.047-4.95 6.97 6.97 0 00-4.652-2.044L12 6v3.24L7.76 5 12 .76z"}))))}renderFlip(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("flipHorizontal"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.scaleX(-this.cropper.getData().scaleX||-1)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,Le.h)("path",{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}))))}renderZoomIn(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("zoomIn"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.zoom(.1)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",height:"24",viewBox:"0 0 24 24",width:"24"},(0,Le.h)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,Le.h)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),(0,Le.h)("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))))}renderZoomOut(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("zoomOut"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.zoom(-.1)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,Le.h)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"}))))}renderCropSquare(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("aspectRatioSquare"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.setAspectRatio(1)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,Le.h)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))))}renderCropWidescreen(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("aspectRatioLandscape"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.setAspectRatio(16/9)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M 19,4.9999992 V 17.000001 H 4.9999998 V 6.9999992 H 19 m 0,-2 H 4.9999998 c -1.0999999,0 -1.9999999,0.9000001 -1.9999999,2 V 17.000001 c 0,1.1 0.9,2 1.9999999,2 H 19 c 1.1,0 2,-0.9 2,-2 V 6.9999992 c 0,-1.0999999 -0.9,-2 -2,-2 z"}),(0,Le.h)("path",{fill:"none",d:"M0 0h24v24H0z"}))))}renderCropWidescreenVertical(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("aspectRatioPortrait"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.setAspectRatio(9/16)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M 19.000001,19 H 6.999999 V 5 h 10.000002 v 14 m 2,0 V 5 c 0,-1.0999999 -0.9,-1.9999999 -2,-1.9999999 H 6.999999 c -1.1,0 -2,0.9 -2,1.9999999 v 14 c 0,1.1 0.9,2 2,2 h 10.000002 c 1.1,0 2,-0.9 2,-2 z"}),(0,Le.h)("path",{d:"M0 0h24v24H0z",fill:"none"}))))}render(){const{currentImage:e,opts:t}=this.props,{actions:i}=t,n=URL.createObjectURL(e.data);return(0,Le.h)("div",{className:"uppy-ImageCropper"},(0,Le.h)("div",{className:"uppy-ImageCropper-container"},(0,Le.h)("img",{className:"uppy-ImageCropper-image",alt:e.name,src:n,ref:e=>{this.imgElement=e}})),(0,Le.h)("div",{className:"uppy-ImageCropper-controls"},i.revert&&this.renderRevert(),i.rotate&&this.renderRotate(),i.granularRotate&&this.renderGranularRotate(),i.flip&&this.renderFlip(),i.zoomIn&&this.renderZoomIn(),i.zoomOut&&this.renderZoomOut(),i.cropSquare&&this.renderCropSquare(),i.cropWidescreen&&this.renderCropWidescreen(),i.cropWidescreenVertical&&this.renderCropWidescreenVertical()))}}const Kl={strings:{revert:"Reset",rotate:"Rotate 90\xb0",zoomIn:"Zoom in",zoomOut:"Zoom out",flipHorizontal:"Flip horizontally",aspectRatioSquare:"Crop square",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)"}},Xl={viewMode:0,background:!1,autoCropArea:1,responsive:!0,minCropBoxWidth:70,minCropBoxHeight:70,croppedCanvasOptions:{},initialAspectRatio:0},Yl={revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!0,cropWidescreen:!0,cropWidescreenVertical:!0},Zl={quality:.8,actions:Yl,cropperOptions:Xl};class Jl extends Ze{constructor(e,t){super(e,{...Zl,...t,actions:{...Yl,...null==t?void 0:t.actions},cropperOptions:{...Xl,...null==t?void 0:t.cropperOptions}}),this.save=()=>{const{currentImage:e}=this.getPluginState(),t=this.cropper.getCroppedCanvas({});t.width%2!==0&&this.cropper.setData({width:t.width-1}),t.height%2!==0&&this.cropper.setData({height:t.height-1}),this.cropper.getCroppedCanvas(this.opts.cropperOptions.croppedCanvasOptions).toBlob((e=>{const{currentImage:t}=this.getPluginState();this.uppy.setFileState(t.id,{data:new File([e],t.name,{type:e.type}),size:e.size,preview:void 0});const i=this.uppy.getFile(t.id);this.uppy.emit("thumbnail:request",i),this.setPluginState({currentImage:i}),this.uppy.emit("file-editor:complete",i)}),e.type,this.opts.quality)},this.storeCropperInstance=e=>{this.cropper=e},this.selectFile=e=>{this.uppy.emit("file-editor:start",e),this.setPluginState({currentImage:e})},this.id=this.opts.id||"ImageEditor",this.title="Image Editor",this.type="editor",this.defaultLocale=Kl,this.i18nInit()}canEditFile(e){if(!e.type||e.isRemote)return!1;const t=e.type.split("/")[1];return!!/^(jpe?g|gif|png|bmp|webp)$/.test(t)}install(){this.setPluginState({currentImage:null});const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){const{currentImage:e}=this.getPluginState();if(e){const t=this.uppy.getFile(e.id);this.uppy.emit("file-editor:cancel",t)}this.unmount()}render(){const{currentImage:e}=this.getPluginState();return null===e||e.isRemote?null:(0,Le.h)(Gl,{currentImage:e,storeCropperInstance:this.storeCropperInstance,save:this.save,opts:this.opts,i18n:this.i18n})}}Jl.VERSION="2.4.4";var Ql=i(55227).Buffer;const $l="function"===typeof btoa,ec="function"===typeof Ql,tc=("function"===typeof TextDecoder&&new TextDecoder,"function"===typeof TextEncoder?new TextEncoder:void 0),ic=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),nc=((e=>{let t={};e.forEach(((e,i)=>t[e]=i))})(ic),String.fromCharCode.bind(String)),ac=("function"===typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),oc=e=>{let t,i,n,a,o="";const s=e.length%3;for(let r=0;r<e.length;){if((i=e.charCodeAt(r++))>255||(n=e.charCodeAt(r++))>255||(a=e.charCodeAt(r++))>255)throw new TypeError("invalid character found");t=i<<16|n<<8|a,o+=ic[t>>18&63]+ic[t>>12&63]+ic[t>>6&63]+ic[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},sc=$l?e=>btoa(e):ec?e=>Ql.from(e,"binary").toString("base64"):oc,rc=ec?e=>Ql.from(e).toString("base64"):e=>{let t=[];for(let i=0,n=e.length;i<n;i+=4096)t.push(nc.apply(null,e.subarray(i,i+4096)));return sc(t.join(""))},lc=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?nc(192|t>>>6)+nc(128|63&t):nc(224|t>>>12&15)+nc(128|t>>>6&63)+nc(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return nc(240|t>>>18&7)+nc(128|t>>>12&63)+nc(128|t>>>6&63)+nc(128|63&t)},cc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,pc=e=>e.replace(cc,lc),uc=ec?e=>Ql.from(e,"utf8").toString("base64"):tc?e=>rc(tc.encode(e)):e=>sc(pc(e)),dc=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?ac(uc(e)):uc(e)},hc=dc;var mc=i(44189),fc=i.n(mc);function gc(e){return gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gc(e)}function vc(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bc(n.key),n)}}function bc(e){var t=function(e,t){if("object"!==gc(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==gc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gc(t)?t:String(t)}function yc(e){var t=Pc();return function(){var i,n=kc(e);if(t){var a=kc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===gc(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,i)}}function xc(e){var t="function"===typeof Map?new Map:void 0;return xc=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return wc(e,arguments,kc(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Sc(i,e)},xc(e)}function wc(e,t,i){return wc=Pc()?Reflect.construct.bind():function(e,t,i){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return i&&Sc(a,i.prototype),a},wc.apply(null,arguments)}function Pc(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sc(e,t)}function kc(e){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kc(e)}const _c=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sc(e,t)}(o,e);var t,i,n,a=yc(o);function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).originalRequest=n,t.originalResponse=s,t.causingError=i,null!=i&&(e+=", caused by ".concat(i.toString())),null!=n){var r=n.getHeader("X-Request-ID")||"n/a",l=n.getMethod(),c=n.getURL(),p=s?s.getStatus():"n/a",u=s?s.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(p,", response text: ").concat(u,", request id: ").concat(r,")")}return t.message=e,t}return t=o,i&&vc(t.prototype,i),n&&vc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(xc(Error));var Cc=!1;function Fc(e){Cc&&console.log(e)}function Tc(){Tc=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,i){return e[t]=i}}function p(e,t,i,n){var o=t&&t.prototype instanceof v?t:v,s=Object.create(o.prototype),r=new E(n||[]);return a(s,"_invoke",{value:C(e,i,r)}),s}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var d="suspendedStart",h="suspendedYield",m="executing",f="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,s,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(D([])));P&&P!==i&&n.call(P,s)&&(x=P);var S=y.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(a,o,s,r){var l=u(e[a],e,o);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==Rc(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){i("next",e,s,r)}),(function(e){i("throw",e,s,r)})):t.resolve(p).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,r)}))}r(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){i(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function C(t,i,n){var a=d;return function(o,s){if(a===m)throw new Error("Generator is already running");if(a===f){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var r=n.delegate;if(r){var l=F(r,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=u(t,i,n);if("normal"===c.type){if(a=n.done?f:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=f,n.method="throw",n.arg=c.arg)}}}function F(t,i){var n=i.method,a=t.iterator[n];if(a===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,F(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=u(a,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var s=o.arg;return s?s.done?(i[t.resultName]=s.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):s:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var i=t[s];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function i(){for(;++a<t.length;)if(n.call(t,a))return i.value=t[a],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(Rc(t)+" is not iterable")}return b.prototype=y,a(S,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(_.prototype),c(_.prototype,r,(function(){return this})),t.AsyncIterator=_,t.async=function(e,i,n,a,o){void 0===o&&(o=Promise);var s=new _(p(e,i,n,a),o);return t.isGeneratorFunction(i)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(S),c(S,l,"Generator"),c(S,s,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function a(n,a){return r.type="throw",r.arg=t,i.next=n,a&&(i.method="next",i.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return a(s.catchLoc,!0);if(this.prev<s.finallyLoc)return a(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return a(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return a(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),O(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;O(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:D(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Oc(e,t,i,n,a,o,s){try{var r=e[o](s),l=r.value}catch(_c){return void i(_c)}r.done?t(l):Promise.resolve(l).then(n,a)}function Ec(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,a,o,s,r=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(r.push(n.value),r.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw a}}return r}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Dc(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Dc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Rc(e){return Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rc(e)}function Uc(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ic(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Uc(Object(i),!0).forEach((function(t){jc(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Uc(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function jc(e,t,i){return(t=Nc(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ac(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nc(n.key),n)}}function Nc(e){var t=function(e,t){if("object"!==Rc(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Rc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rc(t)?t:String(t)}var Bc={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Gc,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Mc=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in i&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=i,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,i,n;return t=e,i=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl||this.url){var i=this.options.retryDelays;if(null==i||"[object Array]"===Object.prototype.toString.call(i)){if(this.options.parallelUploads>1)for(var n=0,a=["uploadUrl","uploadSize","uploadLengthDeferred"];n<a.length;n++){var o=a[n];if(this.options[o])return void this._emitError(new Error("tus: cannot use the ".concat(o," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(t,this.options).then((function(i){return Fc(null==i?"No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.":"Calculated fingerprint: ".concat(i)),e._fingerprint=i,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){if(e._source=t,e.options.uploadLengthDeferred)e._size=null;else if(null!=e.options.uploadSize){if(e._size=Number(e.options.uploadSize),Number.isNaN(e._size))return void e._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(e._size=e._source.size,null==e._size)return void e._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,i=this,n=this._size,a=0;this._parallelUploads=[];var o=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,s=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var i=Math.floor(e/t),n=[],a=0;a<t;a++)n.push({start:i*a,end:i*(a+1)});return n[t-1].end=e,n}(this._source.size,o);this._parallelUploadUrls&&s.forEach((function(e,t){e.uploadUrl=i._parallelUploadUrls[t]||null})),this._parallelUploadUrls=new Array(s.length);var r,l=s.map((function(t,o){var r=0;return i._source.slice(t.start,t.end).then((function(l){var c=l.value;return new Promise((function(l,p){var u=Ic(Ic({},i.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:Ic(Ic({},i.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:l,onError:p,onProgress:function(e){a=a-r+e,r=e,i._emitProgress(a,n)},onUploadUrlAvailable:function(){i._parallelUploadUrls[o]=d.url,i._parallelUploadUrls.filter((function(e){return Boolean(e)})).length===s.length&&i._saveUploadInUrlStorage()}}),d=new e(c,u);d.start(),i._parallelUploads.push(d)}))}))}));Promise.all(l).then((function(){(r=i._openRequest("POST",i.options.endpoint)).setHeader("Upload-Concat","final;".concat(i._parallelUploadUrls.join(" ")));var e=Lc(i.options.metadata);return""!==e&&r.setHeader("Upload-Metadata",e),i._sendRequest(r,null)})).then((function(e){if(zc(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(i.url=Kc(i.options.endpoint,t),Fc("Created upload at ".concat(i.url)),i._emitSuccess()):i._emitHttpError(r,e,"tus: invalid or missing Location header")}else i._emitHttpError(r,e,"tus: unexpected response while creating upload")})).catch((function(e){i._emitError(e)}))}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?(Fc("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?(Fc("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,void this._resumeUpload()):(Fc("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(t){var i=this;return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return i._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,i,n){this._emitError(new _c(i,n,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),Vc(e,this._retryAttempt,this.options))){var i=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),i))}if("function"!==typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"===typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"===typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,i){"function"===typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,i)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var i,n=Lc(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(t)):i=this._sendRequest(t,null),i.then((function(i){if(zc(i.getStatus(),200)){var n=i.getHeader("Location");if(null!=n){if(e.url=Kc(e.options.endpoint,n),Fc("Created upload at ".concat(e.url)),"function"===typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,i):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,i,"tus: invalid or missing Location header")}else e._emitHttpError(t,i,"tus: unexpected response while creating upload")})).catch((function(i){e._emitHttpError(t,null,"tus: failed to create upload",i)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(i){var n=i.getStatus();if(!zc(n,200))return 423===n?void e._emitHttpError(t,i,"tus: upload is currently locked; retry later"):(zc(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var a=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(a))e._emitHttpError(t,i,"tus: invalid or missing offset value");else{var o=parseInt(i.getHeader("Upload-Length"),10);!Number.isNaN(o)||e.options.uploadLengthDeferred?("function"===typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(a===o)return e._emitProgress(o,o),void e._emitSuccess();e._offset=a,e._performUpload()}))):e._emitHttpError(t,i,"tus: invalid or missing length value")}})).catch((function(i){e._emitHttpError(t,null,"tus: failed to resume upload",i)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(i){zc(i.getStatus(),200)?t._handleUploadResponse(e,i):t._emitHttpError(e,i,"tus: unexpected response while uploading chunk")})).catch((function(i){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),i)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,i=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(i+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(i,n).then((function(i){var n=i.value,a=i.done,o=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&a&&(t._size=t._offset+o,e.setHeader("Upload-Length",t._size));var s=t._offset+o;return!t.options.uploadLengthDeferred&&a&&s!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(s," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var i=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(i))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var i=qc(e,t,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){return Hc(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=qc("DELETE",t,i);return Hc(n,null,i).then((function(e){if(204!==e.getStatus())throw new _c("tus: unexpected response while terminating upload",null,n,e)})).catch((function(a){if(a instanceof _c||(a=new _c("tus: failed to terminate upload",a,n,null)),!Vc(a,0,i))throw a;var o=i.retryDelays[0],s=i.retryDelays.slice(1),r=Ic(Ic({},i),{},{retryDelays:s});return new Promise((function(e){return setTimeout(e,o)})).then((function(){return e.terminate(t,r)}))}))}}],i&&Ac(t.prototype,i),n&&Ac(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Lc(e){return Object.entries(e).map((function(e){var t=Ec(e,2),i=t[0],n=t[1];return"".concat(i," ").concat(hc(String(n)))})).join(",")}function zc(e,t){return e>=t&&e<t+100}function qc(e,t,i){var n=i.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var a=i.headers||{};if(Object.entries(a).forEach((function(e){var t=Ec(e,2),i=t[0],a=t[1];n.setHeader(i,a)})),i.addRequestId){var o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));n.setHeader("X-Request-ID",o)}return n}function Hc(e,t,i){return Wc.apply(this,arguments)}function Wc(){var e;return e=Tc().mark((function e(t,i,n){var a;return Tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof n.onBeforeRequest){e.next=3;break}return e.next=3,n.onBeforeRequest(t);case 3:return e.next=5,t.send(i);case 5:if(a=e.sent,"function"!==typeof n.onAfterResponse){e.next=9;break}return e.next=9,n.onAfterResponse(t,a);case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})),Wc=function(){var t=this,i=arguments;return new Promise((function(n,a){var o=e.apply(t,i);function s(e){Oc(o,n,a,s,r,"next",e)}function r(e){Oc(o,n,a,s,r,"throw",e)}s(void 0)}))},Wc.apply(this,arguments)}function Vc(e,t,i){return!(null==i.retryDelays||t>=i.retryDelays.length||null==e.originalRequest)&&(i&&"function"===typeof i.onShouldRetry?i.onShouldRetry(e,t,i):Gc(e))}function Gc(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!zc(t,400)||409===t||423===t)&&function(){var e=!0;return"undefined"!==typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(e=!1),e}()}function Kc(e,t){return new(fc())(t,e).toString()}Mc.defaultOptions=Bc;const Xc=Mc;function Yc(e){return Yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yc(e)}function Zc(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jc(n.key),n)}}function Jc(e){var t=function(e,t){if("object"!==Yc(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Yc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Yc(t)?t:String(t)}var Qc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,i,n;return t=e,(i=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&Zc(t.prototype,i),n&&Zc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $c(e){return $c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$c(e)}function ep(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tp(n.key),n)}}function tp(e){var t=function(e,t){if("object"!==$c(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==$c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$c(t)?t:String(t)}var ip=!1;try{ip="localStorage"in window;var np="tusSupport",ap=localStorage.getItem(np);localStorage.setItem(np,ap),null===ap&&localStorage.removeItem(np)}catch(bm){if(bm.code!==bm.SECURITY_ERR&&bm.code!==bm.QUOTA_EXCEEDED_ERR)throw bm;ip=!1}var op=ip,sp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,i,n;return t=e,i=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var i=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(i);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],i=0;i<localStorage.length;i++){var n=localStorage.key(i);if(0===n.indexOf(e))try{var a=JSON.parse(localStorage.getItem(n));a.urlStorageKey=n,t.push(a)}catch(bm){}}return t}}],i&&ep(t.prototype,i),n&&ep(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rp(e){return rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rp(e)}function lp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cp(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,up(n.key),n)}}function pp(e,t,i){return t&&cp(e.prototype,t),i&&cp(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function up(e){var t=function(e,t){if("object"!==rp(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==rp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rp(t)?t:String(t)}var dp=function(){function e(){lp(this,e)}return pp(e,[{key:"createRequest",value:function(e,t){return new hp(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),hp=function(){function e(t,i){lp(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,i,!0),this._method=t,this._url=i,this._headers={}}return pp(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(i,n){e._xhr.onload=function(){i(new mp(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),mp=function(){function e(t){lp(this,e),this._xhr=t}return pp(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}();const fp=function(){return"undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function gp(e){return new Promise((function(t,i){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){i(e)},n.open("GET",e),n.send()}))}const vp=function(){return"undefined"!==typeof window&&("undefined"!==typeof window.PhoneGap||"undefined"!==typeof window.Cordova||"undefined"!==typeof window.cordova)};function bp(e){return bp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bp(e)}function yp(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xp(n.key),n)}}function xp(e){var t=function(e,t){if("object"!==bp(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bp(t)?t:String(t)}var wp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size}var t,i,n;return t=e,(i=[{key:"slice",value:function(e,t){if(vp())return i=this._file.slice(e,t),new Promise((function(e,t){var n=new FileReader;n.onload=function(){var t=new Uint8Array(n.result);e({value:t})},n.onerror=function(e){t(e)},n.readAsArrayBuffer(i)}));var i,n=this._file.slice(e,t),a=t>=this.size;return Promise.resolve({value:n,done:a})}},{key:"close",value:function(){}}])&&yp(t.prototype,i),n&&yp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pp(e){return Pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pp(e)}function Sp(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kp(n.key),n)}}function kp(e){var t=function(e,t){if("object"!==Pp(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pp(t)?t:String(t)}function _p(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var Cp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}var t,i,n;return t=e,i=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var i=this,n=t<=this._bufferOffset+_p(this._buffer);if(this._done||n){var a=this._getDataFromBuffer(e,t),o=null==a&&this._done;return Promise.resolve({value:a,done:o})}return this._reader.read().then((function(n){var a=n.value;return n.done?i._done=!0:void 0===i._buffer?i._buffer=a:i._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var i=new e.constructor(e.length+t.length);return i.set(e),i.set(t,e.length),i}throw new Error("Unknown data type")}(i._buffer,a),i._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var i=0===_p(this._buffer);return this._done&&i?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],i&&Sp(t.prototype,i),n&&Sp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Fp(e){return Fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fp(e)}function Tp(){Tp=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,i){return e[t]=i}}function p(e,t,i,n){var o=t&&t.prototype instanceof v?t:v,s=Object.create(o.prototype),r=new E(n||[]);return a(s,"_invoke",{value:C(e,i,r)}),s}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var d="suspendedStart",h="suspendedYield",m="executing",f="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,s,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(D([])));P&&P!==i&&n.call(P,s)&&(x=P);var S=y.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(a,o,s,r){var l=u(e[a],e,o);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==Fp(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){i("next",e,s,r)}),(function(e){i("throw",e,s,r)})):t.resolve(p).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,r)}))}r(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){i(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function C(t,i,n){var a=d;return function(o,s){if(a===m)throw new Error("Generator is already running");if(a===f){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var r=n.delegate;if(r){var l=F(r,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=u(t,i,n);if("normal"===c.type){if(a=n.done?f:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=f,n.method="throw",n.arg=c.arg)}}}function F(t,i){var n=i.method,a=t.iterator[n];if(a===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,F(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=u(a,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var s=o.arg;return s?s.done?(i[t.resultName]=s.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):s:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var i=t[s];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function i(){for(;++a<t.length;)if(n.call(t,a))return i.value=t[a],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(Fp(t)+" is not iterable")}return b.prototype=y,a(S,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(_.prototype),c(_.prototype,r,(function(){return this})),t.AsyncIterator=_,t.async=function(e,i,n,a,o){void 0===o&&(o=Promise);var s=new _(p(e,i,n,a),o);return t.isGeneratorFunction(i)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(S),c(S,l,"Generator"),c(S,s,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function a(n,a){return r.type="throw",r.arg=t,i.next=n,a&&(i.method="next",i.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return a(s.catchLoc,!0);if(this.prev<s.finallyLoc)return a(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return a(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return a(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),O(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;O(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:D(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Op(e,t,i,n,a,o,s){try{var r=e[o](s),l=r.value}catch(_c){return void i(_c)}r.done?t(l):Promise.resolve(l).then(n,a)}function Ep(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dp(n.key),n)}}function Dp(e){var t=function(e,t){if("object"!==Fp(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Fp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fp(t)?t:String(t)}var Rp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,i,n;return t=e,i=[{key:"openFile",value:function(){var e,t=(e=Tp().mark((function e(t,i){var n;return Tp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!fp()||!t||"undefined"===typeof t.uri){e.next=11;break}return e.prev=1,e.next=4,gp(t.uri);case 4:return n=e.sent,e.abrupt("return",new wp(n));case 8:throw e.prev=8,e.t0=e.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e.t0));case 11:if("function"!==typeof t.slice||"undefined"===typeof t.size){e.next=13;break}return e.abrupt("return",Promise.resolve(new wp(t)));case 13:if("function"!==typeof t.read){e.next=18;break}if(i=Number(i),Number.isFinite(i)){e.next=17;break}return e.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return e.abrupt("return",Promise.resolve(new Cp(t,i)));case 18:return e.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var t=this,i=arguments;return new Promise((function(n,a){var o=e.apply(t,i);function s(e){Op(o,n,a,s,r,"next",e)}function r(e){Op(o,n,a,s,r,"throw",e)}s(void 0)}))});return function(e,i){return t.apply(this,arguments)}}()}],i&&Ep(t.prototype,i),n&&Ep(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Up(e){return Up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Up(e)}function Ip(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zp(n.key),n)}}function jp(e,t){return jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jp(e,t)}function Ap(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(bm){return!1}}();return function(){var i,n=Np(e);if(t){var a=Np(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===Up(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,i)}}function Np(e){return Np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Np(e)}function Bp(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Mp(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Bp(Object(i),!0).forEach((function(t){Lp(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Bp(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Lp(e,t,i){return(t=zp(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function zp(e){var t=function(e,t){if("object"!==Up(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Up(t)?t:String(t)}var qp=Mp(Mp({},Xc.defaultOptions),{},{httpStack:new dp,fileReader:new Rp,urlStorage:op?new sp:new Qc,fingerprint:function(e,t){return fp()?Promise.resolve(function(e,t){var i=e.exif?function(e){var t=0;if(0===e.length)return t;for(var i=0;i<e.length;i++){t=(t<<5)-t+e.charCodeAt(i),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",i,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),Hp=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jp(e,t)}(o,e);var t,i,n,a=Ap(o);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=Mp(Mp({},qp),t),a.call(this,e,t)}return t=o,n=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Mp(Mp({},qp),t),Xc.terminate(e,t)}}],(i=null)&&Ip(t.prototype,i),n&&Ip(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(Xc),Wp=window,Vp=Wp.XMLHttpRequest,Gp=Wp.Blob;Vp&&Gp&&Gp.prototype.slice;function Kp(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xp=0;function Yp(e){return"__private_"+Xp+++"_"+e}var Zp=Yp("uppy"),Jp=Yp("events");class Qp{constructor(e){Object.defineProperty(this,Zp,{writable:!0,value:void 0}),Object.defineProperty(this,Jp,{writable:!0,value:[]}),Kp(this,Zp)[Zp]=e}on(e,t){return Kp(this,Jp)[Jp].push([e,t]),Kp(this,Zp)[Zp].on(e,t)}remove(){for(const[e,t]of Kp(this,Jp)[Jp].splice(0))Kp(this,Zp)[Zp].off(e,t)}onFilePause(e,t){this.on("upload-pause",((i,n)=>{e===i&&t(n)}))}onFileRemove(e,t){this.on("file-removed",(i=>{e===i.id&&t(i.id)}))}onPause(e,t){this.on("upload-pause",((i,n)=>{e===i&&t(n)}))}onRetry(e,t){this.on("upload-retry",(i=>{e===i&&t()}))}onRetryAll(e,t){this.on("retry-all",(()=>{Kp(this,Zp)[Zp].getFile(e)&&t()}))}onPauseAll(e,t){this.on("pause-all",(()=>{Kp(this,Zp)[Zp].getFile(e)&&t()}))}onCancelAll(e,t){var i=this;this.on("cancel-all",(function(){Kp(i,Zp)[Zp].getFile(e)&&t(...arguments)}))}onResumeAll(e,t){this.on("resume-all",(()=>{Kp(this,Zp)[Zp].getFile(e)&&t()}))}}const $p=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)};function eu(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tu=0;function iu(e){return"__private_"+tu+++"_"+e}function nu(e){if(null!=e){var t;const i=()=>this.abort(e.reason);e.addEventListener("abort",i,{once:!0});const n=()=>{e.removeEventListener("abort",i)};null==(t=this.then)||t.call(this,n,n)}return this}var au=iu("activeRequests"),ou=iu("queuedHandlers"),su=iu("paused"),ru=iu("pauseTimer"),lu=iu("downLimit"),cu=iu("upperLimit"),pu=iu("rateLimitingTimer"),uu=iu("call"),du=iu("queueNext"),hu=iu("next"),mu=iu("queue"),fu=iu("dequeue"),gu=iu("resume"),vu=iu("increaseLimit");class bu{constructor(e){Object.defineProperty(this,fu,{value:Su}),Object.defineProperty(this,mu,{value:Pu}),Object.defineProperty(this,hu,{value:wu}),Object.defineProperty(this,du,{value:xu}),Object.defineProperty(this,uu,{value:yu}),Object.defineProperty(this,au,{writable:!0,value:0}),Object.defineProperty(this,ou,{writable:!0,value:[]}),Object.defineProperty(this,su,{writable:!0,value:!1}),Object.defineProperty(this,ru,{writable:!0,value:void 0}),Object.defineProperty(this,lu,{writable:!0,value:1}),Object.defineProperty(this,cu,{writable:!0,value:void 0}),Object.defineProperty(this,pu,{writable:!0,value:void 0}),Object.defineProperty(this,gu,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,vu,{writable:!0,value:()=>{if(eu(this,su)[su])eu(this,pu)[pu]=setTimeout(eu(this,vu)[vu],0);else{eu(this,lu)[lu]=this.limit,this.limit=Math.ceil((eu(this,cu)[cu]+eu(this,lu)[lu])/2);for(let e=eu(this,lu)[lu];e<=this.limit;e++)eu(this,du)[du]();eu(this,cu)[cu]-eu(this,lu)[lu]>3?eu(this,pu)[pu]=setTimeout(eu(this,vu)[vu],2e3):eu(this,lu)[lu]=Math.floor(eu(this,lu)[lu]/2)}}}),this.limit="number"!==typeof e||0===e?1/0:e}run(e,t){return!eu(this,su)[su]&&eu(this,au)[au]<this.limit?eu(this,uu)[uu](e):eu(this,mu)[mu](e,t)}wrapSyncFunction(e,t){var i=this;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];const s=i.run((()=>(e(...a),queueMicrotask((()=>s.done())),()=>{})),t);return{abortOn:nu,abort(){s.abort()}}}}wrapPromiseFunction(e,t){var i=this;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];let s;const r=new Promise(((n,o)=>{s=i.run((()=>{let t,i;try{i=Promise.resolve(e(...a))}catch(r){i=Promise.reject(r)}return i.then((e=>{t?o(t):(s.done(),n(e))}),(e=>{t?o(t):(s.done(),o(e))})),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}}),t)}));return r.abort=e=>{s.abort(e)},r.abortOn=nu,r}}resume(){eu(this,su)[su]=!1,clearTimeout(eu(this,ru)[ru]);for(let e=0;e<this.limit;e++)eu(this,du)[du]()}pause(e){void 0===e&&(e=null),eu(this,su)[su]=!0,clearTimeout(eu(this,ru)[ru]),null!=e&&(eu(this,ru)[ru]=setTimeout(eu(this,gu)[gu],e))}rateLimit(e){clearTimeout(eu(this,pu)[pu]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(eu(this,cu)[cu]=this.limit-1,this.limit=eu(this,lu)[lu],eu(this,pu)[pu]=setTimeout(eu(this,vu)[vu],e))}get isPaused(){return eu(this,su)[su]}}function yu(e){eu(this,au)[au]+=1;let t,i=!1;try{t=e()}catch(n){throw eu(this,au)[au]-=1,n}return{abort:e=>{i||(i=!0,eu(this,au)[au]-=1,null==t||t(e),eu(this,du)[du]())},done:()=>{i||(i=!0,eu(this,au)[au]-=1,eu(this,du)[du]())}}}function xu(){queueMicrotask((()=>eu(this,hu)[hu]()))}function wu(){if(eu(this,su)[su]||eu(this,au)[au]>=this.limit)return;if(0===eu(this,ou)[ou].length)return;const e=eu(this,ou)[ou].shift(),t=eu(this,uu)[uu](e.fn);e.abort=t.abort,e.done=t.done}function Pu(e,t){void 0===t&&(t={});const i={fn:e,priority:t.priority||0,abort:()=>{eu(this,fu)[fu](i)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=eu(this,ou)[ou].findIndex((e=>i.priority>e.priority));return-1===n?eu(this,ou)[ou].push(i):eu(this,ou)[ou].splice(n,0,i),i}function Su(e){const t=eu(this,ou)[ou].indexOf(e);-1!==t&&eu(this,ou)[ou].splice(t,1)}Symbol("__queue");function ku(e){return(t,i)=>{if("undefined"!==typeof window&&("undefined"!==typeof window.PhoneGap||"undefined"!==typeof window.Cordova||"undefined"!==typeof window.cordova)||"undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return qp.fingerprint(t,i);const n=["tus",e.id,i.endpoint].join("-");return Promise.resolve(n)}}function _u(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Cu=0;function Fu(e){return"__private_"+Cu+++"_"+e}const Tu={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},Ou={limit:20,retryDelays:Tu.retryDelays,withCredentials:!1};var Eu=Fu("retryDelayIterator"),Du=Fu("uploadLocalFile"),Ru=Fu("getCompanionClientArgs"),Uu=Fu("uploadFiles"),Iu=Fu("handleUpload");class ju extends We{constructor(e,t){var i,n;if(super(e,{...Ou,...t}),Object.defineProperty(this,Uu,{value:Bu}),Object.defineProperty(this,Ru,{value:Nu}),Object.defineProperty(this,Du,{value:Au}),Object.defineProperty(this,Eu,{writable:!0,value:void 0}),Object.defineProperty(this,Iu,{writable:!0,value:async e=>{if(0===e.length)return void this.uppy.log("[Tus] No files to upload");0===this.opts.limit&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const t=this.uppy.getFilesByIds(e);await _u(this,Uu)[Uu](t)}}),this.type="uploader",this.id=this.opts.id||"Tus",void 0===(null==t?void 0:t.allowedMetaFields)&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in t)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=null!=(i=this.opts.rateLimitedQueue)?i:new bu(this.opts.limit),_u(this,Eu)[Eu]=null==(n=this.opts.retryDelays)?void 0:n.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const e={...this.uppy.getState().files};Object.keys(e).forEach((t=>{var i;if(null!=(i=e[t])&&null!=(i=i.tus)&&i.uploadUrl){const i={...e[t].tus};delete i.uploadUrl,e[t]={...e[t],tus:i}}})),this.uppy.setState({files:e})}resetUploaderReferences(e,t){const i=this.uploaders[e];i&&(i.abort(),null!=t&&t.abort&&i.abort(!0),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}onReceiveUploadUrl(e,t){const i=this.uppy.getFile(e.id);i&&(i.tus&&i.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(i.id,{tus:{...i.tus,uploadUrl:t}})))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(_u(this,Iu)[Iu]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(_u(this,Iu)[Iu])}}function Au(e){var t=this;return this.resetUploaderReferences(e.id),new Promise(((i,n)=>{let a,o,s;const r={...this.opts,...e.tus||{}};"function"===typeof r.headers&&(r.headers=r.headers(e));const{onShouldRetry:l,onBeforeRequest:c,...p}=r,u={...Tu,...p};u.fingerprint=ku(e),u.onBeforeRequest=async t=>{let i;if(t.getUnderlyingObject().withCredentials=!!r.withCredentials,"function"===typeof c&&(i=c(t,e)),Ut(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();let t;const n=new Promise((e=>{t=e}));return a=this.requests.run((()=>(e.isPaused&&a.abort(),t(),()=>{}))),void await Promise.all([n,i])}return i},u.onError=t=>{var i;this.uppy.log(t);const o=null!=t.originalRequest?t.originalRequest.getUnderlyingObject():null;$p(o)&&(t=new Rt(t,o)),this.resetUploaderReferences(e.id),null==(i=a)||i.abort(),this.uppy.emit("upload-error",e,t),"function"===typeof r.onError&&r.onError(t),n(t)},u.onProgress=(t,i)=>{this.onReceiveUploadUrl(e,s.url),"function"===typeof r.onProgress&&r.onProgress(t,i),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:t,bytesTotal:i})},u.onSuccess=()=>{var t;const n={uploadURL:null!=(t=s.url)?t:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),a.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),n),s.url){const{name:e}=s.file;this.uppy.log("Download ".concat(e," from ").concat(s.url))}"function"===typeof r.onSuccess&&r.onSuccess(),i(s)};const d=e=>{var t;const i=null==e||null==(t=e.originalResponse)?void 0:t.getStatus();if(429===i){if(!this.requests.isPaused){var n;const e=null==(n=_u(this,Eu)[Eu])?void 0:n.next();if(null==e||e.done)return!1;this.requests.rateLimit(e.value)}}else{if(null!=i&&i>400&&i<500&&409!==i&&423!==i)return!1;"undefined"!==typeof navigator&&!1===navigator.onLine&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",(()=>{this.requests.resume()}),{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};u.onShouldRetry=null!=l?(e,t)=>l(e,t,r,d):d;const h=(e,t,i)=>{Ut(e,t)&&!Ut(e,i)&&(e[i]=e[t])},m={};(Array.isArray(r.allowedMetaFields)?r.allowedMetaFields:Object.keys(e.meta)).forEach((t=>{m[t]=String(e.meta[t])})),h(m,"type","filetype"),h(m,"name","filename"),u.metadata=m,s=new Hp(e.data,u),this.uploaders[e.id]=s;const f=new Qp(this.uppy);this.uploaderEvents[e.id]=f,o=()=>(e.isPaused||s.start(),()=>{}),s.findPreviousUploads().then((t=>{const i=t[0];i&&(this.uppy.log("[Tus] Resuming upload of ".concat(e.id," started at ").concat(i.creationTime)),s.resumeFromPreviousUpload(i))})),a=this.requests.run(o),f.onFileRemove(e.id,(t=>{a.abort(),this.resetUploaderReferences(e.id,{abort:!!s.url}),i("upload ".concat(t," was removed"))})),f.onPause(e.id,(e=>{a.abort(),e?s.abort():a=this.requests.run(o)})),f.onPauseAll(e.id,(()=>{a.abort(),s.abort()})),f.onCancelAll(e.id,(function(n){let{reason:o}=void 0===n?{}:n;"user"===o&&(a.abort(),t.resetUploaderReferences(e.id,{abort:!!s.url})),i("upload ".concat(e.id," was canceled"))})),f.onResumeAll(e.id,(()=>{a.abort(),e.error&&s.abort(),a=this.requests.run(o)}))})).catch((t=>{throw this.uppy.emit("upload-error",e,t),t}))}function Nu(e){var t;const i={...this.opts};return e.tus&&Object.assign(i,e.tus),{...null==(t=e.remote)?void 0:t.body,endpoint:i.endpoint,uploadUrl:i.uploadUrl,protocol:"tus",size:e.data.size,headers:i.headers,metadata:e.meta}}async function Bu(e){const t=function(e){return e.filter((e=>!(e=>"error"in e&&!!e.error)(e)))}(e),i=function(e){return e.filter((e=>{var t;return!(null!=(t=e.progress)&&t.uploadStarted)||!e.isRestored}))}(t);this.uppy.emit("upload-start",i),await Promise.allSettled(t.map((e=>{if(e.isRemote){const t=()=>this.requests,i=new AbortController,n=t=>{t.id===e.id&&i.abort()};this.uppy.on("file-removed",n);const a=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,_u(this,Ru)[Ru](e),{signal:i.signal,getQueue:t});return this.requests.wrapSyncFunction((()=>{this.uppy.off("file-removed",n)}),{priority:-1})(),a}return _u(this,Du)[Du](e)})))}ju.VERSION="3.5.3";const Mu={strings:{},pluralize:()=>0};Mu.strings={addBulkFilesFailed:"\u5185\u90e8\u9519\u8bef\u5bfc\u81f4\u6dfb\u52a0 %{smart_count} \u4e2a\u6587\u4ef6\u5931\u8d25",addMore:"\u6dfb\u52a0\u66f4\u591a\u6587\u4ef6",addMoreFiles:"\u6dfb\u52a0\u66f4\u591a\u6587\u4ef6",addingMoreFiles:"\u6dfb\u52a0\u66f4\u591a\u6587\u4ef6",allowAccessDescription:"\u4e3a\u4e86\u901a\u8fc7\u60a8\u7684\u76f8\u673a\u8fdb\u884c\u62cd\u7167\u6216\u5f55\u50cf\uff0c\u8bf7\u7ed9\u7f51\u7ad9\u76f8\u673a\u7684\u8bbf\u95ee\u6743\u9650",allowAccessTitle:"\u8bf7\u5141\u8bb8\u5bf9\u76f8\u673a\u7684\u8bbf\u95ee\u6743\u9650",authenticateWith:"\u8fde\u63a5\u5230 %{pluginName}",authenticateWithTitle:"\u8bf7\u4f7f\u7528 %{pluginName} \u8fdb\u884c\u8ba4\u8bc1\u4ee5\u9009\u62e9\u6587\u4ef6",back:"\u8fd4\u56de",browse:"\u6d4f\u89c8",browseFiles:"\u6d4f\u89c8",cancel:"\u53d6\u6d88",cancelUpload:"\u53d6\u6d88\u4e0a\u4f20",chooseFiles:"\u9009\u62e9\u6587\u4ef6",closeModal:"\u5173\u95ed\u7a97\u53e3",companionError:"\u548c Companion \u8fde\u63a5\u5931\u8d25\u4e86",companionUnauthorizeHint:"\u8bf7\u8bbf\u95ee %{url} \u4ee5\u8ba4\u8bc1\u60a8\u7684 %{provider} \u8d26\u6237",complete:"\u4e0a\u4f20\u5b8c\u6bd5",connectedToInternet:"\u8fde\u63a5\u81f3\u7f51\u7edc",copyLink:"\u590d\u5236\u94fe\u63a5",copyLinkToClipboardFallback:"\u590d\u5236\u4ee5\u4e0b\u7f51\u5740",copyLinkToClipboardSuccess:"\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f",creatingAssembly:"\u6b63\u5728\u51c6\u5907\u4e0a\u4f20\u2026",creatingAssemblyFailed:"Transloadit\uff1a\u65e0\u6cd5\u521b\u5efa\u7a0b\u5e8f\u96c6",dashboardTitle:"\u6587\u4ef6\u4e0a\u4f20\u5de5\u5177",dashboardWindowTitle:"\u6587\u4ef6\u4e0a\u4f20\u5de5\u5177\u7a97\u53e3\uff08\u70b9\u51fb\u79bb\u5f00\u4ee5\u5173\u95ed\uff09",dataUploadedOfTotal:"%{total} / %{complete}",done:"\u5b8c\u6210",dropHereOr:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216%{browse}",dropHint:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc",dropPasteBoth:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216\u8005%{browse}\u6587\u4ef6",dropPasteFiles:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216\u8005%{browse}\u6587\u4ef6",dropPasteFolders:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216\u8005%{browse}\u6587\u4ef6",dropPasteImportBoth:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u7c98\u8d34\u3001%{browse}\u6216\u8005\u5bfc\u5165",dropPasteImportFiles:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u7c98\u8d34\u3001%{browse}\u6216\u8005\u5bfc\u5165",dropPasteImportFolders:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u7c98\u8d34\u3001%{browse}\u6216\u8005\u5bfc\u5165",editFile:"\u7f16\u8f91\u6587\u4ef6",editImage:"\u7f16\u8f91\u56fe\u7247",editing:"\u6b63\u5728\u7f16\u8f91 %{file}",emptyFolderAdded:"\u65e0\u6cd5\u4ece\u7a7a\u6587\u4ef6\u5939\u6dfb\u52a0\u6587\u4ef6",encoding:"\u6b63\u5728\u7f16\u7801\u2026",enterCorrectUrl:"\u9519\u8bef\u94fe\u63a5\uff1a \u8bf7\u786e\u8ba4\u60a8\u8f93\u5165\u7684\u662f\u6587\u4ef6\u7684\u94fe\u63a5",enterUrlToImport:"\u8f93\u5165\u94fe\u63a5\u6216\u8005\u5bfc\u5165\u6587\u4ef6",exceedsSize:"\u6587\u4ef6\u8d85\u8fc7\u4e86\u6700\u5927\u5c3a\u5bf8\u9650\u5236 %{size}",failedToFetch:"Companion \u65e0\u6cd5\u6293\u53d6\u6b64\u94fe\u63a5\uff0c\u8bf7\u786e\u4fdd\u5b83\u662f\u6b63\u786e\u7684",failedToUpload:"\u4e0a\u4f20 %{file} \u5931\u8d25",fileSource:"\u6587\u4ef6\u6e90\uff1a%{name}",filesUploadedOfTotal:"\u5df2\u4e0a\u4f20 %{smart_count} \u4e2a\u6587\u4ef6\u4e2d\u7684 %{complete} \u4e2a",filter:"\u7b5b\u9009\u5668",finishEditingFile:"\u5b8c\u6210\u6587\u4ef6\u7f16\u8f91",folderAdded:"\u4ece %{folder} \u6dfb\u52a0\u4e86 %{smart_count} \u4e2a\u6587\u4ef6",generatingThumbnails:"\u6b63\u5728\u751f\u6210\u7f29\u7565\u56fe\u2026",import:"\u5bfc\u5165",importFrom:"\u4ece %{name} \u5bfc\u5165",inferiorSize:"\u6587\u4ef6\u5927\u5c0f\u5fc5\u987b\u8d85\u8fc7 %{size}",loading:"\u6b63\u5728\u8f7d\u5165\u2026",logOut:"\u767b\u51fa",micDisabled:"\u9ea6\u514b\u98ce\u7684\u6743\u9650\u8bbf\u95ee\u88ab\u7528\u6237\u62d2\u7edd",myDevice:"\u6211\u7684\u8bbe\u5907",noCameraDescription:"\u4e3a\u4e86\u62cd\u6444\u7167\u7247\u6216\u5f55\u5236\u89c6\u9891\uff0c\u8bf7\u8fde\u63a5\u4e00\u4e2a\u6444\u50cf\u8bbe\u5907",noCameraTitle:"\u6444\u50cf\u5934\u4e0d\u53ef\u7528",noDuplicates:"\u65e0\u6cd5\u6dfb\u52a0\u91cd\u590d\u6587\u4ef6 %{fileName}\uff0c\u8be5\u6587\u4ef6\u5df2\u5b58\u5728",noFilesFound:"\u8fd9\u91cc\u7a7a\u7a7a\u5982\u4e5f",noInternetConnection:"\u65e0\u6cd5\u8fde\u63a5\u5230\u7f51\u7edc",noMoreFilesAllowed:"\u65e0\u6cd5\u6dfb\u52a0\u65b0\u6587\u4ef6\uff1a\u5df2\u6b63\u5728\u4e0a\u4f20\u6587\u4ef6",openFolderNamed:"\u6253\u5f00\u6587\u4ef6\u5939 %{name}",pause:"\u6682\u505c",pauseUpload:"\u6682\u505c\u4e0a\u4f20",paused:"\u5df2\u6682\u505c",poweredBy:"\u5f3a\u529b\u9a71\u52a8\u4e8e %{uppy}",processingXFiles:"\u6b63\u5728\u5904\u7406 %{smart_count} \u4e2a\u6587\u4ef6",recording:"\u6b63\u5728\u5f55\u5236",recordingLength:"\u5f55\u5236\u957f\u5ea6 %{recording_length}",recordingStoppedMaxSize:"\u5f55\u50cf\u5df2\u505c\u6b62\uff0c\u6587\u4ef6\u5927\u5c0f\u5373\u5c06\u8d85\u8fc7\u9650\u5236",removeFile:"\u5220\u9664\u6587\u4ef6",resetFilter:"\u91cd\u7f6e\u7b5b\u9009\u5668",resume:"\u6062\u590d",resumeUpload:"\u6062\u590d\u4e0a\u4f20",retry:"\u91cd\u8bd5",retryUpload:"\u91cd\u8bd5",saveChanges:"\u4fdd\u5b58\u53d8\u66f4",selectFileNamed:"\u9009\u62e9\u6587\u4ef6 %{name}",selectX:"\u9009\u62e9 %{smart_count}",smile:"\u7b11\u4e00\u7b11\uff01",startCapturing:"\u5f00\u59cb\u5c4f\u5e55\u5f55\u5236",startRecording:"\u5f00\u59cb\u89c6\u9891\u5f55\u5236",stopCapturing:"\u505c\u6b62\u5c4f\u5e55\u5f55\u5236",stopRecording:"\u505c\u6b62\u89c6\u9891\u5f55\u5236",streamActive:"\u89c6\u9891\u6d41\u5df2\u6fc0\u6d3b",streamPassive:"\u89c6\u9891\u6d41\u672a\u6fc0\u6d3b",submitRecordedFile:"\u63d0\u4ea4\u5df2\u5f55\u5236\u89c6\u9891",takePicture:"\u62cd\u7167",timedOut:"\u4e0a\u4f20\u5df2\u8d85\u65f6 %{seconds} \u79d2\uff0c\u4e2d\u6b62\u4e0a\u4f20",unselectFileNamed:"\u53d6\u6d88\u9009\u62e9\u6587\u4ef6 %{name}",upload:"\u4e0a\u4f20",uploadComplete:"\u4e0a\u4f20\u5b8c\u6210",uploadFailed:"\u4e0a\u4f20\u5931\u8d25",uploadPaused:"\u4e0a\u4f20\u6682\u505c",uploadXFiles:"\u4e0a\u4f20 %{smart_count} \u4e2a\u6587\u4ef6",uploadXNewFiles:"\u65b0\u4e0a\u4f20\u4e86 %{smart_count} \u4e2a\u6587\u4ef6",uploading:"\u6b63\u5728\u4e0a\u4f20",uploadingXFiles:"\u6b63\u5728\u4e0a\u4f20 %{smart_count} \u4e2a\u6587\u4ef6",xFilesSelected:"%{smart_count} \u4e2a\u6587\u4ef6\u5f85\u4e0a\u4f20",xMoreFilesAdded:"\u53c8\u6709 %{smart_count} \u4e2a\u6587\u4ef6\u88ab\u6dfb\u52a0",xTimeLeft:"\u5269\u4f59 %{time}",youCanOnlyUploadFileTypes:"\u60a8\u53ea\u80fd\u4e0a\u4f20\u8fd9\u4e9b\u6587\u4ef6\u7c7b\u578b\uff1a%{types}",youCanOnlyUploadX:"\u60a8\u53ea\u80fd\u4e0a\u4f20 %{smart_count} \u4e2a\u6587\u4ef6",youHaveToAtLeastSelectX:"\u60a8\u81f3\u5c11\u8981\u9009\u62e9 %{smart_count} \u4e2a\u6587\u4ef6"},"undefined"!==typeof Uppy&&(globalThis.Uppy.locales.zh_CN=Mu);const Lu=Mu,zu={strings:{},pluralize:e=>1===e?0:1};zu.strings={addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},addedNumFiles:"Added %{numFiles} file(s)",addingMoreFiles:"Adding more files",additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",addMore:"Add more",addMoreFiles:"Add more files",allFilesFromFolderNamed:"All files from folder %{name}",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site.",allowAccessTitle:"Please allow access to your camera",allowAudioAccessDescription:"In order to record audio, please allow microphone access for this site.",allowAudioAccessTitle:"Please allow access to your microphone",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)",aspectRatioSquare:"Crop square",authAborted:"Authentication aborted",authenticateWith:"Connect to %{pluginName}",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",back:"Back",browse:"browse",browseFiles:"browse files",browseFolders:"browse folders",cancel:"Cancel",cancelUpload:"Cancel upload",chooseFiles:"Choose files",closeModal:"Close Modal",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",complete:"Complete",compressedX:"Saved %{size} by compressing images",compressingImages:"Compressing images...",connectedToInternet:"Connected to the Internet",copyLink:"Copy link",copyLinkToClipboardFallback:"Copy the URL below",copyLinkToClipboardSuccess:"Link copied to clipboard.",creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",dashboardTitle:"Uppy Dashboard",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dataUploadedOfTotal:"%{complete} of %{total}",discardRecordedFile:"Discard recorded file",done:"Done",dropHereOr:"Drop here or %{browse}",dropHint:"Drop your files here",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",editFile:"Edit file",editImage:"Edit image",editFileWithFilename:"Edit file %{file}",editing:"Editing %{file}",emptyFolderAdded:"No files were added from empty folder",encoding:"Encoding...",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file",enterTextToSearch:"Enter text to search for images",enterUrlToImport:"Enter URL to import a file",error:"Error",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",failedToFetch:"Companion failed to fetch this URL, please make sure it\u2019s correct",failedToUpload:"Failed to upload %{file}",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},filter:"Filter",finishEditingFile:"Finish editing file",flipHorizontal:"Flip horizontal",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},folderAlreadyAdded:'The folder "%{folder}" was already added',generatingThumbnails:"Generating thumbnails...",import:"Import",importFiles:"Import files from:",importFrom:"Import from %{name}",inferiorSize:"This file is smaller than the allowed size of %{size}",loadedXFiles:"Loaded %{numFiles} files",loading:"Loading...",logOut:"Log out",micDisabled:"Microphone access denied by user",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},myDevice:"My Device",noAudioDescription:"In order to record audio, please connect a microphone or another audio input device",noAudioTitle:"Microphone Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",noCameraTitle:"Camera Not Available",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",noFilesFound:"You have no files or folders here",noInternetConnection:"No Internet connection",noMoreFilesAllowed:"Cannot add more files",noSearchResults:"Unfortunately, there are no results for this search",openFolderNamed:"Open folder %{name}",pause:"Pause",paused:"Paused",pauseUpload:"Pause upload",pluginNameAudio:"Audio",pluginNameBox:"Box",pluginNameCamera:"Camera",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google Drive",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},recording:"Recording",recordingLength:"Recording length %{recording_length}",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recordVideoBtn:"Record Video",recoveredAllFiles:"We restored all files. You can now resume the upload.",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},removeFile:"Remove file",reSelect:"Re-select",resetFilter:"Reset filter",resetSearch:"Reset search",resume:"Resume",resumeUpload:"Resume upload",retry:"Retry",retryUpload:"Retry upload",revert:"Revert",rotate:"Rotate",save:"Save",saveChanges:"Save changes",search:"Search",searchImages:"Search for images",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},sessionRestored:"Session restored",showErrorDetails:"Show error details",signInWithGoogle:"Sign in with Google",smile:"Smile!",startAudioRecording:"Begin audio recording",startCapturing:"Begin screen capturing",startRecording:"Begin video recording",stopAudioRecording:"Stop audio recording",stopCapturing:"Stop screen capturing",stopRecording:"Stop video recording",streamActive:"Stream active",streamPassive:"Stream passive",submitRecordedFile:"Submit recorded file",takePicture:"Take a picture",takePictureBtn:"Take Picture",timedOut:"Upload stalled for %{seconds} seconds, aborting.",upload:"Upload",uploadComplete:"Upload complete",uploadFailed:"Upload failed",uploading:"Uploading",uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},uploadPaused:"Upload paused",uploadStalled:"Upload has not made any progress for %{seconds} seconds. You may want to retry it.",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"You can only upload: %{types}",youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},zoomIn:"Zoom in",zoomOut:"Zoom out"},"undefined"!==typeof Uppy&&(globalThis.Uppy.locales.en_US=zu);const qu=zu;var Hu=i(40807),Wu=i.n(Hu);const Vu={zh:Wu()({...Lu},{strings:{aiKitRequired:"\u8bf7\u5148\u5b89\u88c5\u5e76\u914d\u7f6e AI Kit",aiImageSelectedUse:"\u4f7f\u7528\u5df2\u9009\u62e9\u7684\u56fe\u7247",aiImageSelectedTip:"\u8bf7\u9009\u62e9\u5fc3\u4eea\u7684\u56fe\u7247",aiImagePrompt:"\u63d0\u793a\u8bcd",aiImagePromptTip:"\u8bf7\u8f93\u5165\u63d0\u793a\u8bcd",aiImageSize:"\u56fe\u7247\u5c3a\u5bf8",aiImageModel:"\u56fe\u7247\u6a21\u578b",aiImageNumber:"\u751f\u6210\u6570\u91cf",aiImageGenerate:"\u751f\u6210\u56fe\u7247",aiImageGenerating:"\u6b63\u5728\u751f\u6210\u56fe\u7247...",browse:"\u6d4f\u89c8",browseFiles:"\u6d4f\u89c8\u6587\u4ef6",browseFolders:"\u6d4f\u89c8\u6587\u4ef6\u5939",dropHereOr:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216%{browse}",dropHint:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc",dropPasteBoth:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u3001%{browseFiles}\u6216\u8005%{browseFolders}",dropPasteFiles:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u6216\u8005%{browseFiles}",dropPasteFolders:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u6216\u8005%{browseFolders}",dropPasteImportBoth:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u3001\u7c98\u8d34\u3001%{browseFiles}\u3001%{browseFolders}\u6216\u8005\u901a\u8fc7\u4e0b\u65b9\u5bfc\u5165\uff1a",dropPasteImportFiles:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u3001\u7c98\u8d34\u3001%{browseFiles}\u6216\u8005\u901a\u8fc7\u4e0b\u65b9\u5bfc\u5165\uff1a",dropPasteImportFolders:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u3001\u7c98\u8d34\u3001%{browseFolders}\u6216\u8005\u901a\u8fc7\u4e0b\u65b9\u5bfc\u5165\uff1a"}}),en:Wu()({...qu},{strings:{aiKitRequired:"Install and config the AI Kit component first",aiImageSelectedUse:"Use selected images",aiImageSelectedTip:"Please select images",aiImagePrompt:"Prompt",aiImagePromptTip:"Please enter the prompt",aiImageSize:"Size",aiImageModel:"Model",aiImageNumber:"Number of images",aiImageGenerate:"Generate",aiImageGenerating:"Generating...",browse:"browse",browseFiles:"browse files",browseFolders:"browse folders",dropHint:"Drop your files here",dropPasteBoth:"Drop files here, paste, %{browseFiles} or %{browseFolders}",dropPasteFiles:"Drop files here, paste or %{browseFiles}",dropPasteFolders:"Drop files here, paste or %{browseFolders}",dropPasteImportBoth:"Drop files here, paste, %{browseFiles}, %{browseFolders} or import from:",dropPasteImportFiles:"Drop files here, paste, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, paste, %{browseFolders} or import from:"}})};i(1192),i(2484),i(5873),i(79787);var Gu=i(44247),Ku=i(76223),Xu=i(68420),Yu=i(11337),Zu=i(43907),Ju=i(55498),Qu=i(13727),$u=i(72113),ed=i(7469),td=i(25228),id=i(99360),nd=i(56556);function ad(e){let{optionalComponent:t,index:i,installStatus:n,hasPermission:o,t:s}=e;const r="stopped"===n||"running"===n;return(0,a.jsxs)(h.Z,{children:[0===i?null:(0,a.jsx)(h.Z,{sx:{width:"100%",height:"1px",backgroundColor:Ku.E.gray6}}),(0,a.jsxs)(h.Z,{sx:{padding:"20px 24px",paddingTop:.5,marginTop:2,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[(0,a.jsx)("img",{style:{width:60,height:60,minWidth:60,minHeight:60},src:t.logoUrl,alt:t.meta.title}),(0,a.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",marginLeft:2},children:[(0,a.jsxs)(h.Z,{sx:{fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var e;return null===(e=t.meta)||void 0===e||e.did,void window.open(null===t||void 0===t?void 0:t.storeUrl,"_blank")},children:[t.meta.title,(0,a.jsxs)(h.Z,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[t.meta.version,(0,a.jsx)(Ju.JO,{className:"link-icon",icon:"fluent:open-20-filled",style:{color:Ku.E.primaryBase,fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.3s"}})]})]}),(0,a.jsx)(h.Z,{sx:{marginTop:0,opacity:.7},children:t.meta.description}),(0,a.jsx)(h.Z,{sx:{display:o?"flex":"none",flexDirection:"row",gap:1},children:n?(0,a.jsx)(h.Z,{sx:{marginTop:2,opacity:.7},children:r?(0,a.jsx)(nd.Z,{variant:"contained",onClick:()=>{window.location.reload()},children:s("componentInstallerRefresh")},"refresh"):(0,a.jsx)(nd.Z,{disabled:!0,sx:{color:"#333"},startIcon:(0,a.jsx)(Ju.JO,{icon:"line-md:loading-loop",style:{color:"#333",fontSize:16}}),variant:"contained",children:n},"status")}):(0,a.jsx)(nd.Z,{sx:{marginTop:2},variant:"contained",className:"button",onClick:()=>{var e;return null===(e=t.meta)||void 0===e||e.did,void window.open(null===t||void 0===t?void 0:t.installUrl,"_blank")},children:s("componentInstallerInstall")},"install")}),r?(0,a.jsx)(h.Z,{sx:{marginTop:2,opacity:.7},children:s("componentInstallerSuccessInstalled")}):null]})]})]})}ad.propTypes={t:ml().func.isRequired,optionalComponent:ml().object.isRequired,index:ml().number.isRequired,installStatus:ml().string,hasPermission:ml().bool.isRequired},ad.defaultProps={installStatus:""};const od={zh:{componentInstallerTitle:"\u7f3a\u5c11\u7ec4\u4ef6",componentInstallerInstall:"\u5b89\u88c5",componentInstallerClose:"\u5173\u95ed",componentInstallerRefresh:"\u91cd\u8f7d\u9875\u9762",componentInstallerSuccessInstalled:"\u5b89\u88c5\u6210\u529f\uff0c\u8bf7\u91cd\u8f7d\u9875\u9762\u67e5\u770b\u53d8\u5316\u3002",componentInstallerSuggestions:"\u8bf7\u8054\u7cfb\u7cfb\u7edf\u7ba1\u7406\u5458\u5b89\u88c5\u8be5\u7ec4\u4ef6\u3002",componentInstallerNoDefinedInBlockletYML:"\u7ec4\u4ef6\u672a\u5728 blocklet.yml \u4e2d\u5b9a\u4e49"},en:{componentInstallerTitle:"Missing component",componentInstallerInstall:"Install",componentInstallerClose:"Close",componentInstallerRefresh:"Refresh",componentInstallerSuccessInstalled:"Successfully installed, please refresh the page to see the changes.",componentInstallerSuggestions:"Please contact the system administrator to install the component.",componentInstallerNoDefinedInBlockletYML:"The component is not defined in blocklet.yml"}};var sd=i(74958),rd=i(6352),ld=i.n(rd);const cd=e=>"string"===typeof e?new Set(e.split(";;")):new Set(e);const pd=function(e){let{did:t,onInstalled:i,onError:n}=e;const a=Array.isArray(t)?t.join(";;"):t,[o,s]=(0,c.useState)({}),r=(0,c.useRef)({onInstalled:i,onError:n});r.current={onInstalled:i,onError:n};const{optionalComponents:l,componentMountPoints:p}=window.blocklet,u=(0,c.useMemo)((()=>{var e;if(!l||!l.length)return[];const t=cd(a),i=l.filter((e=>t.has(e.meta.did)));return null===(e=i?r.current.onError:r.current.onInstalled)||void 0===e||e(i),i}),[a,l]),d=(0,c.useMemo)((()=>{if(u.length)return!0;const e=cd(a);return(p||[]).find((t=>e.has(t.did)))}),[u,p,a]);return u.forEach((e=>{e.storeUrl=ld()(e.meta.homepage,"blocklets",e.meta.did),e.installUrl=ld()(window.blocklet.appUrl,sd.Bu,"/admin/components?install-component=".concat(e.meta.did))})),(0,c.useEffect)((()=>{const e=e=>{var t,i,n;if(e.origin===window.blocklet.appUrl&&"component-installer"===(null===(t=e.data)||void 0===t?void 0:t.kind)&&null!==(i=e.data)&&void 0!==i&&null!==(n=i.blocklet)&&void 0!==n&&n.children){var o,r;let t=!1;const i=cd(a);null===(o=e.data)||void 0===o||null===(r=o.blocklet)||void 0===r||r.children.forEach((e=>{var n;i.has(null===(n=e.meta)||void 0===n?void 0:n.did)&&(t=!0,s((t=>{var i;return{...t,[null===(i=e.meta)||void 0===i?void 0:i.did]:e.status||"waiting"}})))})),t||s({})}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[a]),{optComponents:u,installed:!u.length&&d,installStatus:o,setInstallStatus:s,definedInBlockletYML:d}};function ud(e){let{warnIcon:t,did:i,noPermissionMute:n,onInstalled:o,onError:s,children:r,closeByOutSize:l,onClose:p,fallback:u,disabled:m,roles:f=["owner","admin"]}=e;const{locale:g}=(0,Xu.PE)(),v=(0,id.Z)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,Yu.I)(od,e,g,"en",t)})),{installed:b,optComponents:y,installStatus:x,definedInBlockletYML:w}=pd({did:i,onInstalled:o,onError:s}),P=(0,c.useContext)(Gu.B3),S=()=>{null===p||void 0===p||p(!1)};return m?r:(0,a.jsx)(Zu.Z,{session:null===P||void 0===P?void 0:P.session,roles:f,children:e=>{let{hasPermission:o}=e;return b?r:n&&!o?u||null:"function"===typeof r?(0,a.jsxs)(a.Fragment,{children:[u,r({hasPermission:o,optComponents:y,installStatus:x})]}):(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsx)($u.d,{onClickAway:e=>{e.preventDefault(),e.stopPropagation(),l&&S()},children:(0,a.jsx)(ed.Z,{in:!0,timeout:350,children:(0,a.jsx)(td.Z,{variant:"outlined",sx:{position:"fixed",top:20,right:20,zIndex:3e3,borderRadius:3,width:400,maxWidth:"90vw",borderColor:Ku.E.lineStep,border:"0 !important",fontSize:"14px",textAlign:"left",boxShadow:"0px 8px 16px 0px ".concat(Ku.E.gray6,", 0px 0px 0px 1px ").concat(Ku.E.gray6)},children:w?(0,a.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,a.jsxs)(h.Z,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[t||(0,a.jsx)(Ju.JO,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),(0,a.jsx)(h.Z,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:v("componentInstallerTitle")}),(0,a.jsx)(h.Z,{sx:{flex:1}}),p?(0,a.jsx)(d.Z,{variant:"outlined",className:"button",onClick:S,children:(0,a.jsx)(Qu.default,{})}):null]}),(0,a.jsx)(h.Z,{sx:{width:"100%",height:"1px",backgroundColor:Ku.E.gray6}}),(0,a.jsx)(h.Z,{sx:{maxHeight:"70vh",overflowY:"auto"},children:y.map(((e,t)=>{var i,n;return(0,a.jsx)(ad,{t:v,hasPermission:o,index:t,optionalComponent:e,installStatus:x[null===(i=e.meta)||void 0===i?void 0:i.did]},(null===(n=e.meta)||void 0===n?void 0:n.did)||t)}))}),o?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Z,{sx:{width:"100%",height:"1px",backgroundColor:Ku.E.gray6}}),(0,a.jsx)(h.Z,{sx:{padding:"20px 24px"},children:(0,a.jsx)(h.Z,{sx:{opacity:1},children:v("componentInstallerSuggestions")})})]})]}):(0,a.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,a.jsxs)(h.Z,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:[t||(0,a.jsx)(Ju.JO,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),(0,a.jsx)(h.Z,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:v("componentInstallerTitle")}),(0,a.jsx)(h.Z,{sx:{flex:1}}),p?(0,a.jsx)(d.Z,{variant:"outlined",className:"button",onClick:S,children:(0,a.jsx)(Qu.default,{})}):null]}),(0,a.jsx)(h.Z,{sx:{width:"100%",height:"1px",backgroundColor:Ku.E.gray6}}),(0,a.jsxs)(h.Z,{sx:{padding:"20px 24px",marginTop:0},children:[v("componentInstallerNoDefinedInBlockletYML"),": ",i]})]})})})})]})}})}function dd(e){return window.blocklet?(0,a.jsx)(ud,{...e}):e.children}ud.propTypes={disabled:ml().bool,warnIcon:ml().node,did:ml().oneOfType([ml().string,ml().arrayOf(ml().string)]).isRequired,noPermissionMute:ml().bool,onInstalled:ml().func,onError:ml().func,children:ml().any.isRequired,closeByOutSize:ml().bool,onClose:ml().func,fallback:ml().node,roles:ml().array},ud.defaultProps={disabled:!1,warnIcon:null,noPermissionMute:!1,onInstalled:null,onError:null,closeByOutSize:!1,onClose:null,fallback:null,roles:["owner","admin"]},dd.propTypes={...ud.propTypes,children:ml().any.isRequired},dd.defaultProps={...ud.defaultProps};i(28018),i(94464),i(25710),i(28726),i(13128),i(71569),i(25842);i(49384);i(60251);i(95712),i(47685),i(96731),i(92706);i(94457);var hd=i(26538),md=i.n(hd),fd=i(87806);function gd(e){let{passport:t,user:i,color:n,width:o,icon:s,children:r,createPassportSvg:l,...c}=e;const{t:p}=(0,Xu.PE)();return(0,a.jsxs)(h.Z,{...c,sx:{display:"flex",alignItems:"center",...null===c||void 0===c?void 0:c.sx},children:[(0,a.jsx)(h.Z,{className:"passport-item__display",dangerouslySetInnerHTML:{__html:l({title:t.title||t.name,issuer:t.issuer&&t.issuer.name,issuerDid:t.issuer&&t.issuer.id,ownerName:i.fullName,ownerDid:i.did,ownerAvatarUrl:i.avatar,revoked:t.revoked,preferredColor:n,width:o})}}),(0,a.jsxs)(h.Z,{className:"passport-item__body",sx:{p:0,ml:3,mt:0},children:[(0,a.jsxs)(h.Z,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:[md()(t.title),(0,a.jsxs)(h.Z,{className:"passport-item__status-icon",sx:{svg:{fill:"#bfbfbf",height:"1.2em",marginLeft:"0.4em"}},children:[s,t.revoked&&(0,a.jsx)(fd.Z,{})]})]}),t.expirationDate&&(0,a.jsx)(h.Z,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:p("team.passport.validUntil",{date:t.expirationDate})}),r]})]})}gd.propTypes={passport:ml().any.isRequired,user:ml().any.isRequired,color:ml().string.isRequired,createPassportSvg:ml().func.isRequired,icon:ml().any,children:ml().any,width:ml().number},gd.defaultProps={icon:null,children:null,width:150};i(35432);var vd=i(30278),bd=i.n(vd);i(76818);const yd=(0,c.createContext)({}),{Provider:xd,Consumer:wd}=yd;i(82790),i(86229),i(82434),i(14506),i(16967);new(i(99132).x);var Pd=i(71171),Sd=(i(35966),i(33518)),kd=(i(22425),i(75506),i(10458)),_d=i.n(kd);_d().defaults.timeout=1e4;_d().create();i.p;i(22256);i.p;var Cd;(0,Sd.Z)(h.Z)(Cd||(Cd=(0,Pd.Z)(["\n .selected-container {\n position: absolute;\n right: 0px;\n bottom: 0px;\n display: flex;\n -webkit-box-pack: end;\n justify-content: flex-end;\n align-items: flex-end;\n width: 32px;\n height: 32px;\n border-radius: 0px 0px 8px;\n color: rgb(255, 255, 255);\n overflow: hidden;\n transition: all 0.4s ease 0s;\n\n &::after {\n position: absolute;\n z-index: 0;\n left: 60px;\n top: 60px;\n display: block;\n width: 0px;\n height: 0px;\n border-width: 16px;\n border-style: solid;\n border-color: transparent #1dc1c7 #1dc1c7 transparent;\n transition: all 0.1s ease 0s;\n content: '';\n }\n\n .selected-icon {\n visibility: hidden;\n width: 60%;\n height: 60%;\n position: relative;\n z-index: 2;\n margin: 0px 1px 1px 0px;\n font-size: 16px;\n transition: all 0.2s ease 0s;\n }\n }\n\n .selected-container.selected {\n &::after {\n left: 0px;\n top: 0px;\n }\n\n .selected-icon {\n visibility: visible;\n }\n }\n"])));var Fd;(0,Sd.Z)(h.Z)(Fd||(Fd=(0,Pd.Z)(["\n height: 100%;\n overflow-y: auto;\n"])));var Td=i(98722),Od=i(56666);var Ed=0;Array.isArray;function Dd(e,t,i,n,a,o){var s,r,l={};for(r in t)"ref"==r?s=t[r]:l[r]=t[r];var c={type:e,props:l,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ed,__i:-1,__u:0,__source:a,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(r in s)void 0===l[r]&&(l[r]=s[r]);return Le.YM.vnode&&Le.YM.vnode(c),c}var Rd=i(93197);var Ud,Id=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Ud=new WeakMap;const jd=class{constructor(){Ud.set(this,[])}enqueue(e,t){const i={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&Id(this,Ud,"f")[this.size-1].priority>=t.priority)return void Id(this,Ud,"f").push(i);const n=function(e,t,i){let n=0,a=e.length;for(;a>0;){const o=Math.trunc(a/2);let s=n+o;i(e[s],t)<=0?(n=++s,a-=o+1):a=o}return n}(Id(this,Ud,"f"),i,((e,t)=>t.priority-e.priority));Id(this,Ud,"f").splice(n,0,i)}dequeue(){const e=Id(this,Ud,"f").shift();return null===e||void 0===e?void 0:e.run}filter(e){return Id(this,Ud,"f").filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return Id(this,Ud,"f").length}};var Ad,Nd,Bd,Md,Ld,zd,qd,Hd,Wd,Vd,Gd,Kd,Xd,Yd,Zd,Jd,Qd,$d,eh,th,ih,nh,ah,oh,sh,rh,lh=function(e,t,i,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,i):a?a.value=i:t.set(e,i),i},ch=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};class ph extends Error{}Nd=new WeakMap,Bd=new WeakMap,Md=new WeakMap,Ld=new WeakMap,zd=new WeakMap,qd=new WeakMap,Hd=new WeakMap,Wd=new WeakMap,Vd=new WeakMap,Gd=new WeakMap,Kd=new WeakMap,Xd=new WeakMap,Yd=new WeakMap,Zd=new WeakMap,Ad=new WeakSet,Jd=function(){return ch(this,Bd,"f")||ch(this,Md,"f")<ch(this,Ld,"f")},Qd=function(){return ch(this,Kd,"f")<ch(this,Xd,"f")},$d=function(){var e;lh(this,Kd,(e=ch(this,Kd,"f"),--e),"f"),ch(this,Ad,"m",ih).call(this),this.emit("next")},eh=function(){ch(this,Ad,"m",ah).call(this),ch(this,Ad,"m",nh).call(this),lh(this,Wd,void 0,"f")},th=function(){const e=Date.now();if(void 0===ch(this,Hd,"f")){const t=ch(this,qd,"f")-e;if(!(t<0))return void 0===ch(this,Wd,"f")&&lh(this,Wd,setTimeout((()=>{ch(this,Ad,"m",eh).call(this)}),t),"f"),!0;lh(this,Md,ch(this,Nd,"f")?ch(this,Kd,"f"):0,"f")}return!1},ih=function(){if(0===ch(this,Vd,"f").size)return ch(this,Hd,"f")&&clearInterval(ch(this,Hd,"f")),lh(this,Hd,void 0,"f"),this.emit("empty"),0===ch(this,Kd,"f")&&this.emit("idle"),!1;if(!ch(this,Yd,"f")){const e=!ch(this,Ad,"a",th);if(ch(this,Ad,"a",Jd)&&ch(this,Ad,"a",Qd)){const t=ch(this,Vd,"f").dequeue();return!!t&&(this.emit("active"),t(),e&&ch(this,Ad,"m",nh).call(this),!0)}}return!1},nh=function(){ch(this,Bd,"f")||void 0!==ch(this,Hd,"f")||(lh(this,Hd,setInterval((()=>{ch(this,Ad,"m",ah).call(this)}),ch(this,zd,"f")),"f"),lh(this,qd,Date.now()+ch(this,zd,"f"),"f"))},ah=function(){0===ch(this,Md,"f")&&0===ch(this,Kd,"f")&&ch(this,Hd,"f")&&(clearInterval(ch(this,Hd,"f")),lh(this,Hd,void 0,"f")),lh(this,Md,ch(this,Nd,"f")?ch(this,Kd,"f"):0,"f"),ch(this,Ad,"m",oh).call(this)},oh=function(){for(;ch(this,Ad,"m",ih).call(this););},sh=async function(e){return new Promise(((t,i)=>{e.addEventListener("abort",(()=>{i(new ph("The task was aborted."))}),{once:!0})}))},rh=async function(e,t){return new Promise((i=>{const n=()=>{t&&!t()||(this.off(e,n),i())};this.on(e,n)}))};const uh=class extends Rd{constructor(e){var t,i,n,a;if(super(),Ad.add(this),Nd.set(this,void 0),Bd.set(this,void 0),Md.set(this,0),Ld.set(this,void 0),zd.set(this,void 0),qd.set(this,0),Hd.set(this,void 0),Wd.set(this,void 0),Vd.set(this,void 0),Gd.set(this,void 0),Kd.set(this,0),Xd.set(this,void 0),Yd.set(this,void 0),Zd.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"===typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:jd,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(i=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==i?i:"","` (").concat(typeof e.intervalCap,")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(a=null===(n=e.interval)||void 0===n?void 0:n.toString())&&void 0!==a?a:"","` (").concat(typeof e.interval,")"));lh(this,Nd,e.carryoverConcurrencyCount,"f"),lh(this,Bd,e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,"f"),lh(this,Ld,e.intervalCap,"f"),lh(this,zd,e.interval,"f"),lh(this,Vd,new e.queueClass,"f"),lh(this,Gd,e.queueClass,"f"),this.concurrency=e.concurrency,this.timeout=e.timeout,lh(this,Zd,!0===e.throwOnTimeout,"f"),lh(this,Yd,!1===e.autoStart,"f")}get concurrency(){return ch(this,Xd,"f")}set concurrency(e){if(!("number"===typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(typeof e,")"));lh(this,Xd,e,"f"),ch(this,Ad,"m",oh).call(this)}async add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t={timeout:this.timeout,throwOnTimeout:ch(this,Zd,"f"),...t},new Promise(((i,n)=>{ch(this,Vd,"f").enqueue((async()=>{var a,o,s;lh(this,Kd,(o=ch(this,Kd,"f"),++o),"f"),lh(this,Md,(s=ch(this,Md,"f"),++s),"f");try{if(null===(a=t.signal)||void 0===a?void 0:a.aborted)throw new ph("The task was aborted.");let n=e({signal:t.signal});t.timeout&&(n=Ci(Promise.resolve(n),t.timeout)),t.signal&&(n=Promise.race([n,ch(this,Ad,"m",sh).call(this,t.signal)]));const o=await n;i(o),this.emit("completed",o)}catch(_c){if(_c instanceof Ci.TimeoutError&&!t.throwOnTimeout)return void i();n(_c),this.emit("error",_c)}finally{ch(this,Ad,"m",$d).call(this)}}),t),this.emit("add"),ch(this,Ad,"m",ih).call(this)}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return ch(this,Yd,"f")?(lh(this,Yd,!1,"f"),ch(this,Ad,"m",oh).call(this),this):this}pause(){lh(this,Yd,!0,"f")}clear(){lh(this,Vd,new(ch(this,Gd,"f")),"f")}async onEmpty(){0!==ch(this,Vd,"f").size&&await ch(this,Ad,"m",rh).call(this,"empty")}async onSizeLessThan(e){ch(this,Vd,"f").size<e||await ch(this,Ad,"m",rh).call(this,"next",(()=>ch(this,Vd,"f").size<e))}async onIdle(){0===ch(this,Kd,"f")&&0===ch(this,Vd,"f").size||await ch(this,Ad,"m",rh).call(this,"idle")}get size(){return ch(this,Vd,"f").size}sizeBy(e){return ch(this,Vd,"f").filter(e).length}get pending(){return ch(this,Kd,"f")}get isPaused(){return ch(this,Yd,"f")}};function dh(){return(0,Le.h)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg"},(0,Le.h)("g",{fill:"none","fill-rule":"evenodd"},(0,Le.h)("circle",{fill:"#FFF",cx:"13",cy:"13",r:"13"}),(0,Le.h)("path",{d:"M21.64 13.205c0-.639-.057-1.252-.164-1.841H13v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z",fill:"#4285F4","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M13 22c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H4.957v2.332A8.997 8.997 0 0013 22z",fill:"#34A853","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M7.964 14.71A5.41 5.41 0 017.682 13c0-.593.102-1.17.282-1.71V8.958H4.957A8.996 8.996 0 004 13c0 1.452.348 2.827.957 4.042l3.007-2.332z",fill:"#FBBC05","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M13 7.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C17.463 4.891 15.426 4 13 4a8.997 8.997 0 00-8.043 4.958l3.007 2.332C8.672 9.163 10.656 7.58 13 7.58z",fill:"#EA4335","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M4 4h18v18H4z"})))}const hh=function(e){const{pluginName:t,pluginIcon:i,i18nArray:n,handleAuth:a}=e,o="Google Drive"===t,s=(0,Le.h)("span",{className:"uppy-Provider-authTitleName"},t,(0,Le.h)("br",null));return(0,Le.h)("div",{className:"uppy-Provider-auth"},(0,Le.h)("div",{className:"uppy-Provider-authIcon"},i()),(0,Le.h)("div",{className:"uppy-Provider-authTitle"},n("authenticateWithTitle",{pluginName:s})),o?(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn uppy-Provider-btn-google",onClick:a,"data-uppy-super-focusable":!0},(0,Le.h)(dh,null),n("signInWithGoogle")):(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn",onClick:a,"data-uppy-super-focusable":!0},n("authenticateWith",{pluginName:t})))},mh=e=>{const{getFolder:t,title:i,isLast:n}=e;return(0,Le.h)(Le.HY,null,(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:t},i),n?"":" / ")},fh=e=>{const t=[];return e.showBreadcrumbs&&t.push((e=>{const{getFolder:t,title:i,breadcrumbsIcon:n,breadcrumbs:a}=e;return(0,Le.h)("div",{className:"uppy-Provider-breadcrumbs"},(0,Le.h)("div",{className:"uppy-Provider-breadcrumbsIcon"},n),a.map(((e,n)=>(0,Le.h)(mh,{key:e.id,getFolder:()=>t(e.requestPath),title:0===n?i:e.name,isLast:n+1===a.length}))))})({getFolder:e.getFolder,breadcrumbs:e.breadcrumbs,breadcrumbsIcon:e.pluginIcon&&e.pluginIcon(),title:e.title})),t.push((e=>{let{i18n:t,logout:i,username:n}=e;return[(0,Le.h)("span",{className:"uppy-ProviderBrowser-user",key:"username"},n),(0,Le.h)("button",{type:"button",onClick:i,className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowser-userLogout",key:"logout"},t("logOut"))]})({logout:e.logout,username:e.username,i18n:e.i18n})),t};function gh(e){const{search:t,searchOnInput:i,searchTerm:n,showButton:a,inputLabel:o,clearSearchLabel:s,buttonLabel:r,clearSearch:l,inputClassName:c,buttonCSSClassName:p}=e,[u,d]=Pn(null!=n?n:""),h=_n((e=>{e.preventDefault(),t(u)}),[t,u]),m=_n((e=>{const n=e.target.value;d(n),i&&t(n)}),[d,i,t]),[f]=Pn((()=>{const e=document.createElement("form");return e.setAttribute("tabindex","-1"),e.id=F(),e}));return Sn((()=>(document.body.appendChild(f),f.addEventListener("submit",h),()=>{f.removeEventListener("submit",h),document.body.removeChild(f)})),[f,h]),(0,Le.h)(Le.HY,null,(0,Le.h)("input",{className:"uppy-u-reset ".concat(c),type:"search","aria-label":o,placeholder:o,value:u,onInput:m,form:f.id,"data-uppy-super-focusable":!0}),!a&&(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",class:"uppy-c-icon uppy-ProviderBrowser-searchFilterIcon",width:"12",height:"12",viewBox:"0 0 12 12"},(0,Le.h)("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),!a&&u&&(0,Le.h)("button",{className:"uppy-u-reset uppy-ProviderBrowser-searchFilterReset",type:"button","aria-label":s,title:s,onClick:()=>{d(""),l&&l()}},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",viewBox:"0 0 19 19"},(0,Le.h)("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))),a&&(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary ".concat(p),type:"submit",form:f.id},r))}const vh=e=>{let{cancel:t,done:i,i18n:n,selected:a}=e;return(0,Le.h)("div",{className:"uppy-ProviderBrowser-footer"},(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onClick:i,type:"button"},n("selectX",{smart_count:a})),(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onClick:t,type:"button"},n("cancel")))};function bh(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:11,height:14.5,viewBox:"0 0 44 58"},(0,Le.h)("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}))}function yh(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",style:{minWidth:16,marginRight:3},viewBox:"0 0 276.157 276.157"},(0,Le.h)("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}))}function xh(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",style:{width:16,marginRight:4},viewBox:"0 0 58 58"},(0,Le.h)("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),(0,Le.h)("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}))}const wh=e=>{const{itemIconString:t}=e;if(null!==t)switch(t){case"file":return(0,Le.h)(bh,null);case"folder":return(0,Le.h)(yh,null);case"video":return(0,Le.h)(xh,null);default:{const{alt:i}=e;return(0,Le.h)("img",{src:t,alt:i,loading:"lazy",width:16,height:16})}}};const Ph=function(e){const{className:t,isDisabled:i,restrictionError:n,isChecked:a,title:o,itemIconEl:s,showTitles:r,toggleCheckbox:l,recordShiftKeyPress:c,id:p,children:u}=e,d=zn("uppy-u-reset","uppy-ProviderBrowserItem-checkbox","uppy-ProviderBrowserItem-checkbox--grid",{"uppy-ProviderBrowserItem-checkbox--is-checked":a});return(0,Le.h)("li",{className:t,title:i?null==n?void 0:n.message:null},(0,Le.h)("input",{type:"checkbox",className:d,onChange:l,onKeyDown:c,onMouseDown:c,name:"listitem",id:p,checked:a,disabled:i,"data-uppy-super-focusable":!0}),(0,Le.h)("label",{htmlFor:p,"aria-label":o,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},s,r&&o,u))};const Sh=function(e){const{className:t,isDisabled:i,restrictionError:n,isCheckboxDisabled:a,isChecked:o,toggleCheckbox:s,recordShiftKeyPress:r,type:l,id:c,itemIconEl:p,title:u,handleFolderClick:d,showTitles:h,i18n:m}=e;return(0,Le.h)("li",{className:t,title:i?null==n?void 0:n.message:null},a?null:(0,Le.h)("input",{type:"checkbox",className:"uppy-u-reset uppy-ProviderBrowserItem-checkbox ".concat(o?"uppy-ProviderBrowserItem-checkbox--is-checked":""),onChange:s,onKeyDown:r,onMouseDown:r,name:"listitem",id:c,checked:o,"aria-label":"file"===l?null:m("allFilesFromFolderNamed",{name:u}),disabled:i,"data-uppy-super-focusable":!0}),"file"===l?(0,Le.h)("label",{htmlFor:c,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},(0,Le.h)("div",{className:"uppy-ProviderBrowserItem-iconWrap"},p),h&&u):(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowserItem-inner",onClick:d,"aria-label":m("openFolderNamed",{name:u})},(0,Le.h)("div",{className:"uppy-ProviderBrowserItem-iconWrap"},p),h&&(0,Le.h)("span",null,u)))};function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},kh.apply(this,arguments)}const _h=e=>{const{author:t,getItemIcon:i,isChecked:n,isDisabled:a,viewType:o}=e,s=i(),r=zn("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":n},{"uppy-ProviderBrowserItem--disabled":a},{"uppy-ProviderBrowserItem--noPreview":"video"===s}),l=(0,Le.h)(wh,{itemIconString:s});switch(o){case"grid":return(0,Le.h)(Ph,kh({},e,{className:r,itemIconEl:l}));case"list":return(0,Le.h)(Sh,kh({},e,{className:r,itemIconEl:l}));case"unsplash":return(0,Le.h)(Ph,kh({},e,{className:r,itemIconEl:l}),(0,Le.h)("a",{href:"".concat(t.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer",className:"uppy-ProviderBrowserItem-author",tabIndex:"-1"},t.name));default:throw new Error("There is no such type ".concat(o))}},Ch="shared-with-me";function Fh(e){const{currentSelection:t,uppyFiles:i,viewType:n,isChecked:a,toggleCheckbox:o,recordShiftKeyPress:s,showTitles:r,i18n:l,validateRestrictions:c,getNextFolder:p,columns:u,f:d}=e;var h;if(d.isFolder)return _h({columns:u,showTitles:r,viewType:n,i18n:l,id:d.id,title:d.name,getItemIcon:()=>d.icon,isChecked:a(d),toggleCheckbox:e=>o(e,d),recordShiftKeyPress:s,type:"folder",isDisabled:null==(h=a(d))?void 0:h.loading,isCheckboxDisabled:d.id===Ch,handleFolderClick:()=>p(d)});const m=c(qn(d),[...i,...t]);return _h({id:d.id,title:d.name,author:d.author,getItemIcon:()=>d.icon,isChecked:a(d),toggleCheckbox:e=>o(e,d),recordShiftKeyPress:s,columns:u,showTitles:r,viewType:n,i18n:l,type:"file",isDisabled:m&&!a(d),restrictionError:m})}const Th=function(e){const{currentSelection:t,folders:i,files:n,uppyFiles:a,viewType:o,headerComponent:s,showBreadcrumbs:r,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,handleScroll:u,showTitles:d,i18n:h,validateRestrictions:m,isLoading:f,showSearchFilter:g,search:v,searchTerm:b,clearSearch:y,searchOnInput:x,searchInputLabel:w,clearSearchLabel:P,getNextFolder:S,cancel:k,done:_,columns:C,noResultsLabel:F,loadAllFiles:T}=e,O=t.length,E=kn((()=>[...i,...n]),[i,n]);return(0,Le.h)("div",{className:zn("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--".concat(o))},s&&(0,Le.h)("div",{className:"uppy-ProviderBrowser-header"},(0,Le.h)("div",{className:zn("uppy-ProviderBrowser-headerBar",!r&&"uppy-ProviderBrowser-headerBar--simple")},s)),g&&(0,Le.h)("div",{class:"uppy-ProviderBrowser-searchFilter"},(0,Le.h)(gh,{search:v,searchTerm:b,clearSearch:y,inputLabel:w,clearSearchLabel:P,inputClassName:"uppy-ProviderBrowser-searchFilterInput",searchOnInput:x})),f?(0,Le.h)("div",{className:"uppy-Provider-loading"},(0,Le.h)("span",null,h("loading"))):i.length||n.length?T?(0,Le.h)("div",{className:"uppy-ProviderBrowser-body"},(0,Le.h)("ul",{className:"uppy-ProviderBrowser-list"},(0,Le.h)(Kn,{data:E,renderRow:e=>(0,Le.h)(Fh,{currentSelection:t,uppyFiles:a,viewType:o,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,showTitles:d,i18n:h,validateRestrictions:m,getNextFolder:S,columns:C,f:e}),rowHeight:31}))):(0,Le.h)("div",{className:"uppy-ProviderBrowser-body"},(0,Le.h)("ul",{className:"uppy-ProviderBrowser-list",onScroll:u,role:"listbox",tabIndex:"-1"},E.map((e=>(0,Le.h)(Fh,{currentSelection:t,uppyFiles:a,viewType:o,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,showTitles:d,i18n:h,validateRestrictions:m,getNextFolder:S,columns:C,f:e}))))):(0,Le.h)("div",{className:"uppy-Provider-empty"},F),O>0&&(0,Le.h)(vh,{selected:O,done:_,cancel:k,i18n:h}))},Oh=e=>{let{i18n:t,loading:i}=e;return(0,Le.h)("div",{className:"uppy-Provider-loading"},(0,Le.h)("span",null,t("loading")),"string"===typeof i&&(0,Le.h)("span",{style:{marginTop:".7em"}},i))};class Eh extends Le.wA{componentWillUnmount(){const{onUnmount:e}=this.props;e()}render(){const{children:e}=this.props;return(0,Le.bR)(e)[0]}}class Dh{constructor(e,t){this.filterItems=e=>{const t=this.plugin.getPluginState();return t.filterInput&&""!==t.filterInput?e.filter((e=>-1!==e.name.toLowerCase().indexOf(t.filterInput.toLowerCase()))):e},this.recordShiftKeyPress=e=>{this.isShiftKeyPressed=e.shiftKey},this.toggleCheckbox=(e,t)=>{e.stopPropagation(),e.preventDefault(),e.currentTarget.focus();const{folders:i,files:n}=this.plugin.getPluginState(),a=this.filterItems(i.concat(n));if(this.lastCheckbox&&this.isShiftKeyPressed){const{currentSelection:e}=this.plugin.getPluginState(),i=a.indexOf(this.lastCheckbox),n=a.indexOf(t),o=i<n?a.slice(i,n+1):a.slice(n,i+1),s=[];for(const t of o){const{uppy:e}=this.plugin,i=e.validateRestrictions(qn(t),[...e.getFiles(),...s]);i?e.info({message:i.message},"error",e.opts.infoTimeout):s.push(t)}return void this.plugin.setPluginState({currentSelection:[...new Set([...e,...s])]})}this.lastCheckbox=t;const{currentSelection:o}=this.plugin.getPluginState();this.isChecked(t)?this.plugin.setPluginState({currentSelection:o.filter((e=>e.id!==t.id))}):this.plugin.setPluginState({currentSelection:o.concat([t])})},this.isChecked=e=>{const{currentSelection:t}=this.plugin.getPluginState();return t.some((t=>t.id===e.id))},this.plugin=e,this.provider=t.provider,this.isHandlingScroll=!1,this.preFirstRender=this.preFirstRender.bind(this),this.handleError=this.handleError.bind(this),this.clearSelection=this.clearSelection.bind(this),this.cancelPicking=this.cancelPicking.bind(this)}preFirstRender(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()}shouldHandleScroll(e){const{scrollHeight:t,scrollTop:i,offsetHeight:n}=e.target;return t-(i+n)<50&&!this.isHandlingScroll}clearSelection(){this.plugin.setPluginState({currentSelection:[],filterInput:""})}cancelPicking(){this.clearSelection();const e=this.plugin.uppy.getPlugin("Dashboard");e&&e.hideAllPanels()}handleError(e){var t;const{uppy:i}=this.plugin,n=i.i18n("companionError");i.log(e.toString()),e.isAuthError||"AbortError"===(null==(t=e.cause)?void 0:t.name)||i.info({message:n,details:e.toString()},"error",5e3)}getTagFile(e){const t={id:e.id,source:this.plugin.id,data:e,name:e.name||e.id,type:e.mimeType,isRemote:!0,meta:{},body:{fileId:e.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:"".concat(this.provider.fileUrl(e.requestPath)),body:{fileId:e.id},providerOptions:this.provider.opts,providerName:this.provider.name,provider:this.provider.provider}},i=M(t);return i&&la(i)&&(t.preview=e.thumbnail),e.author&&(null!=e.author.name&&(t.meta.authorName=String(e.author.name)),e.author.url&&(t.meta.authorUrl=e.author.url)),null!=e.relDirPath&&(t.meta.relativePath=e.relDirPath?"".concat(e.relDirPath,"/").concat(t.name):null),null!=e.absDirPath&&(t.meta.absolutePath=e.absDirPath?"/".concat(e.absDirPath,"/").concat(t.name):"/".concat(t.name)),t}setLoading(e){this.plugin.setPluginState({loading:e})}}function Rh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Uh=0;function Ih(e){return"__private_"+Uh+++"_"+e}function jh(e,t){return e?"".concat(e,"/").concat(t):t}function Ah(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,Le.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var Nh=Ih("abortController"),Bh=Ih("withAbort"),Mh=Ih("list"),Lh=Ih("listFilesAndFolders"),zh=Ih("recursivelyListAllFiles");class qh extends Dh{constructor(e,t){super(e,t),Object.defineProperty(this,zh,{value:Gh}),Object.defineProperty(this,Lh,{value:Vh}),Object.defineProperty(this,Mh,{value:Wh}),Object.defineProperty(this,Bh,{value:Hh}),Object.defineProperty(this,Nh,{writable:!0,value:void 0});this.opts={viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0,loadAllFiles:!1,...t},this.filterQuery=this.filterQuery.bind(this),this.clearFilter=this.clearFilter.bind(this),this.getFolder=this.getFolder.bind(this),this.getNextFolder=this.getNextFolder.bind(this),this.logout=this.logout.bind(this),this.handleAuth=this.handleAuth.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.render=this.render.bind(this),this.plugin.setPluginState({authenticated:!1,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[]})}tearDown(){}async getFolder(e,t){this.setLoading(!0);try{await Rh(this,Bh)[Bh]((async i=>{this.lastCheckbox=void 0;let{breadcrumbs:n}=this.plugin.getPluginState();const a=n.findIndex((t=>e===t.requestPath));n=-1!==a?n.slice(0,a+1):[...n,{requestPath:e,name:t}],this.nextPagePath=e;let o=[],s=[];do{const{files:e,folders:t}=await Rh(this,Lh)[Lh]({breadcrumbs:n,signal:i});o=o.concat(e),s=s.concat(t),this.setLoading(this.plugin.uppy.i18n("loadedXFiles",{numFiles:o.length+s.length}))}while(this.opts.loadAllFiles&&this.nextPagePath);this.plugin.setPluginState({folders:s,files:o,breadcrumbs:n,filterInput:""})}))}catch(i){this.handleError(i)}finally{this.setLoading(!1)}}getNextFolder(e){this.getFolder(e.requestPath,e.name),this.lastCheckbox=void 0}async logout(){try{await Rh(this,Bh)[Bh]((async e=>{const t=await this.provider.logout({signal:e});if(t.ok){if(!t.revoked){const e=this.plugin.uppy.i18n("companionUnauthorizeHint",{provider:this.plugin.title,url:t.manual_revoke_url});this.plugin.uppy.info(e,"info",7e3)}const e={authenticated:!1,files:[],folders:[],breadcrumbs:[],filterInput:""};this.plugin.setPluginState(e)}}))}catch(e){this.handleError(e)}}filterQuery(e){this.plugin.setPluginState({filterInput:e})}clearFilter(){this.plugin.setPluginState({filterInput:""})}async handleAuth(){const e="@uppy/provider-views=".concat(qh.VERSION);try{await this.provider.login({uppyVersions:e}),this.plugin.setPluginState({authenticated:!0}),this.preFirstRender()}catch(bm){this.plugin.uppy.log("login failed: ".concat(bm.message))}}async handleScroll(e){if(this.shouldHandleScroll(e)&&this.nextPagePath){this.isHandlingScroll=!0;try{await Rh(this,Bh)[Bh]((async e=>{const{files:t,folders:i,breadcrumbs:n}=this.plugin.getPluginState(),{files:a,folders:o}=await Rh(this,Lh)[Lh]({breadcrumbs:n,signal:e}),s=t.concat(a),r=i.concat(o);this.plugin.setPluginState({folders:r,files:s})}))}catch(_c){this.handleError(_c)}finally{this.isHandlingScroll=!1}}}async donePicking(){this.setLoading(!0);try{await Rh(this,Bh)[Bh]((async e=>{const{currentSelection:t}=this.plugin.getPluginState(),i=[],n=[];for(const a of t){const{requestPath:t}=a,o=e=>({...e,relDirPath:e.absDirPath.replace(a.absDirPath,"").replace(/^\//,"")});if(a.isFolder){let s=!0,r=0;const l=new uh({concurrency:6}),c=e=>{for(const t of e){const e=z(this.getTagFile(t));this.plugin.uppy.checkIfFileAlreadyExists(e)||(n.push(o(t)),r++,this.setLoading(this.plugin.uppy.i18n("addedNumFiles",{numFiles:r}))),s=!1}};let p;await Rh(this,zh)[zh]({requestPath:t,absDirPath:jh(a.absDirPath,a.name),relDirPath:a.name,queue:l,onFiles:c,signal:e}),await l.onIdle(),p=s?this.plugin.uppy.i18n("emptyFolderAdded"):0===r?this.plugin.uppy.i18n("folderAlreadyAdded",{folder:a.name}):this.plugin.uppy.i18n("folderAdded",{smart_count:r,folder:a.name}),i.push(p)}else n.push(o(a))}this.plugin.uppy.log("Adding files from a remote provider"),this.plugin.uppy.addFiles(n.map((e=>this.getTagFile(e)))),this.plugin.setPluginState({filterInput:""}),i.forEach((e=>this.plugin.uppy.info(e))),this.clearSelection()}))}catch(e){this.handleError(e)}finally{this.setLoading(!1)}}render(e,t){var i=this;void 0===t&&(t={});const{authenticated:n,didFirstRender:a}=this.plugin.getPluginState(),{i18n:o}=this.plugin.uppy;a||this.preFirstRender();const s={...this.opts,...t},{files:r,folders:l,filterInput:c,loading:p,currentSelection:u}=this.plugin.getPluginState(),{isChecked:d,toggleCheckbox:h,recordShiftKeyPress:m,filterItems:f}=this,g=""!==c,v=this.plugin.icon||Ah,b={showBreadcrumbs:s.showBreadcrumbs,getFolder:this.getFolder,breadcrumbs:this.plugin.getPluginState().breadcrumbs,pluginIcon:v,title:this.plugin.title,logout:this.logout,username:this.username,i18n:o},y={isChecked:d,toggleCheckbox:h,recordShiftKeyPress:m,currentSelection:u,files:g?f(r):r,folders:g?f(l):l,username:this.username,getNextFolder:this.getNextFolder,getFolder:this.getFolder,loadAllFiles:this.opts.loadAllFiles,showSearchFilter:s.showFilter,search:this.filterQuery,clearSearch:this.clearFilter,searchTerm:c,searchOnInput:!0,searchInputLabel:o("filter"),clearSearchLabel:o("resetFilter"),noResultsLabel:o("noFilesFound"),logout:this.logout,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,headerComponent:fh(b),title:this.plugin.title,viewType:s.viewType,showTitles:s.showTitles,showBreadcrumbs:s.showBreadcrumbs,pluginIcon:v,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){return i.plugin.uppy.validateRestrictions(...arguments)}};return p?(0,Le.h)(Eh,{onUnmount:this.clearSelection},(0,Le.h)(Oh,{i18n:this.plugin.uppy.i18n,loading:p})):n?(0,Le.h)(Eh,{onUnmount:this.clearSelection},(0,Le.h)(Th,y)):(0,Le.h)(Eh,{onUnmount:this.clearSelection},(0,Le.h)(hh,{pluginName:this.plugin.title,pluginIcon:v,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18n,i18nArray:this.plugin.uppy.i18nArray}))}}async function Hh(e){var t;null==(t=Rh(this,Nh)[Nh])||t.abort();const i=new AbortController;Rh(this,Nh)[Nh]=i;const n=()=>{i.abort(),this.clearSelection()};try{this.plugin.uppy.on("dashboard:close-panel",n),this.plugin.uppy.on("cancel-all",n),await e(i.signal)}finally{this.plugin.uppy.off("dashboard:close-panel",n),this.plugin.uppy.off("cancel-all",n),Rh(this,Nh)[Nh]=void 0}}async function Wh(e){let{requestPath:t,absDirPath:i,signal:n}=e;const{username:a,nextPagePath:o,items:s}=await this.provider.list(t,{signal:n});return this.username=a||this.username,{items:s.map((e=>({...e,absDirPath:i}))),nextPagePath:o}}async function Vh(e){let{breadcrumbs:t,signal:i}=e;const n=function(e){return e.slice(1).map((e=>e.name)).join("/")}(t),{items:a,nextPagePath:o}=await Rh(this,Mh)[Mh]({requestPath:this.nextPagePath,absDirPath:n,signal:i});this.nextPagePath=o;const s=[],r=[];return a.forEach((e=>{e.isFolder?r.push(e):s.push(e)})),{files:s,folders:r}}async function Gh(e){let{requestPath:t,absDirPath:i,relDirPath:n,queue:a,onFiles:o,signal:s}=e,r=t;for(;r;){const e=await Rh(this,Mh)[Mh]({requestPath:r,absDirPath:i,signal:s});r=e.nextPagePath;const t=e.items.filter((e=>!e.isFolder)),l=e.items.filter((e=>e.isFolder));o(t);const c=l.map((async e=>a.add((async()=>Rh(this,zh)[zh]({requestPath:e.requestPath,absDirPath:jh(i,e.name),relDirPath:jh(n,e.name),queue:a,onFiles:o,signal:s})))));await Promise.all(c)}}function Kh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}qh.VERSION="3.6.0";var Xh=0;function Yh(e){return"__private_"+Xh+++"_"+e}var Zh=Yh("updateFilesAndInputMode");function Jh(e,t){this.nextPageQuery=e.nextPageQuery,e.items.forEach((e=>{t.push(e)})),this.plugin.setPluginState({currentSelection:[],isInputMode:!1,files:t,searchTerm:e.searchedFor})}(class extends Dh{constructor(e,t){super(e,t),Object.defineProperty(this,Zh,{value:Jh});this.opts={viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1,...t},this.search=this.search.bind(this),this.clearSearch=this.clearSearch.bind(this),this.resetPluginState=this.resetPluginState.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.render=this.render.bind(this),this.defaultState={isInputMode:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",currentSelection:[],searchTerm:null},this.plugin.setPluginState(this.defaultState)}tearDown(){}resetPluginState(){this.plugin.setPluginState(this.defaultState)}async search(e){const{searchTerm:t}=this.plugin.getPluginState();if(!e||e!==t){this.setLoading(!0);try{const t=await this.provider.search(e);Kh(this,Zh)[Zh](t,[])}catch(i){this.handleError(i)}finally{this.setLoading(!1)}}}clearSearch(){this.plugin.setPluginState({currentSelection:[],files:[],searchTerm:null})}async handleScroll(e){const t=this.nextPageQuery||null;if(this.shouldHandleScroll(e)&&t){this.isHandlingScroll=!0;try{const{files:e,searchTerm:i}=this.plugin.getPluginState(),n=await this.provider.search(i,t);Kh(this,Zh)[Zh](n,e)}catch(_c){this.handleError(_c)}finally{this.isHandlingScroll=!1}}}donePicking(){const{currentSelection:e}=this.plugin.getPluginState();this.plugin.uppy.log("Adding remote search provider files"),this.plugin.uppy.addFiles(e.map((e=>this.getTagFile(e)))),this.resetPluginState()}render(e,t){var i=this;void 0===t&&(t={});const{didFirstRender:n,isInputMode:a,searchTerm:o}=this.plugin.getPluginState(),{i18n:s}=this.plugin.uppy;n||this.preFirstRender();const r={...this.opts,...t},{files:l,folders:c,filterInput:p,loading:u,currentSelection:d}=this.plugin.getPluginState(),{isChecked:h,toggleCheckbox:m,filterItems:f,recordShiftKeyPress:g}=this,v=""!==p,b={isChecked:h,toggleCheckbox:m,recordShiftKeyPress:g,currentSelection:d,files:v?f(l):l,folders:v?f(c):c,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,showSearchFilter:r.showFilter,search:this.search,clearSearch:this.clearSearch,searchTerm:o,searchOnInput:!1,searchInputLabel:s("search"),clearSearchLabel:s("resetSearch"),noResultsLabel:s("noSearchResults"),title:this.plugin.title,viewType:r.viewType,showTitles:r.showTitles,showFilter:r.showFilter,isLoading:u,showBreadcrumbs:r.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:s,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){return i.plugin.uppy.validateRestrictions(...arguments)}};return a?(0,Le.h)(Eh,{onUnmount:this.resetPluginState},(0,Le.h)("div",{className:"uppy-SearchProvider"},(0,Le.h)(gh,{search:this.search,clearSelection:this.clearSelection,inputLabel:s("enterTextToSearch"),buttonLabel:s("searchImages"),inputClassName:"uppy-c-textInput uppy-SearchProvider-input",buttonCSSClassName:"uppy-SearchProvider-searchButton",showButton:!0}))):(0,Le.h)(Eh,{onUnmount:this.resetPluginState},(0,Le.h)(Th,b))}}).VERSION="3.6.0";const Qh={data:[],files:[],pageSize:16,page:1,loading:!1,hasMore:!0,folderId:""},$h={authenticated:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[],loading:!0,loadAllFiles:!0};const em=class extends Ze{constructor(e,t){super(e,t),(0,Od.Z)(this,"queryUploadedFromMediaKit",(async()=>{const{pageSize:e,page:t,files:i,hasMore:n,loading:a}=this.uploadedAPIData;if(n&&!a){var o,s;this.uploadedAPIData.loading=!0,this.uploadedAPIData.page+=1;const n=window.uploaderComponentId||((null===(o=window)||void 0===o||null===(s=o.blocklet)||void 0===s?void 0:s.componentId)||"").split("/").pop(),{data:a}=await Td.hi.get("/api/uploads",{params:{page:t,pageSize:e,folderId:n,...this.params},headers:{"x-component-did":n}});this.uploadedAPIData.loading=!1,this.uploadedAPIData.hasMore=this.uploadedAPIData.page<=a.pageCount,this.uploadedAPIData.files=bd()([...i,...a.uploads.map((e=>{let t="file";const{filename:i,_id:n,originalname:a}=e,o=(0,Td.oQ)(i);return t=(0,Td.oQ)(i,400),{...e,id:n,name:a,icon:t,previewUrl:t,fileUrl:o}}))],"_id"),this.uploaded.setPluginState({files:this.uploadedAPIData.files,loading:!1}),this.canConvertImgToObject=!0}})),(0,Od.Z)(this,"addUploadItem",cr()((()=>{if(this.addUploadItemFlag){const e=document.querySelector("#uploaded .uppy-ProviderBrowser-list");if(e){const t=document.createElement("li");t.className="uppy-ProviderBrowserItem",t.innerHTML='\n <div class="uppy-ProviderBrowserItem-inner uploaded-add-item">\n <svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>\n </div>\n ',t.addEventListener("click",(async()=>{await this.uppy.openPlugin("My Device")})),e.insertBefore(t,e.firstChild),this.addUploadItemFlag=!1}}}),{wait:200})),(0,Od.Z)(this,"convertImgToObject",cr()((()=>{if(this.canConvertImgToObject){document.querySelectorAll("#uploaded img").forEach((e=>{if([".mp4",".webm"].find((t=>{var i;return(null===(i=e.src)||void 0===i?void 0:i.indexOf(t))>-1}))){const t=document.createElement("video");t.src=e.src,t.width=e.width,t.height=e.height,t.autoplay=!0,t.muted=!0,t.loop=!0,t.style="pointer-events: none;",e.parentNode.replaceChild(t,e)}})),this.canConvertImgToObject=!1}}),{wait:200})),(0,Od.Z)(this,"resetState",(()=>{this.uploadedAPIData={...Qh},this.uploaded.setPluginState({...$h}),this.addUploadItemFlag=!0})),this.id=this.opts.id||"Uploaded",this.title=this.opts.title||"Uploaded",this.params=this.opts.params||{},this.type="acquirer",this.uppy=e,this.uploadedAPIData={...Qh},this.addUploadItemFlag=!0,this.icon=()=>Dd("svg",{"aria-hidden":"true",focusable:"false",width:"18",height:"18",viewBox:"0 0 1024 1024",children:[Dd("path",{d:"M145.6 0c-44.8 0-80 36.8-80 81.6V944c0 44.8 35.2 80 80 80h732.8c44.8 0 81.6-35.2 81.6-80V326.4L657.6 0h-512z",fill:"#49C9A7"}),Dd("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-108.8c0 0 4.8 92.8 97.6 92.8H960z",fill:"#49C9A7"}),Dd("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#37BB91"}),Dd("path",{d:"M225.6 859.2V524.8H560v334.4H225.6z m300.8-300.8H259.2v201.6h267.2V558.4z m-153.6 134.4l62.4-84.8 20.8 33.6 20.8-6.4 16 89.6H283.2l56-52.8 33.6 20.8z m-60.8-59.2c-14.4 0-27.2-9.6-27.2-24 0-12.8 12.8-24 27.2-24 14.4 0 25.6 11.2 25.6 24 0 14.4-11.2 24-25.6 24z",fill:"#FFFFFF"})]})}render(e){var t;return this.uploadedAPIData.loading||0!==(null===(t=this.uploadedAPIData.files)||void 0===t?void 0:t.length)||this.queryUploadedFromMediaKit(),Dd("div",{id:"uploaded",className:"uploaded",children:this.view.render(e)})}update(){this.convertImgToObject(),this.addUploadItem()}onFirstRender(){}install(){this.view=new qh(this,{viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.uploaded=this.view.plugin,this.uploaded.setPluginState({...$h}),this.uploaded.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(e,t)=>{const{currentSelection:i}=this.uploaded.getPluginState(),n=this.uploaded.uppy.opts.restrictions.maxNumberOfFiles,a=!n||i.length<n;i.find((e=>e._id===t._id))?this.uploaded.setPluginState({currentSelection:[...i.filter((e=>e._id!==t._id))]}):(a||i.pop(),this.uploaded.setPluginState({currentSelection:[...i,t]}))},this.view.donePicking=()=>{const{currentSelection:e}=this.uploaded.getPluginState();this.uppy.emit("uploaded:selected",e),this.uploaded.parent.hideAllPanels()},this.uploaded.uppy.validateRestrictions=()=>!1,this.view.handleScroll=e=>{const{scrollHeight:t,scrollTop:i,offsetHeight:n}=e.target;t-(i+n)<30&&this.queryUploadedFromMediaKit()};const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount(),this.uploaded.uppy.off("dashboard:show-panel",this.resetState)}};var tm=i(2078),im=i.n(tm);const nm={initialized:!1,data:[],files:[],pageSize:16,page:1,loading:!1,hasMore:!0,folderId:"",componentDid:"",components:[]},am={authenticated:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[],loading:!0,loadAllFiles:!0},om={padding:"5px 15px",marginRight:"8px",marginTop:"8px",borderRadius:"4px",cursor:"pointer",border:"1px solid rgb(29, 193, 199)",color:"rgb(29, 193, 199)",backgroundColor:"transparent",fontSize:"14px",lineHeight:"24.5px",fontWeight:"bold"},sm={...om,color:"#fff",backgroundColor:"rgb(29, 193, 199)"};const rm=class extends Ze{constructor(e,t){super(e,t),(0,Od.Z)(this,"queryResources",(async()=>{if(!this.apiData.loading){this.apiData.loading=!0;const{data:e}=await Td.hi.get("/api/resources",{params:{componentDid:this.apiData.componentDid}});this.apiData.loading=!1,this.apiData.initialized=!0,this.apiData.components=e.components||[],this.apiData.componentDid=e.componentDid||"",this.apiData.files=bd()([...e.resources.map((e=>{let t="file";const{filename:i}=e,n=(0,Td.oQ)(i);return t=(0,Td.oQ)(i,400),{filename:i,_id:i,id:i,name:i,icon:t,previewUrl:t,fileUrl:n}}))],"id"),this.resources.setPluginState({files:this.apiData.files,loading:!1})}})),(0,Od.Z)(this,"resetState",(()=>{this.apiData={...nm},this.resources.setPluginState({...am})})),this.id=this.opts.id||"Resources",this.title=this.opts.title||"Resources",this.params=this.opts.params||{},this.type="acquirer",this.uppy=e,this.componentDid="",this.apiData={...nm},this.icon=()=>Dd("svg",{t:"1700146012231",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15673",width:"200",height:"200",children:[Dd("path",{d:"M403.2 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-187.733333c0-49.066667-38.4-85.333333-85.333333-85.333334zM426.666667 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-21.333333 0-38.4-17.066667-38.4-36.266667v-162.133333c0-19.2 17.066667-36.266667 36.266667-36.266667h160c19.2 0 36.266667 17.066667 36.266666 36.266667v162.133333z",fill:"#0171F1","p-id":"15674"}),Dd("path",{d:"M808.533333 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-187.733333c0-49.066667-36.266667-85.333333-85.333334-85.333334zM832 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-19.2 0-36.266667-17.066667-36.266666-36.266667v-162.133333c-2.133333-19.2 14.933333-36.266667 34.133333-36.266667h160c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333zM403.2 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-189.866667c0-46.933333-38.4-85.333333-85.333333-85.333333zM426.666667 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-21.333333 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#55ABE5","p-id":"15675"}),Dd("path",{d:"M808.533333 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-189.866667c0-46.933333-36.266667-85.333333-85.333334-85.333333zM832 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-19.2 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c21.333333 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#0171F1","p-id":"15676"})]})}render(e){return this.apiData.loading||this.apiData.initialized||this.queryResources(),Dd("div",{id:"resources",className:"uploaded",children:[Dd("div",{style:{padding:this.apiData.components.length?"12px":"0",backgroundColor:"#fff",display:"flex",flexWrap:"wrap",marginTop:"-8px"},children:this.apiData.components.map((e=>Dd("button",{style:this.apiData.componentDid===e.did?sm:om,id:e.componentDid,onClick:()=>{this.apiData.componentDid!==e.did&&(this.apiData.componentDid=e.did,this.queryResources())},children:im()(e.name)})))}),this.view.render(e)]})}update(){}onFirstRender(){}install(){this.view=new qh(this,{viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.resources=this.view.plugin,this.resources.setPluginState({...am}),this.resources.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(e,t)=>{const{currentSelection:i}=this.resources.getPluginState(),n=this.resources.uppy.opts.restrictions.maxNumberOfFiles,a=!n||i.length<n;i.find((e=>e.id===t.id))?this.resources.setPluginState({currentSelection:[...i.filter((e=>e.id!==t.id))]}):(a||i.pop(),this.resources.setPluginState({currentSelection:[...i,t]}))},this.resources.uppy.validateRestrictions=()=>!1,this.view.donePicking=()=>{const{currentSelection:e}=this.resources.getPluginState();this.uppy.emit("uploaded:selected",e),this.resources.parent.hideAllPanels()};const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount(),this.resources.uppy.off("dashboard:show-panel",this.resetState)}};var lm=i(59340);const cm=class extends Ze{constructor(e,t){super(e,{...t}),(0,Od.Z)(this,"setHashFileName",(async e=>{const{id:t}=e,i=this.uppy.getFile(t);if(i){const{data:e}=i,n=5242880,a=e.slice(0,n),o=lm.createHash("md5").update(await a.text()).digest("hex"),s=(0,Td.r6)(i),r="".concat(o).concat(s?".".concat(s):"");this.uppy.setFileState(t,{hashFileName:r})}})),(0,Od.Z)(this,"setMetaData",(async e=>{const{id:t}=e,i=this.uppy.getFile(t);if(i){const{data:{relativePath:e,name:n},hashFileName:a}=i,o=e||n||a;this.uppy.setFileMeta(t,{relativePath:o,name:o})}})),(0,Od.Z)(this,"prepareUploadWrapper",(async e=>{await this.tryDownloadRemoteFile(e),await this.getPreviewFromData(e),await this.setHashFileName(e),await this.setMetaData(e)})),(0,Od.Z)(this,"tryDownloadRemoteFile",(async e=>{var t;const{type:i,name:n,preview:a,source:o,isRemote:s,isDownloading:r,id:l,isLoading:c,remote:p,meta:u,errorCount:d=0}=e,h=!c&&s,m="uploader:".concat(l,":downloaded"),f=(0,Td.r6)(e),g=null===n||void 0===n||null===(t=n.split("?"))||void 0===t?void 0:t[0],v=(()=>{const e=["jpg","jpeg"];return!(!e.includes(f)||!e.some((e=>null===g||void 0===g?void 0:g.endsWith(e))))||(null===g||void 0===g?void 0:g.endsWith(f))})()?g:"".concat(g).concat(f?".".concat(f):"");if(h){var b;const e=(0,Td.km)(a||(null===p||void 0===p||null===(b=p.body)||void 0===b?void 0:b.url));if(d>=3)throw new Error("Download remote file failure");this.uppy.setFileState(l,{isLoading:!0,isDownloading:!0,size:null,meta:{...u,name:this.i18n("loading")}}),await Td.hi.get("".concat(this.opts.companionUrl,"/proxy"),{responseType:"blob",params:{url:e}}).then((e=>null===e||void 0===e?void 0:e.data)).then((async e=>{const t=(0,Td.hl)(e,v);this.uppy.setFileState(l,{name:v,extension:f,type:i,data:t,preview:a||(0,Td.Uu)(t),source:o,size:t.size,isDownloading:!1,isRemote:!1,meta:{...u,name:v,filename:v}});this.uppy.getFile(l);this.uppy.emit(m,l)})).catch((async e=>{console.error("Axios download remote file error: ",e),this.uppy.setFileState(l,{isRemote:!0,isLoading:!1,errorCount:d+1}),await this.tryDownloadRemoteFile(this.uppy.getFile(l))}))}else if(r){const e=async()=>new Promise((e=>{this.uppy.once(m,(async()=>{e()}))}));await e()}})),(0,Od.Z)(this,"getPreviewFromData",(e=>{const{id:t}=e,i=this.uppy.getFile(t);if(i){const{data:e,type:n,preview:a}=i;(n.indexOf("gif")>-1||!a)&&e&&n.indexOf("image")>-1&&setTimeout((()=>{this.uppy.setFileState(t,{preview:(0,Td.Uu)(e)})}),n.indexOf("gif")>-1?1e3:0)}})),(0,Od.Z)(this,"prepareUpload",(e=>{const t=e.map((async e=>{const t=this.uppy.getFile(e);t.isDownloading&&this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("loading")}),await this.prepareUploadWrapper(t)}));return Promise.all(t).then((()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))}))})),this.id=this.opts.id||"DownloadRemoteFiles",this.type="modifier",this.i18nInit()}install(){this.uppy.addPreProcessor(this.prepareUpload),this.uppy.on("file-added",(async e=>{setTimeout((()=>{this.prepareUploadWrapper(e)}),200)})),this.uppy.on("file-editor:complete",(e=>{this.getPreviewFromData(e)}))}uninstall(){this.uppy.removePreProcessor(this.prepareUpload)}};const pm=class extends Ze{constructor(e,t){super(e,t),this.id=this.opts.id||"AIImage",this.title=this.opts.title||"AI Image",this.type="acquirer",this.uppy=e,this.i18nInit(),this.icon=()=>Dd("svg",{width:"20",height:"20",viewBox:"0 0 24 24",children:Dd("g",{fill:"none",stroke:"#a482fe","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",children:[Dd("path",{d:"M15 8h.01M10 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5"}),Dd("path",{d:"m3 16l5-5c.928-.893 2.072-.893 3 0l1 1m2 9v-4a2 2 0 1 1 4 0v4m-4-2h4m3-4v6"})]})})}render(){return Dd("div",{id:"ai-image",className:"ai-image",children:Dd("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:this.i18n("loading")})})}update(){}onFirstRender(){}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}},um=(0,c.lazy)((()=>Promise.all([i.e(2362),i.e(4930)]).then(i.bind(i,64930)))),dm="uploader-container",hm="uploader-dashboard",mm=localStorage.getItem("uppy_debug");function fm(e){const{id:t,plugins:i,locale:n,onAfterResponse:a,onUploadFinish:o,coreProps:r,apiPathProps:l,tusProps:c,dropTargetProps:p,pluginList:u}=e,d=s()(u,"id"),h=(0,Td.iB)(null===l||void 0===l?void 0:l.uploader);let m=new Me({id:t,meta:{uploaderId:t},debug:["true",!0].includes(mm||""),locale:Vu[n||"en"],...r}).use(ju,{chunkSize:10485760,removeFingerprintOnSuccess:!0,withCredentials:!0,endpoint:h,async onBeforeRequest(e,t){var i,n,a;const{hashFileName:o,id:s,meta:r}=t,l=(0,Td.r6)(t);e.setHeader("x-uploader-file-name","".concat(o)),e.setHeader("x-uploader-file-id","".concat(s)),e.setHeader("x-uploader-file-ext","".concat(l)),e.setHeader("x-uploader-base-url",new URL(e.getURL()).pathname),e.setHeader("x-uploader-endpoint-url",h),e.setHeader("x-uploader-metadata",JSON.stringify(r,((e,t)=>"string"===typeof t?encodeURIComponent(t):t)));const c=(null===(i=window)||void 0===i?void 0:i.uploaderComponentId)||(null===(n=window)||void 0===n||null===(a=n.blocklet)||void 0===a?void 0:a.componentId);c&&e.setHeader("x-component-did",(c||"").split("/").pop())},onAfterResponse:async(e,t)=>{const i={},n=e.getUnderlyingObject();try{n.response&&(i.data=JSON.parse(n.response))}catch(_c){i.data={}}i.method=e.getMethod().toUpperCase(),i.url=e.getURL(),i.status=n.status,i.headers={...e._headers};const s=n.getAllResponseHeaders();if(s){s.split("\r\n").forEach((e=>{const[t,n]=e.split(": ");t&&n&&(i.headers[t]=n)}))}if(["PATCH","POST"].includes(i.method)&&[200,500].includes(i.status)){const e=[!0,"true"].includes(i.headers["x-uploader-file-exist"]),t=(0,Td.Gr)(i.url,i.headers["x-uploader-file-name"]),n=m.getFile(i.headers["x-uploader-file-id"]);i.file=n,i.uploadURL=t,e&&n&&("POST"===i.method&&m.pauseResume(n.id),m.emit("upload-success",n,{uploadURL:t}),m.calculateTotalProgress()),200===i.status&&(await(null===o||void 0===o?void 0:o(i)),m.emitUploadSuccess(n,i))}a&&await(null===a||void 0===a?void 0:a(n));const r=100===m.getState().totalProgress,l=m.getFiles().every((e=>"DropTarget"===e.source));r&&l&&m.close()},...c});return p&&m.use(Ll,{target:document.body,onDrop:e=>{var t;null===m||void 0===m||null===(t=m.open)||void 0===t||t.call(m)},...p}),null===i||void 0===i||i.forEach((e=>{if(e){const{plugin:t,options:i}=d[e]||{};t&&m.use(t,i)}})),(0,Td.vi)(m),m}const gm=(0,c.forwardRef)(((e,t)=>{const i={uploader:"/api/uploads",companion:"/api/companion",disableMediaKitPrefix:!1,...null===e||void 0===e?void 0:e.apiPathProps},n=(0,r.Z)({open:!1,uppy:null,availablePluginMap:{}}),o=(e=>{var t,i,n;const{apiPathProps:o,availablePluginMap:s={},uploadedProps:r}=e,c=(0,Td.iB)(null===o||void 0===o?void 0:o.companion),p=async e=>(await Td.hi.post("/api/image/generations",e)).data,u={maxFileSize:1/0,...null===e||void 0===e||null===(t=e.coreProps)||void 0===t?void 0:t.restrictions};return[{id:"ImageEditor",plugin:Jl,options:{quality:1},alwayUse:!0},(mm||(0,Td.oE)()&&!(0,Td.bp)())&&{id:"Uploaded",plugin:em,options:{params:null===r||void 0===r?void 0:r.params}},(mm||(0,Td.oE)()&&!(0,Td.bp)())&&{id:"Resources",plugin:rm,options:{params:null===r||void 0===r?void 0:r.params}},(0,Td.oE)()&&(0,Td.lz)()&&s.AIImage&&{id:"AIImage",plugin:pm,options:{companionUrl:c},onShowPanel:e=>{!function t(){setTimeout((()=>{const i=document.getElementById("ai-image");var n,o;i?(0,l.s)(i).render((0,a.jsx)(um,{api:p,restrictions:u,i18n:null===(n=e.current)||void 0===n||null===(o=n.getUploader())||void 0===o?void 0:o.i18n,onSelect:t=>{const i=e.current.getUploader();null===i||void 0===i||i.emit("ai-image:selected",t),t.forEach(((e,t)=>{const n="AI Image [".concat(t+1,"].png"),a={name:n,type:"image/png",data:(0,Td.Ll)(e,n),source:"AIImage",isRemote:!1};null===i||void 0===i||i.addFile(a)}))}})):t()}),100)}()}},{id:"Url",plugin:ki,options:{companionUrl:c}},{id:"Webcam",plugin:wt,options:{}},!(null===(i=window)||void 0===i||null===(n=i.blocklet)||void 0===n||!n.UNSPLASH_KEY)&&s.Unsplash&&{id:"Unsplash",plugin:Ua,options:{companionUrl:c,companionHeaders:{},companionCookiesRule:"same-origin"}},{id:"PrepareUpload",plugin:cm,options:{companionUrl:c},alwayUse:!0},{id:"ThumbnailGeneratorNext",plugin:Js,options:{thumbnailType:"image/png",thumbnailWidth:800},alwayUse:!0}].filter(Boolean)})({...e,apiPathProps:i,availablePluginMap:n.availablePluginMap}),{plugins:g=o.map((e=>e.id)),id:v="Uploader",popup:b=!1,uploadedProps:y,onOpen:x,onClose:w,locale:P,installerProps:S}=e,k=s()(o,"id"),_=(0,m.Z)((e=>{var t;return null===e||void 0===e||null===(t=e.breakpoints)||void 0===t?void 0:t.down("md")})),C=ja()([...g,...o.filter((e=>e.alwayUse)).map((e=>e.id))]);function F(e){if(e=e.replace(/\s/g,""),["MyDevice",...C].map((e=>e.toLowerCase())).includes(e.toLowerCase())){var t,i,n,a;let o='div[data-uppy-acquirer-id="'.concat(e,'"] > button');null===(t=document)||void 0===t||null===(i=t.getElementById(hm))||void 0===i||null===(n=i.querySelector(o))||void 0===n||null===(a=n.click)||void 0===a||a.call(n)}}function T(e){var t,i,a,o;n.open=!0,e&&setTimeout((()=>{F(e)}),200),n.uppy.emitOpen(),null===x||void 0===x||x(),null===(t=document.activeElement)||void 0===t||null===(i=t.blur)||void 0===i||i.call(t);const s=n.uppy.getPlugin(hm).el;null===s||void 0===s||null===(a=s.focus)||void 0===a||a.call(s),null===s||void 0===s||null===(o=s.click)||void 0===o||o.call(s)}function O(){var e;null===(e=n.uppy.getPlugin(hm))||void 0===e||e.hideAllPanels(),n.open=!1,n.uppy.emitClose(),null===w||void 0===w||w(),setTimeout((()=>{100===n.uppy.getState().totalProgress&&(n.uppy.setState({files:{},currentUploads:{}}),n.uppy.calculateTotalProgress())}),500)}(0,c.useLayoutEffect)((()=>{(0,Td.oE)()&&!i.disableMediaKitPrefix&&Td.hi.get("/api/uploader/status").then((e=>{let{data:t}=e;n.availablePluginMap=t.availablePluginMap}))}),[]),(0,Aa.Z)("esc",(e=>{n.open&&(e.stopPropagation(),e.preventDefault(),O())}),{useCapture:!0}),(0,c.useEffect)((()=>{n.uppy=fm({...e,id:v,plugins:C,apiPathProps:i,pluginList:o}),n.uppy.open=T,n.uppy.close=O,n.uppy.openPlugin=F,n.uppy.on("dashboard:show-panel",(e=>{const{onShowPanel:i}=k[e];null===i||void 0===i||i(t)})),(C.includes("Uploaded")||C.includes("Resources"))&&(n.uppy.off("uploaded:selected"),n.uppy.on("uploaded:selected",(e=>{var t;e.forEach((e=>{n.uppy.emitUploadSuccess({id:e._id},{data:e,isMock:!0})})),null===y||void 0===y||null===(t=y.onSelectedFiles)||void 0===t||t.call(y,e),O()})))}),[JSON.stringify({id:v,plugins:C,apiPathProps:i,locale:P})]),(0,c.useImperativeHandle)(t,(()=>({getUploader:()=>n.uppy,open:T,close:O}))),(0,c.useEffect)((()=>{(0,Td.ac)(i.disableMediaKitPrefix)}),[i.disableMediaKitPrefix]);const E=b?p.Z:c.Fragment,D=b?{sx:{zIndex:99999999999,background:"rgba(0,0,0,0.5)","& > *":{display:n.open?"block":"none"}},invisible:!0,open:n.open,onClick:e=>{document.activeElement===document.body&&(e.stopPropagation(),O())},...e.wrapperProps}:{...e.wrapperProps},R=_?"42px":"40px";return(0,a.jsx)(E,{...D,children:(0,a.jsxs)(dd,{onClose:O,did:"z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9",...S,children:[(0,a.jsx)(u.Z,{styles:()=>({".uppy-is-drag-over":{"&::after":{transition:"all 0.3s ease-in-out",border:"2px dashed #bbb !important",borderRadius:4,background:"rgba(234, 234, 234, 0.5)"}}})}),(0,a.jsxs)(h.Z,{id:dm,onClick:e=>e.stopPropagation(),sx:{position:"relative",width:_?"90vw":720,".uppy-Dashboard-Item-previewInnerWrap, .uppy-ProviderBrowserItem-inner img":{background:"repeating-conic-gradient(#bdbdbd33 0 25%,#fff 0 50%) 50%/16px 16px !important"},".uploaded-add-item":{background:"rgba(0,0,0,0.1)",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s ease-in-out","&:hover":{background:"rgba(0,0,0,0.13)"}},".uppy-StatusBar-actions, .uppy-ProviderBrowser-footer":{justifyContent:"flex-end"},".uppy-ProviderBrowser-footer":{button:{marginRight:"0 !important","&:last-child":{display:"none"}}},".uppy-Dashboard-AddFiles-title":{whiteSpace:"normal"},".uppy-ProviderBrowser-body":{background:"#fff",height:"100%"},".uppy-ProviderBrowser-list":{height:"fit-content",maxHeight:"100%"},".uploaded, .ai-image":{width:"100%",height:"100%",display:"flex",alignItems:"center",flexDirection:"column","& > div":{width:"100%"},"& .uppy-ProviderBrowser-header":{display:"none"}},"& .uppy-Url":{width:"100% !important",display:"flex",justifyContent:"center","& input":{width:"70%"}}},children:[(0,a.jsx)(d.Z,{"aria-label":"close",onClick:O,sx:{color:"#fafafa",position:"absolute",..._?{bottom:"calc(0px - ".concat(R," - 16px)"),left:"calc(50vw - ".concat(R," - 8px)")}:{right:"calc(0px - ".concat(R," - 16px)"),top:-12}},children:(0,a.jsx)(f,{sx:{fontSize:R}})}),n.uppy&&(0,a.jsx)(Fl,{inline:!0,target:"#".concat(dm),id:hm,uppy:n.uppy,plugins:C,fileManagerSelectionType:"both",proudlyDisplayPoweredByUppy:!1,showProgressDetails:!0,disableThumbnailGenerator:!0,note:"",doneButtonHandler:O,...e.dashboardProps})]},"uploader-container")]})},"uploader-wrapper")})),vm=gm},98722:(e,t,i)=>{"use strict";i.d(t,{hi:()=>dt,Ll:()=>at,hl:()=>nt,oQ:()=>ft,lz:()=>st,km:()=>ot,r6:()=>it,oE:()=>rt,Uu:()=>tt,iB:()=>ht,Gr:()=>mt,vi:()=>yt,bp:()=>lt,ac:()=>ut});var n={};function a(e,t){return function(){return e.apply(t,arguments)}}i.r(n),i.d(n,{hasBrowserEnv:()=>ae,hasStandardBrowserEnv:()=>oe,hasStandardBrowserWebWorkerEnv:()=>re});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,r=(l=Object.create(null),e=>{const t=o.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const c=e=>(e=e.toLowerCase(),t=>r(t)===e),p=e=>t=>typeof t===e,{isArray:u}=Array,d=p("undefined");const h=c("ArrayBuffer");const m=p("string"),f=p("function"),g=p("number"),v=e=>null!==e&&"object"===typeof e,b=e=>{if("object"!==r(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},y=c("Date"),x=c("File"),w=c("Blob"),P=c("FileList"),S=c("URLSearchParams");function k(e,t){let i,n,{allOwnKeys:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),u(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{const n=a?Object.getOwnPropertyNames(e):Object.keys(e),o=n.length;let s;for(i=0;i<o;i++)s=n[i],t.call(null,e[s],s,e)}}function _(e,t){t=t.toLowerCase();const i=Object.keys(e);let n,a=i.length;for(;a-- >0;)if(n=i[a],t===n.toLowerCase())return n;return null}const C="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,F=e=>!d(e)&&e!==C;const T=(O="undefined"!==typeof Uint8Array&&s(Uint8Array),e=>O&&e instanceof O);var O;const E=c("HTMLFormElement"),D=(e=>{let{hasOwnProperty:t}=e;return(e,i)=>t.call(e,i)})(Object.prototype),R=c("RegExp"),U=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};k(i,((i,a)=>{let o;!1!==(o=t(i,a,e))&&(n[a]=o||i)})),Object.defineProperties(e,n)},I="abcdefghijklmnopqrstuvwxyz",j="0123456789",A={DIGIT:j,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+j};const N=c("AsyncFunction"),B={isArray:u,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=r(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:b,isUndefined:d,isDate:y,isFile:x,isBlob:w,isRegExp:R,isFunction:f,isStream:e=>v(e)&&f(e.pipe),isURLSearchParams:S,isTypedArray:T,isFileList:P,forEach:k,merge:function e(){const{caseless:t}=F(this)&&this||{},i={},n=(n,a)=>{const o=t&&_(i,a)||a;b(i[o])&&b(n)?i[o]=e(i[o],n):b(n)?i[o]=e({},n):u(n)?i[o]=n.slice():i[o]=n};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&k(arguments[a],n);return i},extend:function(e,t,i){let{allOwnKeys:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return k(t,((t,n)=>{i&&f(t)?e[n]=a(t,i):e[n]=t}),{allOwnKeys:n}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,n)=>{let a,o,r;const l={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)r=a[o],n&&!n(r,e,t)||l[r]||(t[r]=e[r],l[r]=!0);e=!1!==i&&s(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:c,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return-1!==n&&n===i},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!g(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=i.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let i;const n=[];for(;null!==(i=e.exec(t));)n.push(i);return n},isHTMLForm:E,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:U,freezeMethods:e=>{U(e,((t,i)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=e[i];f(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},toObjectSet:(e,t)=>{const i={},n=e=>{e.forEach((e=>{i[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,i){return t.toUpperCase()+i})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:_,global:C,isContextDefined:F,ALPHABET:A,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.ALPHA_DIGIT,i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),i=(e,n)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const a=u(e)?[]:{};return k(e,((e,t)=>{const o=i(e,n+1);!d(o)&&(a[t]=o)})),t[n]=void 0,a}}return e};return i(e,0)},isAsyncFn:N,isThenable:e=>e&&(v(e)||f(e))&&f(e.then)&&f(e.catch)};function M(e,t,i,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),a&&(this.response=a)}B.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const L=M.prototype,z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{z[e]={value:e}})),Object.defineProperties(M,z),Object.defineProperty(L,"isAxiosError",{value:!0}),M.from=(e,t,i,n,a,o)=>{const s=Object.create(L);return B.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),M.call(s,e.message,t,i,n,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const q=M;var H=i(55227).Buffer;function W(e){return B.isPlainObject(e)||B.isArray(e)}function V(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,i){return e?e.concat(t).map((function(e,t){return e=V(e),!i&&t?"["+e+"]":e})).join(i?".":""):t}const K=B.toFlatObject(B,{},null,(function(e){return/^is[A-Z]/.test(e)}));const X=function(e,t,i){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(i=B.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!B.isUndefined(t[e])}))).metaTokens,a=i.visitor||c,o=i.dots,s=i.indexes,r=(i.Blob||"undefined"!==typeof Blob&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(a))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(B.isDate(e))return e.toISOString();if(!r&&B.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(e)||B.isTypedArray(e)?r&&"function"===typeof Blob?new Blob([e]):H.from(e):e}function c(e,i,a){let r=e;if(e&&!a&&"object"===typeof e)if(B.endsWith(i,"{}"))i=n?i:i.slice(0,-2),e=JSON.stringify(e);else if(B.isArray(e)&&function(e){return B.isArray(e)&&!e.some(W)}(e)||(B.isFileList(e)||B.endsWith(i,"[]"))&&(r=B.toArray(e)))return i=V(i),r.forEach((function(e,n){!B.isUndefined(e)&&null!==e&&t.append(!0===s?G([i],n,o):null===s?i:i+"[]",l(e))})),!1;return!!W(e)||(t.append(G(a,i,o),l(e)),!1)}const p=[],u=Object.assign(K,{defaultVisitor:c,convertValue:l,isVisitable:W});if(!B.isObject(e))throw new TypeError("data must be an object");return function e(i,n){if(!B.isUndefined(i)){if(-1!==p.indexOf(i))throw Error("Circular reference detected in "+n.join("."));p.push(i),B.forEach(i,(function(i,o){!0===(!(B.isUndefined(i)||null===i)&&a.call(t,i,B.isString(o)?o.trim():o,n,u))&&e(i,n?n.concat(o):[o])})),p.pop()}}(e),t};function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Z(e,t){this._pairs=[],e&&X(e,this,t)}const J=Z.prototype;J.append=function(e,t){this._pairs.push([e,t])},J.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Q=Z;function $(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ee(e,t,i){if(!t)return e;const n=i&&i.encode||$,a=i&&i.serialize;let o;if(o=a?a(t,i):B.isURLSearchParams(t)?t.toString():new Q(t,i).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const te=class{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ae="undefined"!==typeof window&&"undefined"!==typeof document,oe=(se="undefined"!==typeof navigator&&navigator.product,ae&&["ReactNative","NativeScript","NS"].indexOf(se)<0);var se;const re="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,le={...n,...ne};const ce=function(e){function t(e,i,n,a){let o=e[a++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),r=a>=e.length;if(o=!o&&B.isArray(n)?n.length:o,r)return B.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!s;n[o]&&B.isObject(n[o])||(n[o]=[]);return t(e,i,n[o],a)&&B.isArray(n[o])&&(n[o]=function(e){const t={},i=Object.keys(e);let n;const a=i.length;let o;for(n=0;n<a;n++)o=i[n],t[o]=e[o];return t}(n[o])),!s}if(B.isFormData(e)&&B.isFunction(e.entries)){const i={};return B.forEachEntry(e,((e,n)=>{t(function(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,i,0)})),i}return null};const pe={transitional:ie,adapter:["xhr","http"],transformRequest:[function(e,t){const i=t.getContentType()||"",n=i.indexOf("application/json")>-1,a=B.isObject(e);a&&B.isHTMLForm(e)&&(e=new FormData(e));if(B.isFormData(e))return n?JSON.stringify(ce(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return X(e,new le.classes.URLSearchParams,Object.assign({visitor:function(e,t,i,n){return le.isNode&&B.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=B.isFileList(e))||i.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return X(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||n?(t.setContentType("application/json",!1),function(e,t,i){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(i||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pe.transitional,i=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&B.isString(e)&&(i&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(a){if(i){if("SyntaxError"===a.name)throw q.from(a,q.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],(e=>{pe.headers[e]={}}));const ue=pe,de=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),he=Symbol("internals");function me(e){return e&&String(e).trim().toLowerCase()}function fe(e){return!1===e||null==e?e:B.isArray(e)?e.map(fe):String(e)}function ge(e,t,i,n,a){return B.isFunction(n)?n.call(this,t,i):(a&&(t=i),B.isString(t)?B.isString(n)?-1!==t.indexOf(n):B.isRegExp(n)?n.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,i){const n=this;function a(e,t,i){const a=me(t);if(!a)throw new Error("header name must be a non-empty string");const o=B.findKey(n,a);(!o||void 0===n[o]||!0===i||void 0===i&&!1!==n[o])&&(n[o||t]=fe(e))}const o=(e,t)=>B.forEach(e,((e,i)=>a(e,i,t)));return B.isPlainObject(e)||e instanceof this.constructor?o(e,t):B.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let i,n,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),i=e.substring(0,a).trim().toLowerCase(),n=e.substring(a+1).trim(),!i||t[i]&&de[i]||("set-cookie"===i?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)})),t})(e),t):null!=e&&a(t,e,i),this}get(e,t){if(e=me(e)){const i=B.findKey(this,e);if(i){const e=this[i];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)t[n[1]]=n[2];return t}(e);if(B.isFunction(t))return t.call(this,e,i);if(B.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=me(e)){const i=B.findKey(this,e);return!(!i||void 0===this[i]||t&&!ge(0,this[i],i,t))}return!1}delete(e,t){const i=this;let n=!1;function a(e){if(e=me(e)){const a=B.findKey(i,e);!a||t&&!ge(0,i[a],a,t)||(delete i[a],n=!0)}}return B.isArray(e)?e.forEach(a):a(e),n}clear(e){const t=Object.keys(this);let i=t.length,n=!1;for(;i--;){const a=t[i];e&&!ge(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}normalize(e){const t=this,i={};return B.forEach(this,((n,a)=>{const o=B.findKey(i,a);if(o)return t[o]=fe(n),void delete t[a];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,i)=>t.toUpperCase()+i))}(a):String(a).trim();s!==a&&delete t[a],t[s]=fe(n),i[s]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return B.forEach(this,((i,n)=>{null!=i&&!1!==i&&(t[n]=e&&B.isArray(i)?i.join(", "):i)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,i]=e;return t+": "+i})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[he]=this[he]={accessors:{}}).accessors,i=this.prototype;function n(e){const n=me(e);t[n]||(!function(e,t){const i=B.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+i,{value:function(e,i,a){return this[n].call(this,t,e,i,a)},configurable:!0})}))}(i,e),t[n]=!0)}return B.isArray(e)?e.forEach(n):n(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(ve.prototype,((e,t)=>{let{value:i}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>i,set(e){this[n]=e}}})),B.freezeMethods(ve);const be=ve;function ye(e,t){const i=this||ue,n=t||i,a=be.from(n.headers);let o=n.data;return B.forEach(e,(function(e){o=e.call(i,o,a.normalize(),t?t.status:void 0)})),a.normalize(),o}function xe(e){return!(!e||!e.__CANCEL__)}function we(e,t,i){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,i),this.name="CanceledError"}B.inherits(we,q,{__CANCEL__:!0});const Pe=we;const Se=le.hasStandardBrowserEnv?{write(e,t,i,n,a,o){const s=[e+"="+encodeURIComponent(t)];B.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),B.isString(n)&&s.push("path="+n),B.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ke(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _e=le.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let i;function n(i){let n=i;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return i=n(window.location.href),function(e){const t=B.isString(e)?n(e):e;return t.protocol===i.protocol&&t.host===i.host}}():function(){return!0};const Ce=function(e,t){e=e||10;const i=new Array(e),n=new Array(e);let a,o=0,s=0;return t=void 0!==t?t:1e3,function(r){const l=Date.now(),c=n[s];a||(a=l),i[o]=r,n[o]=l;let p=s,u=0;for(;p!==o;)u+=i[p++],p%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-a<t)return;const d=c&&l-c;return d?Math.round(1e3*u/d):void 0}};function Fe(e,t){let i=0;const n=Ce(50,250);return a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,r=o-i,l=n(r);i=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:r,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const Te={http:null,xhr:"undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,i){let n=e.data;const a=be.from(e.headers).normalize();let o,s,{responseType:r,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(B.isFormData(n))if(le.hasStandardBrowserEnv||le.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if(!1!==(s=a.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}let p=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",i=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+i))}const u=ke(e.baseURL,e.url);function d(){if(!p)return;const n=be.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());!function(e,t,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?t(new q("Request failed with status code "+i.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}((function(e){t(e),c()}),(function(e){i(e),c()}),{data:r&&"text"!==r&&"json"!==r?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}if(p.open(e.method.toUpperCase(),ee(u,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=d:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(d)},p.onabort=function(){p&&(i(new q("Request aborted",q.ECONNABORTED,e,p)),p=null)},p.onerror=function(){i(new q("Network Error",q.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||ie;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new q(t,n.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,p)),p=null},le.hasStandardBrowserEnv&&(l&&B.isFunction(l)&&(l=l(e)),l||!1!==l&&_e(u))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Se.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===n&&a.setContentType(null),"setRequestHeader"in p&&B.forEach(a.toJSON(),(function(e,t){p.setRequestHeader(t,e)})),B.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),r&&"json"!==r&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",Fe(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",Fe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{p&&(i(!t||t.type?new Pe(null,e,p):t),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);h&&-1===le.protocols.indexOf(h)?i(new q("Unsupported protocol "+h+":",q.ERR_BAD_REQUEST,e)):p.send(n||null)}))}};B.forEach(Te,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(i){}Object.defineProperty(e,"adapterName",{value:t})}}));const Oe=e=>"- ".concat(e),Ee=e=>B.isFunction(e)||null===e||!1===e,De=e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let i,n;const a={};for(let o=0;o<t;o++){let t;if(i=e[o],n=i,!Ee(i)&&(n=Te[(t=String(i)).toLowerCase()],void 0===n))throw new q("Unknown adapter '".concat(t,"'"));if(n)break;a[t||"#"+o]=n}if(!n){const e=Object.entries(a).map((e=>{let[t,i]=e;return"adapter ".concat(t," ")+(!1===i?"is not supported by the environment":"is not available in the build")}));let i=t?e.length>1?"since :\n"+e.map(Oe).join("\n"):" "+Oe(e[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n};function Re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function Ue(e){Re(e),e.headers=be.from(e.headers),e.data=ye.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return De(e.adapter||ue.adapter)(e).then((function(t){return Re(e),t.data=ye.call(e,e.transformResponse,t),t.headers=be.from(t.headers),t}),(function(t){return xe(t)||(Re(e),t&&t.response&&(t.response.data=ye.call(e,e.transformResponse,t.response),t.response.headers=be.from(t.response.headers))),Promise.reject(t)}))}const Ie=e=>e instanceof be?e.toJSON():e;function je(e,t){t=t||{};const i={};function n(e,t,i){return B.isPlainObject(e)&&B.isPlainObject(t)?B.merge.call({caseless:i},e,t):B.isPlainObject(t)?B.merge({},t):B.isArray(t)?t.slice():t}function a(e,t,i){return B.isUndefined(t)?B.isUndefined(e)?void 0:n(void 0,e,i):n(e,t,i)}function o(e,t){if(!B.isUndefined(t))return n(void 0,t)}function s(e,t){return B.isUndefined(t)?B.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function r(i,a,o){return o in t?n(i,a):o in e?n(void 0,i):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(e,t)=>a(Ie(e),Ie(t),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=l[n]||a,s=o(e[n],t[n],n);B.isUndefined(s)&&o!==r||(i[n]=s)})),i}const Ae="1.6.7",Ne={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ne[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));const Be={};Ne.transitional=function(e,t,i){function n(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(i?". "+i:"")}return(i,a,o)=>{if(!1===e)throw new q(n(a," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!Be[a]&&(Be[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,a,o)}};const Me={assertOptions:function(e,t,i){if("object"!==typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const o=n[a],s=t[o];if(s){const t=e[o],i=void 0===t||s(t,o,e);if(!0!==i)throw new q("option "+o+" must be "+i,q.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new q("Unknown option "+o,q.ERR_BAD_OPTION)}},validators:Ne},Le=Me.validators;class ze{constructor(e){this.defaults=e,this.interceptors={request:new te,response:new te}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";i.stack?t&&!String(i.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(i.stack+="\n"+t):i.stack=t}throw i}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=je(this.defaults,t);const{transitional:i,paramsSerializer:n,headers:a}=t;void 0!==i&&Me.assertOptions(i,{silentJSONParsing:Le.transitional(Le.boolean),forcedJSONParsing:Le.transitional(Le.boolean),clarifyTimeoutError:Le.transitional(Le.boolean)},!1),null!=n&&(B.isFunction(n)?t.paramsSerializer={serialize:n}:Me.assertOptions(n,{encode:Le.function,serialize:Le.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&B.merge(a.common,a[t.method]);a&&B.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=be.concat(o,a);const s=[];let r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let p,u=0;if(!r){const e=[Ue.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),p=e.length,c=Promise.resolve(t);u<p;)c=c.then(e[u++],e[u++]);return c}p=s.length;let d=t;for(u=0;u<p;){const e=s[u++],t=s[u++];try{d=e(d)}catch(h){t.call(this,h);break}}try{c=Ue.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,p=l.length;u<p;)c=c.then(l[u++],l[u++]);return c}getUri(e){return ee(ke((e=je(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}B.forEach(["delete","get","head","options"],(function(e){ze.prototype[e]=function(t,i){return this.request(je(i||{},{method:e,url:t,data:(i||{}).data}))}})),B.forEach(["post","put","patch"],(function(e){function t(t){return function(i,n,a){return this.request(je(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}ze.prototype[e]=t(),ze.prototype[e+"Form"]=t(!0)}));const qe=ze;class He{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const i=this;this.promise.then((e=>{if(!i._listeners)return;let t=i._listeners.length;for(;t-- >0;)i._listeners[t](e);i._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e((function(e,n,a){i.reason||(i.reason=new Pe(e,n,a),t(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new He((function(t){e=t})),cancel:e}}}const We=He;const Ve={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ve).forEach((e=>{let[t,i]=e;Ve[i]=t}));const Ge=Ve;const Ke=function e(t){const i=new qe(t),n=a(qe.prototype.request,i);return B.extend(n,qe.prototype,i,{allOwnKeys:!0}),B.extend(n,i,null,{allOwnKeys:!0}),n.create=function(i){return e(je(t,i))},n}(ue);Ke.Axios=qe,Ke.CanceledError=Pe,Ke.CancelToken=We,Ke.isCancel=xe,Ke.VERSION=Ae,Ke.toFormData=X,Ke.AxiosError=q,Ke.Cancel=Ke.CanceledError,Ke.all=function(e){return Promise.all(e)},Ke.spread=function(e){return function(t){return e.apply(null,t)}},Ke.isAxiosError=function(e){return B.isObject(e)&&!0===e.isAxiosError},Ke.mergeConfig=je,Ke.AxiosHeaders=be,Ke.formToJSON=e=>ce(B.isHTMLForm(e)?new FormData(e):e),Ke.getAdapter=De,Ke.HttpStatusCode=Ge,Ke.default=Ke;const Xe=Ke;var Ye,Ze,Je,Qe=i(6352),$e=i.n(Qe),et=i(80068);const tt=e=>{var t,i,n,a,o;let s=null;return e&&e instanceof Blob?(null!==(t=window)&&void 0!==t&&t.createObjectURL?s=window.createObjectURL(e):null!==(i=window)&&void 0!==i&&null!==(n=i.URL)&&void 0!==n&&n.createObjectURL?s=window.URL.createObjectURL(e):null!==(a=window)&&void 0!==a&&null!==(o=a.webkitURL)&&void 0!==o&&o.createObjectURL&&(s=window.webkitURL.createObjectURL(e)),s):null},it=e=>{const{type:t,name:i}=e;if(i.startsWith(".")&&!et.lookup(i))return!1;const n=et.lookup(i);return n?et.extension(n)||"":et.extension(t)};function nt(e,t){return new File([e],t,{type:e.type})}function at(e,t){var i;let n=e.split(","),a=null===(i=n[0].match(/:(.*?);/))||void 0===i?void 0:i[1],o=atob(n[1]),s=o.length,r=new Uint8Array(s);for(;s--;)r[s]=o.charCodeAt(s);return new File([r],t,{type:a})}function ot(e){const t=new URL(e);return t.searchParams.delete("w"),t.searchParams.delete("h"),t.searchParams.delete("q"),t.href}const st=()=>{var e,t,i;return null===(e=window)||void 0===e||null===(t=e.blocklet)||void 0===t||null===(i=t.componentMountPoints)||void 0===i?void 0:i.find((e=>"z8ia3xzq2tMq8CRHfaXj1BTYJyYnEcHbqP8cJ"===e.did))},rt=()=>{var e,t,i;return null===(e=window)||void 0===e||null===(t=e.blocklet)||void 0===t||null===(i=t.componentMountPoints)||void 0===i?void 0:i.find((e=>"z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9"===e.did))},lt=()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.blocklet)||void 0===t?void 0:t.componentId.indexOf("z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9"))>-1},ct=null===(Ye=rt())||void 0===Ye?void 0:Ye.mountPoint;let pt=ct||(null===(Ze=window)||void 0===Ze||null===(Je=Ze.blocklet)||void 0===Je?void 0:Je.prefix)||"/";const ut=e=>{var t,i;pt=(e?"":ct)||(null===(t=window)||void 0===t||null===(i=t.blocklet)||void 0===i?void 0:i.prefix)||"/"},dt=Xe.create();function ht(e){return $e()(window.location.origin,"/"===pt?"":pt,e||"")}function mt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const n=t.filter(Boolean).map((e=>"/"===e?"":e));return $e()(...n)}function ft(e){var t;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{CDN_HOST:a=""}=(null===(t=window)||void 0===t?void 0:t.blocklet)||{},o=new URL(a||window.location.origin);o.pathname=$e()("/"===pt?"":pt,"/uploads/",e);const s=e.split(".").pop()||"";return["png","jpg","jpeg","webp"].includes(s)&&(i&&(o.searchParams.set("imageFilter","resize"),o.searchParams.set("w",i.toString())),n&&(o.searchParams.set("imageFilter","resize"),o.searchParams.set("h",n.toString()))),o.href}dt.interceptors.request.use((e=>(e.baseURL=pt||"/",e.timeout=2e5,e)),(e=>Promise.reject(e)));const gt="uploader-upload-success",vt="uploader-open",bt="uploader-close";function yt(e){return e.getUploadSuccessKey=e=>null!==e&&void 0!==e&&e.id?"".concat(gt,":").concat(e.id):gt,e.offUploadSuccess=t=>{e.off(e.getUploadSuccessKey(t))},e.uploadSuccessHandler=(t,i,n)=>{"function"===typeof t&&(i=t,t={});const a=e.getUploadSuccessKey(t);e.offUploadSuccess(t),n?e.once(a,((e,t)=>{i({file:e,response:t})})):e.on(a,((e,t)=>{i({file:e,response:t})}))},e.onceUploadSuccess=(t,i)=>{e.uploadSuccessHandler(t,i,!0)},e.onUploadSuccess=(t,i)=>{e.uploadSuccessHandler(t,i,!1)},e.emitUploadSuccess=(t,i)=>{const n=e.getUploadSuccessKey(t);e.emit(n,t,i)},e.uploadFile=async t=>new Promise(((i,n)=>{const{name:a,type:o}=t,s=e.addFile({name:a,type:o,data:t,source:"function-upload-file",isRemote:!1}),r=e.getFile(s);e.onceUploadSuccess(r,(t=>{e.removeFiles([s]),i(t)})),e.once("error",(t=>{e.offUploadSuccess(r),e.removeFiles([s]),n(t)})),e.upload()})),e.removeFiles=t=>{const{files:i,currentUploads:n}=e.getState(),a={...i},o={...n},s=Object.create(null);function r(e){return void 0===s[e]}t.forEach((e=>{i[e]&&(s[e]=i[e],delete a[e])})),Object.keys(o).forEach((t=>{const i=n[t].fileIDs.filter(r);if(0===i.length)return void delete o[t];const{capabilities:a}=e.getState();if(i.length!==n[t].fileIDs.length&&!a.individualCancellation)throw new Error("individualCancellation is disabled");o[t]={...n[t],fileIDs:i}}));const l={currentUploads:o,files:a};0===Object.keys(a).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),e.setState(l),e.calculateTotalProgress();const c=Object.keys(s);c.length>5?e.log("Removed ".concat(c.length," files")):e.log("Removed files: ".concat(c.join(", ")))},e.emitOpen=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];e.emit(vt,...i)},e.onOpen=t=>{e.off(vt),e.once(vt,t)},e.emitClose=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];e.emit(bt,...i)},e.onClose=t=>{e.off(bt),e.once(bt,t)},e.calculateTotalProgress=()=>{const t=e.getFiles(),i=t.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===i.length)return e.emit("progress",0),void e.setState({totalProgress:0});const n=i.filter((e=>null!=e.progress.bytesTotal)),a=i.filter((e=>null==e.progress.bytesTotal));if(0===n.length){const t=100*i.length,n=a.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/t*100);return void e.setState({totalProgress:o})}let o=n.reduce(((e,t)=>e+t.progress.bytesTotal),0);const s=o/n.length;o+=s*a.length;let r=0;n.forEach((e=>{r+=e.progress.bytesUploaded})),a.forEach((e=>{r+=s*(e.progress.percentage||0)/100}));const l=t.filter((e=>e.progress.uploadComplete)).length===t.length;let c=0===o?l?100:0:Math.round(r/o*100);c>100&&(c=100),e.setState({totalProgress:c}),e.emit("progress",c)},e}},93197:e=>{"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function a(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var r=new a(n,o||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],r]:e._events[l].push(r):(e._events[l]=r,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function r(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),r.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},r.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,o=n.length,s=new Array(o);a<o;a++)s[a]=n[a].fn;return s},r.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},r.prototype.emit=function(e,t,n,a,o,s){var r=i?i+e:e;if(!this._events[r])return!1;var l,c,p=this._events[r],u=arguments.length;if(p.fn){switch(p.once&&this.removeListener(e,p.fn,void 0,!0),u){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,t),!0;case 3:return p.fn.call(p.context,t,n),!0;case 4:return p.fn.call(p.context,t,n,a),!0;case 5:return p.fn.call(p.context,t,n,a,o),!0;case 6:return p.fn.call(p.context,t,n,a,o,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];p.fn.apply(p.context,l)}else{var d,h=p.length;for(c=0;c<h;c++)switch(p[c].once&&this.removeListener(e,p[c].fn,void 0,!0),u){case 1:p[c].fn.call(p[c].context);break;case 2:p[c].fn.call(p[c].context,t);break;case 3:p[c].fn.call(p[c].context,t,n);break;case 4:p[c].fn.call(p[c].context,t,n,a);break;default:if(!l)for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];p[c].fn.apply(p[c].context,l)}}return!0},r.prototype.on=function(e,t,i){return o(this,e,t,i,!1)},r.prototype.once=function(e,t,i){return o(this,e,t,i,!0)},r.prototype.removeListener=function(e,t,n,a){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var r=this._events[o];if(r.fn)r.fn!==t||a&&!r.once||n&&r.context!==n||s(this,o);else{for(var l=0,c=[],p=r.length;l<p;l++)(r[l].fn!==t||a&&!r[l].once||n&&r[l].context!==n)&&c.push(r[l]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},r.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=i,r.EventEmitter=r,e.exports=r},80422:e=>{"use strict";e.exports=function(e){if("number"!==typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got ".concat(typeof e));const t=e<0,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return"".concat((t?"-":"")+e," B");const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),i.length-1);e=Number(e/1024**n);const a=i[n];return e>=10||e%1===0?"".concat((t?"-":"")+e.toFixed(0)," ").concat(a):"".concat((t?"-":"")+e.toFixed(1)," ").concat(a)}},91428:e=>{"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function a(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var r=new a(n,o||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],r]:e._events[l].push(r):(e._events[l]=r,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function r(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),r.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},r.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,o=n.length,s=new Array(o);a<o;a++)s[a]=n[a].fn;return s},r.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},r.prototype.emit=function(e,t,n,a,o,s){var r=i?i+e:e;if(!this._events[r])return!1;var l,c,p=this._events[r],u=arguments.length;if(p.fn){switch(p.once&&this.removeListener(e,p.fn,void 0,!0),u){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,t),!0;case 3:return p.fn.call(p.context,t,n),!0;case 4:return p.fn.call(p.context,t,n,a),!0;case 5:return p.fn.call(p.context,t,n,a,o),!0;case 6:return p.fn.call(p.context,t,n,a,o,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];p.fn.apply(p.context,l)}else{var d,h=p.length;for(c=0;c<h;c++)switch(p[c].once&&this.removeListener(e,p[c].fn,void 0,!0),u){case 1:p[c].fn.call(p[c].context);break;case 2:p[c].fn.call(p[c].context,t);break;case 3:p[c].fn.call(p[c].context,t,n);break;case 4:p[c].fn.call(p[c].context,t,n,a);break;default:if(!l)for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];p[c].fn.apply(p[c].context,l)}}return!0},r.prototype.on=function(e,t,i){return o(this,e,t,i,!1)},r.prototype.once=function(e,t,i){return o(this,e,t,i,!0)},r.prototype.removeListener=function(e,t,n,a){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var r=this._events[o];if(r.fn)r.fn!==t||a&&!r.once||n&&r.context!==n||s(this,o);else{for(var l=0,c=[],p=r.length;l<p;l++)(r[l].fn!==t||a&&!r[l].once||n&&r[l].context!==n)&&c.push(r[l]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},r.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=i,r.EventEmitter=r,e.exports=r},76631:function(e){e.exports=function(){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e){return l(e)||c(e)||p(e)||d()}function l(e){if(Array.isArray(e))return u(e)}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e,t){if(e){if("string"===typeof e)return u(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h="undefined"!==typeof window&&"undefined"!==typeof window.document,m=h?window:{},f=!(!h||!m.document.documentElement)&&"ontouchstart"in m.document.documentElement,g=!!h&&"PointerEvent"in m,v="cropper",b="all",y="crop",x="move",w="zoom",P="e",S="w",k="s",_="n",C="ne",F="nw",T="se",O="sw",E="".concat(v,"-crop"),D="".concat(v,"-disabled"),R="".concat(v,"-hidden"),U="".concat(v,"-hide"),I="".concat(v,"-invisible"),j="".concat(v,"-modal"),A="".concat(v,"-move"),N="".concat(v,"Action"),B="".concat(v,"Preview"),M="crop",L="move",z="none",q="crop",H="cropend",W="cropmove",V="cropstart",G="dblclick",K=f?"touchstart":"mousedown",X=f?"touchmove":"mousemove",Y=f?"touchend touchcancel":"mouseup",Z=g?"pointerdown":K,J=g?"pointermove":X,Q=g?"pointerup pointercancel":Y,$="ready",ee="resize",te="wheel",ie="zoom",ne="image/jpeg",ae=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,oe=/^data:/,se=/^data:image\/jpeg;base64,/,re=/^img|canvas$/i,le={viewMode:0,dragMode:M,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},ce='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',pe=Number.isNaN||m.isNaN;function ue(e){return"number"===typeof e&&!pe(e)}var de=function(e){return e>0&&e<1/0};function he(e){return"undefined"===typeof e}function me(t){return"object"===e(t)&&null!==t}var fe=Object.prototype.hasOwnProperty;function ge(e){if(!me(e))return!1;try{var t=e.constructor,i=t.prototype;return t&&i&&fe.call(i,"isPrototypeOf")}catch(n){return!1}}function ve(e){return"function"===typeof e}var be=Array.prototype.slice;function ye(e){return Array.from?Array.from(e):be.call(e)}function xe(e,t){return e&&ve(t)&&(Array.isArray(e)||ue(e.length)?ye(e).forEach((function(i,n){t.call(e,i,n,e)})):me(e)&&Object.keys(e).forEach((function(i){t.call(e,e[i],i,e)}))),e}var we=Object.assign||function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return me(e)&&i.length>0&&i.forEach((function(t){me(t)&&Object.keys(t).forEach((function(i){e[i]=t[i]}))})),e},Pe=/\.\d*(?:0|9){12}\d*$/;function Se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return Pe.test(e)?Math.round(e*t)/t:e}var ke=/^width|height|left|top|marginLeft|marginTop$/;function _e(e,t){var i=e.style;xe(t,(function(e,t){ke.test(t)&&ue(e)&&(e="".concat(e,"px")),i[t]=e}))}function Ce(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function Fe(e,t){if(t)if(ue(e.length))xe(e,(function(e){Fe(e,t)}));else if(e.classList)e.classList.add(t);else{var i=e.className.trim();i?i.indexOf(t)<0&&(e.className="".concat(i," ").concat(t)):e.className=t}}function Te(e,t){t&&(ue(e.length)?xe(e,(function(e){Te(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Oe(e,t,i){t&&(ue(e.length)?xe(e,(function(e){Oe(e,t,i)})):i?Fe(e,t):Te(e,t))}var Ee=/([a-z\d])([A-Z])/g;function De(e){return e.replace(Ee,"$1-$2").toLowerCase()}function Re(e,t){return me(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(De(t)))}function Ue(e,t,i){me(i)?e[t]=i:e.dataset?e.dataset[t]=i:e.setAttribute("data-".concat(De(t)),i)}function Ie(e,t){if(me(e[t]))try{delete e[t]}catch(i){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(i){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(De(t)))}var je=/\s\s*/,Ae=function(){var e=!1;if(h){var t=!1,i=function(){},n=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});m.addEventListener("test",i,n),m.removeEventListener("test",i,n)}return e}();function Ne(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;t.trim().split(je).forEach((function(t){if(!Ae){var o=e.listeners;o&&o[t]&&o[t][i]&&(a=o[t][i],delete o[t][i],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,a,n)}))}function Be(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;t.trim().split(je).forEach((function(t){if(n.once&&!Ae){var o=e.listeners,s=void 0===o?{}:o;a=function(){delete s[t][i],e.removeEventListener(t,a,n);for(var o=arguments.length,r=new Array(o),l=0;l<o;l++)r[l]=arguments[l];i.apply(e,r)},s[t]||(s[t]={}),s[t][i]&&e.removeEventListener(t,s[t][i],n),s[t][i]=a,e.listeners=s}e.addEventListener(t,a,n)}))}function Me(e,t,i){var n;return ve(Event)&&ve(CustomEvent)?n=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,i),e.dispatchEvent(n)}function Le(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ze=m.location,qe=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function He(e){var t=e.match(qe);return null!==t&&(t[1]!==ze.protocol||t[2]!==ze.hostname||t[3]!==ze.port)}function We(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function Ve(e){var t=e.rotate,i=e.scaleX,n=e.scaleY,a=e.translateX,o=e.translateY,s=[];ue(a)&&0!==a&&s.push("translateX(".concat(a,"px)")),ue(o)&&0!==o&&s.push("translateY(".concat(o,"px)")),ue(t)&&0!==t&&s.push("rotate(".concat(t,"deg)")),ue(i)&&1!==i&&s.push("scaleX(".concat(i,")")),ue(n)&&1!==n&&s.push("scaleY(".concat(n,")"));var r=s.length?s.join(" "):"none";return{WebkitTransform:r,msTransform:r,transform:r}}function Ge(e){var t=s({},e),i=[];return xe(e,(function(e,n){delete t[n],xe(t,(function(t){var n=Math.abs(e.startX-t.startX),a=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),s=Math.abs(e.endY-t.endY),r=Math.sqrt(n*n+a*a),l=(Math.sqrt(o*o+s*s)-r)/r;i.push(l)}))})),i.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),i[0]}function Ke(e,t){var i=e.pageX,n=e.pageY,a={endX:i,endY:n};return t?a:s({startX:i,startY:n},a)}function Xe(e){var t=0,i=0,n=0;return xe(e,(function(e){var a=e.startX,o=e.startY;t+=a,i+=o,n+=1})),{pageX:t/=n,pageY:i/=n}}function Ye(e){var t=e.aspectRatio,i=e.height,n=e.width,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=de(n),s=de(i);if(o&&s){var r=i*t;"contain"===a&&r>n||"cover"===a&&r<n?i=n/t:n=i*t}else o?i=n/t:s&&(n=i*t);return{width:n,height:i}}function Ze(e){var t=e.width,i=e.height,n=e.degree;if(90===(n=Math.abs(n)%180))return{width:i,height:t};var a=n%90*Math.PI/180,o=Math.sin(a),s=Math.cos(a),r=t*s+i*o,l=t*o+i*s;return n>90?{width:l,height:r}:{width:r,height:l}}function Je(e,t,i,n){var a=t.aspectRatio,o=t.naturalWidth,s=t.naturalHeight,l=t.rotate,c=void 0===l?0:l,p=t.scaleX,u=void 0===p?1:p,d=t.scaleY,h=void 0===d?1:d,m=i.aspectRatio,f=i.naturalWidth,g=i.naturalHeight,v=n.fillColor,b=void 0===v?"transparent":v,y=n.imageSmoothingEnabled,x=void 0===y||y,w=n.imageSmoothingQuality,P=void 0===w?"low":w,S=n.maxWidth,k=void 0===S?1/0:S,_=n.maxHeight,C=void 0===_?1/0:_,F=n.minWidth,T=void 0===F?0:F,O=n.minHeight,E=void 0===O?0:O,D=document.createElement("canvas"),R=D.getContext("2d"),U=Ye({aspectRatio:m,width:k,height:C}),I=Ye({aspectRatio:m,width:T,height:E},"cover"),j=Math.min(U.width,Math.max(I.width,f)),A=Math.min(U.height,Math.max(I.height,g)),N=Ye({aspectRatio:a,width:k,height:C}),B=Ye({aspectRatio:a,width:T,height:E},"cover"),M=Math.min(N.width,Math.max(B.width,o)),L=Math.min(N.height,Math.max(B.height,s)),z=[-M/2,-L/2,M,L];return D.width=Se(j),D.height=Se(A),R.fillStyle=b,R.fillRect(0,0,j,A),R.save(),R.translate(j/2,A/2),R.rotate(c*Math.PI/180),R.scale(u,h),R.imageSmoothingEnabled=x,R.imageSmoothingQuality=P,R.drawImage.apply(R,[e].concat(r(z.map((function(e){return Math.floor(Se(e))}))))),R.restore(),D}var Qe=String.fromCharCode;function $e(e,t,i){var n="";i+=t;for(var a=t;a<i;a+=1)n+=Qe(e.getUint8(a));return n}var et=/^data:.*,/;function tt(e){var t=e.replace(et,""),i=atob(t),n=new ArrayBuffer(i.length),a=new Uint8Array(n);return xe(a,(function(e,t){a[t]=i.charCodeAt(t)})),n}function it(e,t){for(var i=[],n=8192,a=new Uint8Array(e);a.length>0;)i.push(Qe.apply(null,ye(a.subarray(0,n)))),a=a.subarray(n);return"data:".concat(t,";base64,").concat(btoa(i.join("")))}function nt(e){var t,i=new DataView(e);try{var n,a,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var s=i.byteLength,r=2;r+1<s;){if(255===i.getUint8(r)&&225===i.getUint8(r+1)){a=r;break}r+=1}if(a){var l=a+10;if("Exif"===$e(i,a+4,4)){var c=i.getUint16(l);if(((n=18761===c)||19789===c)&&42===i.getUint16(l+2,n)){var p=i.getUint32(l+4,n);p>=8&&(o=l+p)}}}if(o){var u,d,h=i.getUint16(o,n);for(d=0;d<h;d+=1)if(u=o+12*d+2,274===i.getUint16(u,n)){u+=8,t=i.getUint16(u,n),i.setUint16(u,1,n);break}}}catch(m){t=1}return t}function at(e){var t=0,i=1,n=1;switch(e){case 2:i=-1;break;case 3:t=-180;break;case 4:n=-1;break;case 5:t=90,n=-1;break;case 6:t=90;break;case 7:t=90,i=-1;break;case 8:t=-90}return{rotate:t,scaleX:i,scaleY:n}}var ot={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,i=this.container,n=this.cropper;Fe(n,R),Te(e,R);var a={width:Math.max(i.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=a,_e(n,{width:a.width,height:a.height}),Fe(e,R),Te(n,R)},initCanvas:function(){var e=this.containerData,t=this.imageData,i=this.options.viewMode,n=Math.abs(t.rotate)%180===90,a=n?t.naturalHeight:t.naturalWidth,o=n?t.naturalWidth:t.naturalHeight,s=a/o,r=e.width,l=e.height;e.height*s>e.width?3===i?r=e.height*s:l=e.width/s:3===i?l=e.width/s:r=e.height*s;var c={aspectRatio:s,naturalWidth:a,naturalHeight:o,width:r,height:l};c.left=(e.width-r)/2,c.top=(e.height-l)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=we({},t),this.initialCanvasData=we({},c)},limitCanvas:function(e,t){var i=this.options,n=this.containerData,a=this.canvasData,o=this.cropBoxData,s=i.viewMode,r=a.aspectRatio,l=this.cropped&&o;if(e){var c=Number(i.minCanvasWidth)||0,p=Number(i.minCanvasHeight)||0;s>1?(c=Math.max(c,n.width),p=Math.max(p,n.height),3===s&&(p*r>c?c=p*r:p=c/r)):s>0&&(c?c=Math.max(c,l?o.width:0):p?p=Math.max(p,l?o.height:0):l&&(c=o.width,(p=o.height)*r>c?c=p*r:p=c/r));var u=Ye({aspectRatio:r,width:c,height:p});c=u.width,p=u.height,a.minWidth=c,a.minHeight=p,a.maxWidth=1/0,a.maxHeight=1/0}if(t)if(s>(l?0:1)){var d=n.width-a.width,h=n.height-a.height;a.minLeft=Math.min(0,d),a.minTop=Math.min(0,h),a.maxLeft=Math.max(0,d),a.maxTop=Math.max(0,h),l&&this.limited&&(a.minLeft=Math.min(o.left,o.left+(o.width-a.width)),a.minTop=Math.min(o.top,o.top+(o.height-a.height)),a.maxLeft=o.left,a.maxTop=o.top,2===s&&(a.width>=n.width&&(a.minLeft=Math.min(0,d),a.maxLeft=Math.max(0,d)),a.height>=n.height&&(a.minTop=Math.min(0,h),a.maxTop=Math.max(0,h))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=n.width,a.maxTop=n.height},renderCanvas:function(e,t){var i=this.canvasData,n=this.imageData;if(t){var a=Ze({width:n.naturalWidth*Math.abs(n.scaleX||1),height:n.naturalHeight*Math.abs(n.scaleY||1),degree:n.rotate||0}),o=a.width,s=a.height,r=i.width*(o/i.naturalWidth),l=i.height*(s/i.naturalHeight);i.left-=(r-i.width)/2,i.top-=(l-i.height)/2,i.width=r,i.height=l,i.aspectRatio=o/s,i.naturalWidth=o,i.naturalHeight=s,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,_e(this.canvas,we({width:i.width,height:i.height},Ve({translateX:i.left,translateY:i.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,i=this.imageData,n=i.naturalWidth*(t.width/t.naturalWidth),a=i.naturalHeight*(t.height/t.naturalHeight);we(i,{width:n,height:a,left:(t.width-n)/2,top:(t.height-a)/2}),_e(this.image,we({width:i.width,height:i.height},Ve(we({translateX:i.left,translateY:i.top},i)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,i=e.aspectRatio||e.initialAspectRatio,n=Number(e.autoCropArea)||.8,a={width:t.width,height:t.height};i&&(t.height*i>t.width?a.height=a.width/i:a.width=a.height*i),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*n),a.height=Math.max(a.minHeight,a.height*n),a.left=t.left+(t.width-a.width)/2,a.top=t.top+(t.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=we({},a)},limitCropBox:function(e,t){var i=this.options,n=this.containerData,a=this.canvasData,o=this.cropBoxData,s=this.limited,r=i.aspectRatio;if(e){var l=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,p=s?Math.min(n.width,a.width,a.width+a.left,n.width-a.left):n.width,u=s?Math.min(n.height,a.height,a.height+a.top,n.height-a.top):n.height;l=Math.min(l,n.width),c=Math.min(c,n.height),r&&(l&&c?c*r>l?c=l/r:l=c*r:l?c=l/r:c&&(l=c*r),u*r>p?u=p/r:p=u*r),o.minWidth=Math.min(l,p),o.minHeight=Math.min(c,u),o.maxWidth=p,o.maxHeight=u}t&&(s?(o.minLeft=Math.max(0,a.left),o.minTop=Math.max(0,a.top),o.maxLeft=Math.min(n.width,a.left+a.width)-o.width,o.maxTop=Math.min(n.height,a.top+a.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=n.width-o.width,o.maxTop=n.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,e.movable&&e.cropBoxMovable&&Ue(this.face,N,i.width>=t.width&&i.height>=t.height?x:b),_e(this.cropBox,we({width:i.width,height:i.height},Ve({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Me(this.element,q,this.getData())}},st={initPreview:function(){var e=this.element,t=this.crossOrigin,i=this.options.preview,n=t?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=n,o.alt=a,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var s=i;"string"===typeof i?s=e.ownerDocument.querySelectorAll(i):i.querySelector&&(s=[i]),this.previews=s,xe(s,(function(e){var i=document.createElement("img");Ue(e,B,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(i.crossOrigin=t),i.src=n,i.alt=a,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(i)}))}},resetPreview:function(){xe(this.previews,(function(e){var t=Re(e,B);_e(e,{width:t.width,height:t.height}),e.innerHTML=t.html,Ie(e,B)}))},preview:function(){var e=this.imageData,t=this.canvasData,i=this.cropBoxData,n=i.width,a=i.height,o=e.width,s=e.height,r=i.left-t.left-e.left,l=i.top-t.top-e.top;this.cropped&&!this.disabled&&(_e(this.viewBoxImage,we({width:o,height:s},Ve(we({translateX:-r,translateY:-l},e)))),xe(this.previews,(function(t){var i=Re(t,B),c=i.width,p=i.height,u=c,d=p,h=1;n&&(d=a*(h=c/n)),a&&d>p&&(u=n*(h=p/a),d=p),_e(t,{width:u,height:d}),_e(t.getElementsByTagName("img")[0],we({width:o*h,height:s*h},Ve(we({translateX:-r*h,translateY:-l*h},e))))})))}},rt={bind:function(){var e=this.element,t=this.options,i=this.cropper;ve(t.cropstart)&&Be(e,V,t.cropstart),ve(t.cropmove)&&Be(e,W,t.cropmove),ve(t.cropend)&&Be(e,H,t.cropend),ve(t.crop)&&Be(e,q,t.crop),ve(t.zoom)&&Be(e,ie,t.zoom),Be(i,Z,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&Be(i,te,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Be(i,G,this.onDblclick=this.dblclick.bind(this)),Be(e.ownerDocument,J,this.onCropMove=this.cropMove.bind(this)),Be(e.ownerDocument,Q,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&Be(window,ee,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,i=this.cropper;ve(t.cropstart)&&Ne(e,V,t.cropstart),ve(t.cropmove)&&Ne(e,W,t.cropmove),ve(t.cropend)&&Ne(e,H,t.cropend),ve(t.crop)&&Ne(e,q,t.crop),ve(t.zoom)&&Ne(e,ie,t.zoom),Ne(i,Z,this.onCropStart),t.zoomable&&t.zoomOnWheel&&Ne(i,te,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Ne(i,G,this.onDblclick),Ne(e.ownerDocument,J,this.onCropMove),Ne(e.ownerDocument,Q,this.onCropEnd),t.responsive&&Ne(window,ee,this.onResize)}},lt={resize:function(){if(!this.disabled){var e,t,i=this.options,n=this.container,a=this.containerData,o=n.offsetWidth/a.width;1===o&&n.offsetHeight===a.height||(i.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(xe(e,(function(t,i){e[i]=t*o}))),this.setCropBoxData(xe(t,(function(e,i){t[i]=e*o})))))}},dblclick:function(){this.disabled||this.options.dragMode===z||this.setDragMode(Ce(this.dragBox,E)?L:M)},wheel:function(e){var t=this,i=Number(this.options.wheelZoomRatio)||.1,n=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?n=e.deltaY>0?1:-1:e.wheelDelta?n=-e.wheelDelta/120:e.detail&&(n=e.detail>0?1:-1),this.zoom(-n*i,e)))},cropStart:function(e){var t=e.buttons,i=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(ue(t)&&1!==t||ue(i)&&0!==i||e.ctrlKey))){var n,a=this.options,o=this.pointers;e.changedTouches?xe(e.changedTouches,(function(e){o[e.identifier]=Ke(e)})):o[e.pointerId||0]=Ke(e),n=Object.keys(o).length>1&&a.zoomable&&a.zoomOnTouch?w:Re(e.target,N),ae.test(n)&&!1!==Me(this.element,V,{originalEvent:e,action:n})&&(e.preventDefault(),this.action=n,this.cropping=!1,n===y&&(this.cropping=!0,Fe(this.dragBox,j)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var i=this.pointers;e.preventDefault(),!1!==Me(this.element,W,{originalEvent:e,action:t})&&(e.changedTouches?xe(e.changedTouches,(function(e){we(i[e.identifier]||{},Ke(e,!0))})):we(i[e.pointerId||0]||{},Ke(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,i=this.pointers;e.changedTouches?xe(e.changedTouches,(function(e){delete i[e.identifier]})):delete i[e.pointerId||0],t&&(e.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,Oe(this.dragBox,j,this.cropped&&this.options.modal)),Me(this.element,H,{originalEvent:e,action:t}))}}},ct={change:function(e){var t,i=this.options,n=this.canvasData,a=this.containerData,o=this.cropBoxData,s=this.pointers,r=this.action,l=i.aspectRatio,c=o.left,p=o.top,u=o.width,d=o.height,h=c+u,m=p+d,f=0,g=0,v=a.width,E=a.height,D=!0;!l&&e.shiftKey&&(l=u&&d?u/d:1),this.limited&&(f=o.minLeft,g=o.minTop,v=f+Math.min(a.width,n.width,n.left+n.width),E=g+Math.min(a.height,n.height,n.top+n.height));var U=s[Object.keys(s)[0]],I={x:U.endX-U.startX,y:U.endY-U.startY},j=function(e){switch(e){case P:h+I.x>v&&(I.x=v-h);break;case S:c+I.x<f&&(I.x=f-c);break;case _:p+I.y<g&&(I.y=g-p);break;case k:m+I.y>E&&(I.y=E-m)}};switch(r){case b:c+=I.x,p+=I.y;break;case P:if(I.x>=0&&(h>=v||l&&(p<=g||m>=E))){D=!1;break}j(P),(u+=I.x)<0&&(r=S,c-=u=-u),l&&(d=u/l,p+=(o.height-d)/2);break;case _:if(I.y<=0&&(p<=g||l&&(c<=f||h>=v))){D=!1;break}j(_),d-=I.y,p+=I.y,d<0&&(r=k,p-=d=-d),l&&(u=d*l,c+=(o.width-u)/2);break;case S:if(I.x<=0&&(c<=f||l&&(p<=g||m>=E))){D=!1;break}j(S),u-=I.x,c+=I.x,u<0&&(r=P,c-=u=-u),l&&(d=u/l,p+=(o.height-d)/2);break;case k:if(I.y>=0&&(m>=E||l&&(c<=f||h>=v))){D=!1;break}j(k),(d+=I.y)<0&&(r=_,p-=d=-d),l&&(u=d*l,c+=(o.width-u)/2);break;case C:if(l){if(I.y<=0&&(p<=g||h>=v)){D=!1;break}j(_),d-=I.y,p+=I.y,u=d*l}else j(_),j(P),I.x>=0?h<v?u+=I.x:I.y<=0&&p<=g&&(D=!1):u+=I.x,I.y<=0?p>g&&(d-=I.y,p+=I.y):(d-=I.y,p+=I.y);u<0&&d<0?(r=O,p-=d=-d,c-=u=-u):u<0?(r=F,c-=u=-u):d<0&&(r=T,p-=d=-d);break;case F:if(l){if(I.y<=0&&(p<=g||c<=f)){D=!1;break}j(_),d-=I.y,p+=I.y,u=d*l,c+=o.width-u}else j(_),j(S),I.x<=0?c>f?(u-=I.x,c+=I.x):I.y<=0&&p<=g&&(D=!1):(u-=I.x,c+=I.x),I.y<=0?p>g&&(d-=I.y,p+=I.y):(d-=I.y,p+=I.y);u<0&&d<0?(r=T,p-=d=-d,c-=u=-u):u<0?(r=C,c-=u=-u):d<0&&(r=O,p-=d=-d);break;case O:if(l){if(I.x<=0&&(c<=f||m>=E)){D=!1;break}j(S),u-=I.x,c+=I.x,d=u/l}else j(k),j(S),I.x<=0?c>f?(u-=I.x,c+=I.x):I.y>=0&&m>=E&&(D=!1):(u-=I.x,c+=I.x),I.y>=0?m<E&&(d+=I.y):d+=I.y;u<0&&d<0?(r=C,p-=d=-d,c-=u=-u):u<0?(r=T,c-=u=-u):d<0&&(r=F,p-=d=-d);break;case T:if(l){if(I.x>=0&&(h>=v||m>=E)){D=!1;break}j(P),d=(u+=I.x)/l}else j(k),j(P),I.x>=0?h<v?u+=I.x:I.y>=0&&m>=E&&(D=!1):u+=I.x,I.y>=0?m<E&&(d+=I.y):d+=I.y;u<0&&d<0?(r=F,p-=d=-d,c-=u=-u):u<0?(r=O,c-=u=-u):d<0&&(r=C,p-=d=-d);break;case x:this.move(I.x,I.y),D=!1;break;case w:this.zoom(Ge(s),e),D=!1;break;case y:if(!I.x||!I.y){D=!1;break}t=Le(this.cropper),c=U.startX-t.left,p=U.startY-t.top,u=o.minWidth,d=o.minHeight,I.x>0?r=I.y>0?T:C:I.x<0&&(c-=u,r=I.y>0?O:F),I.y<0&&(p-=d),this.cropped||(Te(this.cropBox,R),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}D&&(o.width=u,o.height=d,o.left=c,o.top=p,this.action=r,this.renderCropBox()),xe(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},pt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Fe(this.dragBox,j),Te(this.cropBox,R),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=we({},this.initialImageData),this.canvasData=we({},this.initialCanvasData),this.cropBoxData=we({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(we(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Te(this.dragBox,j),Fe(this.cropBox,R)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,xe(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Te(this.cropper,D)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Fe(this.cropper,D)),this},destroy:function(){var e=this.element;return e[v]?(e[v]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.canvasData,n=i.left,a=i.top;return this.moveTo(he(e)?e:n+Number(e),he(t)?t:a+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.canvasData,n=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(ue(e)&&(i.left=e,n=!0),ue(t)&&(i.top=t,n=!0),n&&this.renderCanvas(!0)),this},zoom:function(e,t){var i=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,null,t)},zoomTo:function(e,t,i){var n=this.options,a=this.canvasData,o=a.width,s=a.height,r=a.naturalWidth,l=a.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&n.zoomable){var c=r*e,p=l*e;if(!1===Me(this.element,ie,{ratio:e,oldRatio:o/r,originalEvent:i}))return this;if(i){var u=this.pointers,d=Le(this.cropper),h=u&&Object.keys(u).length?Xe(u):{pageX:i.pageX,pageY:i.pageY};a.left-=(c-o)*((h.pageX-d.left-a.left)/o),a.top-=(p-s)*((h.pageY-d.top-a.top)/s)}else ge(t)&&ue(t.x)&&ue(t.y)?(a.left-=(c-o)*((t.x-a.left)/o),a.top-=(p-s)*((t.y-a.top)/s)):(a.left-=(c-o)/2,a.top-=(p-s)/2);a.width=c,a.height=p,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return ue(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,ue(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(ue(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.imageData,n=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(ue(e)&&(i.scaleX=e,n=!0),ue(t)&&(i.scaleY=t,n=!0),n&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,n=this.imageData,a=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-a.left,y:o.top-a.top,width:o.width,height:o.height};var s=n.width/n.naturalWidth;if(xe(e,(function(t,i){e[i]=t/s})),t){var r=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=r-e.y}}else e={x:0,y:0,width:0,height:0};return i.rotatable&&(e.rotate=n.rotate||0),i.scalable&&(e.scaleX=n.scaleX||1,e.scaleY=n.scaleY||1),e},setData:function(e){var t=this.options,i=this.imageData,n=this.canvasData,a={};if(this.ready&&!this.disabled&&ge(e)){var o=!1;t.rotatable&&ue(e.rotate)&&e.rotate!==i.rotate&&(i.rotate=e.rotate,o=!0),t.scalable&&(ue(e.scaleX)&&e.scaleX!==i.scaleX&&(i.scaleX=e.scaleX,o=!0),ue(e.scaleY)&&e.scaleY!==i.scaleY&&(i.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var s=i.width/i.naturalWidth;ue(e.x)&&(a.left=e.x*s+n.left),ue(e.y)&&(a.top=e.y*s+n.top),ue(e.width)&&(a.width=e.width*s),ue(e.height)&&(a.height=e.height*s),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?we({},this.containerData):{}},getImageData:function(){return this.sized?we({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&xe(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){t[i]=e[i]})),t},setCanvasData:function(e){var t=this.canvasData,i=t.aspectRatio;return this.ready&&!this.disabled&&ge(e)&&(ue(e.left)&&(t.left=e.left),ue(e.top)&&(t.top=e.top),ue(e.width)?(t.width=e.width,t.height=e.width/i):ue(e.height)&&(t.height=e.height,t.width=e.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,i,n=this.cropBoxData,a=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ge(e)&&(ue(e.left)&&(n.left=e.left),ue(e.top)&&(n.top=e.top),ue(e.width)&&e.width!==n.width&&(t=!0,n.width=e.width),ue(e.height)&&e.height!==n.height&&(i=!0,n.height=e.height),a&&(t?n.height=n.width/a:i&&(n.width=n.height*a)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,i=Je(this.image,this.imageData,t,e);if(!this.cropped)return i;var n=this.getData(),a=n.x,o=n.y,s=n.width,l=n.height,c=i.width/Math.floor(t.naturalWidth);1!==c&&(a*=c,o*=c,s*=c,l*=c);var p=s/l,u=Ye({aspectRatio:p,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),d=Ye({aspectRatio:p,width:e.minWidth||0,height:e.minHeight||0},"cover"),h=Ye({aspectRatio:p,width:e.width||(1!==c?i.width:s),height:e.height||(1!==c?i.height:l)}),m=h.width,f=h.height;m=Math.min(u.width,Math.max(d.width,m)),f=Math.min(u.height,Math.max(d.height,f));var g=document.createElement("canvas"),v=g.getContext("2d");g.width=Se(m),g.height=Se(f),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,m,f);var b=e.imageSmoothingEnabled,y=void 0===b||b,x=e.imageSmoothingQuality;v.imageSmoothingEnabled=y,x&&(v.imageSmoothingQuality=x);var w,P,S,k,_,C,F=i.width,T=i.height,O=a,E=o;O<=-s||O>F?(O=0,w=0,S=0,_=0):O<=0?(S=-O,O=0,_=w=Math.min(F,s+O)):O<=F&&(S=0,_=w=Math.min(s,F-O)),w<=0||E<=-l||E>T?(E=0,P=0,k=0,C=0):E<=0?(k=-E,E=0,C=P=Math.min(T,l+E)):E<=T&&(k=0,C=P=Math.min(l,T-E));var D=[O,E,w,P];if(_>0&&C>0){var R=m/s;D.push(S*R,k*R,_*R,C*R)}return v.drawImage.apply(v,[i].concat(r(D.map((function(e){return Math.floor(Se(e))}))))),g},setAspectRatio:function(e){var t=this.options;return this.disabled||he(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,i=this.dragBox,n=this.face;if(this.ready&&!this.disabled){var a=e===M,o=t.movable&&e===L;e=a||o?e:z,t.dragMode=e,Ue(i,N,e),Oe(i,E,a),Oe(i,A,o),t.cropBoxMovable||(Ue(n,N,e),Oe(n,E,a),Oe(n,A,o))}return this}},ut=m.Cropper,dt=function(){function e(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!i||!re.test(i.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=i,this.options=we({},le,ge(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return n(e,[{key:"init",value:function(){var e,t=this.element,i=t.tagName.toLowerCase();if(!t[v]){if(t[v]=this,"img"===i){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===i&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var i=this.element,n=this.options;if(n.rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer)if(oe.test(e))se.test(e)?this.read(tt(e)):this.clone();else{var a=new XMLHttpRequest,o=this.clone.bind(this);this.reloading=!0,this.xhr=a,a.onabort=o,a.onerror=o,a.ontimeout=o,a.onprogress=function(){a.getResponseHeader("content-type")!==ne&&a.abort()},a.onload=function(){t.read(a.response)},a.onloadend=function(){t.reloading=!1,t.xhr=null},n.checkCrossOrigin&&He(e)&&i.crossOrigin&&(e=We(e)),a.open("GET",e),a.responseType="arraybuffer",a.withCredentials="use-credentials"===i.crossOrigin,a.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,i=this.imageData,n=nt(e),a=0,o=1,s=1;if(n>1){this.url=it(e,ne);var r=at(n);a=r.rotate,o=r.scaleX,s=r.scaleY}t.rotatable&&(i.rotate=a),t.scalable&&(i.scaleX=o,i.scaleY=s),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,i=e.crossOrigin,n=t;this.options.checkCrossOrigin&&He(t)&&(i||(i="anonymous"),n=We(t)),this.crossOrigin=i,this.crossOriginUrl=n;var a=document.createElement("img");i&&(a.crossOrigin=i),a.src=n||t,a.alt=e.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),Fe(a,U),e.parentNode.insertBefore(a,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var i=m.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(m.navigator.userAgent),n=function(t,i){we(e.imageData,{naturalWidth:t,naturalHeight:i,aspectRatio:t/i}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||i){var a=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){n(a.width,a.height),i||o.removeChild(a)},a.src=t.src,i||(a.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(a))}else n(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,i=this.image,n=e.parentNode,a=document.createElement("div");a.innerHTML=ce;var o=a.querySelector(".".concat(v,"-container")),s=o.querySelector(".".concat(v,"-canvas")),r=o.querySelector(".".concat(v,"-drag-box")),l=o.querySelector(".".concat(v,"-crop-box")),c=l.querySelector(".".concat(v,"-face"));this.container=n,this.cropper=o,this.canvas=s,this.dragBox=r,this.cropBox=l,this.viewBox=o.querySelector(".".concat(v,"-view-box")),this.face=c,s.appendChild(i),Fe(e,R),n.insertBefore(o,e.nextSibling),this.isImg||Te(i,U),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Fe(l,R),t.guides||Fe(l.getElementsByClassName("".concat(v,"-dashed")),R),t.center||Fe(l.getElementsByClassName("".concat(v,"-center")),R),t.background&&Fe(o,"".concat(v,"-bg")),t.highlight||Fe(c,I),t.cropBoxMovable&&(Fe(c,A),Ue(c,N,b)),t.cropBoxResizable||(Fe(l.getElementsByClassName("".concat(v,"-line")),R),Fe(l.getElementsByClassName("".concat(v,"-point")),R)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),ve(t.ready)&&Be(e,$,t.ready,{once:!0}),Me(e,$)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Te(this.element,R))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=ut,e}},{key:"setDefaults",value:function(e){we(le,ge(e)&&e)}}]),e}();return we(dt.prototype,ot,st,rt,lt,ct,pt),dt}()},90318:e=>{"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,n=/android|ipad|playbook|silk/i;function a(e){e||(e={});let a=e.ua;if(a||"undefined"===typeof navigator||(a=navigator.userAgent),a&&a.headers&&"string"===typeof a.headers["user-agent"]&&(a=a.headers["user-agent"]),"string"!==typeof a)return!1;let o=t.test(a)&&!i.test(a)||!!e.tablet&&n.test(a);return!o&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==a.indexOf("Macintosh")&&-1!==a.indexOf("Safari")&&(o=!0),o}},21379:e=>{e.exports=function(e,t){if(e===t)return!0;for(var i in e)if(!(i in t))return!1;for(var i in t)if(e[i]!==t[i])return!1;return!0}},34690:e=>{e.exports=function(e,t,i,n){for(var a=-1,o=null==e?0:e.length;++a<o;){var s=e[a];t(n,s,i(s),e)}return n}},74023:(e,t,i)=>{var n=i(50377);e.exports=function(e,t,i,a){return n(e,(function(e,n,o){t(a,e,i(e),o)})),a}},60022:(e,t,i)=>{var n=i(34690),a=i(74023),o=i(31104),s=i(44028);e.exports=function(e,t){return function(i,r){var l=s(i)?n:a,c=t?t():{};return l(i,e,o(r,2),c)}}},96056:(e,t,i)=>{var n=i(23447),a=i(60022)((function(e,t,i){n(e,i,t)}));e.exports=a},2078:(e,t,i)=>{var n=i(26849);e.exports=function(e){return n(e).toUpperCase()}},30278:(e,t,i)=>{var n=i(31104),a=i(43676);e.exports=function(e,t){return e&&e.length?a(e,n(t,2)):[]}},776:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function a(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(a=e[i],o=t[i],!(a===o||n(a)&&n(o)))return!1;var a,o;return!0}function o(e,t){void 0===t&&(t=a);var i=null;function n(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(i&&i.lastThis===this&&t(n,i.lastArgs))return i.lastResult;var o=e.apply(this,n);return i={lastResult:o,lastArgs:n,lastThis:this},o}return n.clear=function(){i=null},n}},77203:(e,t,i)=>{e.exports=i(57104)},2763:(e,t,i)=>{var n=i(77367),a=/[\/\+\.]/;e.exports=function(e,t){function i(t){var i=n(t,e,a);return i&&i.length>=2}return t?i(t.split(";")[0]):i}},77367:e=>{"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,i,n=!0,a=this.parts,o=a.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(i=(e||"").split(this.separator),t=0;n&&t<o;t++)"*"!==a[t]&&(n=t<i.length&&a[t]===i[t]);n=n&&i}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var s in n={},e)this.match(s)&&(n[s]=e[s]);return n},e.exports=function(e,i,n){var a=new t(e,n||/[\/\.]/);return"undefined"!=typeof i?a.match(i):a}},80068:(e,t,i)=>{"use strict";var n=i(77203),a=i(56977).extname,o=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function r(e){if(!e||"string"!==typeof e)return!1;var t=o.exec(e),i=t&&n[t[1].toLowerCase()];return i&&i.charset?i.charset:!(!t||!s.test(t[1]))&&"UTF-8"}t.charset=r,t.charsets={lookup:r},t.contentType=function(e){if(!e||"string"!==typeof e)return!1;var i=-1===e.indexOf("/")?t.lookup(e):e;if(!i)return!1;if(-1===i.indexOf("charset")){var n=t.charset(i);n&&(i+="; charset="+n.toLowerCase())}return i},t.extension=function(e){if(!e||"string"!==typeof e)return!1;var i=o.exec(e),n=i&&t.extensions[i[1].toLowerCase()];if(!n||!n.length)return!1;return n[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!==typeof e)return!1;var i=a("x."+e).toLowerCase().substr(1);if(!i)return!1;return t.types[i]||!1},t.types=Object.create(null),function(e,t){var i=["nginx","apache",void 0,"iana"];Object.keys(n).forEach((function(a){var o=n[a],s=o.extensions;if(s&&s.length){e[a]=s;for(var r=0;r<s.length;r++){var l=s[r];if(t[l]){var c=i.indexOf(n[t[l]].source),p=i.indexOf(o.source);if("application/octet-stream"!==t[l]&&(c>p||c===p&&"application/"===t[l].substr(0,12)))continue}t[l]=a}}}))}(t.extensions,t.types)},29480:e=>{e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,i,n,a,o,s,r){var l=function(e){var i=t[e]?t[e]:[],n=e.indexOf(":"),a=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],o=Object.keys(t),s=0,r=o.length;for(;s<r;s++){var l=o[s];if("*"===l&&(i=i.concat(t[l])),2===a.length&&a[0]===l){i=i.concat(t[l]);break}}return i}(e);l.length&&function(e,t,i){var n=0,a=t.length;for(;n<a&&t[n];n++)t[n].event=e,t[n].apply(t[n],i)}(e,l,[i,n,a,o,s,r])},e.on=function(e,i){t[e]||(t[e]=[]),t[e].push(i)},e.once=function(t,i){this.on(t,(function n(){i.apply(this,arguments),e.off(t,n)}))},e.off=function(e,t){var i=[];if(e&&t)for(var n=this._fns[e],a=0,o=n?n.length:0;a<o;a++)n[a]!==t&&i.push(n[a]);i.length?this._fns[e]=i:delete this._fns[e]},e}},5698:(e,t,i)=>{"use strict";i.d(t,{HY:()=>y,Tm:()=>q,Vf:()=>b,YM:()=>a,az:()=>g,bR:()=>O,h:()=>g,sY:()=>z,wA:()=>x});var n,a,o,s,r,l,c,p={},u=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function m(e,t){for(var i in t)e[i]=t[i];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,i){var a,o,s,r={};for(s in t)"key"==s?a=t[s]:"ref"==s?o=t[s]:r[s]=t[s];if(arguments.length>2&&(r.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===r[s]&&(r[s]=e.defaultProps[s]);return v(e,r,a,o,null)}function v(e,t,i,n,s){var r={type:e,props:t,key:i,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++o:s,__i:-1,__u:0};return null==s&&null!=a.vnode&&a.vnode(r),r}function b(){return{current:null}}function y(e){return e.children}function x(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var i;t<e.__k.length;t++)if(null!=(i=e.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof e.type?w(e):null}function P(e,t,i){var n,o=e.__v,s=o.__e,r=e.__P;if(r)return(n=m({},o)).__v=o.__v+1,a.vnode&&a.vnode(n),j(r,n,o,e.__n,void 0!==r.ownerSVGElement,32&o.__u?[s]:null,t,null==s?w(o):s,!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=s&&S(n),n}function S(e){var t,i;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(i=e.__k[t])&&null!=i.__e){e.__e=e.__c.base=i.__e;break}return S(e)}}function k(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!_.__r++||r!==a.debounceRendering)&&((r=a.debounceRendering)||l)(_)}function _(){var e,t,i,n=[],o=[];for(s.sort(c);e=s.shift();)e.__d&&(i=s.length,t=P(e,n,o)||t,0===i||s.length>i?(A(n,t,o),o.length=n.length=0,t=void 0,s.sort(c)):t&&a.__c&&a.__c(t,u));t&&A(n,t,o),_.__r=0}function C(e,t,i,n,a,o,s,r,l,c,d){var h,m,f,g,v,b=n&&n.__k||u,y=t.length;for(i.__d=l,F(i,t,b),l=i.__d,h=0;h<y;h++)null!=(f=i.__k[h])&&"boolean"!=typeof f&&"function"!=typeof f&&(m=-1===f.__i?p:b[f.__i]||p,f.__i=h,j(e,f,m,a,o,s,r,l,c,d),g=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&B(m.ref,null,f),d.push(f.ref,f.__c||g,f)),null==v&&null!=g&&(v=g),65536&f.__u||m.__k===f.__k?l=T(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:g&&(l=g.nextSibling),f.__d=void 0,f.__u&=-196609);i.__d=l,i.__e=v}function F(e,t,i){var n,a,o,s,r,l=t.length,c=i.length,p=c,u=0;for(e.__k=[],n=0;n<l;n++)s=n+u,null!=(a=e.__k[n]=null==(a=t[n])||"boolean"==typeof a||"function"==typeof a?null:"string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?v(null,a,null,null,null):h(a)?v(y,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?v(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)?(a.__=e,a.__b=e.__b+1,r=E(a,i,s,p),a.__i=r,o=null,-1!==r&&(p--,(o=i[r])&&(o.__u|=131072)),null==o||null===o.__v?(-1==r&&u--,"function"!=typeof a.type&&(a.__u|=65536)):r!==s&&(r===s+1?u++:r>s?p>l-s?u+=r-s:u--:r<s?r==s-1&&(u=r-s):u=0,r!==n+u&&(a.__u|=65536))):(o=i[s])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=w(o)),M(o,o,!1),i[s]=null,p--);if(p)for(n=0;n<c;n++)null!=(o=i[n])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=w(o)),M(o,o))}function T(e,t,i){var n,a;if("function"==typeof e.type){for(n=e.__k,a=0;n&&a<n.length;a++)n[a]&&(n[a].__=e,t=T(n[a],t,i));return t}e.__e!=t&&(i.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function O(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){O(e,t)})):t.push(e)),t}function E(e,t,i,n){var a=e.key,o=e.type,s=i-1,r=i+1,l=t[i];if(null===l||l&&a==l.key&&o===l.type&&0==(131072&l.__u))return i;if(n>(null!=l&&0==(131072&l.__u)?1:0))for(;s>=0||r<t.length;){if(s>=0){if((l=t[s])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return s;s--}if(r<t.length){if((l=t[r])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return r;r++}}return-1}function D(e,t,i){"-"===t[0]?e.setProperty(t,null==i?"":i):e[t]=null==i?"":"number"!=typeof i||d.test(t)?i:i+"px"}function R(e,t,i,n,a){var o;e:if("style"===t)if("string"==typeof i)e.style.cssText=i;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)i&&t in i||D(e.style,t,"");if(i)for(t in i)n&&i[t]===n[t]||D(e.style,t,i[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=i,i?n?i.u=n.u:(i.u=Date.now(),e.addEventListener(t,o?I:U,o)):e.removeEventListener(t,o?I:U,o);else{if(a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==i?"":i;break e}catch(e){}"function"==typeof i||(null==i||!1===i&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,i))}}function U(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(a.event?a.event(e):e)}}function I(e){if(this.l)return this.l[e.type+!0](a.event?a.event(e):e)}function j(e,t,i,n,o,s,r,l,c,p){var u,d,f,g,v,b,w,P,S,k,_,F,T,O,E,D=t.type;if(void 0!==t.constructor)return null;128&i.__u&&(c=!!(32&i.__u),s=[l=t.__e=i.__e]),(u=a.__b)&&u(t);e:if("function"==typeof D)try{if(P=t.props,S=(u=D.contextType)&&n[u.__c],k=u?S?S.props.value:u.__:n,i.__c?w=(d=t.__c=i.__c).__=d.__E:("prototype"in D&&D.prototype.render?t.__c=d=new D(P,k):(t.__c=d=new x(P,k),d.constructor=D,d.render=L),S&&S.sub(d),d.props=P,d.state||(d.state={}),d.context=k,d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=D.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,D.getDerivedStateFromProps(P,d.__s))),g=d.props,v=d.state,d.__v=t,f)null==D.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==D.getDerivedStateFromProps&&P!==g&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(P,k),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(P,d.__s,k)||t.__v===i.__v)){for(t.__v!==i.__v&&(d.props=P,d.state=d.__s,d.__d=!1),t.__e=i.__e,t.__k=i.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&r.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(P,d.__s,k),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(g,v,b)}))}if(d.context=k,d.props=P,d.__P=e,d.__e=!1,F=a.__r,T=0,"prototype"in D&&D.prototype.render){for(d.state=d.__s,d.__d=!1,F&&F(t),u=d.render(d.props,d.state,d.context),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[]}else do{d.__d=!1,F&&F(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++T<25);d.state=d.__s,null!=d.getChildContext&&(n=m(m({},n),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(b=d.getSnapshotBeforeUpdate(g,v)),C(e,h(E=null!=u&&u.type===y&&null==u.key?u.props.children:u)?E:[E],t,i,n,o,s,r,l,c,p),d.base=t.__e,t.__u&=-161,d.__h.length&&r.push(d),w&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=s?(t.__e=l,t.__u|=c?160:32,s[s.indexOf(l)]=null):(t.__e=i.__e,t.__k=i.__k),a.__e(e,t,i)}else null==s&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=N(i.__e,t,i,n,o,s,r,c,p);(u=a.diffed)&&u(t)}function A(e,t,i){for(var n=0;n<i.length;n++)B(i[n],i[++n],i[++n]);a.__c&&a.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){a.__e(e,t.__v)}}))}function N(e,t,i,a,o,s,r,l,c){var u,d,m,g,v,b,y,x=i.props,P=t.props,S=t.type;if("svg"===S&&(o=!0),null!=s)for(u=0;u<s.length;u++)if((v=s[u])&&"setAttribute"in v==!!S&&(S?v.localName===S:3===v.nodeType)){e=v,s[u]=null;break}if(null==e){if(null===S)return document.createTextNode(P);e=o?document.createElementNS("http://www.w3.org/2000/svg",S):document.createElement(S,P.is&&P),s=null,l=!1}if(null===S)x===P||l&&e.data===P||(e.data=P);else{if(s=s&&n.call(e.childNodes),x=i.props||p,!l&&null!=s)for(x={},u=0;u<e.attributes.length;u++)x[(v=e.attributes[u]).name]=v.value;for(u in x)v=x[u],"children"==u||("dangerouslySetInnerHTML"==u?m=v:"key"===u||u in P||R(e,u,null,v,o));for(u in P)v=P[u],"children"==u?g=v:"dangerouslySetInnerHTML"==u?d=v:"value"==u?b=v:"checked"==u?y=v:"key"===u||l&&"function"!=typeof v||x[u]===v||R(e,u,v,x[u],o);if(d)l||m&&(d.__html===m.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(m&&(e.innerHTML=""),C(e,h(g)?g:[g],t,i,a,o&&"foreignObject"!==S,s,r,s?s[0]:i.__k&&w(i,0),l,c),null!=s)for(u=s.length;u--;)null!=s[u]&&f(s[u]);l||(u="value",void 0!==b&&(b!==e[u]||"progress"===S&&!b||"option"===S&&b!==x[u])&&R(e,u,b,x[u],!1),u="checked",void 0!==y&&y!==e[u]&&R(e,u,y,x[u],!1))}return e}function B(e,t,i){try{"function"==typeof e?e(t):e.current=t}catch(e){a.__e(e,i)}}function M(e,t,i){var n,o;if(a.unmount&&a.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||B(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){a.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&M(n[o],t,i||"function"!=typeof e.type);i||null==e.__e||f(e.__e),e.__=e.__e=e.__d=void 0}function L(e,t,i){return this.constructor(e,i)}function z(e,t,i){var o,s,r,l;a.__&&a.__(e,t),s=(o="function"==typeof i)?null:i&&i.__k||t.__k,r=[],l=[],j(t,e=(!o&&i||t).__k=g(y,null,[e]),s||p,p,void 0!==t.ownerSVGElement,!o&&i?[i]:s?null:t.firstChild?n.call(t.childNodes):null,r,!o&&i?i:s?s.__e:t.firstChild,o,l),e.__d=void 0,A(r,e,l)}function q(e,t,i){var a,o,s,r,l=m({},e.props);for(s in e.type&&e.type.defaultProps&&(r=e.type.defaultProps),t)"key"==s?a=t[s]:"ref"==s?o=t[s]:l[s]=void 0===t[s]&&void 0!==r?r[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):i),v(e.type,l,a||e.key,o||e.ref,null)}n=u.slice,a={__e:function(e,t,i,n){for(var a,o,s;t=t.__;)if((a=t.__c)&&!a.__)try{if((o=a.constructor)&&null!=o.getDerivedStateFromError&&(a.setState(o.getDerivedStateFromError(e)),s=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,n||{}),s=a.__d),s)return a.__E=a}catch(t){e=t}throw e}},o=0,x.prototype.setState=function(e,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},i),this.props)),e&&m(i,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},x.prototype.render=y,s=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},_.__r=0},62536:(e,t)=>{"use strict";var i=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function a(e){try{return encodeURIComponent(e)}catch(t){return null}}t.stringify=function(e,t){t=t||"";var n,o,s=[];for(o in"string"!==typeof t&&(t="?"),e)if(i.call(e,o)){if((n=e[o])||null!==n&&undefined!==n&&!isNaN(n)||(n=""),o=a(o),n=a(n),null===o||null===n)continue;s.push(o+"="+n)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,i=/([^=?#&]+)=?([^&]*)/g,a={};t=i.exec(e);){var o=n(t[1]),s=n(t[2]);null===o||null===s||o in a||(a[o]=s)}return a}},94166:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(i[n[a]]=e[n[a]])}return i};t.__esModule=!0;var o=i(5057),s=i(18294),r=i(49266);t.default=function(e){var t=e.delay,i=void 0===t?0:t,l=e.type,c=void 0===l?"text":l,p=e.color,u=void 0===p?"#CDCDCD":p,d=e.rows,h=void 0===d?3:d,m=e.ready,f=e.firstLaunchOnly,g=e.children,v=e.className,b=e.showLoadingAnimation,y=e.customPlaceholder,x=a(e,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),w=o.useState(m),P=w[0],S=w[1],k=o.useRef(null);return o.useEffect((function(){f||!P||m?m&&(k.current&&window.clearTimeout(k.current),P||S(!0)):i&&i>0?k.current=window.setTimeout((function(){S(!1)}),i):S(!1)}),[f,P,m,i]),o.useEffect((function(){return function(){k.current&&window.clearTimeout(k.current)}}),[]),P?g:function(){var e=b?r.joinClassNames("show-loading-animation",v):v;if(y&&o.isValidElement(y)){var t=r.joinClassNames(y.props.className,e);return o.cloneElement(y,{className:t})}if(y)return y;var i=s[c];return o.createElement(i,n({},x,{color:u,rows:h,className:e}))}()}},22256:(e,t,i)=>{"use strict";var n=i(94166);t.Z=n.default},98392:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(49354),s=i(12208),r=i(49266),l={display:"flex"};t.default=function(e){var t=e.className,i=e.style,c=e.color,p=e.rows;return a.createElement("div",{className:r.joinClassNames("media-block",t),style:n(n({},l),i)},a.createElement(s.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),a.createElement(o.default,{color:c,rows:p}))}},16102:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(49266);t.default=function(e){var t=e.className,i=e.style,s={backgroundColor:e.color,width:"100%",height:"100%",marginRight:10};return a.createElement("div",{className:o.joinClassNames("rect-shape",t),style:n(n({},s),i)})}},12208:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(49266);t.default=function(e){var t=e.className,i=e.style,s={backgroundColor:e.color,borderRadius:"500rem",width:"100%",height:"100%"};return a.createElement("div",{className:o.joinClassNames("round-shape",t),style:n(n({},s),i)})}},49354:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(13672),s=i(49266),r={width:"100%"},l=[97,100,94,90,98,95,98,40];t.default=function(e){var t=e.rows,i=e.lineSpacing,c=e.color,p=e.style,u=e.className,d=e.widths,h=void 0===d?l:d,m=function(e){return{maxHeight:100/(2*t-1)+"%",width:h[(e+h.length)%h.length]+"%"}};return a.createElement("div",{className:s.joinClassNames("text-block",u),style:n(n({},r),p)},Array.apply(null,Array(t)).map((function(e,t){return a.createElement(o.default,{color:c,style:m(t),lineSpacing:0!==t?i:0,key:t})})))}},13672:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(49266);t.default=function(e){var t=e.className,i=e.maxHeight,s=e.color,r=e.lineSpacing,l=void 0===r?"0.7em":r,c=e.style,p={maxHeight:i,width:"100%",height:"1em",backgroundColor:s,marginTop:l};return a.createElement("div",{className:o.joinClassNames("text-row",t),style:n(n({},p),c)})}},18294:(e,t,i)=>{"use strict";t.__esModule=!0,t.media=t.text=t.rect=t.round=t.textRow=t.MediaBlock=t.TextBlock=t.RectShape=t.RoundShape=t.TextRow=void 0;var n=i(13672);t.TextRow=n.default;var a=i(12208);t.RoundShape=a.default;var o=i(16102);t.RectShape=o.default;var s=i(49354);t.TextBlock=s.default;var r=i(98392);t.MediaBlock=r.default,t.textRow=n.default,t.round=a.default,t.rect=o.default,t.text=s.default,t.media=r.default},49266:(e,t)=>{"use strict";t.__esModule=!0,t.joinClassNames=void 0,t.joinClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return e})).join(" ")}},6118:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},35499:(e,t,i)=>{e.exports=i(64016)},64016:(e,t,i)=>{var n=i(42349);t.operation=function(e){var i=t.timeouts(e);return new n(i,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in e)t[i]=e[i];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],a=0;a<t.retries;a++)n.push(this.createTimeout(a,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(a,t)),n.sort((function(e,t){return e-t})),n},t.createTimeout=function(e,t){var i=t.randomize?Math.random()+1:1,n=Math.round(i*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout)},t.wrap=function(e,i,n){if(i instanceof Array&&(n=i,i=null),!n)for(var a in n=[],e)"function"===typeof e[a]&&n.push(a);for(var o=0;o<n.length;o++){var s=n[o],r=e[s];e[s]=function(n){var a=t.operation(i),o=Array.prototype.slice.call(arguments,1),s=o.pop();o.push((function(e){a.retry(e)||(e&&(arguments[0]=a.mainError()),s.apply(this,arguments))})),a.attempt((function(){n.apply(e,o)}))}.bind(e,r),e[s].options=i}}},42349:e=>{function t(e,t){"boolean"===typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var i=this._timeouts.shift();if(void 0===i){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1)}var n=this;return this._timer=setTimeout((function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)}),i),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){i._operationTimeoutCb()}),i._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,i=0,n=0;n<this._errors.length;n++){var a=this._errors[n],o=a.message,s=(e[o]||0)+1;e[o]=s,s>=i&&(t=a,i=s)}return t}},44189:(e,t,i)=>{"use strict";var n=i(6118),a=i(62536),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,r=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function u(e){return(e||"").toString().replace(o,"")}var d=[["#","hash"],["?","query"],function(e,t){return f(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function m(e){var t,n=("undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:"undefined"!==typeof self?self:{}).location||{},a={},o=typeof(e=e||n);if("blob:"===e.protocol)a=new v(unescape(e.pathname),{});else if("string"===o)for(t in a=new v(e,{}),h)delete a[t];else if("object"===o){for(t in e)t in h||(a[t]=e[t]);void 0===a.slashes&&(a.slashes=r.test(e.href))}return a}function f(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=u(e)).replace(s,""),t=t||{};var i,n=c.exec(e),a=n[1]?n[1].toLowerCase():"",o=!!n[2],r=!!n[3],l=0;return o?r?(i=n[2]+n[3]+n[4],l=n[2].length+n[3].length):(i=n[2]+n[4],l=n[2].length):r?(i=n[3]+n[4],l=n[3].length):i=n[4],"file:"===a?l>=2&&(i=i.slice(2)):f(a)?i=n[4]:a?o&&(i=i.slice(2)):l>=2&&f(t.protocol)&&(i=n[4]),{protocol:a,slashes:o||f(a),slashesCount:l,rest:i}}function v(e,t,i){if(e=(e=u(e)).replace(s,""),!(this instanceof v))return new v(e,t,i);var o,r,l,c,h,b,y=d.slice(),x=typeof t,w=this,P=0;for("object"!==x&&"string"!==x&&(i=t,t=null),i&&"function"!==typeof i&&(i=a.parse),o=!(r=g(e||"",t=m(t))).protocol&&!r.slashes,w.slashes=r.slashes||o&&t.slashes,w.protocol=r.protocol||t.protocol||"",e=r.rest,("file:"===r.protocol&&(2!==r.slashesCount||p.test(e))||!r.slashes&&(r.protocol||r.slashesCount<2||!f(w.protocol)))&&(y[3]=[/(.*)/,"pathname"]);P<y.length;P++)"function"!==typeof(c=y[P])?(l=c[0],b=c[1],l!==l?w[b]=e:"string"===typeof l?~(h="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"===typeof c[2]?(w[b]=e.slice(0,h),e=e.slice(h+c[2])):(w[b]=e.slice(h),e=e.slice(0,h))):(h=l.exec(e))&&(w[b]=h[1],e=e.slice(0,h.index)),w[b]=w[b]||o&&c[3]&&t[b]||"",c[4]&&(w[b]=w[b].toLowerCase())):e=c(e,w);i&&(w.query=i(w.query)),o&&t.slashes&&"/"!==w.pathname.charAt(0)&&(""!==w.pathname||""!==t.pathname)&&(w.pathname=function(e,t){if(""===e)return t;for(var i=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=i.length,a=i[n-1],o=!1,s=0;n--;)"."===i[n]?i.splice(n,1):".."===i[n]?(i.splice(n,1),s++):s&&(0===n&&(o=!0),i.splice(n,1),s--);return o&&i.unshift(""),"."!==a&&".."!==a||i.push(""),i.join("/")}(w.pathname,t.pathname)),"/"!==w.pathname.charAt(0)&&f(w.protocol)&&(w.pathname="/"+w.pathname),n(w.port,w.protocol)||(w.host=w.hostname,w.port=""),w.username=w.password="",w.auth&&(~(h=w.auth.indexOf(":"))?(w.username=w.auth.slice(0,h),w.username=encodeURIComponent(decodeURIComponent(w.username)),w.password=w.auth.slice(h+1),w.password=encodeURIComponent(decodeURIComponent(w.password))):w.username=encodeURIComponent(decodeURIComponent(w.auth)),w.auth=w.password?w.username+":"+w.password:w.username),w.origin="file:"!==w.protocol&&f(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString()}v.prototype={set:function(e,t,i){var o=this;switch(e){case"query":"string"===typeof t&&t.length&&(t=(i||a.parse)(t)),o[e]=t;break;case"port":o[e]=t,n(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,l.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!i;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";o[e]=t.charAt(0)!==s?s+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var r=t.indexOf(":");~r?(o.username=t.slice(0,r),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(r+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<d.length;c++){var p=d[c];p[4]&&(o[p[1]]=o[p[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&f(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"===typeof e||(e=a.stringify);var t,i=this,n=i.host,o=i.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var s=o+(i.protocol&&i.slashes||f(i.protocol)?"//":"");return i.username?(s+=i.username,i.password&&(s+=":"+i.password),s+="@"):i.password?(s+=":"+i.password,s+="@"):"file:"!==i.protocol&&f(i.protocol)&&!n&&"/"!==i.pathname&&(s+="@"),(":"===n[n.length-1]||l.test(i.hostname)&&!i.port)&&(n+=":"),s+=n+i.pathname,(t="object"===typeof i.query?e(i.query):i.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),i.hash&&(s+=i.hash),s}},v.extractProtocol=g,v.location=m,v.trimLeft=u,v.qs=a,e.exports=v},81534:(e,t,i)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}i.d(t,{Z:()=>a});var a=function e(t,i){function a(e,a,o){if("undefined"!==typeof document){"number"===typeof(o=n({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var r in o)o[r]&&(s+="; "+r,!0!==o[r]&&(s+="="+o[r].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+s}}return Object.create({set:a,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},a=0;a<i.length;a++){var o=i[a].split("="),s=o.slice(1).join("=");try{var r=decodeURIComponent(o[0]);if(n[r]=t.read(s,r),e===r)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){a(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},57104:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}}]);
1
+ /*! For license information please see 3674.c701bb70.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[3674],{87806:(e,t,i)=>{"use strict";t.Z=void 0;(n=i(5057))&&n.__esModule;var n,a=i(96266);function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var l=function(e){return(0,a.jsx)("svg",s(s({},e),{},{children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0zM10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5zM8.03 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 1 0 1.06-1.06l-5-5z"})}))};l.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},l.displayName="revoke";t.Z=l},84804:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Uploader:()=>n.Uploader,UploaderContext:()=>c,UploaderProvider:()=>d,UploaderTrigger:()=>u,initUploader:()=>n.initUploader,useUploaderContext:()=>p});var n=i(41428),a=i(96266),o=i(39948),s=i(5057),r=i(53627);const l=(0,s.lazy)((()=>Promise.resolve().then(i.bind(i,41428)).then((e=>({default:e.Uploader}))))),c=(0,s.createContext)(null);function p(){const e=(0,s.useContext)(c);if(!e)throw new Error("useUploaderContext must be used within an UploaderProvider");return e}function u(e){let{onChange:t,children:i,...n}=e;const s=p();return(0,a.jsx)(o.Z,{onClick:()=>{var e;const i=null===s||void 0===s||null===(e=s.current)||void 0===e?void 0:e.getUploader();null===i||void 0===i||i.open(),t&&i.onceUploadSuccess((function(){t(...arguments)}))},...n,children:i})}function d(e){let{children:t,...i}=e;const n=(0,s.useRef)(null);return(0,a.jsxs)(c.Provider,{value:n,children:[t,(0,r.createPortal)((0,a.jsx)(l,{ref:n,popup:!0,...i},"uploader"),document.body)]})}},41428:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Uploader:()=>gm,default:()=>vm,initUploader:()=>fm});var n={};i.r(n),i.d(n,{getItem:()=>Qt,removeItem:()=>$t,setItem:()=>Jt});var a=i(96266),o=i(96056),s=i.n(o),r=i(12673),l=i(82073),c=i(5057),p=i(99678),u=i(74965),d=i(67680),h=i(39948),m=i(15715);const f=(0,i(57471).Z)((0,a.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.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"}),"CancelOutlined");function g(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var v=0;function b(e){return"__private_"+v+++"_"+e}function y(e,t,i){const n=[];return e.forEach((e=>"string"!==typeof e?n.push(e):t[Symbol.split](e).forEach(((e,t,a)=>{""!==e&&n.push(e),t<a.length-1&&n.push(i)})))),n}function x(e,t){const i=/\$/g;let n=[e];if(null==t)return n;for(const a of Object.keys(t))if("_"!==a){let e=t[a];"string"===typeof e&&(e=i[Symbol.replace](e,"$$$$")),n=y(n,new RegExp("%\\{".concat(a,"\\}"),"g"),e)}return n}const w=e=>{throw new Error("missing string: ".concat(e))};var P=b("onMissingKey"),S=b("apply");class k{constructor(e,t){let{onMissingKey:i=w}=void 0===t?{}:t;Object.defineProperty(this,S,{value:_}),Object.defineProperty(this,P,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(g(this,S)[S],this):g(this,S)[S](e),g(this,P)[P]=i}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let i=this.locale.strings[e];null==i&&(g(this,P)[P](e),i=e);if("object"===typeof i){if(t&&"undefined"!==typeof t.smart_count){return x(i[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if("string"!==typeof i)throw new Error("string was not a string");return x(i,t)}}function _(e){if(null==e||!e.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}var C=i(29480);let F=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e};var T=i(8406);function O(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var E=0;function D(e){return"__private_"+E+++"_"+e}var R=D("callbacks"),U=D("publish");class I{constructor(){Object.defineProperty(this,U,{value:j}),this.state={},Object.defineProperty(this,R,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},i={...this.state,...e};this.state=i,O(this,U)[U](t,i,e)}subscribe(e){return O(this,R)[R].add(e),()=>{O(this,R)[R].delete(e)}}}function j(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];O(this,R)[R].forEach((e=>{e(...t)}))}I.VERSION="3.2.2";const A=I;function N(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const B={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function M(e){var t;if(e.type)return e.type;const i=e.name?null==(t=N(e.name).extension)?void 0:t.toLowerCase():null;return i&&i in B?B[i]:"application/octet-stream"}function L(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+="-".concat(function(e){return e.charCodeAt(0).toString(32)}(e)),"/")))+t}function z(e){if(function(e){return!(!e.isRemote||!e.remote)&&new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}(e))return e.id;const t=M(e);return function(e){let t="uppy";return"string"===typeof e.name&&(t+="-".concat(L(e.name.toLowerCase()))),void 0!==e.type&&(t+="-".concat(e.type)),e.meta&&"string"===typeof e.meta.relativePath&&(t+="-".concat(L(e.meta.relativePath.toLowerCase()))),void 0!==e.data.size&&(t+="-".concat(e.data.size)),void 0!==e.data.lastModified&&(t+="-".concat(e.data.lastModified)),t}({...e,type:t})}function q(e){if(null==e&&"undefined"!==typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const i=t[1].split(".",2),n=parseInt(i[0],10),a=parseInt(i[1],10);return n<15||15===n&&a<15063||(n>18||18===n&&a>=18218)}function H(e){return e<10?"0".concat(e):e.toString()}function W(){const e=new Date,t=H(e.getHours()),i=H(e.getMinutes()),n=H(e.getSeconds());return"".concat(t,":").concat(i,":").concat(n)}const V={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.error("[Uppy] [".concat(W(),"]"),...t)}},G={debug:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.debug("[Uppy] [".concat(W(),"]"),...t)},warn:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.warn("[Uppy] [".concat(W(),"]"),...t)},error:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return console.error("[Uppy] [".concat(W(),"]"),...t)}};var K=i(80422),X=i(2763);const Y={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Z extends Error{constructor(e,t){var i;super(e),this.isRestriction=!0,this.isUserFacing=null==(i=null==t?void 0:t.isUserFacing)||i,null!=t&&t.file&&(this.file=t.file)}}class J{constructor(e,t){this.i18n=t,this.getOpts=()=>{var t;const i=e();if(null!=(null==(t=i.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(i.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return i}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:i,maxNumberOfFiles:n}=this.getOpts().restrictions;if(n){const i=e.filter((e=>!e.isGhost));if(i.length+t.length>n)throw new Z("".concat(this.i18n("youCanOnlyUploadX",{smart_count:n})))}if(i){let n=e.reduce(((e,t)=>{var i;return e+(null!=(i=t.size)?i:0)}),0);for(const e of t)if(null!=e.size&&(n+=e.size,n>i))throw new Z(this.i18n("exceedsSize",{size:K(i),file:e.name}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:i,allowedFileTypes:n}=this.getOpts().restrictions;if(n){if(!n.some((t=>t.includes("/")?!!e.type&&X(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const t=n.join(", ");throw new Z(this.i18n("youCanOnlyUploadFileTypes",{types:t}),{file:e})}}if(t&&null!=e.size&&e.size>t)throw new Z(this.i18n("exceedsSize",{size:K(t),file:e.name}),{file:e});if(i&&null!=e.size&&e.size<i)throw new Z(this.i18n("inferiorSize",{size:K(i)}),{file:e})}validate(e,t){t.forEach((e=>{this.validateSingleFile(e)})),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length<t)throw new Z(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new Z(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:i}=this.getOpts().restrictions,n=[];for(const a of i)Object.hasOwn(e.meta,a)&&""!==e.meta[a]||n.push(a);return{missingFields:n,error:t}}}const Q={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled"}};let $,ee;function te(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ie=0;function ne(e){return"__private_"+ie+++"_"+e}const ae={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var oe=ne("plugins"),se=ne("restricter"),re=ne("storeUnsubscribe"),le=ne("emitter"),ce=ne("preProcessors"),pe=ne("uploaders"),ue=ne("postProcessors"),de=ne("informAndEmit"),he=ne("checkRequiredMetaFieldsOnFile"),me=ne("checkRequiredMetaFields"),fe=ne("assertNewUploadAllowed"),ge=ne("transformFile"),ve=ne("startIfAutoProceed"),be=ne("checkAndUpdateFileState"),ye=ne("addListeners"),xe=ne("updateOnlineStatus"),we=ne("requestClientById"),Pe=ne("createUpload"),Se=ne("getUpload"),ke=ne("removeUpload"),_e=ne("runUpload");$=Symbol.for("uppy test: getPlugins"),ee=Symbol.for("uppy test: createUpload");class Ce{constructor(e){Object.defineProperty(this,_e,{value:Be}),Object.defineProperty(this,ke,{value:Ne}),Object.defineProperty(this,Se,{value:Ae}),Object.defineProperty(this,Pe,{value:je}),Object.defineProperty(this,ye,{value:Ie}),Object.defineProperty(this,be,{value:Ue}),Object.defineProperty(this,ve,{value:Re}),Object.defineProperty(this,ge,{value:De}),Object.defineProperty(this,fe,{value:Ee}),Object.defineProperty(this,me,{value:Oe}),Object.defineProperty(this,he,{value:Te}),Object.defineProperty(this,de,{value:Fe}),Object.defineProperty(this,oe,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,se,{writable:!0,value:void 0}),Object.defineProperty(this,re,{writable:!0,value:void 0}),Object.defineProperty(this,le,{writable:!0,value:C()}),Object.defineProperty(this,ce,{writable:!0,value:new Set}),Object.defineProperty(this,pe,{writable:!0,value:new Set}),Object.defineProperty(this,ue,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=T(((e,t)=>{const i=this.getFile(null==e?void 0:e.id);if(null==e||!i)return void this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id));if(100===i.progress.percentage)return void this.log("Not setting progress for a file that has been already uploaded: ".concat(e.id));const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...i.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}),500,{leading:!0,trailing:!0}),Object.defineProperty(this,xe,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,we,{writable:!0,value:new Map}),this.defaultLocale=Q;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:Y,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new A,logger:V,infoTimeout:5e3},i={...t,...e};this.opts={...i,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=G),this.log("Using Core v".concat(Ce.VERSION)),this.i18nInit(),this.store=this.opts.store,this.setState({...ae,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:q(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),te(this,se)[se]=new J((()=>this.opts),this.i18n),te(this,re)[re]=this.store.subscribe(((e,t,i)=>{this.emit("state-update",e,t,i),this.updateAll(t)})),this.opts.debug&&"undefined"!==typeof window&&(window[this.opts.id]=this),te(this,ye)[ye]()}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];te(this,le)[le].emit(e,...i)}on(e,t){return te(this,le)[le].on(e,t),this}once(e,t){return te(this,le)[le].once(e,t),this}off(e,t){return te(this,le)[le].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}patchFilesState(e){const t=this.getState().files;this.setState({files:{...t,...Object.fromEntries(Object.entries(e).map((e=>{let[i,n]=e;return[i,{...t[i],...n}]})))}})}setFileState(e,t){if(!this.getState().files[e])throw new Error("Can\u2019t set state for ".concat(e," (the file could have been removed)"));this.patchFilesState({[e]:t})}i18nInit(){const e=new k([this.defaultLocale,this.opts.locale],{onMissingKey:e=>this.log("Missing i18n string: ".concat(e),"error")});this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...null==e?void 0:e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((t=>{t.setOptions(e)})),this.setState(void 0)}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},i={};Object.keys(t).forEach((n=>{i[n]={...t[n],progress:{...t[n].progress,...e}}})),this.setState({files:i,...ae}),this.emit("reset-progress")}clearUploadedFiles(){this.setState({...ae,files:{}})}addPreProcessor(e){te(this,ce)[ce].add(e)}removePreProcessor(e){return te(this,ce)[ce].delete(e)}addPostProcessor(e){te(this,ue)[ue].add(e)}removePostProcessor(e){return te(this,ue)[ue].delete(e)}addUploader(e){te(this,pe)[pe].add(e)}removeUploader(e){return te(this,pe)[pe].delete(e)}setMeta(e){const t={...this.getState().meta,...e},i={...this.getState().files};Object.keys(i).forEach((t=>{i[t]={...i[t],meta:{...i[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:i})}setFileMeta(e,t){const i={...this.getState().files};if(!i[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const n={...i[e].meta,...t};i[e]={...i[e],meta:n},this.setState({files:i})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getFilesByIds(e){return e.map((e=>this.getFile(e)))}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:i}=this.getState(),n=Object.values(e),a=n.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),o=n.filter((e=>!e.progress.uploadStarted)),s=n.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),r=n.filter((e=>e.progress.uploadStarted)),l=n.filter((e=>e.isPaused)),c=n.filter((e=>e.progress.uploadComplete)),p=n.filter((e=>e.error)),u=a.filter((e=>!e.isPaused)),d=n.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:o,startedFiles:s,uploadStartedFiles:r,pausedFiles:l,completeFiles:c,erroredFiles:p,inProgressFiles:a,inProgressNotPausedFiles:u,processingFiles:d,isUploadStarted:r.length>0,isAllComplete:100===t&&c.length===n.length&&0===d.length,isAllErrored:!!i&&p.length===n.length,isAllPaused:0!==a.length&&l.length===a.length,isUploadInProgress:a.length>0,isSomeGhost:n.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{te(this,se)[se].validate(t,[e])}catch(i){return i}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){te(this,fe)[fe](e);const{nextFilesState:t,validFilesToAdd:i,errors:n}=te(this,be)[be]([e]),a=n.filter((e=>e.isRestriction));if(te(this,de)[de](a),n.length>0)throw n[0];this.setState({files:t});const[o]=i;return this.emit("file-added",o),this.emit("files-added",i),this.log("Added file: ".concat(o.name,", ").concat(o.id,", mime type: ").concat(o.type)),te(this,ve)[ve](),o.id}addFiles(e){te(this,fe)[fe]();const{nextFilesState:t,validFilesToAdd:i,errors:n}=te(this,be)[be](e),a=n.filter((e=>e.isRestriction));te(this,de)[de](a);const o=n.filter((e=>!e.isRestriction));if(o.length>0){let e="Multiple errors occurred while adding files:\n";if(o.forEach((t=>{e+="\n * ".concat(t.message)})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:e},"error",this.opts.infoTimeout),"function"===typeof AggregateError)throw new AggregateError(o,e);{const t=new Error(e);throw t.errors=o,t}}this.setState({files:t}),i.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",i),i.length>5?this.log("Added batch of ".concat(i.length," files")):Object.values(i).forEach((e=>{this.log("Added file: ".concat(e.name,"\n id: ").concat(e.id,"\n type: ").concat(e.type))})),i.length>0&&te(this,ve)[ve]()}removeFiles(e,t){const{files:i,currentUploads:n}=this.getState(),a={...i},o={...n},s=Object.create(null);function r(e){return void 0===s[e]}e.forEach((e=>{i[e]&&(s[e]=i[e],delete a[e])})),Object.keys(o).forEach((e=>{const t=n[e].fileIDs.filter(r);if(0===t.length)return void delete o[e];const{capabilities:i}=this.getState();if(t.length!==n[e].fileIDs.length&&!i.individualCancellation)throw new Error("individualCancellation is disabled");o[e]={...n[e],fileIDs:t}}));const l={currentUploads:o,files:a};0===Object.keys(a).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(s);c.forEach((e=>{this.emit("file-removed",s[e],t)})),c.length>5?this.log("Removed ".concat(c.length," files")):this.log("Removed files: ".concat(c.join(", ")))}removeFile(e,t){this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).progress.uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const i={...e[t],isPaused:!0};e[t]=i})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const i={...e[t],isPaused:!1,error:null};e[t]=i})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const i={...e[t],isPaused:!1,error:null};e[t]=i})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const i=te(this,Pe)[Pe](t,{forceAllowNewUpload:!0});return te(this,_e)[_e](i)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState(ae)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=te(this,Pe)[Pe]([e],{forceAllowNewUpload:!0});return te(this,_e)[_e](t)}logout(){this.iteratePlugins((e=>{var t;null==(t=e.provider)||null==t.logout||t.logout()}))}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),i=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,n=i.reduce(((e,t)=>e+t.progress.percentage),0),a=Math.round(n/t*100);return void this.setState({totalProgress:a})}let n=t.reduce(((e,t)=>{var i;return e+(null!=(i=t.progress.bytesTotal)?i:0)}),0);const a=n/t.length;n+=a*i.length;let o=0;t.forEach((e=>{o+=e.progress.bytesUploaded})),i.forEach((e=>{o+=a*(e.progress.percentage||0)/100}));let s=0===n?0:Math.round(o/n*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){var e;null==(e=window.navigator.onLine)||e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!==typeof e){const t="Expected a plugin class, but got ".concat(null===e?"null":typeof e,".")+" Please verify that the plugin was imported and spelled correctly.";throw new TypeError(t)}const i=new e(this,t),n=i.id;if(!n)throw new Error("Your plugin must have an id");if(!i.type)throw new Error("Your plugin must have a type");const a=this.getPlugin(n);if(a){const e="Already found a plugin named '".concat(a.id,"'. ")+"Tried to use: '".concat(n,"'.\n")+"Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(e)}return e.VERSION&&this.log("Using ".concat(n," v").concat(e.VERSION)),i.type in te(this,oe)[oe]?te(this,oe)[oe][i.type].push(i):te(this,oe)[oe][i.type]=[i],i.install(),this.emit("plugin-added",i),this}getPlugin(e){for(const t of Object.values(te(this,oe)[oe])){const i=t.find((t=>t.id===e));if(null!=i)return i}}[$](e){return te(this,oe)[oe][e]}iteratePlugins(e){Object.values(te(this,oe)[oe]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin ".concat(e.id)),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=te(this,oe)[oe][e.type],i=t.findIndex((t=>t.id===e.id));-1!==i&&t.splice(i,1);const n={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(n)}close(e){let{reason:t}=void 0===e?{}:e;this.log("Closing Uppy instance ".concat(this.opts.id,": removing all files and uninstalling plugins")),this.cancelAll({reason:t}),te(this,re)[re](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!==typeof window&&window.removeEventListener&&(window.removeEventListener("online",te(this,xe)[xe]),window.removeEventListener("offline",te(this,xe)[xe]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,i){void 0===t&&(t="info"),void 0===i&&(i=3e3);const n="object"===typeof e;this.setState({info:[...this.getState().info,{type:t,message:n?e.message:e,details:n?e.details:null}]}),setTimeout((()=>this.hideInfo()),i),this.emit("info-visible")}log(e,t){const{logger:i}=this.opts;switch(t){case"error":i.error(e);break;case"warning":i.warn(e);break;default:i.debug(e)}}registerRequestClient(e,t){te(this,we)[we].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error("Tried to get RequestClient for a non-remote file ".concat(e.id));const t=te(this,we)[we].get(e.remote.requestClientId);if(null==t)throw new Error('requestClientId "'.concat(e.remote.requestClientId,'" not registered for file "').concat(e.id,'"'));return t}restore(e){return this.log('Core: attempting to restore upload "'.concat(e,'"')),this.getState().currentUploads[e]?te(this,_e)[_e](e):(te(this,ke)[ke](e),Promise.reject(new Error("Nonexistent upload")))}[ee](){return te(this,Pe)[Pe](...arguments)}addResultData(e,t){if(!te(this,Se)[Se](e))return void this.log("Not setting result for an upload that has been removed: ".concat(e));const{currentUploads:i}=this.getState(),n={...i[e],result:{...i[e].result,...t}};this.setState({currentUploads:{...i,[e]:n}})}upload(){var e;null!=(e=te(this,oe)[oe].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const i=this.opts.onBeforeUpload(t);return!1===i?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(i&&"object"===typeof i&&(t=i,this.setState({files:t})),Promise.resolve().then((()=>te(this,se)[se].validateMinNumberOfFiles(t))).catch((e=>{throw te(this,de)[de]([e]),e})).then((()=>{if(!te(this,me)[me](t))throw new Z(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),i=Object.values(e).flatMap((e=>e.fileIDs)),n=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==i.indexOf(e)||n.push(t.id)}));const a=te(this,Pe)[Pe](n);return te(this,_e)[_e](a)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Fe(e){for(const a of e)a.isRestriction?this.emit("restriction-failed",a.file,a):this.emit("error",a,a.file),this.log(a,"warning");const t=e.filter((e=>e.isUserFacing)),i=t.slice(0,4),n=t.slice(4);i.forEach((e=>{let{message:t,details:i=""}=e;this.info({message:t,details:i},"error",this.opts.infoTimeout)})),n.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:n.length})})}function Te(e){const{missingFields:t,error:i}=te(this,se)[se].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(i.message),this.emit("restriction-failed",e,i),!1)}function Oe(e){let t=!0;for(const i of Object.values(e))te(this,he)[he](i)||(t=!1);return t}function Ee(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new Z(this.i18n("noMoreFilesAllowed"),{file:e});throw te(this,de)[de]([t]),t}}function De(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,i=M(t),n=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?"".concat(e.split("/")[0],".").concat(e.split("/")[1]):"noname"}(i,t),a=N(n).extension,o=z(t),s=t.meta||{};s.name=n,s.type=i;const r=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:o,name:n,extension:a||"",meta:{...this.getState().meta,...s},type:i,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:r,uploadComplete:!1,uploadStarted:null},size:r,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function Re(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Ue(e){const{files:t}=this.getState(),i={...t},n=[],a=[];for(const r of e)try{var o;let e=te(this,ge)[ge](r);const a=null==(o=t[e.id])?void 0:o.isGhost;if(a){e={...t[e.id],isGhost:!1,data:r.data},this.log("Replaced the blob in the restored ghost file: ".concat(e.name,", ").concat(e.id))}const s=this.opts.onBeforeFileAdded(e,i);if(!s&&this.checkIfFileAlreadyExists(e.id))throw new Z(this.i18n("noDuplicates",{fileName:e.name}),{file:r});if(!1===s&&!a)throw new Z("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:r});"object"===typeof s&&null!==s&&(e=s),te(this,se)[se].validateSingleFile(e),i[e.id]=e,n.push(e)}catch(s){a.push(s)}try{te(this,se)[se].validateAggregateRestrictions(Object.values(t),n)}catch(s){return a.push(s),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:i,validFilesToAdd:n,errors:a}}function Ie(){const e=(e,t,i)=>{let n=e.message||"Unknown error";e.details&&(n+=" ".concat(e.details)),this.setState({error:n}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:n,response:i})};this.on("error",e),this.on("upload-error",((t,i,n)=>{if(e(i,t,n),"object"===typeof i&&i.message){var a;this.log(i.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(a=null==t?void 0:t.name)?a:""}));e.isUserFacing=!0,e.details=i.message,i.details&&(e.details+=" ".concat(i.details)),te(this,de)[de]([e])}else te(this,de)[de]([i])}));let t=null;this.on("upload-stalled",((e,i)=>{const{message:n}=e,a=i.map((e=>e.meta.name)).join(", ");t||(this.info({message:n,details:a},"warning",this.opts.infoTimeout),t=setTimeout((()=>{t=null}),this.opts.infoTimeout)),this.log("".concat(n," ").concat(a).trim(),"warning")})),this.on("upload",(()=>{this.setState({error:null})}));const i=e=>{const t=e.filter((e=>{const t=null!=e&&this.getFile(e.id);return t||this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id)),t})),i=Object.fromEntries(t.map((e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}])));this.patchFilesState(i)};this.on("upload-start",(e=>{e.forEach((e=>{this.emit("upload-started",e)})),i(e)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id));const i=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...i,postprocess:te(this,ue)[ue].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id))})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id));const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id))})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: ".concat(null==e?void 0:e.id));const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&te(this,he)[he](e)})),"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("online",te(this,xe)[xe]),window.addEventListener("offline",te(this,xe)[xe]),setTimeout(te(this,xe)[xe],3e3))}function je(e,t){void 0===t&&(t={});const{forceAllowNewUpload:i=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!i)throw new Error("Cannot create a new upload: already uploading.");const o=F();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...a,[o]:{fileIDs:e,step:0,result:{}}}}),o}function Ae(e){const{currentUploads:t}=this.getState();return t[e]}function Ne(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Be(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let i=t();const n=[...te(this,ce)[ce],...te(this,pe)[pe],...te(this,ue)[ue]];try{for(let a=i.step||0;a<n.length&&i;a++){const o=n[a];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...i,step:a}}});const{fileIDs:s}=i;await o(s,e),i=t()}}catch(o){throw te(this,ke)[ke](e),o}if(i){i.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const n=i.fileIDs.map((e=>this.getFile(e))),a=n.filter((e=>!e.error)),o=n.filter((e=>e.error));this.addResultData(e,{successful:a,failed:o,uploadID:e}),i=t()}let a;return i&&(a=i.result,this.emit("complete",a),te(this,ke)[ke](e)),null==a&&this.log("Not setting result for an upload that has been removed: ".concat(e)),a}Ce.VERSION="3.9.3";const Me=Ce;var Le=i(5698);function ze(e){return"object"===typeof e&&null!==e&&("nodeType"in e&&e.nodeType===Node.ELEMENT_NODE)}const qe=function(e,t){return void 0===t&&(t=document),"string"===typeof e?t.querySelector(e):ze(e)?e:null};const He=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};class We{constructor(e,t){this.uppy=e,this.opts=null!=t?t:{}}getPluginState(){const{plugins:e}=this.uppy.getState();return(null==e?void 0:e[this.id])||{}}setPluginState(e){if(!e)return;const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new k([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}function Ve(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ge=0;function Ke(e){return"__private_"+Ge+++"_"+e}var Xe=Ke("updateUI");class Ye extends We{constructor(){super(...arguments),Object.defineProperty(this,Xe,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"===typeof(null==e?void 0:e.addTarget))t=e,t instanceof Ye||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:Ye}}));else if("function"===typeof e){const i=e;this.uppy.iteratePlugins((e=>{e instanceof i&&(t=e)}))}return t}mount(e,t){const i=t.id,n=qe(e);if(n){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Ve(this,Xe)[Xe]=function(e){let t,i=null;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=a,i||(i=Promise.resolve().then((()=>(i=null,e(...t))))),i}}((e=>{this.uppy.getPlugin(this.id)&&((0,Le.sY)(this.render(e),t),this.afterUpdate())})),this.uppy.log("Installing ".concat(i," to a DOM element '").concat(e,"'")),this.opts.replaceTargetContent&&(n.innerHTML=""),(0,Le.sY)(this.render(this.uppy.getState()),t),this.el=t,n.appendChild(t),t.dir=this.opts.direction||He(t)||"ltr",this.onMount(),this.el}const a=this.getTargetPlugin(e);if(a)return this.uppy.log("Installing ".concat(i," to ").concat(a.id)),this.parent=a,this.el=a.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing ".concat(i));let o="Invalid target option given to ".concat(i,".");throw o+="function"===typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}render(e){throw new Error("Extend the render method to add your plugin to a DOM element")}update(e){var t,i;null!=this.el&&(null==(t=(i=Ve(this,Xe))[Xe])||t.call(i,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}const Ze=Ye,Je={__proto__:null,"audio/mp3":"mp3","audio/mp4":"mp4","audio/ogg":"ogg","audio/webm":"webm","image/gif":"gif","image/heic":"heic","image/heif":"heif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","video/mp4":"mp4","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-matroska":"mkv","video/x-msvideo":"avi"};function Qe(e){return[e]=e.split(";",1),Je[e]||null}var $e=i(90318);const et=()=>(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",fill:"#0097DC",width:"66",height:"55",viewBox:"0 0 66 55"},(0,Le.h)("path",{d:"M57.3 8.433c4.59 0 8.1 3.51 8.1 8.1v29.7c0 4.59-3.51 8.1-8.1 8.1H8.7c-4.59 0-8.1-3.51-8.1-8.1v-29.7c0-4.59 3.51-8.1 8.1-8.1h9.45l4.59-7.02c.54-.54 1.35-1.08 2.16-1.08h16.2c.81 0 1.62.54 2.16 1.08l4.59 7.02h9.45zM33 14.64c-8.62 0-15.393 6.773-15.393 15.393 0 8.62 6.773 15.393 15.393 15.393 8.62 0 15.393-6.773 15.393-15.393 0-8.62-6.773-15.393-15.393-15.393zM33 40c-5.648 0-9.966-4.319-9.966-9.967 0-5.647 4.318-9.966 9.966-9.966s9.966 4.319 9.966 9.966C42.966 35.681 38.648 40 33 40z",fillRule:"evenodd"})),tt=e=>{let{onSnapshot:t,i18n:i}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture",type:"button",title:i("takePicture"),"aria-label":i("takePicture"),onClick:t,"data-uppy-super-focusable":!0},et())};function it(e){let{recording:t,onStartRecording:i,onStopRecording:n,i18n:a}=e;return t?(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:a("stopRecording"),"aria-label":a("stopRecording"),onClick:n,"data-uppy-super-focusable":!0},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},(0,Le.h)("rect",{x:"15",y:"15",width:"70",height:"70"}))):(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button",type:"button",title:a("startRecording"),"aria-label":a("startRecording"),onClick:i,"data-uppy-super-focusable":!0},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"100",height:"100",viewBox:"0 0 100 100"},(0,Le.h)("circle",{cx:"50",cy:"50",r:"40"})))}function nt(e){let{recordingLengthSeconds:t,i18n:i}=e;const n=(a=t,"".concat(Math.floor(a/60),":").concat(String(a%60).padStart(2,0)));var a;return(0,Le.h)("span",{"aria-label":i("recordingLength",{recording_length:n})},n)}const at=function(e){let{onSubmit:t,i18n:i}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--submit",type:"button",title:i("submitRecordedFile"),"aria-label":i("submitRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},(0,Le.h)("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},(0,Le.h)("path",{fill:"#fff",fillRule:"nonzero",d:"M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z"})))};const ot=function(e){let{onDiscard:t,i18n:i}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--discard",type:"button",title:i("discardRecordedFile"),"aria-label":i("discardRecordedFile"),onClick:t,"data-uppy-super-focusable":!0},(0,Le.h)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"uppy-c-icon"},(0,Le.h)("g",{fill:"#FFF",fillRule:"evenodd"},(0,Le.h)("path",{d:"M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z"}),(0,Le.h)("path",{d:"M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z"}))))};function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},st.apply(this,arguments)}function rt(e,t){return e.includes(t)}class lt extends Le.wA{componentDidMount(){const{onFocus:e}=this.props;e()}componentWillUnmount(){const{onStop:e}=this.props;e()}render(){const{src:e,recordedVideo:t,recording:i,modes:n,supportsRecording:a,videoSources:o,showVideoSourceDropdown:s,showRecordingLength:r,onSubmit:l,i18n:c,mirror:p,onSnapshot:u,onStartRecording:d,onStopRecording:h,onDiscardRecordedVideo:m,recordingLengthSeconds:f}=this.props,g=!!t,v=!g&&a&&(rt(n,"video-only")||rt(n,"audio-only")||rt(n,"video-audio")),b=!g&&rt(n,"picture"),y=a&&r&&!g,x=s&&o&&o.length>1,w={playsinline:!0};return t?(w.muted=!1,w.controls=!0,w.src=t,this.videoElement&&(this.videoElement.srcObject=void 0)):(w.muted=!0,w.autoplay=!0,w.srcObject=e),(0,Le.h)("div",{className:"uppy uppy-Webcam-container"},(0,Le.h)("div",{className:"uppy-Webcam-videoContainer"},(0,Le.h)("video",st({ref:e=>this.videoElement=e,className:"uppy-Webcam-video ".concat(p?"uppy-Webcam-video--mirrored":"")},w))),(0,Le.h)("div",{className:"uppy-Webcam-footer"},(0,Le.h)("div",{className:"uppy-Webcam-videoSourceContainer"},x?(e=>{let{currentDeviceId:t,videoSources:i,onChangeVideoSource:n}=e;return(0,Le.h)("div",{className:"uppy-Webcam-videoSource"},(0,Le.h)("select",{className:"uppy-u-reset uppy-Webcam-videoSource-select",onChange:e=>{n(e.target.value)}},i.map((e=>(0,Le.h)("option",{key:e.deviceId,value:e.deviceId,selected:e.deviceId===t},e.label)))))})(this.props):null),(0,Le.h)("div",{className:"uppy-Webcam-buttonContainer"},b&&(0,Le.h)(tt,{onSnapshot:u,i18n:c}),v&&(0,Le.h)(it,{recording:i,onStartRecording:d,onStopRecording:h,i18n:c}),g&&(0,Le.h)(at,{onSubmit:l,i18n:c}),g&&(0,Le.h)(ot,{onDiscard:m,i18n:c})),(0,Le.h)("div",{className:"uppy-Webcam-recordingLength"},y&&(0,Le.h)(nt,{recordingLengthSeconds:f,i18n:c}))))}}const ct=lt,pt=e=>{let{icon:t,i18n:i,hasCamera:n}=e;return(0,Le.h)("div",{className:"uppy-Webcam-permissons"},(0,Le.h)("div",{className:"uppy-Webcam-permissonsIcon"},t()),(0,Le.h)("h1",{className:"uppy-Webcam-title"},i(n?"allowAccessTitle":"noCameraTitle")),(0,Le.h)("p",null,i(n?"allowAccessDescription":"noCameraDescription")))},ut={strings:{pluginNameCamera:"Camera",noCameraTitle:"Camera Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",submitRecordedFile:"Submit recorded file",discardRecordedFile:"Discard recorded file",smile:"Smile!",takePicture:"Take a picture",startRecording:"Begin video recording",stopRecording:"Stop video recording",recordingLength:"Recording length %{recording_length}",allowAccessTitle:"Please allow access to your camera",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site."}};function dt(){return dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},dt.apply(this,arguments)}function ht(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mt=0;function ft(e){return"__private_"+mt+++"_"+e}function gt(e){return"."===e[0]?B[e.slice(1)]:e}function vt(e){return/^video\/[^*]+$/.test(e)}function bt(e){return/^image\/[^*]+$/.test(e)}function yt(e,t){return e.includes(t)}var xt=ft("enableMirror");class wt extends Ze{constructor(e,t){super(e,t),Object.defineProperty(this,xt,{writable:!0,value:void 0}),this.mediaDevices=navigator.mediaDevices,this.supportsUserMedia=!!this.mediaDevices,this.protocol=location.protocol.match(/https/i)?"https":"http",this.id=this.opts.id||"Webcam",this.type="acquirer",this.capturedMediaFile=null,this.icon=()=>(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383",fillRule:"nonzero"})),this.defaultLocale=ut;const i={onBeforeSnapshot:()=>Promise.resolve(),countdown:!1,modes:["video-audio","video-only","audio-only","picture"],mirror:!0,showVideoSourceDropdown:!1,facingMode:"user",videoConstraints:void 0,preferredImageMimeType:null,preferredVideoMimeType:null,showRecordingLength:!1,mobileNativeCamera:$e({tablet:!0})};this.opts={...i,...t},this.i18nInit(),this.title=this.i18n("pluginNameCamera"),ht(this,xt)[xt]=this.opts.mirror,this.install=this.install.bind(this),this.setPluginState=this.setPluginState.bind(this),this.render=this.render.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.takeSnapshot=this.takeSnapshot.bind(this),this.startRecording=this.startRecording.bind(this),this.stopRecording=this.stopRecording.bind(this),this.discardRecordedVideo=this.discardRecordedVideo.bind(this),this.submit=this.submit.bind(this),this.oneTwoThreeSmile=this.oneTwoThreeSmile.bind(this),this.focus=this.focus.bind(this),this.changeVideoSource=this.changeVideoSource.bind(this),this.webcamActive=!1,this.opts.countdown&&(this.opts.onBeforeSnapshot=this.oneTwoThreeSmile),this.setPluginState({hasCamera:!1,cameraReady:!1,cameraError:null,recordingLengthSeconds:0,videoSources:[],currentDeviceId:null})}setOptions(e){super.setOptions({...e,videoConstraints:{...this.opts.videoConstraints,...null==e?void 0:e.videoConstraints}})}hasCameraCheck(){return this.mediaDevices?this.mediaDevices.enumerateDevices().then((e=>e.some((e=>"videoinput"===e.kind)))):Promise.resolve(!1)}isAudioOnly(){return 1===this.opts.modes.length&&"audio-only"===this.opts.modes[0]}getConstraints(e){void 0===e&&(e=null);const t=-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("audio-only"),i=!this.isAudioOnly()&&(-1!==this.opts.modes.indexOf("video-audio")||-1!==this.opts.modes.indexOf("video-only")||-1!==this.opts.modes.indexOf("picture")),n={...this.opts.videoConstraints||{facingMode:this.opts.facingMode},...e?{deviceId:e,facingMode:null}:{}};return{audio:t,video:!!i&&n}}start(e){if(void 0===e&&(e=null),!this.supportsUserMedia)return Promise.reject(new Error("Webcam access not supported"));this.webcamActive=!0,this.opts.mirror&&(ht(this,xt)[xt]=!0);const t=this.getConstraints(e&&e.deviceId?e.deviceId:null);this.hasCameraCheck().then((i=>(this.setPluginState({hasCamera:i}),this.mediaDevices.getUserMedia(t).then((t=>{this.stream=t;let i=null;const n=this.isAudioOnly()?t.getAudioTracks():t.getVideoTracks();e&&e.deviceId?n.forEach((t=>{t.getSettings().deviceId===e.deviceId&&(i=t.getSettings().deviceId)})):i=n[0].getSettings().deviceId,this.updateVideoSources(),this.setPluginState({currentDeviceId:i,cameraReady:!0})})).catch((e=>{this.setPluginState({cameraReady:!1,cameraError:e}),this.uppy.info(e.message,"error")})))))}getMediaRecorderOptions(){const e={};if(MediaRecorder.isTypeSupported){const{restrictions:t}=this.uppy.opts;let i=[];this.opts.preferredVideoMimeType?i=[this.opts.preferredVideoMimeType]:t.allowedFileTypes&&(i=t.allowedFileTypes.map(gt).filter(vt));const n=e=>MediaRecorder.isTypeSupported(e)&&Qe(e),a=i.filter(n);a.length>0&&(e.mimeType=a[0])}return e}startRecording(){this.recorder=new MediaRecorder(this.stream,this.getMediaRecorderOptions()),this.recordingChunks=[];let e=!1;this.recorder.addEventListener("dataavailable",(t=>{this.recordingChunks.push(t.data);const{restrictions:i}=this.uppy.opts;if(this.recordingChunks.length>1&&null!=i.maxFileSize&&!e){const t=this.recordingChunks.reduce(((e,t)=>e+t.size),0),n=3*((t-this.recordingChunks[0].size)/(this.recordingChunks.length-1));t>Math.max(0,i.maxFileSize-n)&&(e=!0,this.uppy.info(this.i18n("recordingStoppedMaxSize"),"warning",4e3),this.stopRecording())}})),this.recorder.start(500),this.opts.showRecordingLength&&(this.recordingLengthTimer=setInterval((()=>{const e=this.getPluginState().recordingLengthSeconds;this.setPluginState({recordingLengthSeconds:e+1})}),1e3)),this.setPluginState({isRecording:!0})}stopRecording(){return new Promise((e=>{this.recorder.addEventListener("stop",(()=>{e()})),this.recorder.stop(),this.opts.showRecordingLength&&(clearInterval(this.recordingLengthTimer),this.setPluginState({recordingLengthSeconds:0}))})).then((()=>(this.setPluginState({isRecording:!1}),this.getVideo()))).then((e=>{try{this.capturedMediaFile=e,this.setPluginState({recordedVideo:URL.createObjectURL(e.data)}),ht(this,xt)[xt]=!1}catch(t){t.isRestriction||this.uppy.log(t)}})).then((()=>{this.recordingChunks=null,this.recorder=null}),(e=>{throw this.recordingChunks=null,this.recorder=null,e}))}discardRecordedVideo(){this.setPluginState({recordedVideo:null}),this.opts.mirror&&(ht(this,xt)[xt]=!0),this.capturedMediaFile=null}submit(){try{this.capturedMediaFile&&this.uppy.addFile(this.capturedMediaFile)}catch(e){e.isRestriction||this.uppy.log(e,"error")}}async stop(){if(this.stream){const e=this.stream.getAudioTracks(),t=this.stream.getVideoTracks();e.concat(t).forEach((e=>e.stop()))}this.recorder&&await new Promise((e=>{this.recorder.addEventListener("stop",e,{once:!0}),this.recorder.stop(),this.opts.showRecordingLength&&clearInterval(this.recordingLengthTimer)})),this.recordingChunks=null,this.recorder=null,this.webcamActive=!1,this.stream=null,this.setPluginState({recordedVideo:null,isRecording:!1,recordingLengthSeconds:0})}getVideoElement(){return this.el.querySelector(".uppy-Webcam-video")}oneTwoThreeSmile(){return new Promise(((e,t)=>{let i=this.opts.countdown;const n=setInterval((()=>{if(!this.webcamActive)return clearInterval(n),this.captureInProgress=!1,t(new Error("Webcam is not active"));i>0?(this.uppy.info("".concat(i,"..."),"warning",800),i--):(clearInterval(n),this.uppy.info(this.i18n("smile"),"success",1500),setTimeout((()=>e()),1500))}),1e3)}))}takeSnapshot(){this.captureInProgress||(this.captureInProgress=!0,this.opts.onBeforeSnapshot().catch((e=>{const t="object"===typeof e?e.message:e;return this.uppy.info(t,"error",5e3),Promise.reject(new Error("onBeforeSnapshot: ".concat(t)))})).then((()=>this.getImage())).then((e=>{this.captureInProgress=!1;try{this.uppy.addFile(e)}catch(t){t.isRestriction||this.uppy.log(t)}}),(e=>{throw this.captureInProgress=!1,e})))}getImage(){const e=this.getVideoElement();if(!e)return Promise.reject(new Error("No video element found, likely due to the Webcam tab being closed."));const t=e.videoWidth,i=e.videoHeight,n=document.createElement("canvas");n.width=t,n.height=i;n.getContext("2d").drawImage(e,0,0);const{restrictions:a}=this.uppy.opts;let o=[];this.opts.preferredImageMimeType?o=[this.opts.preferredImageMimeType]:a.allowedFileTypes&&(o=a.allowedFileTypes.map(gt).filter(bt));const s=o[0]||"image/jpeg",r=Qe(s)||"jpg",l="cam-".concat(Date.now(),".").concat(r);return function(e,t,i){return new Promise((n=>{e.toBlob(n,t,i)}))}(n,s).then((e=>({source:this.id,name:l,data:new Blob([e],{type:s}),type:s})))}getVideo(){const e=this.recordingChunks.find((e=>{var t;return(null==(t=e.type)?void 0:t.length)>0})).type,t=Qe(e);if(!t)return Promise.reject(new Error('Could not retrieve recording: Unsupported media type "'.concat(e,'"')));const i="webcam-".concat(Date.now(),".").concat(t),n=new Blob(this.recordingChunks,{type:e}),a={source:this.id,name:i,data:new Blob([n],{type:e}),type:e};return Promise.resolve(a)}focus(){this.opts.countdown&&setTimeout((()=>{this.uppy.info(this.i18n("smile"),"success",1500)}),1e3)}changeVideoSource(e){this.stop(),this.start({deviceId:e})}updateVideoSources(){this.mediaDevices.enumerateDevices().then((e=>{this.setPluginState({videoSources:e.filter((e=>"videoinput"===e.kind))})}))}render(){this.webcamActive||this.start();const e=this.getPluginState();return e.cameraReady&&e.hasCamera?(0,Le.h)(ct,dt({},e,{onChangeVideoSource:this.changeVideoSource,onSnapshot:this.takeSnapshot,onStartRecording:this.startRecording,onStopRecording:this.stopRecording,onDiscardRecordedVideo:this.discardRecordedVideo,onSubmit:this.submit,onFocus:this.focus,onStop:this.stop,i18n:this.i18n,modes:this.opts.modes,showRecordingLength:this.opts.showRecordingLength,showVideoSourceDropdown:this.opts.showVideoSourceDropdown,supportsRecording:"function"===typeof MediaRecorder&&!!MediaRecorder.prototype&&"function"===typeof MediaRecorder.prototype.start,recording:e.isRecording,mirror:ht(this,xt)[xt],src:this.stream})):(0,Le.h)(pt,{icon:et,i18n:this.i18n,hasCamera:e.hasCamera})}install(){const{mobileNativeCamera:e,modes:t,facingMode:i,videoConstraints:n}=this.opts,{target:a}=this.opts;var o;e&&a?null==(o=this.getTargetPlugin(a))||o.setOptions({showNativeVideoCameraButton:yt(t,"video-only")||yt(t,"video-audio"),showNativePhotoCameraButton:yt(t,"picture"),nativeCameraFacingMode:(null==n?void 0:n.facingMode)||i}):(this.setPluginState({cameraReady:!1,recordingLengthSeconds:0}),a&&this.mount(a,this),this.mediaDevices&&(this.updateVideoSources(),this.mediaDevices.ondevicechange=()=>{if(this.updateVideoSources(),this.stream){let e=!0;const{videoSources:t,currentDeviceId:i}=this.getPluginState();t.forEach((t=>{i===t.deviceId&&(e=!1)})),e&&(this.stop(),this.start())}}))}uninstall(){this.stop(),this.unmount()}onUnmount(){this.stop()}}wt.VERSION="3.3.6";class Pt extends Error{constructor(){super(...arguments),this.name="UserFacingApiError"}}const St=Pt;var kt=i(35499);const _t=Object.prototype.toString,Ct=e=>"[object Error]"===_t.call(e),Ft=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed"]);class Tt extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,({message:e}=e)):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}const Ot=(e,t,i)=>{const n=i.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e};async function Et(e,t){return new Promise(((i,n)=>{t={onFailedAttempt(){},retries:10,...t};const a=kt.operation(t),o=()=>{var e;a.stop(),n(null===(e=t.signal)||void 0===e?void 0:e.reason)};t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",o,{once:!0});const s=()=>{var e;null===(e=t.signal)||void 0===e||e.removeEventListener("abort",o),a.stop()};a.attempt((async o=>{try{const t=await e(o);s(),i(t)}catch(_c){try{if(!(_c instanceof Error))throw new TypeError('Non-error was thrown: "'.concat(_c,'". You should only throw errors.'));if(_c instanceof Tt)throw _c.originalError;if(_c instanceof TypeError&&!function(e){return!(!e||!Ct(e)||"TypeError"!==e.name||"string"!==typeof e.message)&&("Load failed"===e.message?void 0===e.stack:Ft.has(e.message))}(_c))throw _c;if(await t.onFailedAttempt(Ot(_c,o,t)),!a.retry(_c))throw a.mainError()}catch(r){Ot(r,o,t),s(),n(r)}}}))}))}class Dt extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}const Rt=Dt;function Ut(e,t){return Object.prototype.hasOwnProperty.call(e,t)}class It extends Error{constructor(e,t){super(e),this.cause=null==t?void 0:t.cause,this.cause&&Ut(this.cause,"isNetworkError")?this.isNetworkError=this.cause.isNetworkError:this.isNetworkError=!1}}const jt=It;const At=T((function(e,t,i){const{progress:n,bytesUploaded:a,bytesTotal:o}=t;n&&(e.uppy.log("Upload progress: ".concat(n)),e.uppy.emit("upload-progress",i,{uploader:e,bytesUploaded:a,bytesTotal:o}))}),300,{leading:!0,trailing:!0});class Nt extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}const Bt=Nt;let Mt;function Lt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zt=0;function qt(e){return"__private_"+zt+++"_"+e}class Ht extends Error{constructor(e){let{statusCode:t,message:i}=e;super(i),this.name="HttpError",this.statusCode=t}}var Wt=qt("companionHeaders"),Vt=qt("getUrl"),Gt=qt("requestSocketToken"),Kt=qt("awaitRemoteFileUpload");Mt=Symbol.for("uppy test: getCompanionHeaders");class Xt{constructor(e,t){Object.defineProperty(this,Kt,{value:Zt}),Object.defineProperty(this,Vt,{value:Yt}),Object.defineProperty(this,Wt,{writable:!0,value:void 0}),Object.defineProperty(this,Gt,{writable:!0,value:async e=>{var t;let{file:i,postBody:n,signal:a}=e;if(null==(null==(t=i.remote)?void 0:t.url))throw new Error("Cannot connect to an undefined URL");return(await this.post(i.remote.url,{...i.remote.body,...n},{signal:a})).token}}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),Lt(this,Wt)[Wt]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){Lt(this,Wt)[Wt]=e}[Mt](){return Lt(this,Wt)[Wt]}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}async headers(e){void 0===e&&(e=!1);return{...{Accept:"application/json",...e?void 0:{"Content-Type":"application/json"}},...Lt(this,Wt)[Wt]}}onReceiveResponse(e){const{headers:t}=e,i=this.uppy.getState().companion||{},n=this.opts.companionUrl;t.has("i-am")&&t.get("i-am")!==i[n]&&this.uppy.setState({companion:{...i,[n]:t.get("i-am")}})}async request(e){let{path:t,method:i="GET",data:n,skipPostResponse:a,signal:o}=e;try{const e=await this.headers(!n),s=await function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new Rt(e)}))}(Lt(this,Vt)[Vt](t),{method:i,signal:o,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null});return a||this.onReceiveResponse(s),await async function(e){if(401===e.status)throw new Bt;if(e.ok)return e.json();let t,i="Failed request with status: ".concat(e.status,". ").concat(e.statusText);try{t=await e.json(),t.message&&(i="".concat(i," message: ").concat(t.message)),t.requestId&&(i="".concat(i," request-Id: ").concat(t.requestId))}catch(n){throw new Error(i,{cause:n})}if(e.status>=400&&e.status<=499&&t.message)throw new St(t.message);throw new Ht({statusCode:e.status,message:i})}(s)}catch(s){if(s.isAuthError||"UserFacingApiError"===s.name||"AbortError"===s.name)throw s;throw new jt("Could not ".concat(i," ").concat(Lt(this,Vt)[Vt](t)),{cause:s})}}async get(e,t){return"boolean"===typeof t&&(t={skipPostResponse:t}),this.request({...t,path:e})}async post(e,t,i){return"boolean"===typeof i&&(i={skipPostResponse:i}),this.request({...i,path:e,method:"POST",data:t})}async delete(e,t,i){return"boolean"===typeof i&&(i={skipPostResponse:i}),this.request({...i,path:e,method:"DELETE",data:t})}async uploadRemoteFile(e,t,i){var n=this;try{const{signal:a,getQueue:o}=i||{};return await Et((async()=>{var i;const s=null==(i=this.uppy.getFile(e.id))?void 0:i.serverToken;if(null!=s)return this.uppy.log("Connecting to exiting websocket ".concat(s)),Lt(this,Kt)[Kt]({file:e,queue:o(),signal:a});const r=o().wrapPromiseFunction((async function(){try{return await Lt(n,Gt)[Gt](...arguments)}catch(e){if(e.isAuthError)throw new Tt(e);if(null==e.cause)throw e;const t=e.cause,i=()=>[408,409,429,418,423].includes(t.statusCode)||t.statusCode>=500&&t.statusCode<=599&&![501,505].includes(t.statusCode);if("HttpError"===t.name&&!i())throw new Tt(t);throw t}}),{priority:-1}),l=await r({file:e,postBody:t,signal:a}).abortOn(a);return this.uppy.getFile(e.id)?(this.uppy.setFileState(e.id,{serverToken:l}),Lt(this,Kt)[Kt]({file:this.uppy.getFile(e.id),queue:o(),signal:a})):void 0}),{retries:10,signal:a,onFailedAttempt:e=>this.uppy.log("Retrying upload due to: ".concat(e.message),"warning")})}catch(a){if("AbortError"===a.name)return;throw this.uppy.emit("upload-error",e,a),a}}}function Yt(e){return/^(https?:|)\/\//.test(e)?e:"".concat(this.hostname,"/").concat(e)}async function Zt(e){let t,{file:i,queue:n,signal:a}=e;const{capabilities:o}=this.uppy.getState();try{return await new Promise(((e,s)=>{const r=i.serverToken,l=function(e){var t;const i=null==(t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e))?void 0:t[1],n=/^http:\/\//i.test(e)?"ws":"wss";return"".concat(n,"://").concat(i)}(i.remote.companionUrl);let c,p,u,{isPaused:d}=i;const h=(e,t)=>{var n;null!=c&&c.readyState===c.OPEN?c.send(JSON.stringify({action:e,payload:null!=t?t:{}})):this.uppy.log('Cannot send "'.concat(e,'" to socket ').concat(i.id," because the socket state was ").concat(String(null==(n=c)?void 0:n.readyState)),"warning")};function m(){o.resumableUploads&&h(d?"pause":"resume")}const f=async()=>{p&&p.abort(),p=new AbortController;const t=e=>{var t;this.uppy.setFileState(i.id,{serverToken:null}),null==(t=p)||null==t.abort||t.abort(),s(e)};function a(){clearTimeout(u),d||(u=setTimeout((()=>t(new Error("Timeout waiting for message from Companion socket"))),3e5))}try{await n.wrapPromiseFunction((async()=>{await Et((async()=>new Promise(((n,o)=>{c=new WebSocket("".concat(l,"/api/").concat(r)),a(),c.addEventListener("close",(()=>{c=void 0,o(new Error("Socket closed unexpectedly"))})),c.addEventListener("error",(e=>{var t;this.uppy.log("Companion socket error ".concat(JSON.stringify(e),", closing socket"),"warning"),null==(t=c)||t.close()})),c.addEventListener("open",(()=>{m()})),c.addEventListener("message",(n=>{a();try{const{action:t,payload:a}=JSON.parse(n.data);switch(t){case"progress":At(this,a,this.uppy.getFile(i.id));break;case"success":{var o,s,r,l;const t=null==(o=a.response)?void 0:o.responseText;this.uppy.emit("upload-success",this.uppy.getFile(i.id),{uploadURL:a.url,status:null!=(s=null==(r=a.response)?void 0:r.status)?s:200,body:t?JSON.parse(t):void 0}),null==(l=p)||null==l.abort||l.abort(),e();break}case"error":{const{message:e}=a.error;throw Object.assign(new Error(e),{cause:a.error})}default:this.uppy.log("Companion socket unknown action ".concat(t),"warning")}}catch(c){t(c)}}));const s=()=>{this.uppy.log("Closing socket ".concat(i.id),"info"),clearTimeout(u),c&&c.close(),c=void 0};p.signal.addEventListener("abort",(()=>{s()}))}))),{retries:10,signal:p.signal,onFailedAttempt:()=>{p.signal.aborted||this.uppy.log("Retrying websocket ".concat(i.id),"info")}})}))().abortOn(p.signal)}catch(o){if(p.signal.aborted)return;t(o)}},g=e=>{var t;o.resumableUploads&&(d=e,c&&m(),e?null==(t=p)||null==t.abort||t.abort():f())},v=t=>{var n;o.individualCancellation&&t.id===i.id&&(h("cancel"),null==(n=p)||null==n.abort||n.abort(),this.uppy.log("upload ".concat(i.id," was removed"),"info"),e())},b=t=>{var n;let{reason:a}=t;"user"===a&&h("cancel"),null==(n=p)||null==n.abort||n.abort(),this.uppy.log("upload ".concat(i.id," was canceled"),"info"),e()},y=(e,t)=>{e===i.id&&g(t)},x=()=>g(!0),w=()=>g(!1);this.uppy.on("file-removed",v),this.uppy.on("cancel-all",b),this.uppy.on("upload-pause",y),this.uppy.on("pause-all",x),this.uppy.on("resume-all",w),t=()=>{this.uppy.off("file-removed",v),this.uppy.off("cancel-all",b),this.uppy.off("upload-pause",y),this.uppy.off("pause-all",x),this.uppy.off("resume-all",w)},a.addEventListener("abort",(()=>{var e;null==(e=p)||e.abort()})),f()}))}finally{null==t||t()}}function Jt(e,t){return new Promise((i=>{localStorage.setItem(e,t),i()}))}function Qt(e){return Promise.resolve(localStorage.getItem(e))}function $t(e){return new Promise((t=>{localStorage.removeItem(e),t()}))}function ei(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Xt.VERSION="3.7.4";var ti=0;function ii(e){return"__private_"+ti+++"_"+e}function ni(e){return"string"===typeof e?new RegExp("^".concat(e,"$")):e instanceof RegExp?e:void 0}var ai=ii("refreshingTokenPromise"),oi=ii("getAuthToken"),si=ii("getPlugin");class ri extends Xt{constructor(e,t){var i;super(e,t),Object.defineProperty(this,si,{value:ci}),Object.defineProperty(this,oi,{value:li}),Object.defineProperty(this,ai,{writable:!0,value:void 0}),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey="companion-".concat(this.pluginId,"-auth-token"),this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null,this.supportsRefreshToken=null==(i=t.supportsRefreshToken)||i}async headers(){const[e,t]=await Promise.all([super.headers(),ei(this,oi)[oi]()]),i={};return t&&(i["uppy-auth-token"]=t),this.companionKeysParams&&(i["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...i}}onReceiveResponse(e){super.onReceiveResponse(e);const t=ei(this,si)[si](),i=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:i}),e}async setAuthToken(e){return ei(this,si)[si]().storage.setItem(this.tokenKey,e)}async removeAuthToken(){return ei(this,si)[si]().storage.removeItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw new Error("Could not load authentication data required for third-party login. Please try again later.")}authQuery(e){return{}}authUrl(e){let{authFormData:t,query:i}=e;const n=new URLSearchParams({...i,state:btoa(JSON.stringify({origin:location.origin})),...this.authQuery({authFormData:t})});return this.preAuthToken&&n.set("uppyPreAuthToken",this.preAuthToken),"".concat(this.hostname,"/").concat(this.id,"/connect?").concat(n)}async loginSimpleAuth(e){let{uppyVersions:t,authFormData:i,signal:n}=e;const a=await this.post("".concat(this.id,"/simple-auth"),{form:i},{qs:{uppyVersions:t},signal:n});this.setAuthToken(a.uppyAuthToken)}async loginOAuth(e){let{uppyVersions:t,authFormData:i,signal:n}=e;return await this.ensurePreAuth(),n.throwIfAborted(),new Promise(((e,a)=>{const o=this.authUrl({query:{uppyVersions:t},authFormData:i}),s=window.open(o,"_blank");let r;const l=t=>{if(t.source!==s){let e="";try{e=JSON.stringify(t.data)}catch(c){}return void this.uppy.log("ignoring event from unknown source ".concat(e),"warning")}const{companionAllowedHosts:i}=ei(this,si)[si]().opts;if(n=t.origin,o=i,!(Array.isArray(o)?o.map(ni):[ni(o)]).some((e=>(null==e?void 0:e.test(n))||(null==e?void 0:e.test("".concat(n,"/"))))))return void a(new Error("rejecting event from ".concat(t.origin," vs allowed pattern ").concat(i)));var n,o;const l="string"===typeof t.data?JSON.parse(t.data):t.data;if(l.error){const{uppy:e}=this,t=e.i18n("authAborted");return e.info({message:t},"warning",5e3),void a(new Error("auth aborted"))}l.token?(r(),e(this.setAuthToken(l.token))):a(new Error("did not receive token from auth window"))};r=()=>{null==s||s.close(),window.removeEventListener("message",l),n.removeEventListener("abort",r)},n.addEventListener("abort",r),window.addEventListener("message",l)}))}async login(e){let{uppyVersions:t,authFormData:i,signal:n}=e;return this.loginOAuth({uppyVersions:t,authFormData:i,signal:n})}refreshTokenUrl(){return"".concat(this.hostname,"/").concat(this.id,"/refresh-token")}fileUrl(e){return"".concat(this.hostname,"/").concat(this.id,"/get/").concat(e)}async request(){await ei(this,ai)[ai];try{return await super.request(...arguments)}catch(e){if(!this.supportsRefreshToken)throw e;const t=await ei(this,oi)[oi]();if(!e.isAuthError||!t)throw e;return null==ei(this,ai)[ai]&&(ei(this,ai)[ai]=(async()=>{try{this.uppy.log("[CompanionClient] Refreshing expired auth token","info");const e=await super.request({path:this.refreshTokenUrl(),method:"POST"});await this.setAuthToken(e.uppyAuthToken)}catch(t){throw t.isAuthError&&await this.removeAuthToken(),e}finally{ei(this,ai)[ai]=void 0}})()),await ei(this,ai)[ai],super.request(...arguments)}}async fetchPreAuthToken(){if(this.companionKeysParams)try{const e=await this.post("".concat(this.id,"/preauth/"),{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log("[CompanionClient] unable to fetch preAuthToken ".concat(e),"warning")}}list(e,t){return this.get("".concat(this.id,"/list/").concat(e||""),t)}async logout(e){const t=await this.get("".concat(this.id,"/logout"),e);return await this.removeAuthToken(),t}static initPlugin(e,t,i){if(e.type="acquirer",e.files=[],i&&(e.opts={...i,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const i=t.companionAllowedHosts;if("string"!==typeof i&&!Array.isArray(i)&&!(i instanceof RegExp))throw new TypeError("".concat(e.id,': the option "companionAllowedHosts" must be one of string, Array, RegExp'));e.opts.companionAllowedHosts=i}else if(/^(?!https?:\/\/).*$/i.test(t.companionUrl)){var a;e.opts.companionAllowedHosts="https://".concat(null==(a=t.companionUrl)?void 0:a.replace(/^\/\//,""))}else e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||n}}async function li(){return ei(this,si)[si]().storage.getItem(this.tokenKey)}function ci(){const e=this.uppy.getPlugin(this.pluginId);if(null==e)throw new Error("Plugin was nullish");return e}class pi extends Xt{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return"".concat(this.hostname,"/search/").concat(this.id,"/get/").concat(e)}search(e,t){return this.get("search/".concat(this.id,"/list?q=").concat(encodeURIComponent(e)).concat(t?"&".concat(t):""))}}let ui,di;ui=Symbol.for("uppy test: getSocket"),di=Symbol.for("uppy test: getQueued");const hi=Array.from;function mi(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fi=0;function gi(e){return"__private_"+fi+++"_"+e}var vi=gi("handleSubmit");class bi extends Le.wA{constructor(e){super(e),this.form=document.createElement("form"),Object.defineProperty(this,vi,{writable:!0,value:e=>{e.preventDefault();const{addFile:t}=this.props;t(this.input.value.trim())}}),this.form.id=F()}componentDidMount(){this.input.value="",this.form.addEventListener("submit",mi(this,vi)[vi]),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",mi(this,vi)[vi]),document.body.removeChild(this.form)}render(){const{i18n:e}=this.props;return(0,Le.h)("div",{className:"uppy-Url"},(0,Le.h)("input",{className:"uppy-u-reset uppy-c-textInput uppy-Url-input",type:"text","aria-label":e("enterUrlToImport"),placeholder:e("enterUrlToImport"),ref:e=>{this.input=e},"data-uppy-super-focusable":!0,form:this.form.id}),(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Url-importButton",type:"submit",form:this.form.id},e("import")))}}const yi=bi;function xi(e,t,i){const n=hi(e.items);let a;switch(t){case"paste":{const e=n.some((e=>"file"===e.kind));if(e)return;a=n.filter((e=>"string"===e.kind&&"text/plain"===e.type));break}case"drop":a=n.filter((e=>"string"===e.kind&&"text/uri-list"===e.type));break;default:throw new Error("isDropOrPaste must be either 'drop' or 'paste', but it's ".concat(t))}a.forEach((e=>{e.getAsString((e=>i(e)))}))}const wi={strings:{import:"Import",enterUrlToImport:"Enter URL to import a file",failedToFetch:"Companion failed to fetch this URL, please make sure it\u2019s correct",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file"}};function Pi(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{d:"M23.637 15.312l-2.474 2.464a3.582 3.582 0 01-.577.491c-.907.657-1.897.986-2.968.986a4.925 4.925 0 01-3.959-1.971c-.248-.329-.164-.902.165-1.149.33-.247.907-.164 1.155.164 1.072 1.478 3.133 1.724 4.618.656a.642.642 0 00.33-.328l2.473-2.463c1.238-1.313 1.238-3.366-.082-4.597a3.348 3.348 0 00-4.618 0l-1.402 1.395a.799.799 0 01-1.154 0 .79.79 0 010-1.15l1.402-1.394a4.843 4.843 0 016.843 0c2.062 1.805 2.144 5.007.248 6.896zm-8.081 5.664l-1.402 1.395a3.348 3.348 0 01-4.618 0c-1.319-1.23-1.319-3.365-.082-4.596l2.475-2.464.328-.328c.743-.492 1.567-.739 2.475-.657.906.165 1.648.574 2.143 1.314.248.329.825.411 1.155.165.33-.248.412-.822.165-1.15-.825-1.068-1.98-1.724-3.216-1.888-1.238-.247-2.556.082-3.628.902l-.495.493-2.474 2.464c-1.897 1.969-1.814 5.09.083 6.977.99.904 2.226 1.396 3.463 1.396s2.473-.492 3.463-1.395l1.402-1.396a.79.79 0 000-1.15c-.33-.328-.908-.41-1.237-.082z",fill:"#FF753E","fill-rule":"nonzero"}))}function Si(e){const{pathname:t}=new URL(e);return t.substring(t.lastIndexOf("/")+1)}class ki extends Ze{constructor(e,t){super(e,t),this.id=this.opts.id||"Url",this.title=this.opts.title||"Link",this.type="acquirer",this.icon=()=>(0,Le.h)(Pi,null),this.defaultLocale=wi;if(this.opts={...t},this.i18nInit(),this.hostname=this.opts.companionUrl,!this.hostname)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");this.getMeta=this.getMeta.bind(this),this.addFile=this.addFile.bind(this),this.handleRootDrop=this.handleRootDrop.bind(this),this.handleRootPaste=this.handleRootPaste.bind(this),this.client=new Xt(e,{companionUrl:this.opts.companionUrl,companionHeaders:this.opts.companionHeaders,companionCookiesRule:this.opts.companionCookiesRule}),this.uppy.registerRequestClient(ki.requestClientId,this.client)}getMeta(e){return this.client.post("url/meta",{url:e}).then((e=>{if(e.error)throw this.uppy.log("[URL] Error:"),this.uppy.log(e.error),new Error("Failed to fetch the file");return e}))}async addFile(e,t){void 0===t&&(t=void 0);const i=function(e){return/^[a-z0-9]+:\/\//.test(e)?e:"http://"+e}(e);if(!function(e){if(!e)return!1;const t=e.match(/^([a-z0-9]+):\/\//)[1];return"http"===t||"https"===t}(i))return this.uppy.log("[URL] Incorrect URL entered: ".concat(i)),void this.uppy.info(this.i18n("enterCorrectUrl"),"error",4e3);try{const e=await this.getMeta(i),a={meta:t,source:this.id,name:e.name||Si(i),type:e.type,data:{size:e.size},isRemote:!0,body:{url:i},remote:{companionUrl:this.opts.companionUrl,url:"".concat(this.hostname,"/url/get"),body:{fileId:i,url:i},requestClientId:ki.requestClientId}};this.uppy.log("[Url] Adding remote file");try{return this.uppy.addFile(a)}catch(n){return n.isRestriction||this.uppy.log(n),n}}catch(n){return this.uppy.log(n),this.uppy.info({message:this.i18n("failedToFetch"),details:n},"error",4e3),n}}handleRootDrop(e){xi(e.dataTransfer,"drop",(e=>{this.uppy.log("[URL] Adding file from dropped url: ".concat(e)),this.addFile(e)}))}handleRootPaste(e){xi(e.clipboardData,"paste",(e=>{this.uppy.log("[URL] Adding file from pasted url: ".concat(e)),this.addFile(e)}))}render(){return(0,Le.h)(yi,{i18n:this.i18n,addFile:this.addFile})}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}ki.VERSION="3.5.0",ki.requestClientId=ki.name,ki.prototype.canHandleRootDrop=function(e){const t=hi(e.dataTransfer.items).filter((e=>"string"===e.kind&&"text/uri-list"===e.type));return t.length>0};var _i=i(91428);var Ci=i(97885);var Fi,Ti=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Fi=new WeakMap;const Oi=class{constructor(){Fi.set(this,[])}enqueue(e,t){const i={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&Ti(this,Fi,"f")[this.size-1].priority>=t.priority)return void Ti(this,Fi,"f").push(i);const n=function(e,t,i){let n=0,a=e.length;for(;a>0;){const o=Math.trunc(a/2);let s=n+o;i(e[s],t)<=0?(n=++s,a-=o+1):a=o}return n}(Ti(this,Fi,"f"),i,((e,t)=>t.priority-e.priority));Ti(this,Fi,"f").splice(n,0,i)}dequeue(){const e=Ti(this,Fi,"f").shift();return null===e||void 0===e?void 0:e.run}filter(e){return Ti(this,Fi,"f").filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return Ti(this,Fi,"f").length}};var Ei,Di,Ri,Ui,Ii,ji,Ai,Ni,Bi,Mi,Li,zi,qi,Hi,Wi,Vi,Gi,Ki,Xi,Yi,Zi,Ji,Qi,$i,en,tn,nn=function(e,t,i,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,i):a?a.value=i:t.set(e,i),i},an=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};class on extends Error{}Di=new WeakMap,Ri=new WeakMap,Ui=new WeakMap,Ii=new WeakMap,ji=new WeakMap,Ai=new WeakMap,Ni=new WeakMap,Bi=new WeakMap,Mi=new WeakMap,Li=new WeakMap,zi=new WeakMap,qi=new WeakMap,Hi=new WeakMap,Wi=new WeakMap,Ei=new WeakSet,Vi=function(){return an(this,Ri,"f")||an(this,Ui,"f")<an(this,Ii,"f")},Gi=function(){return an(this,zi,"f")<an(this,qi,"f")},Ki=function(){var e;nn(this,zi,(e=an(this,zi,"f"),--e),"f"),an(this,Ei,"m",Zi).call(this),this.emit("next")},Xi=function(){an(this,Ei,"m",Qi).call(this),an(this,Ei,"m",Ji).call(this),nn(this,Bi,void 0,"f")},Yi=function(){const e=Date.now();if(void 0===an(this,Ni,"f")){const t=an(this,Ai,"f")-e;if(!(t<0))return void 0===an(this,Bi,"f")&&nn(this,Bi,setTimeout((()=>{an(this,Ei,"m",Xi).call(this)}),t),"f"),!0;nn(this,Ui,an(this,Di,"f")?an(this,zi,"f"):0,"f")}return!1},Zi=function(){if(0===an(this,Mi,"f").size)return an(this,Ni,"f")&&clearInterval(an(this,Ni,"f")),nn(this,Ni,void 0,"f"),this.emit("empty"),0===an(this,zi,"f")&&this.emit("idle"),!1;if(!an(this,Hi,"f")){const e=!an(this,Ei,"a",Yi);if(an(this,Ei,"a",Vi)&&an(this,Ei,"a",Gi)){const t=an(this,Mi,"f").dequeue();return!!t&&(this.emit("active"),t(),e&&an(this,Ei,"m",Ji).call(this),!0)}}return!1},Ji=function(){an(this,Ri,"f")||void 0!==an(this,Ni,"f")||(nn(this,Ni,setInterval((()=>{an(this,Ei,"m",Qi).call(this)}),an(this,ji,"f")),"f"),nn(this,Ai,Date.now()+an(this,ji,"f"),"f"))},Qi=function(){0===an(this,Ui,"f")&&0===an(this,zi,"f")&&an(this,Ni,"f")&&(clearInterval(an(this,Ni,"f")),nn(this,Ni,void 0,"f")),nn(this,Ui,an(this,Di,"f")?an(this,zi,"f"):0,"f"),an(this,Ei,"m",$i).call(this)},$i=function(){for(;an(this,Ei,"m",Zi).call(this););},en=async function(e){return new Promise(((t,i)=>{e.addEventListener("abort",(()=>{i(new on("The task was aborted."))}),{once:!0})}))},tn=async function(e,t){return new Promise((i=>{const n=()=>{t&&!t()||(this.off(e,n),i())};this.on(e,n)}))};const sn=class extends _i{constructor(e){var t,i,n,a;if(super(),Ei.add(this),Di.set(this,void 0),Ri.set(this,void 0),Ui.set(this,0),Ii.set(this,void 0),ji.set(this,void 0),Ai.set(this,0),Ni.set(this,void 0),Bi.set(this,void 0),Mi.set(this,void 0),Li.set(this,void 0),zi.set(this,0),qi.set(this,void 0),Hi.set(this,void 0),Wi.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"===typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Oi,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(i=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==i?i:"","` (").concat(typeof e.intervalCap,")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(a=null===(n=e.interval)||void 0===n?void 0:n.toString())&&void 0!==a?a:"","` (").concat(typeof e.interval,")"));nn(this,Di,e.carryoverConcurrencyCount,"f"),nn(this,Ri,e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,"f"),nn(this,Ii,e.intervalCap,"f"),nn(this,ji,e.interval,"f"),nn(this,Mi,new e.queueClass,"f"),nn(this,Li,e.queueClass,"f"),this.concurrency=e.concurrency,this.timeout=e.timeout,nn(this,Wi,!0===e.throwOnTimeout,"f"),nn(this,Hi,!1===e.autoStart,"f")}get concurrency(){return an(this,qi,"f")}set concurrency(e){if(!("number"===typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(typeof e,")"));nn(this,qi,e,"f"),an(this,Ei,"m",$i).call(this)}async add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t={timeout:this.timeout,throwOnTimeout:an(this,Wi,"f"),...t},new Promise(((i,n)=>{an(this,Mi,"f").enqueue((async()=>{var a,o,s;nn(this,zi,(o=an(this,zi,"f"),++o),"f"),nn(this,Ui,(s=an(this,Ui,"f"),++s),"f");try{if(null===(a=t.signal)||void 0===a?void 0:a.aborted)throw new on("The task was aborted.");let n=e({signal:t.signal});t.timeout&&(n=Ci(Promise.resolve(n),t.timeout)),t.signal&&(n=Promise.race([n,an(this,Ei,"m",en).call(this,t.signal)]));const o=await n;i(o),this.emit("completed",o)}catch(_c){if(_c instanceof Ci.TimeoutError&&!t.throwOnTimeout)return void i();n(_c),this.emit("error",_c)}finally{an(this,Ei,"m",Ki).call(this)}}),t),this.emit("add"),an(this,Ei,"m",Zi).call(this)}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return an(this,Hi,"f")?(nn(this,Hi,!1,"f"),an(this,Ei,"m",$i).call(this),this):this}pause(){nn(this,Hi,!0,"f")}clear(){nn(this,Mi,new(an(this,Li,"f")),"f")}async onEmpty(){0!==an(this,Mi,"f").size&&await an(this,Ei,"m",tn).call(this,"empty")}async onSizeLessThan(e){an(this,Mi,"f").size<e||await an(this,Ei,"m",tn).call(this,"next",(()=>an(this,Mi,"f").size<e))}async onIdle(){0===an(this,zi,"f")&&0===an(this,Mi,"f").size||await an(this,Ei,"m",tn).call(this,"idle")}get size(){return an(this,Mi,"f").size}sizeBy(e){return an(this,Mi,"f").filter(e).length}get pending(){return an(this,zi,"f")}get isPaused(){return an(this,Hi,"f")}};var rn,ln,cn,pn,un=0,dn=[],hn=[],mn=Le.YM,fn=mn.__b,gn=mn.__r,vn=mn.diffed,bn=mn.__c,yn=mn.unmount,xn=mn.__;function wn(e,t){mn.__h&&mn.__h(ln,e,un||t),un=0;var i=ln.__H||(ln.__H={__:[],__h:[]});return e>=i.__.length&&i.__.push({__V:hn}),i.__[e]}function Pn(e){return un=1,function(e,t,i){var n=wn(rn++,2);if(n.t=e,!n.__c&&(n.__=[i?i(t):Rn(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],i=n.t(t,e);t!==i&&(n.__N=[i,n.__[1]],n.__c.setState({}))}],n.__c=ln,!ln.u)){var a=function(e,t,i){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter((function(e){return!!e.__c}));if(a.every((function(e){return!e.__N})))return!o||o.call(this,e,t,i);var s=!1;return a.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&n.__c.props===e)&&(!o||o.call(this,e,t,i))};ln.u=!0;var o=ln.shouldComponentUpdate,s=ln.componentWillUpdate;ln.componentWillUpdate=function(e,t,i){if(this.__e){var n=o;o=void 0,a(e,t,i),o=n}s&&s.call(this,e,t,i)},ln.shouldComponentUpdate=a}return n.__N||n.__}(Rn,e)}function Sn(e,t){var i=wn(rn++,3);!mn.__s&&Dn(i.__H,t)&&(i.__=e,i.i=t,ln.__H.__h.push(i))}function kn(e,t){var i=wn(rn++,7);return Dn(i.__H,t)?(i.__V=e(),i.i=t,i.__h=e,i.__V):i.__}function _n(e,t){return un=8,kn((function(){return e}),t)}function Cn(){for(var e;e=dn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(On),e.__H.__h.forEach(En),e.__H.__h=[]}catch(rn){e.__H.__h=[],mn.__e(rn,e.__v)}}mn.__b=function(e){ln=null,fn&&fn(e)},mn.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),xn&&xn(e,t)},mn.__r=function(e){gn&&gn(e),rn=0;var t=(ln=e.__c).__H;t&&(cn===ln?(t.__h=[],ln.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=hn,e.__N=e.i=void 0}))):(t.__h.forEach(On),t.__h.forEach(En),t.__h=[],rn=0)),cn=ln},mn.diffed=function(e){vn&&vn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==dn.push(t)&&pn===mn.requestAnimationFrame||((pn=mn.requestAnimationFrame)||Tn)(Cn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==hn&&(e.__=e.__V),e.i=void 0,e.__V=hn}))),cn=ln=null},mn.__c=function(e,t){t.some((function(e){try{e.__h.forEach(On),e.__h=e.__h.filter((function(e){return!e.__||En(e)}))}catch(i){t.some((function(e){e.__h&&(e.__h=[])})),t=[],mn.__e(i,e.__v)}})),bn&&bn(e,t)},mn.unmount=function(e){yn&&yn(e);var t,i=e.__c;i&&i.__H&&(i.__H.__.forEach((function(e){try{On(e)}catch(e){t=e}})),i.__H=void 0,t&&mn.__e(t,i.__v))};var Fn="function"==typeof requestAnimationFrame;function Tn(e){var t,i=function(){clearTimeout(n),Fn&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(i,100);Fn&&(t=requestAnimationFrame(i))}function On(e){var t=ln,i=e.__c;"function"==typeof i&&(e.__c=void 0,i()),ln=t}function En(e){var t=ln;e.__c=e.__(),ln=t}function Dn(e,t){return!e||e.length!==t.length||t.some((function(t,i){return t!==e[i]}))}function Rn(e,t){return"function"==typeof t?t(e):t}function Un(){return(0,Le.h)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg"},(0,Le.h)("g",{fill:"none","fill-rule":"evenodd"},(0,Le.h)("circle",{fill:"#FFF",cx:"13",cy:"13",r:"13"}),(0,Le.h)("path",{d:"M21.64 13.205c0-.639-.057-1.252-.164-1.841H13v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z",fill:"#4285F4","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M13 22c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H4.957v2.332A8.997 8.997 0 0013 22z",fill:"#34A853","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M7.964 14.71A5.41 5.41 0 017.682 13c0-.593.102-1.17.282-1.71V8.958H4.957A8.996 8.996 0 004 13c0 1.452.348 2.827.957 4.042l3.007-2.332z",fill:"#FBBC05","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M13 7.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C17.463 4.891 15.426 4 13 4a8.997 8.997 0 00-8.043 4.958l3.007 2.332C8.672 9.163 10.656 7.58 13 7.58z",fill:"#EA4335","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M4 4h18v18H4z"})))}function In(e){let{pluginName:t,i18n:i,onAuth:n}=e;const a="Google Drive"===t,o=_n((e=>{e.preventDefault(),n()}),[n]);return(0,Le.h)("form",{onSubmit:o},a?(0,Le.h)("button",{type:"submit",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn uppy-Provider-btn-google","data-uppy-super-focusable":!0},(0,Le.h)(Un,null),i("signInWithGoogle")):(0,Le.h)("button",{type:"submit",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn","data-uppy-super-focusable":!0},i("authenticateWith",{pluginName:t})))}const jn=e=>{let{pluginName:t,i18n:i,onAuth:n}=e;return(0,Le.h)(In,{pluginName:t,i18n:i,onAuth:n})};function An(e){const{loading:t,pluginName:i,pluginIcon:n,i18n:a,handleAuth:o,renderForm:s=jn}=e;return(0,Le.h)("div",{className:"uppy-Provider-auth"},(0,Le.h)("div",{className:"uppy-Provider-authIcon"},n()),(0,Le.h)("div",{className:"uppy-Provider-authTitle"},a("authenticateWithTitle",{pluginName:i})),(0,Le.h)("div",{className:"uppy-Provider-authForm"},s({pluginName:i,i18n:a,loading:t,onAuth:o})))}function Nn(e){let{i18n:t,logout:i,username:n}=e;return(0,Le.h)(Le.HY,null,(0,Le.h)("span",{className:"uppy-ProviderBrowser-user",key:"username"},n),(0,Le.h)("button",{type:"button",onClick:i,className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowser-userLogout",key:"logout"},t("logOut")))}const Bn=e=>{const{getFolder:t,title:i,isLast:n}=e;return(0,Le.h)(Le.HY,null,(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:t},i),n?"":" / ")};function Mn(e){const{getFolder:t,title:i,breadcrumbsIcon:n,breadcrumbs:a}=e;return(0,Le.h)("div",{className:"uppy-Provider-breadcrumbs"},(0,Le.h)("div",{className:"uppy-Provider-breadcrumbsIcon"},n),a.map(((e,n)=>(0,Le.h)(Bn,{key:e.id,getFolder:()=>t(e.requestPath,e.name),title:0===n?i:e.name,isLast:n+1===a.length}))))}function Ln(e){return(0,Le.h)(Le.HY,null,e.showBreadcrumbs&&(0,Le.h)(Mn,{getFolder:e.getFolder,breadcrumbs:e.breadcrumbs,breadcrumbsIcon:e.pluginIcon&&e.pluginIcon(),title:e.title}),(0,Le.h)(Nn,{logout:e.logout,username:e.username,i18n:e.i18n}))}var zn=i(52277);function qn(e){return{...e,type:e.mimeType,extension:e.name?N(e.name).extension:null}}function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Hn.apply(this,arguments)}const Wn={position:"relative",width:"100%",minHeight:"100%"},Vn={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};class Gn extends Le.wA{constructor(e){super(e),this.handleScroll=()=>{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:i,renderRow:n,overscanCount:a=10,...o}=e;const{offset:s,height:r}=this.state;let l=Math.floor(s/i),c=Math.floor(r/i);a&&(l=Math.max(0,l-l%a),c+=a);const p=l+c+4,u=t.slice(l,p),d={...Wn,height:t.length*i},h={...Vn,top:l*i};return(0,Le.h)("div",Hn({onScroll:this.handleScroll},o),(0,Le.h)("div",{role:"presentation",style:d},(0,Le.h)("div",{role:"presentation",style:h},u.map(n))))}}const Kn=Gn;function Xn(e){const{search:t,searchOnInput:i,searchTerm:n,showButton:a,inputLabel:o,clearSearchLabel:s,buttonLabel:r,clearSearch:l,inputClassName:c,buttonCSSClassName:p}=e,[u,d]=Pn(null!=n?n:""),h=_n((e=>{e.preventDefault(),t(u)}),[t,u]),m=_n((e=>{const n=e.target.value;d(n),i&&t(n)}),[d,i,t]),[f]=Pn((()=>{const e=document.createElement("form");return e.setAttribute("tabindex","-1"),e.id=F(),e}));return Sn((()=>(document.body.appendChild(f),f.addEventListener("submit",h),()=>{f.removeEventListener("submit",h),document.body.removeChild(f)})),[f,h]),(0,Le.h)(Le.HY,null,(0,Le.h)("input",{className:"uppy-u-reset ".concat(c),type:"search","aria-label":o,placeholder:o,value:u,onInput:m,form:f.id,"data-uppy-super-focusable":!0}),!a&&(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-ProviderBrowser-searchFilterIcon",width:"12",height:"12",viewBox:"0 0 12 12"},(0,Le.h)("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),!a&&u&&(0,Le.h)("button",{className:"uppy-u-reset uppy-ProviderBrowser-searchFilterReset",type:"button","aria-label":s,title:s,onClick:()=>{d(""),l&&l()}},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",viewBox:"0 0 19 19"},(0,Le.h)("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))),a&&(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary ".concat(p),type:"submit",form:f.id},r))}function Yn(e){let{cancel:t,done:i,i18n:n,selected:a}=e;return(0,Le.h)("div",{className:"uppy-ProviderBrowser-footer"},(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onClick:i,type:"button"},n("selectX",{smart_count:a})),(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onClick:t,type:"button"},n("cancel")))}function Zn(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:11,height:14.5,viewBox:"0 0 44 58"},(0,Le.h)("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}))}function Jn(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",style:{minWidth:16,marginRight:3},viewBox:"0 0 276.157 276.157"},(0,Le.h)("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}))}function Qn(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",style:{width:16,marginRight:4},viewBox:"0 0 58 58"},(0,Le.h)("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),(0,Le.h)("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}))}function $n(e){const{itemIconString:t}=e;if(null===t)return null;switch(t){case"file":return(0,Le.h)(Zn,null);case"folder":return(0,Le.h)(Jn,null);case"video":return(0,Le.h)(Qn,null);default:{const{alt:i}=e;return(0,Le.h)("img",{src:t,alt:i,referrerPolicy:"no-referrer",loading:"lazy",width:16,height:16})}}}const ea=function(e){const{className:t,isDisabled:i,restrictionError:n,isChecked:a,title:o,itemIconEl:s,showTitles:r,toggleCheckbox:l,recordShiftKeyPress:c,id:p,children:u}=e,d=zn("uppy-u-reset","uppy-ProviderBrowserItem-checkbox","uppy-ProviderBrowserItem-checkbox--grid",{"uppy-ProviderBrowserItem-checkbox--is-checked":a});return(0,Le.h)("li",{className:t,title:i?null==n?void 0:n.message:void 0},(0,Le.h)("input",{type:"checkbox",className:d,onChange:l,onKeyDown:c,onMouseDown:c,name:"listitem",id:p,checked:a,disabled:i,"data-uppy-super-focusable":!0}),(0,Le.h)("label",{htmlFor:p,"aria-label":o,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},s,r&&o,u))};function ta(e){const{className:t,isDisabled:i,restrictionError:n,isCheckboxDisabled:a,isChecked:o,toggleCheckbox:s,recordShiftKeyPress:r,type:l,id:c,itemIconEl:p,title:u,handleFolderClick:d,showTitles:h,i18n:m}=e;return(0,Le.h)("li",{className:t,title:i?null==n?void 0:n.message:void 0},a?null:(0,Le.h)("input",{type:"checkbox",className:"uppy-u-reset uppy-ProviderBrowserItem-checkbox ".concat(o?"uppy-ProviderBrowserItem-checkbox--is-checked":""),onChange:s,onKeyDown:r,onMouseDown:r,name:"listitem",id:c,checked:o,"aria-label":"file"===l?null:m("allFilesFromFolderNamed",{name:u}),disabled:i,"data-uppy-super-focusable":!0}),"file"===l?(0,Le.h)("label",{htmlFor:c,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},(0,Le.h)("div",{className:"uppy-ProviderBrowserItem-iconWrap"},p),h&&u):(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowserItem-inner",onClick:d,"aria-label":m("openFolderNamed",{name:u})},(0,Le.h)("div",{className:"uppy-ProviderBrowserItem-iconWrap"},p),h&&(0,Le.h)("span",null,u)))}function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},ia.apply(this,arguments)}function na(e){const{author:t,getItemIcon:i,isChecked:n,isDisabled:a,viewType:o}=e,s=i(),r=zn("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":n},{"uppy-ProviderBrowserItem--disabled":a},{"uppy-ProviderBrowserItem--noPreview":"video"===s}),l=(0,Le.h)($n,{itemIconString:s});switch(o){case"grid":return(0,Le.h)(ea,ia({},e,{className:r,itemIconEl:l}));case"list":return(0,Le.h)(ta,ia({},e,{className:r,itemIconEl:l}));case"unsplash":return(0,Le.h)(ea,ia({},e,{className:r,itemIconEl:l}),(0,Le.h)("a",{href:"".concat(t.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer",className:"uppy-ProviderBrowserItem-author",tabIndex:-1},t.name));default:throw new Error("There is no such type ".concat(o))}}const aa="shared-with-me";function oa(e){const{currentSelection:t,uppyFiles:i,viewType:n,isChecked:a,toggleCheckbox:o,recordShiftKeyPress:s,showTitles:r,i18n:l,validateRestrictions:c,getNextFolder:p,f:u}=e;if(u.isFolder)return na({showTitles:r,viewType:n,i18n:l,id:u.id,title:u.name,getItemIcon:()=>u.icon,isChecked:a(u),toggleCheckbox:e=>o(e,u),recordShiftKeyPress:s,type:"folder",isDisabled:!1,isCheckboxDisabled:u.id===aa,handleFolderClick:()=>p(u)});const d=c(qn(u),[...i,...t]);return na({id:u.id,title:u.name,author:u.author,getItemIcon:()=>u.icon,isChecked:a(u),toggleCheckbox:e=>o(e,u),isCheckboxDisabled:!1,recordShiftKeyPress:s,showTitles:r,viewType:n,i18n:l,type:"file",isDisabled:Boolean(d)&&!a(u),restrictionError:d})}const sa=function(e){const{currentSelection:t,folders:i,files:n,uppyFiles:a,viewType:o,headerComponent:s,showBreadcrumbs:r,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,handleScroll:u,showTitles:d,i18n:h,validateRestrictions:m,isLoading:f,showSearchFilter:g,search:v,searchTerm:b,clearSearch:y,searchOnInput:x,searchInputLabel:w,clearSearchLabel:P,getNextFolder:S,cancel:k,done:_,noResultsLabel:C,loadAllFiles:F}=e,T=t.length,O=kn((()=>[...i,...n]),[i,n]);return(0,Le.h)("div",{className:zn("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--".concat(o))},s&&(0,Le.h)("div",{className:"uppy-ProviderBrowser-header"},(0,Le.h)("div",{className:zn("uppy-ProviderBrowser-headerBar",!r&&"uppy-ProviderBrowser-headerBar--simple")},s)),g&&(0,Le.h)("div",{class:"uppy-ProviderBrowser-searchFilter"},(0,Le.h)(Xn,{search:v,searchTerm:b,clearSearch:y,inputLabel:w,clearSearchLabel:P,inputClassName:"uppy-ProviderBrowser-searchFilterInput",searchOnInput:x})),f?(0,Le.h)("div",{className:"uppy-Provider-loading"},(0,Le.h)("span",null,h("loading"))):i.length||n.length?F?(0,Le.h)("div",{className:"uppy-ProviderBrowser-body"},(0,Le.h)("ul",{className:"uppy-ProviderBrowser-list"},(0,Le.h)(Kn,{data:O,renderRow:e=>(0,Le.h)(oa,{currentSelection:t,uppyFiles:a,viewType:o,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,showTitles:d,i18n:h,validateRestrictions:m,getNextFolder:S,f:e}),rowHeight:31}))):(0,Le.h)("div",{className:"uppy-ProviderBrowser-body"},(0,Le.h)("ul",{className:"uppy-ProviderBrowser-list",onScroll:u,role:"listbox",tabIndex:-1},O.map((e=>(0,Le.h)(oa,{currentSelection:t,uppyFiles:a,viewType:o,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,showTitles:d,i18n:h,validateRestrictions:m,getNextFolder:S,f:e}))))):(0,Le.h)("div",{className:"uppy-Provider-empty"},C),T>0&&(0,Le.h)(Yn,{selected:T,done:_,cancel:k,i18n:h}))};class ra extends Le.wA{componentWillUnmount(){const{onUnmount:e}=this.props;e()}render(){const{children:e}=this.props;return(0,Le.bR)(e)[0]}}function la(e){return!!e&&/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(e)}class ca{constructor(e,t){this.filterItems=e=>{const t=this.plugin.getPluginState();return t.filterInput&&""!==t.filterInput?e.filter((e=>-1!==e.name.toLowerCase().indexOf(t.filterInput.toLowerCase()))):e},this.recordShiftKeyPress=e=>{this.isShiftKeyPressed=e.shiftKey},this.toggleCheckbox=(e,t)=>{e.stopPropagation(),e.preventDefault(),e.currentTarget.focus();const{folders:i,files:n}=this.plugin.getPluginState(),a=this.filterItems(i.concat(n));if(this.lastCheckbox&&this.isShiftKeyPressed){const{currentSelection:e}=this.plugin.getPluginState(),i=a.indexOf(this.lastCheckbox),n=a.indexOf(t),o=i<n?a.slice(i,n+1):a.slice(n,i+1),s=[];for(const t of o){const{uppy:e}=this.plugin,i=e.validateRestrictions(qn(t),[...e.getFiles(),...s]);i?e.info({message:i.message},"error",e.opts.infoTimeout):s.push(t)}return void this.plugin.setPluginState({currentSelection:[...new Set([...e,...s])]})}this.lastCheckbox=t;const{currentSelection:o}=this.plugin.getPluginState();this.isChecked(t)?this.plugin.setPluginState({currentSelection:o.filter((e=>e.id!==t.id))}):this.plugin.setPluginState({currentSelection:o.concat([t])})},this.isChecked=e=>{const{currentSelection:t}=this.plugin.getPluginState();return t.some((t=>t.id===e.id))},this.plugin=e,this.provider=t.provider,this.opts=t,this.isHandlingScroll=!1,this.preFirstRender=this.preFirstRender.bind(this),this.handleError=this.handleError.bind(this),this.clearSelection=this.clearSelection.bind(this),this.cancelPicking=this.cancelPicking.bind(this)}preFirstRender(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()}shouldHandleScroll(e){const{scrollHeight:t,scrollTop:i,offsetHeight:n}=e.target;return t-(i+n)<50&&!this.isHandlingScroll}clearSelection(){this.plugin.setPluginState({currentSelection:[],filterInput:""})}cancelPicking(){this.clearSelection();const e=this.plugin.uppy.getPlugin("Dashboard");e&&e.hideAllPanels()}handleError(e){var t;const{uppy:i}=this.plugin,n=i.i18n("companionError");i.log(e.toString()),e.isAuthError||"AbortError"===(null==(t=e.cause)?void 0:t.name)||i.info({message:n,details:e.toString()},"error",5e3)}registerRequestClient(){this.requestClientId=this.provider.provider,this.plugin.uppy.registerRequestClient(this.requestClientId,this.provider)}getTagFile(e){const t={id:e.id,source:this.plugin.id,name:e.name||e.id,type:e.mimeType,isRemote:!0,data:e,meta:{},body:{fileId:e.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:"".concat(this.provider.fileUrl(e.requestPath)),body:{fileId:e.id},providerName:this.provider.name,provider:this.provider.provider,requestClientId:this.requestClientId}},i=M(t);return i&&la(i)&&(t.preview=e.thumbnail),e.author&&(null!=e.author.name&&(t.meta.authorName=String(e.author.name)),e.author.url&&(t.meta.authorUrl=e.author.url)),null!=e.relDirPath&&(t.meta.relativePath=e.relDirPath?"".concat(e.relDirPath,"/").concat(t.name):null),null!=e.absDirPath&&(t.meta.absolutePath=e.absDirPath?"/".concat(e.absDirPath,"/").concat(t.name):"/".concat(t.name)),t}setLoading(e){this.plugin.setPluginState({loading:e})}}function pa(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ua=0;function da(e){return"__private_"+ua+++"_"+e}function ha(e,t){return e?"".concat(e,"/").concat(t):t}function ma(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,Le.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}const fa={viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0,loadAllFiles:!1};var ga=da("abortController"),va=da("withAbort"),ba=da("list"),ya=da("listFilesAndFolders"),xa=da("recursivelyListAllFiles");async function wa(e){var t;null==(t=pa(this,ga)[ga])||t.abort();const i=new AbortController;pa(this,ga)[ga]=i;const n=()=>{i.abort(),this.clearSelection()};try{this.plugin.uppy.on("dashboard:close-panel",n),this.plugin.uppy.on("cancel-all",n),await e(i.signal)}finally{this.plugin.uppy.off("dashboard:close-panel",n),this.plugin.uppy.off("cancel-all",n),pa(this,ga)[ga]=void 0}}async function Pa(e){let{requestPath:t,absDirPath:i,signal:n}=e;const{username:a,nextPagePath:o,items:s}=await this.provider.list(t,{signal:n});return this.username=a||this.username,{items:s.map((e=>({...e,absDirPath:i}))),nextPagePath:o}}async function Sa(e){let{breadcrumbs:t,signal:i}=e;const n=function(e){return e.slice(1).map((e=>e.name)).join("/")}(t),{items:a,nextPagePath:o}=await pa(this,ba)[ba]({requestPath:this.nextPagePath,absDirPath:n,signal:i});this.nextPagePath=o;const s=[],r=[];return a.forEach((e=>{e.isFolder?r.push(e):s.push(e)})),{files:s,folders:r}}async function ka(e){let{requestPath:t,absDirPath:i,relDirPath:n,queue:a,onFiles:o,signal:s}=e,r=t;for(;r;){const e=await pa(this,ba)[ba]({requestPath:r,absDirPath:i,signal:s});r=e.nextPagePath;const t=e.items.filter((e=>!e.isFolder)),l=e.items.filter((e=>e.isFolder));o(t);const c=l.map((async e=>a.add((async()=>pa(this,xa)[xa]({requestPath:e.requestPath,absDirPath:ha(i,e.name),relDirPath:ha(n,e.name),queue:a,onFiles:o,signal:s})))));await Promise.all(c)}}function _a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(class extends ca{constructor(e,t){super(e,{...fa,...t}),Object.defineProperty(this,xa,{value:ka}),Object.defineProperty(this,ya,{value:Sa}),Object.defineProperty(this,ba,{value:Pa}),Object.defineProperty(this,va,{value:wa}),Object.defineProperty(this,ga,{writable:!0,value:void 0}),this.filterQuery=this.filterQuery.bind(this),this.clearFilter=this.clearFilter.bind(this),this.getFolder=this.getFolder.bind(this),this.getNextFolder=this.getNextFolder.bind(this),this.logout=this.logout.bind(this),this.handleAuth=this.handleAuth.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.render=this.render.bind(this),this.plugin.setPluginState({authenticated:void 0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[]}),this.registerRequestClient()}tearDown(){}async getFolder(e,t){this.setLoading(!0);try{await pa(this,va)[va]((async i=>{this.lastCheckbox=void 0;let{breadcrumbs:n}=this.plugin.getPluginState();const a=n.findIndex((t=>e===t.requestPath));n=-1!==a?n.slice(0,a+1):[...n,{requestPath:e,name:t}],this.nextPagePath=e;let o=[],s=[];do{const{files:e,folders:t}=await pa(this,ya)[ya]({breadcrumbs:n,signal:i});o=o.concat(e),s=s.concat(t),this.setLoading(this.plugin.uppy.i18n("loadedXFiles",{numFiles:o.length+s.length}))}while(this.opts.loadAllFiles&&this.nextPagePath);this.plugin.setPluginState({folders:s,files:o,breadcrumbs:n,filterInput:""})}))}catch(i){if("UserFacingApiError"===(null==i?void 0:i.name))return void this.plugin.uppy.info({message:this.plugin.uppy.i18n(i.message)},"warning",5e3);this.handleError(i)}finally{this.setLoading(!1)}}getNextFolder(e){this.getFolder(e.requestPath,e.name),this.lastCheckbox=void 0}async logout(){try{await pa(this,va)[va]((async e=>{const t=await this.provider.logout({signal:e});if(t.ok){if(!t.revoked){const e=this.plugin.uppy.i18n("companionUnauthorizeHint",{provider:this.plugin.title,url:t.manual_revoke_url});this.plugin.uppy.info(e,"info",7e3)}const e={authenticated:!1,files:[],folders:[],breadcrumbs:[],filterInput:""};this.plugin.setPluginState(e)}}))}catch(e){this.handleError(e)}}filterQuery(e){this.plugin.setPluginState({filterInput:e})}clearFilter(){this.plugin.setPluginState({filterInput:""})}async handleAuth(e){try{await pa(this,va)[va]((async t=>{this.setLoading(!0),await this.provider.login({authFormData:e,signal:t}),this.plugin.setPluginState({authenticated:!0}),this.preFirstRender()}))}catch(t){if("UserFacingApiError"===t.name)return void this.plugin.uppy.info({message:this.plugin.uppy.i18n(t.message)},"warning",5e3);this.plugin.uppy.log("login failed: ".concat(t.message))}finally{this.setLoading(!1)}}async handleScroll(e){if(this.shouldHandleScroll(e)&&this.nextPagePath){this.isHandlingScroll=!0;try{await pa(this,va)[va]((async e=>{const{files:t,folders:i,breadcrumbs:n}=this.plugin.getPluginState(),{files:a,folders:o}=await pa(this,ya)[ya]({breadcrumbs:n,signal:e}),s=t.concat(a),r=i.concat(o);this.plugin.setPluginState({folders:r,files:s})}))}catch(_c){this.handleError(_c)}finally{this.isHandlingScroll=!1}}}async donePicking(){this.setLoading(!0);try{await pa(this,va)[va]((async e=>{const{currentSelection:t}=this.plugin.getPluginState(),i=[],n=[];for(const a of t){const{requestPath:t}=a,o=e=>({...e,relDirPath:e.absDirPath.replace(a.absDirPath,"").replace(/^\//,"")});if(a.isFolder){let s=!0,r=0;const l=new sn({concurrency:6}),c=e=>{for(const t of e){const e=z(this.getTagFile(t));this.plugin.uppy.checkIfFileAlreadyExists(e)||(n.push(o(t)),r++,this.setLoading(this.plugin.uppy.i18n("addedNumFiles",{numFiles:r}))),s=!1}};let p;await pa(this,xa)[xa]({requestPath:t,absDirPath:ha(a.absDirPath,a.name),relDirPath:a.name,queue:l,onFiles:c,signal:e}),await l.onIdle(),p=s?this.plugin.uppy.i18n("emptyFolderAdded"):0===r?this.plugin.uppy.i18n("folderAlreadyAdded",{folder:a.name}):this.plugin.uppy.i18n("folderAdded",{smart_count:r,folder:a.name}),i.push(p)}else n.push(o(a))}this.plugin.uppy.log("Adding files from a remote provider"),this.plugin.uppy.addFiles(n.map((e=>this.getTagFile(e,this.requestClientId)))),this.plugin.setPluginState({filterInput:""}),i.forEach((e=>this.plugin.uppy.info(e))),this.clearSelection()}))}catch(e){this.handleError(e)}finally{this.setLoading(!1)}}render(e,t){var i=this;void 0===t&&(t={});const{authenticated:n,didFirstRender:a}=this.plugin.getPluginState(),{i18n:o}=this.plugin.uppy;a||this.preFirstRender();const s={...this.opts,...t},{files:r,folders:l,filterInput:c,loading:p,currentSelection:u}=this.plugin.getPluginState(),{isChecked:d,toggleCheckbox:h,recordShiftKeyPress:m,filterItems:f}=this,g=""!==c,v=this.plugin.icon||ma,b={showBreadcrumbs:s.showBreadcrumbs,getFolder:this.getFolder,breadcrumbs:this.plugin.getPluginState().breadcrumbs,pluginIcon:v,title:this.plugin.title,logout:this.logout,username:this.username,i18n:o},y={isChecked:d,toggleCheckbox:h,recordShiftKeyPress:m,currentSelection:u,files:g?f(r):r,folders:g?f(l):l,getNextFolder:this.getNextFolder,getFolder:this.getFolder,loadAllFiles:this.opts.loadAllFiles,showSearchFilter:s.showFilter,search:this.filterQuery,clearSearch:this.clearFilter,searchTerm:c,searchOnInput:!0,searchInputLabel:o("filter"),clearSearchLabel:o("resetFilter"),noResultsLabel:o("noFilesFound"),logout:this.logout,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,headerComponent:(0,Le.h)(Ln,b),title:this.plugin.title,viewType:s.viewType,showTitles:s.showTitles,showBreadcrumbs:s.showBreadcrumbs,pluginIcon:v,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){return i.plugin.uppy.validateRestrictions(...arguments)},isLoading:p};return!1===n?(0,Le.h)(ra,{onUnmount:this.clearSelection},(0,Le.h)(An,{pluginName:this.plugin.title,pluginIcon:v,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18nArray,renderForm:this.opts.renderAuthForm,loading:p})):(0,Le.h)(ra,{onUnmount:this.clearSelection},(0,Le.h)(sa,y))}}).VERSION="3.10.0";var Ca=0;function Fa(e){return"__private_"+Ca+++"_"+e}const Ta={isInputMode:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",currentSelection:[],searchTerm:null},Oa={viewType:"grid",showTitles:!0,showFilter:!0,showBreadcrumbs:!0};var Ea=Fa("updateFilesAndInputMode");class Da extends ca{constructor(e,t){super(e,{...Oa,...t}),Object.defineProperty(this,Ea,{value:Ra}),this.nextPageQuery=null,this.search=this.search.bind(this),this.clearSearch=this.clearSearch.bind(this),this.resetPluginState=this.resetPluginState.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.render=this.render.bind(this),this.plugin.setPluginState(Ta),this.registerRequestClient()}tearDown(){}resetPluginState(){this.plugin.setPluginState(Ta)}async search(e){const{searchTerm:t}=this.plugin.getPluginState();if(!e||e!==t){this.setLoading(!0);try{const t=await this.provider.search(e);_a(this,Ea)[Ea](t,[])}catch(i){this.handleError(i)}finally{this.setLoading(!1)}}}clearSearch(){this.plugin.setPluginState({currentSelection:[],files:[],searchTerm:null})}async handleScroll(e){const t=this.nextPageQuery||null;if(this.shouldHandleScroll(e)&&t){this.isHandlingScroll=!0;try{const{files:e,searchTerm:i}=this.plugin.getPluginState(),n=await this.provider.search(i,t);_a(this,Ea)[Ea](n,e)}catch(_c){this.handleError(_c)}finally{this.isHandlingScroll=!1}}}donePicking(){const{currentSelection:e}=this.plugin.getPluginState();this.plugin.uppy.log("Adding remote search provider files"),this.plugin.uppy.addFiles(e.map((e=>this.getTagFile(e)))),this.resetPluginState()}render(e,t){var i=this;void 0===t&&(t={});const{didFirstRender:n,isInputMode:a,searchTerm:o}=this.plugin.getPluginState(),{i18n:s}=this.plugin.uppy;n||this.preFirstRender();const r={...this.opts,...t},{files:l,folders:c,filterInput:p,loading:u,currentSelection:d}=this.plugin.getPluginState(),{isChecked:h,toggleCheckbox:m,filterItems:f,recordShiftKeyPress:g}=this,v=""!==p,b={isChecked:h,toggleCheckbox:m,recordShiftKeyPress:g,currentSelection:d,files:v?f(l):l,folders:v?f(c):c,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,showSearchFilter:r.showFilter,search:this.search,clearSearch:this.clearSearch,searchTerm:o,searchOnInput:!1,searchInputLabel:s("search"),clearSearchLabel:s("resetSearch"),noResultsLabel:s("noSearchResults"),title:this.plugin.title,viewType:r.viewType,showTitles:r.showTitles,showFilter:r.showFilter,isLoading:u,showBreadcrumbs:r.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:s,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){return i.plugin.uppy.validateRestrictions(...arguments)}};return a?(0,Le.h)(ra,{onUnmount:this.resetPluginState},(0,Le.h)("div",{className:"uppy-SearchProvider"},(0,Le.h)(Xn,{search:this.search,inputLabel:s("enterTextToSearch"),buttonLabel:s("searchImages"),inputClassName:"uppy-c-textInput uppy-SearchProvider-input",buttonCSSClassName:"uppy-SearchProvider-searchButton",showButton:!0}))):(0,Le.h)(ra,{onUnmount:this.resetPluginState},(0,Le.h)(sa,b))}}function Ra(e,t){this.nextPageQuery=e.nextPageQuery,e.items.forEach((e=>{t.push(e)})),this.plugin.setPluginState({currentSelection:[],isInputMode:!1,files:t,searchTerm:e.searchedFor})}Da.VERSION="3.10.0";class Ua extends Ze{constructor(e,t){if(super(e,t),this.id=this.opts.id||"Unsplash",this.title=this.opts.title||"Unsplash",ri.initPlugin(this,t,{}),this.icon=()=>(0,Le.h)("svg",{className:"uppy-DashboardTab-iconUnsplash",viewBox:"0 0 32 32",height:"32",width:"32","aria-hidden":"true"},(0,Le.h)("g",{fill:"currentcolor"},(0,Le.h)("path",{d:"M46.575 10.883v-9h12v9zm12 5h10v18h-32v-18h10v9h12z"}),(0,Le.h)("path",{d:"M13 12.5V8h6v4.5zm6 2.5h5v9H8v-9h5v4.5h6z"}))),!this.opts.companionUrl)throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");this.hostname=this.opts.companionUrl,this.provider=new pi(e,{companionUrl:this.opts.companionUrl,companionHeaders:this.opts.companionHeaders,companionCookiesRule:this.opts.companionCookiesRule,provider:"unsplash",pluginId:this.id})}install(){this.view=new Da(this,{provider:this.provider,viewType:"unsplash",showFilter:!0});const{target:e}=this.opts;e&&this.mount(e,this)}onFirstRender(){}render(e){return this.view.render(e)}uninstall(){this.unmount()}}Ua.VERSION="3.2.3";var Ia=i(87384),ja=i.n(Ia),Aa=i(63838);function Na(e,t,i,n){return 0===i||e===t?e:0===n?t:e+(t-e)*2**(-n/i)}const Ba={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete"};function Ma(e){const t=[];let i,n="indeterminate";for(const{progress:a}of Object.values(e)){const{preprocess:e,postprocess:o}=a;null==i&&(e||o)&&({mode:n,message:i}=e||o),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==o?void 0:o.mode)&&t.push(o.value)}return{mode:n,message:i,value:t.reduce(((e,i)=>e+i/t.length),0)}}function La(e){const t=(i=e,{hours:Math.floor(i/3600)%24,minutes:Math.floor(i/60)%60,seconds:Math.floor(i%60)});var i;const n=0===t.hours?"":"".concat(t.hours,"h"),a=0===t.minutes?"":"".concat(0===t.hours?t.minutes:" ".concat(t.minutes.toString(10).padStart(2,"0")),"m"),o=0!==t.hours?"":"".concat(0===t.minutes?t.seconds:" ".concat(t.seconds.toString(10).padStart(2,"0")),"s");return"".concat(n).concat(a).concat(o)}const za=()=>" ".concat("\xb7"," ");function qa(e){const{newFiles:t,isUploadStarted:i,recoveredState:n,i18n:a,uploadState:o,isSomeGhost:s,startUpload:r}=e,l=zn("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":o===Ba.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":s}),c=a(t&&i&&!n?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return(0,Le.h)("button",{type:"button",className:l,"aria-label":a("uploadXFiles",{smart_count:t}),onClick:r,disabled:s,"data-uppy-super-focusable":!0},c)}function Ha(e){const{i18n:t,uppy:i}=e;return(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>i.retryAll().catch((()=>{})),"data-uppy-super-focusable":!0,"data-cy":"retry"},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},(0,Le.h)("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))}function Wa(e){const{i18n:t,uppy:i}=e;return(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>i.cancelAll(),"data-cy":"cancel","data-uppy-super-focusable":!0},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,Le.h)("g",{fill:"none",fillRule:"evenodd"},(0,Le.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,Le.h)("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))}function Va(e){const{isAllPaused:t,i18n:i,isAllComplete:n,resumableUploads:a,uppy:o}=e,s=i(t?"resume":"pause");return(0,Le.h)("button",{title:s,"aria-label":s,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){n||(a?t?o.resumeAll():o.pauseAll():o.cancelAll())},"data-cy":"togglePauseResume","data-uppy-super-focusable":!0},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},(0,Le.h)("g",{fill:"none",fillRule:"evenodd"},(0,Le.h)("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),(0,Le.h)("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))}function Ga(e){const{i18n:t,doneButtonHandler:i}=e;return(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:i,"data-uppy-super-focusable":!0},t("done"))}function Ka(){return(0,Le.h)("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},(0,Le.h)("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function Xa(e){const{progress:t}=e,{value:i,mode:n,message:a}=t;return(0,Le.h)("div",{className:"uppy-StatusBar-content"},(0,Le.h)(Ka,null),"determinate"===n?"".concat(Math.round(100*i),"% ").concat("\xb7"," "):"",a)}function Ya(e){const{numUploads:t,complete:i,totalUploadedSize:n,totalSize:a,totalETA:o,i18n:s}=e,r=t>1;return(0,Le.h)("div",{className:"uppy-StatusBar-statusSecondary"},r&&s("filesUploadedOfTotal",{complete:i,smart_count:t}),(0,Le.h)("span",{className:"uppy-StatusBar-additionalInfo"},r&&za(),s("dataUploadedOfTotal",{complete:K(n),total:K(a)}),za(),s("xTimeLeft",{time:La(o)})))}function Za(e){const{i18n:t,complete:i,numUploads:n}=e;return(0,Le.h)("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:i,smart_count:n}))}function Ja(e){const{i18n:t,newFiles:i,startUpload:n}=e,a=zn("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return(0,Le.h)("div",{className:"uppy-StatusBar-statusSecondary"},(0,Le.h)("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:i})),(0,Le.h)("button",{type:"button",className:a,"aria-label":t("uploadXFiles",{smart_count:i}),onClick:n},t("upload")))}function Qa(e){const{i18n:t,supportsUploadProgress:i,totalProgress:n,showProgressDetails:a,isUploadStarted:o,isAllComplete:s,isAllPaused:r,newFiles:l,numUploads:c,complete:p,totalUploadedSize:u,totalSize:d,totalETA:h,startUpload:m}=e,f=l&&o;if(!o||s)return null;const g=t(r?"paused":"uploading");return(0,Le.h)("div",{className:"uppy-StatusBar-content","aria-label":g,title:g},r?null:(0,Le.h)(Ka,null),(0,Le.h)("div",{className:"uppy-StatusBar-status"},(0,Le.h)("div",{className:"uppy-StatusBar-statusPrimary"},i?"".concat(g,": ").concat(n,"%"):g),r||f||!a?null:i?(0,Le.h)(Ya,{numUploads:c,complete:p,totalUploadedSize:u,totalSize:d,totalETA:h,i18n:t}):(0,Le.h)(Za,{i18n:t,complete:p,numUploads:c}),f?(0,Le.h)(Ja,{i18n:t,newFiles:l,startUpload:m}):null))}function $a(e){const{i18n:t}=e;return(0,Le.h)("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},(0,Le.h)("div",{className:"uppy-StatusBar-status"},(0,Le.h)("div",{className:"uppy-StatusBar-statusPrimary"},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},(0,Le.h)("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))}function eo(e){const{error:t,i18n:i,complete:n,numUploads:a}=e;return(0,Le.h)("div",{className:"uppy-StatusBar-content",title:i("uploadFailed")},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,Le.h)("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),(0,Le.h)("div",{className:"uppy-StatusBar-status"},(0,Le.h)("div",{className:"uppy-StatusBar-statusPrimary"},i("uploadFailed"),(0,Le.h)("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":i("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e="".concat(i("uploadFailed")," \n\n ").concat(t);alert(e)},type:"button"},"?")),(0,Le.h)(Za,{i18n:i,complete:n,numUploads:a})))}const{STATE_ERROR:to,STATE_WAITING:io,STATE_PREPROCESSING:no,STATE_UPLOADING:ao,STATE_POSTPROCESSING:oo,STATE_COMPLETE:so}=Ba;function ro(e){const{newFiles:t,allowNewUpload:i,isUploadInProgress:n,isAllPaused:a,resumableUploads:o,error:s,hideUploadButton:r,hidePauseResumeButton:l,hideCancelButton:c,hideRetryButton:p,recoveredState:u,uploadState:d,totalProgress:h,files:m,supportsUploadProgress:f,hideAfterFinish:g,isSomeGhost:v,doneButtonHandler:b,isUploadStarted:y,i18n:x,startUpload:w,uppy:P,isAllComplete:S,showProgressDetails:k,numUploads:_,complete:C,totalSize:F,totalETA:T,totalUploadedSize:O}=e;const E=function(){switch(d){case oo:case no:{const e=Ma(m);return"determinate"===e.mode?100*e.value:h}case to:return null;case ao:return f?h:null;default:return h}}(),D=function(){if(u)return!1;switch(d){case io:return r||0===t;case so:return g;default:return!1}}(),R=null!=E?E:100,U=!s&&t&&!n&&!a&&i&&!r,I=!c&&d!==io&&d!==so,j=o&&!l&&d===ao,A=s&&!S&&!p,N=b&&d===so,B=zn("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(d){case oo:case no:{const{mode:e}=Ma(m);return"indeterminate"===e}case ao:return!f;default:return!1}}()}),M=zn("uppy-StatusBar","is-".concat(d),{"has-ghosts":v});return(0,Le.h)("div",{className:M,"aria-hidden":D},(0,Le.h)("div",{className:B,style:{width:"".concat(R,"%")},role:"progressbar","aria-label":"".concat(R,"%"),"aria-valuetext":"".concat(R,"%"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":E}),(()=>{switch(d){case no:case oo:return(0,Le.h)(Xa,{progress:Ma(m)});case so:return(0,Le.h)($a,{i18n:x});case to:return(0,Le.h)(eo,{error:s,i18n:x,numUploads:_,complete:C});case ao:return(0,Le.h)(Qa,{i18n:x,supportsUploadProgress:f,totalProgress:h,showProgressDetails:k,isUploadStarted:y,isAllComplete:S,isAllPaused:a,newFiles:t,numUploads:_,complete:C,totalUploadedSize:O,totalSize:F,totalETA:T,startUpload:w});default:return null}})(),(0,Le.h)("div",{className:"uppy-StatusBar-actions"},u||U?(0,Le.h)(qa,{newFiles:t,isUploadStarted:y,recoveredState:u,i18n:x,isSomeGhost:v,startUpload:w,uploadState:d}):null,A?(0,Le.h)(Ha,{i18n:x,uppy:P}):null,j?(0,Le.h)(Va,{isAllPaused:a,i18n:x,isAllComplete:S,resumableUploads:o,uppy:P}):null,I?(0,Le.h)(Wa,{i18n:x,uppy:P}):null,N?(0,Le.h)(Ga,{i18n:x,doneButtonHandler:b}):null))}ro.defaultProps={doneButtonHandler:void 0,hideAfterFinish:!1,hideCancelButton:!1,hidePauseResumeButton:!1,hideRetryButton:!1,hideUploadButton:void 0,showProgressDetails:void 0};const lo={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}};function co(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var po=0;function uo(e){return"__private_"+po+++"_"+e}function ho(e,t,i,n){if(e)return Ba.STATE_ERROR;if(t)return Ba.STATE_COMPLETE;if(i)return Ba.STATE_WAITING;let a=Ba.STATE_WAITING;const o=Object.keys(n);for(let s=0;s<o.length;s++){const{progress:e}=n[o[s]];if(e.uploadStarted&&!e.uploadComplete)return Ba.STATE_UPLOADING;e.preprocess&&(a=Ba.STATE_PREPROCESSING),e.postprocess&&a!==Ba.STATE_PREPROCESSING&&(a=Ba.STATE_POSTPROCESSING)}return a}const mo={target:"body",hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null};var fo=uo("lastUpdateTime"),go=uo("previousUploadedBytes"),vo=uo("previousSpeed"),bo=uo("previousETA"),yo=uo("computeSmoothETA"),xo=uo("onUploadStart");class wo extends Ze{constructor(e,t){super(e,{...mo,...t}),Object.defineProperty(this,yo,{value:Po}),Object.defineProperty(this,fo,{writable:!0,value:void 0}),Object.defineProperty(this,go,{writable:!0,value:void 0}),Object.defineProperty(this,vo,{writable:!0,value:void 0}),Object.defineProperty(this,bo,{writable:!0,value:void 0}),this.startUpload=()=>this.uppy.upload().catch((()=>{})),Object.defineProperty(this,xo,{writable:!0,value:()=>{const{recoveredState:e}=this.uppy.getState();if(co(this,vo)[vo]=null,co(this,bo)[bo]=null,e)return co(this,go)[go]=Object.values(e.files).reduce(((e,t)=>{let{progress:i}=t;return e+i.bytesUploaded}),0),void this.uppy.emit("restore-confirmed");co(this,fo)[fo]=performance.now(),co(this,go)[go]=0}}),this.id=this.opts.id||"StatusBar",this.title="StatusBar",this.type="progressindicator",this.defaultLocale=lo,this.i18nInit(),this.render=this.render.bind(this),this.install=this.install.bind(this)}render(e){const{capabilities:t,files:i,allowNewUpload:n,totalProgress:a,error:o,recoveredState:s}=e,{newFiles:r,startedFiles:l,completeFiles:c,isUploadStarted:p,isAllComplete:u,isAllErrored:d,isAllPaused:h,isUploadInProgress:m,isSomeGhost:f}=this.uppy.getObjectOfFilesPerState(),g=s?Object.values(i):r,v=!!t.resumableUploads,b=!1!==t.uploadProgress;let y=0,x=0;l.forEach((e=>{y+=e.progress.bytesTotal||0,x+=e.progress.bytesUploaded||0}));const w=co(this,yo)[yo]({uploaded:x,total:y,remaining:y-x});return ro({error:o,uploadState:ho(o,u,s,e.files||{}),allowNewUpload:n,totalProgress:a,totalSize:y,totalUploadedSize:x,isAllComplete:!1,isAllPaused:h,isAllErrored:d,isUploadStarted:p,isUploadInProgress:m,isSomeGhost:f,recoveredState:s,complete:c.length,newFiles:g.length,numUploads:l.length,totalETA:w,files:i,i18n:this.i18n,uppy:this.uppy,startUpload:this.startUpload,doneButtonHandler:this.opts.doneButtonHandler,resumableUploads:v,supportsUploadProgress:b,showProgressDetails:this.opts.showProgressDetails,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,hideAfterFinish:this.opts.hideAfterFinish,isTargetDOMEl:this.isTargetDOMEl})}onMount(){const e=this.el;He(e)||(e.dir="ltr")}install(){const{target:e}=this.opts;e&&this.mount(e,this),this.uppy.on("upload",co(this,xo)[xo]),co(this,fo)[fo]=performance.now(),co(this,go)[go]=this.uppy.getFiles().reduce(((e,t)=>e+t.progress.bytesUploaded),0)}uninstall(){this.unmount(),this.uppy.off("upload",co(this,xo)[xo])}}function Po(e){var t;if(0===e.total||0===e.remaining)return 0;null!=(t=co(this,fo))[fo]||(t[fo]=performance.now());const i=performance.now()-co(this,fo)[fo];var n;if(0===i)return Math.round((null!=(n=co(this,bo)[bo])?n:0)/100)/10;const a=e.uploaded-co(this,go)[go];var o;if(co(this,go)[go]=e.uploaded,a<=0)return Math.round((null!=(o=co(this,bo)[bo])?o:0)/100)/10;const s=a/i,r=null==co(this,vo)[vo]?s:Na(s,co(this,vo)[vo],2e3,i);co(this,vo)[vo]=r;const l=e.remaining/r,c=Math.max(co(this,bo)[bo]-i,0),p=null==co(this,bo)[bo]?l:Na(l,c,2e3,i);return co(this,bo)[bo]=p,co(this,fo)[fo]=performance.now(),Math.round(p/100)/10}wo.VERSION="3.3.0";class So extends Le.wA{constructor(){super(...arguments),this.ref=(0,Le.Vf)()}componentWillEnter(e){this.ref.current.style.opacity="1",this.ref.current.style.transform="none",setTimeout(e,300)}componentWillLeave(e){this.ref.current.style.opacity="0",this.ref.current.style.transform="translateY(350%)",setTimeout(e,300)}render(){const{children:e}=this.props;return(0,Le.h)("div",{className:"uppy-Informer-animated",ref:this.ref},e)}}function ko(e,t){var i;return null!=(i=null==e?void 0:e.key)?i:t}function _o(e){const t={};for(let i=0;i<e.length;i++)if(null!=e[i]){t[ko(e[i],i.toString(36))]=e[i]}return t}function Co(e,t){e=e||{},t=t||{};const i=i=>t.hasOwnProperty(i)?t[i]:e[i],n={};let a=[];for(const s in e)t.hasOwnProperty(s)?a.length&&(n[s]=a,a=[]):a.push(s);const o={};for(const s in t){if(n.hasOwnProperty(s))for(let e=0;e<n[s].length;e++){const t=n[s][e];o[n[s][e]]=i(t)}o[s]=i(s)}for(let s=0;s<a.length;s++)o[a[s]]=i(a[s]);return o}class Fo extends Le.wA{constructor(e,t){super(e,t),this.refs={},this.state={children:_o((0,Le.bR)((0,Le.bR)(this.props.children))||[])},this.performAppear=this.performAppear.bind(this),this.performEnter=this.performEnter.bind(this),this.performLeave=this.performLeave.bind(this)}componentWillMount(){this.currentlyTransitioningKeys={},this.keysToAbortLeave=[],this.keysToEnter=[],this.keysToLeave=[]}componentDidMount(){const e=this.state.children;for(const t in e)e[t]&&this.performAppear(t)}componentWillReceiveProps(e){const t=_o((0,Le.bR)(e.children)||[]),i=this.state.children;let n;for(n in this.setState((e=>({children:Co(e.children,t)}))),t)if(t.hasOwnProperty(n)){const e=i&&i.hasOwnProperty(n);t[n]&&e&&this.currentlyTransitioningKeys[n]?(this.keysToEnter.push(n),this.keysToAbortLeave.push(n)):!t[n]||e||this.currentlyTransitioningKeys[n]||this.keysToEnter.push(n)}for(n in i)if(i.hasOwnProperty(n)){const e=t&&t.hasOwnProperty(n);!i[n]||e||this.currentlyTransitioningKeys[n]||this.keysToLeave.push(n)}}componentDidUpdate(){const{keysToEnter:e}=this;this.keysToEnter=[],e.forEach(this.performEnter);const{keysToLeave:t}=this;this.keysToLeave=[],t.forEach(this.performLeave)}_finishAbort(e){const t=this.keysToAbortLeave.indexOf(e);-1!==t&&this.keysToAbortLeave.splice(t,1)}performAppear(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];null!=t&&t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)}_handleDoneAppearing(e){const t=this.refs[e];null!=t&&t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const i=_o((0,Le.bR)(this.props.children)||[]);i&&i.hasOwnProperty(e)||this.performLeave(e)}performEnter(e){this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];null!=t&&t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)}_handleDoneEntering(e){const t=this.refs[e];null!=t&&t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e],this._finishAbort(e);const i=_o((0,Le.bR)(this.props.children)||[]);i&&i.hasOwnProperty(e)||this.performLeave(e)}performLeave(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;this.currentlyTransitioningKeys[e]=!0;const t=this.refs[e];null!=t&&t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)}_handleDoneLeaving(e){if(-1!==this.keysToAbortLeave.indexOf(e))return;const t=this.refs[e];null!=t&&t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];const i=_o((0,Le.bR)(this.props.children)||[]);if(i&&i.hasOwnProperty(e))this.performEnter(e);else{const t=(n={},a=this.state.children,Object.assign(n,a));delete t[e],this.setState({children:t})}var n,a}render(e,t){let{childFactory:i,transitionLeave:n,transitionName:a,transitionAppear:o,transitionEnter:s,transitionLeaveTimeout:r,transitionEnterTimeout:l,transitionAppearTimeout:c,component:p,...u}=e,{children:d}=t;const h=Object.entries(d).map((e=>{let[t,n]=e;if(!n)return;const a=function(e,t){const i=e._ptgLinkedRefs||(e._ptgLinkedRefs={});return i[t]||(i[t]=i=>{e.refs[t]=i})}(this,t);return(0,Le.Tm)(i(n),{ref:a,key:t})})).filter(Boolean);return(0,Le.h)(p,u,h)}}Fo.defaultProps={component:"span",childFactory:e=>e};const To=Fo;class Oo extends Ze{constructor(e,t){super(e,t),this.render=e=>(0,Le.h)("div",{className:"uppy uppy-Informer"},(0,Le.h)(To,null,e.info.map((e=>(0,Le.h)(So,{key:e.message},(0,Le.h)("p",{role:"alert"},e.message," ",e.details&&(0,Le.h)("span",{"aria-label":e.details,"data-microtip-position":"top-left","data-microtip-size":"medium",role:"tooltip",onClick:()=>alert("".concat(e.message," \n\n ").concat(e.details))},"?"))))))),this.type="progressindicator",this.id=this.opts.id||"Informer",this.title="Informer"}install(){const{target:e}=this.opts;e&&this.mount(e,this)}}Oo.VERSION="3.1.0";const Eo=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;function Do(e){return e.startsWith("blob:")}var Ro=i(24921),Uo=i(55227).Buffer;function Io(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var jo="undefined"!=typeof self?self:global;const Ao="undefined"!=typeof navigator,No=Ao&&"undefined"==typeof HTMLImageElement,Bo=!("undefined"==typeof global||"undefined"==typeof Ro||!Ro.versions||!Ro.versions.node),Mo=jo.Buffer,Lo=!!Mo,zo=e=>void 0!==e;function qo(e){return void 0===e||(e instanceof Map?0===e.size:0===Object.values(e).filter(zo).length)}function Ho(e){let t=new Error(e);throw delete t.stack,t}function Wo(e){let t=function(e){let t=0;return e.ifd0.enabled&&(t+=1024),e.exif.enabled&&(t+=2048),e.makerNote&&(t+=2048),e.userComment&&(t+=1024),e.gps.enabled&&(t+=512),e.interop.enabled&&(t+=100),e.ifd1.enabled&&(t+=1024),t+2048}(e);return e.jfif.enabled&&(t+=50),e.xmp.enabled&&(t+=2e4),e.iptc.enabled&&(t+=14e3),e.icc.enabled&&(t+=6e3),t}const Vo=e=>String.fromCharCode.apply(null,e),Go="undefined"!=typeof TextDecoder?new TextDecoder("utf-8"):void 0;class Ko{static from(e,t){return e instanceof this&&e.le===t?e:new Ko(e,void 0,void 0,t)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("boolean"==typeof n&&(this.le=n),Array.isArray(e)&&(e=new Uint8Array(e)),0===e)this.byteOffset=0,this.byteLength=0;else if(e instanceof ArrayBuffer){void 0===i&&(i=e.byteLength-t);let n=new DataView(e,t,i);this._swapDataView(n)}else if(e instanceof Uint8Array||e instanceof DataView||e instanceof Ko){void 0===i&&(i=e.byteLength-t),(t+=e.byteOffset)+i>e.byteOffset+e.byteLength&&Ho("Creating view outside of available memory in ArrayBuffer");let n=new DataView(e.buffer,t,i);this._swapDataView(n)}else if("number"==typeof e){let t=new DataView(new ArrayBuffer(e));this._swapDataView(t)}else Ho("Invalid input argument for BufferView: "+e)}_swapArrayBuffer(e){this._swapDataView(new DataView(e))}_swapBuffer(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}_swapDataView(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}_lengthToEnd(e){return this.byteLength-e}set(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ko;return e instanceof DataView||e instanceof Ko?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e instanceof Uint8Array||Ho("BufferView.set(): Invalid data argument."),this.toUint8().set(e,t),new i(this,t,e.byteLength)}subarray(e,t){return t=t||this._lengthToEnd(e),new Ko(this,e,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}getString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength;return i=this.getUint8Array(e,t),Go?Go.decode(i):Lo?Uo.from(i).toString("utf8"):decodeURIComponent(escape(Vo(i)));var i}getLatin1String(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,i=this.getUint8Array(e,t);return Vo(i)}getUnicodeString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength;const i=[];for(let n=0;n<t&&e+n<this.byteLength;n+=2)i.push(this.getUint16(e+n));return Vo(i)}getInt8(e){return this.dataView.getInt8(e)}getUint8(e){return this.dataView.getUint8(e)}getInt16(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt16(e,t)}getInt32(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt32(e,t)}getUint16(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint16(e,t)}getUint32(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint32(e,t)}getFloat32(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}getFloat64(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}getFloat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}getDouble(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}getUintBytes(e,t,i){switch(t){case 1:return this.getUint8(e,i);case 2:return this.getUint16(e,i);case 4:return this.getUint32(e,i);case 8:return this.getUint64&&this.getUint64(e,i)}}getUint(e,t,i){switch(t){case 8:return this.getUint8(e,i);case 16:return this.getUint16(e,i);case 32:return this.getUint32(e,i);case 64:return this.getUint64&&this.getUint64(e,i)}}toString(e){return this.dataView.toString(e,this.constructor.name)}ensureChunk(){}}function Xo(e,t){Ho("".concat(e," '").concat(t,"' was not loaded, try using full build of exifr."))}class Yo extends Map{constructor(e){super(),this.kind=e}get(e,t){return this.has(e)||Xo(this.kind,e),t&&(e in t||function(e,t){Ho("Unknown ".concat(e," '").concat(t,"'."))}(this.kind,e),t[e].enabled||Xo(this.kind,e)),super.get(e)}keyList(){return Array.from(this.keys())}}var Zo=new Yo("file parser"),Jo=new Yo("segment parser"),Qo=new Yo("file reader");let $o=jo.fetch;function es(e,t){return(i=e).startsWith("data:")||i.length>1e4?is(e,t,"base64"):Bo&&e.includes("://")?ts(e,t,"url",ns):Bo?is(e,t,"fs"):Ao?ts(e,t,"url",ns):void Ho("Invalid input argument");var i}async function ts(e,t,i,n){return Qo.has(i)?is(e,t,i):n?async function(e,t){let i=await t(e);return new Ko(i)}(e,n):void Ho("Parser ".concat(i," is not loaded"))}async function is(e,t,i){let n=new(Qo.get(i))(e,t);return await n.read(),n}const ns=e=>$o(e).then((e=>e.arrayBuffer())),as=e=>new Promise(((t,i)=>{let n=new FileReader;n.onloadend=()=>t(n.result||new ArrayBuffer),n.onerror=i,n.readAsArrayBuffer(e)}));class os extends Map{get tagKeys(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}get tagValues(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}function ss(e,t,i){let n=new os;for(let[a,o]of i)n.set(a,o);if(Array.isArray(t))for(let a of t)e.set(a,n);else e.set(t,n);return n}function rs(e,t,i){let n,a=e.get(t);for(n of i)a.set(n[0],n[1])}const ls=new Map,cs=new Map,ps=new Map,us=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],ds=["jfif","xmp","icc","iptc","ihdr"],hs=["tiff",...ds],ms=["ifd0","ifd1","exif","gps","interop"],fs=[...hs,...ms],gs=["makerNote","userComment"],vs=["translateKeys","translateValues","reviveValues","multiSegment"],bs=[...vs,"sanitize","mergeOutput","silentErrors"];class ys{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class xs extends ys{get needed(){return this.enabled||this.deps.size>0}constructor(e,t,i,n){if(super(),Io(this,"enabled",!1),Io(this,"skip",new Set),Io(this,"pick",new Set),Io(this,"deps",new Set),Io(this,"translateKeys",!1),Io(this,"translateValues",!1),Io(this,"reviveValues",!1),this.key=e,this.enabled=t,this.parse=this.enabled,this.applyInheritables(n),this.canBeFiltered=ms.includes(e),this.canBeFiltered&&(this.dict=ls.get(e)),void 0!==i)if(Array.isArray(i))this.parse=this.enabled=!0,this.canBeFiltered&&i.length>0&&this.translateTagSet(i,this.pick);else if("object"==typeof i){if(this.enabled=!0,this.parse=!1!==i.parse,this.canBeFiltered){let{pick:e,skip:t}=i;e&&e.length>0&&this.translateTagSet(e,this.pick),t&&t.length>0&&this.translateTagSet(t,this.skip)}this.applyInheritables(i)}else!0===i||!1===i?this.parse=this.enabled=i:Ho("Invalid options argument: ".concat(i))}applyInheritables(e){let t,i;for(t of vs)i=e[t],void 0!==i&&(this[t]=i)}translateTagSet(e,t){if(this.dict){let i,n,{tagKeys:a,tagValues:o}=this.dict;for(i of e)"string"==typeof i?(n=o.indexOf(i),-1===n&&(n=a.indexOf(Number(i))),-1!==n&&t.add(Number(a[n]))):t.add(i)}else for(let i of e)t.add(i)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,Cs(this.pick,this.deps)):this.enabled&&this.pick.size>0&&Cs(this.pick,this.deps)}}var ws={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},Ps=new Map;class Ss extends ys{static useCached(e){let t=Ps.get(e);return void 0!==t||(t=new this(e),Ps.set(e,t)),t}constructor(e){super(),!0===e?this.setupFromTrue():void 0===e?this.setupFromUndefined():Array.isArray(e)?this.setupFromArray(e):"object"==typeof e?this.setupFromObject(e):Ho("Invalid options argument ".concat(e)),void 0===this.firstChunkSize&&(this.firstChunkSize=Ao?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let e;for(e of us)this[e]=ws[e];for(e of bs)this[e]=ws[e];for(e of gs)this[e]=ws[e];for(e of fs)this[e]=new xs(e,ws[e],void 0,this)}setupFromTrue(){let e;for(e of us)this[e]=ws[e];for(e of bs)this[e]=ws[e];for(e of gs)this[e]=!0;for(e of fs)this[e]=new xs(e,!0,void 0,this)}setupFromArray(e){let t;for(t of us)this[t]=ws[t];for(t of bs)this[t]=ws[t];for(t of gs)this[t]=ws[t];for(t of fs)this[t]=new xs(t,!1,void 0,this);this.setupGlobalFilters(e,void 0,ms)}setupFromObject(e){let t;for(t of(ms.ifd0=ms.ifd0||ms.image,ms.ifd1=ms.ifd1||ms.thumbnail,Object.assign(this,e),us))this[t]=_s(e[t],ws[t]);for(t of bs)this[t]=_s(e[t],ws[t]);for(t of gs)this[t]=_s(e[t],ws[t]);for(t of hs)this[t]=new xs(t,ws[t],e[t],this);for(t of ms)this[t]=new xs(t,ws[t],e[t],this.tiff);this.setupGlobalFilters(e.pick,e.skip,ms,fs),!0===e.tiff?this.batchEnableWithBool(ms,!0):!1===e.tiff?this.batchEnableWithUserValue(ms,e):Array.isArray(e.tiff)?this.setupGlobalFilters(e.tiff,void 0,ms):"object"==typeof e.tiff&&this.setupGlobalFilters(e.tiff.pick,e.tiff.skip,ms)}batchEnableWithBool(e,t){for(let i of e)this[i].enabled=t}batchEnableWithUserValue(e,t){for(let i of e){let e=t[i];this[i].enabled=!1!==e&&void 0!==e}}setupGlobalFilters(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;if(e&&e.length){for(let e of n)this[e].enabled=!1;let t=ks(e,i);for(let[e,i]of t)Cs(this[e].pick,i),this[e].enabled=!0}else if(t&&t.length){let e=ks(t,i);for(let[t,i]of e)Cs(this[t].skip,i)}}filterNestedSegmentTags(){let{ifd0:e,exif:t,xmp:i,iptc:n,icc:a}=this;this.makerNote?t.deps.add(37500):t.skip.add(37500),this.userComment?t.deps.add(37510):t.skip.add(37510),i.enabled||e.skip.add(700),n.enabled||e.skip.add(33723),a.enabled||e.skip.add(34675)}traverseTiffDependencyTree(){let{ifd0:e,exif:t,gps:i,interop:n}=this;n.needed&&(t.deps.add(40965),e.deps.add(40965)),t.needed&&e.deps.add(34665),i.needed&&e.deps.add(34853),this.tiff.enabled=ms.some((e=>!0===this[e].enabled))||this.makerNote||this.userComment;for(let a of ms)this[a].finalizeFilters()}get onlyTiff(){return!ds.map((e=>this[e].enabled)).some((e=>!0===e))&&this.tiff.enabled}checkLoadedPlugins(){for(let e of hs)this[e].enabled&&!Jo.has(e)&&Xo("segment parser",e)}}function ks(e,t){let i,n,a,o,s=[];for(a of t){for(o of(i=ls.get(a),n=[],i))(e.includes(o[0])||e.includes(o[1]))&&n.push(o[0]);n.length&&s.push([a,n])}return s}function _s(e,t){return void 0!==e?e:void 0!==t?t:void 0}function Cs(e,t){for(let i of t)e.add(i)}Io(Ss,"default",ws);class Fs{constructor(e){Io(this,"parsers",{}),Io(this,"output",{}),Io(this,"errors",[]),Io(this,"pushToErrors",(e=>this.errors.push(e))),this.options=Ss.useCached(e)}async read(e){this.file=await function(e,t){return"string"==typeof e?es(e,t):Ao&&!No&&e instanceof HTMLImageElement?es(e.src,t):e instanceof Uint8Array||e instanceof ArrayBuffer||e instanceof DataView?new Ko(e):Ao&&e instanceof Blob?ts(e,t,"blob",as):void Ho("Invalid input argument")}(e,this.options)}setup(){if(this.fileParser)return;let{file:e}=this,t=e.getUint16(0);for(let[i,n]of Zo)if(n.canHandle(e,t))return this.fileParser=new n(this.options,this.file,this.parsers),e[i]=!0;this.file.close&&this.file.close(),Ho("Unknown file format")}async parse(){let{output:e,errors:t}=this;return this.setup(),this.options.silentErrors?(await this.executeParsers().catch(this.pushToErrors),t.push(...this.fileParser.errors)):await this.executeParsers(),this.file.close&&this.file.close(),this.options.silentErrors&&t.length>0&&(e.errors=t),qo(i=e)?void 0:i;var i}async executeParsers(){let{output:e}=this;await this.fileParser.parse();let t=Object.values(this.parsers).map((async t=>{let i=await t.parse();t.assignToOutput(e,i)}));this.options.silentErrors&&(t=t.map((e=>e.catch(this.pushToErrors)))),await Promise.all(t)}async extractThumbnail(){this.setup();let{options:e,file:t}=this,i=Jo.get("tiff",e);var n;if(t.tiff?n={start:0,type:"tiff"}:t.jpeg&&(n=await this.fileParser.getOrFindSegment("tiff")),void 0===n)return;let a=await this.fileParser.ensureSegmentChunk(n),o=this.parsers.tiff=new i(a,e,t),s=await o.extractThumbnail();return t.close&&t.close(),s}}async function Ts(e,t){let i=new Fs(t);return await i.read(e),i.parse()}var Os=Object.freeze({__proto__:null,parse:Ts,Exifr:Fs,fileParsers:Zo,segmentParsers:Jo,fileReaders:Qo,tagKeys:ls,tagValues:cs,tagRevivers:ps,createDictionary:ss,extendDictionary:rs,fetchUrlAsArrayBuffer:ns,readBlobAsArrayBuffer:as,chunkedProps:us,otherSegments:ds,segments:hs,tiffBlocks:ms,segmentsAndBlocks:fs,tiffExtractables:gs,inheritables:vs,allFormatters:bs,Options:Ss});class Es{static findPosition(e,t){let i=e.getUint16(t+2)+2,n="function"==typeof this.headerLength?this.headerLength(e,t,i):this.headerLength,a=t+n,o=i-n;return{offset:t,length:i,headerLength:n,start:a,size:o,end:a+o}}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new this(e,new Ss({[this.type]:t}),e).parse()}normalizeInput(e){return e instanceof Ko?e:new Ko(e)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;Io(this,"errors",[]),Io(this,"raw",new Map),Io(this,"handleError",(e=>{if(!this.options.silentErrors)throw e;this.errors.push(e.message)})),this.chunk=this.normalizeInput(e),this.file=i,this.type=this.constructor.type,this.globalOptions=this.options=t,this.localOptions=t[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(e,t){let i=ps.get(t),n=cs.get(t),a=ls.get(t),o=this.options[t],s=o.reviveValues&&!!i,r=o.translateValues&&!!n,l=o.translateKeys&&!!a,c={};for(let[p,u]of e)s&&i.has(p)?u=i.get(p)(u):r&&n.has(p)&&(u=this.translateValue(u,n.get(p))),l&&a.has(p)&&(p=a.get(p)||p),c[p]=u;return c}translateValue(e,t){return t[e]||t.DEFAULT||e}assignToOutput(e,t){this.assignObjectToOutput(e,this.constructor.type,t)}assignObjectToOutput(e,t,i){if(this.globalOptions.mergeOutput)return Object.assign(e,i);e[t]?Object.assign(e[t],i):e[t]=i}}function Ds(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function Rs(e){return e>=224&&e<=239}function Us(e,t,i){for(let[n,a]of Jo)if(a.canHandle(e,t,i))return n}Io(Es,"headerLength",4),Io(Es,"type",void 0),Io(Es,"multiSegment",!1),Io(Es,"canHandle",(()=>!1));class Is extends class{constructor(e,t,i){Io(this,"errors",[]),Io(this,"ensureSegmentChunk",(async e=>{let t=e.start,i=e.size||65536;if(this.file.chunked)if(this.file.available(t,i))e.chunk=this.file.subarray(t,i);else try{e.chunk=await this.file.readChunk(t,i)}catch(t){Ho("Couldn't read segment: ".concat(JSON.stringify(e),". ").concat(t.message))}else this.file.byteLength>t+i?e.chunk=this.file.subarray(t,i):void 0===e.size?e.chunk=this.file.subarray(t):Ho("Segment unreachable: "+JSON.stringify(e));return e.chunk})),this.extendOptions&&this.extendOptions(e),this.options=e,this.file=t,this.parsers=i}injectSegment(e,t){this.options[e].enabled&&this.createParser(e,t)}createParser(e,t){let i=new(Jo.get(e))(t,this.options,this.file);return this.parsers[e]=i}createParsers(e){for(let t of e){let{type:e,chunk:i}=t,n=this.options[e];if(n&&n.enabled){let t=this.parsers[e];t&&t.append||t||this.createParser(e,i)}}}async readSegments(e){let t=e.map(this.ensureSegmentChunk);await Promise.all(t)}}{constructor(){super(...arguments),Io(this,"appSegments",[]),Io(this,"jpegSegments",[]),Io(this,"unknownSegments",[])}static canHandle(e,t){return 65496===t}async parse(){await this.findAppSegments(),await this.readSegments(this.appSegments),this.mergeMultiSegments(),this.createParsers(this.mergedAppSegments||this.appSegments)}setupSegmentFinderArgs(e){!0===e?(this.findAll=!0,this.wanted=new Set(Jo.keyList())):(e=void 0===e?Jo.keyList().filter((e=>this.options[e].enabled)):e.filter((e=>this.options[e].enabled&&Jo.has(e))),this.findAll=!1,this.remaining=new Set(e),this.wanted=new Set(e)),this.unfinishedMultiSegment=!1}async findAppSegments(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.setupSegmentFinderArgs(t);let{file:i,findAll:n,wanted:a,remaining:o}=this;if(!n&&this.file.chunked&&(n=Array.from(a).some((e=>{let t=Jo.get(e),i=this.options[e];return t.multiSegment&&i.multiSegment})),n&&await this.file.readWhole()),e=this.findAppSegmentsInRange(e,i.byteLength),!this.options.onlyTiff&&i.chunked){let t=!1;for(;o.size>0&&!t&&(i.canReadNextChunk||this.unfinishedMultiSegment);){let{nextChunkOffset:n}=i,a=this.appSegments.some((e=>!this.file.available(e.offset||e.start,e.length||e.size)));if(t=e>n&&!a?!await i.readNextChunk(e):!await i.readNextChunk(n),void 0===(e=this.findAppSegmentsInRange(e,i.byteLength)))return}}}findAppSegmentsInRange(e,t){t-=2;let i,n,a,o,s,r,{file:l,findAll:c,wanted:p,remaining:u,options:d}=this;for(;e<t;e++)if(255===l.getUint8(e))if(i=l.getUint8(e+1),Rs(i)){if(n=l.getUint16(e+2),a=Us(l,e,n),a&&p.has(a)&&(o=Jo.get(a),s=o.findPosition(l,e),r=d[a],s.type=a,this.appSegments.push(s),!c&&(o.multiSegment&&r.multiSegment?(this.unfinishedMultiSegment=s.chunkNumber<s.chunkCount,this.unfinishedMultiSegment||u.delete(a)):u.delete(a),0===u.size)))break;d.recordUnknownSegments&&(s=Es.findPosition(l,e),s.marker=i,this.unknownSegments.push(s)),e+=n+1}else if(Ds(i)){if(n=l.getUint16(e+2),218===i&&!1!==d.stopAfterSos)return;d.recordJpegSegments&&this.jpegSegments.push({offset:e,length:n,marker:i}),e+=n+1}return e}mergeMultiSegments(){if(!this.appSegments.some((e=>e.multiSegment)))return;let e=function(e,t){let i,n,a,o=new Map;for(let s=0;s<e.length;s++)i=e[s],n=i.type,o.has(n)?a=o.get(n):o.set(n,a=[]),a.push(i);return Array.from(o)}(this.appSegments);this.mergedAppSegments=e.map((e=>{let[t,i]=e,n=Jo.get(t,this.options);return n.handleMultiSegments?{type:t,chunk:n.handleMultiSegments(i)}:i[0]}))}getSegment(e){return this.appSegments.find((t=>t.type===e))}async getOrFindSegment(e){let t=this.getSegment(e);return void 0===t&&(await this.findAppSegments(0,[e]),t=this.getSegment(e)),t}}Io(Is,"type","jpeg"),Zo.set("jpeg",Is);const js=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class As extends Es{parseHeader(){var e=this.chunk.getUint16();18761===e?this.le=!0:19789===e&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map,{pick:n,skip:a}=this.options[t];n=new Set(n);let o=n.size>0,s=0===a.size,r=this.chunk.getUint16(e);e+=2;for(let l=0;l<r;l++){let r=this.chunk.getUint16(e);if(o){if(n.has(r)&&(i.set(r,this.parseTag(e,r,t)),n.delete(r),0===n.size))break}else!s&&a.has(r)||i.set(r,this.parseTag(e,r,t));e+=12}return i}parseTag(e,t,i){let{chunk:n}=this,a=n.getUint16(e+2),o=n.getUint32(e+4),s=js[a];if(s*o<=4?e+=8:e=n.getUint32(e+8),(a<1||a>13)&&Ho("Invalid TIFF value type. block: ".concat(i.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(a,", offset ").concat(e)),e>n.byteLength&&Ho("Invalid TIFF value offset. block: ".concat(i.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(a,", offset ").concat(e," is outside of chunk size ").concat(n.byteLength)),1===a)return n.getUint8Array(e,o);if(2===a)return""===(r=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(r=n.getString(e,o)).trim())?void 0:r;var r;if(7===a)return n.getUint8Array(e,o);if(1===o)return this.parseTagValue(a,e);{let t=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(a))(o),i=s;for(let n=0;n<o;n++)t[n]=this.parseTagValue(a,e),e+=i;return t}}parseTagValue(e,t){let{chunk:i}=this;switch(e){case 1:return i.getUint8(t);case 3:return i.getUint16(t);case 4:case 13:return i.getUint32(t);case 5:return i.getUint32(t)/i.getUint32(t+4);case 6:return i.getInt8(t);case 8:return i.getInt16(t);case 9:return i.getInt32(t);case 10:return i.getInt32(t)/i.getInt32(t+4);case 11:return i.getFloat(t);case 12:return i.getDouble(t);default:Ho("Invalid tiff type ".concat(e))}}}class Ns extends As{static canHandle(e,t){return 225===e.getUint8(t+1)&&1165519206===e.getUint32(t+4)&&0===e.getUint16(t+8)}async parse(){this.parseHeader();let{options:e}=this;return e.ifd0.enabled&&await this.parseIfd0Block(),e.exif.enabled&&await this.safeParse("parseExifBlock"),e.gps.enabled&&await this.safeParse("parseGpsBlock"),e.interop.enabled&&await this.safeParse("parseInteropBlock"),e.ifd1.enabled&&await this.safeParse("parseThumbnailBlock"),this.createOutput()}safeParse(e){let t=this[e]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let e=this.chunk.getUint16(this.ifd0Offset),t=this.ifd0Offset+2+12*e;this.ifd1Offset=this.chunk.getUint32(t)}}parseBlock(e,t){let i=new Map;return this[t]=i,this.parseTags(e,t,i),i}async parseIfd0Block(){if(this.ifd0)return;let{file:e}=this;this.findIfd0Offset(),this.ifd0Offset<8&&Ho("Malformed EXIF data"),!e.chunked&&this.ifd0Offset>e.byteLength&&Ho("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(this.ifd0Offset,", file.byteLength: ").concat(e.byteLength)),e.tiff&&await e.ensureChunk(this.ifd0Offset,Wo(this.options));let t=this.parseBlock(this.ifd0Offset,"ifd0");return 0!==t.size?(this.exifOffset=t.get(34665),this.interopOffset=t.get(40965),this.gpsOffset=t.get(34853),this.xmp=t.get(700),this.iptc=t.get(33723),this.icc=t.get(34675),this.options.sanitize&&(t.delete(34665),t.delete(40965),t.delete(34853),t.delete(700),t.delete(33723),t.delete(34675)),t):void 0}async parseExifBlock(){if(this.exif)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.exifOffset)return;this.file.tiff&&await this.file.ensureChunk(this.exifOffset,Wo(this.options));let e=this.parseBlock(this.exifOffset,"exif");return this.interopOffset||(this.interopOffset=e.get(40965)),this.makerNote=e.get(37500),this.userComment=e.get(37510),this.options.sanitize&&(e.delete(40965),e.delete(37500),e.delete(37510)),this.unpack(e,41728),this.unpack(e,41729),e}unpack(e,t){let i=e.get(t);i&&1===i.length&&e.set(t,i[0])}async parseGpsBlock(){if(this.gps)return;if(this.ifd0||await this.parseIfd0Block(),void 0===this.gpsOffset)return;let e=this.parseBlock(this.gpsOffset,"gps");return e&&e.has(2)&&e.has(4)&&(e.set("latitude",Bs(...e.get(2),e.get(1))),e.set("longitude",Bs(...e.get(4),e.get(3)))),e}async parseInteropBlock(){if(!this.interop&&(this.ifd0||await this.parseIfd0Block(),void 0!==this.interopOffset||this.exif||await this.parseExifBlock(),void 0!==this.interopOffset))return this.parseBlock(this.interopOffset,"interop")}async parseThumbnailBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.ifd1&&!this.ifd1Parsed&&(!this.options.mergeOutput||e))return this.findIfd1Offset(),this.ifd1Offset>0&&(this.parseBlock(this.ifd1Offset,"ifd1"),this.ifd1Parsed=!0),this.ifd1}async extractThumbnail(){if(this.headerParsed||this.parseHeader(),this.ifd1Parsed||await this.parseThumbnailBlock(!0),void 0===this.ifd1)return;let e=this.ifd1.get(513),t=this.ifd1.get(514);return this.chunk.getUint8Array(e,t)}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let e,t,i,n={};for(t of ms)if(e=this[t],!qo(e))if(i=this.canTranslate?this.translateBlock(e,t):Object.fromEntries(e),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(n,i)}else n[t]=i;return this.makerNote&&(n.makerNote=this.makerNote),this.userComment&&(n.userComment=this.userComment),n}assignToOutput(e,t){if(this.globalOptions.mergeOutput)Object.assign(e,t);else for(let[i,n]of Object.entries(t))this.assignObjectToOutput(e,i,n)}}function Bs(e,t,i,n){var a=e+t/60+i/3600;return"S"!==n&&"W"!==n||(a*=-1),a}Io(Ns,"type","tiff"),Io(Ns,"headerLength",10),Jo.set("tiff",Ns);Object.freeze({__proto__:null,default:Os,Exifr:Fs,fileParsers:Zo,segmentParsers:Jo,fileReaders:Qo,tagKeys:ls,tagValues:cs,tagRevivers:ps,createDictionary:ss,extendDictionary:rs,fetchUrlAsArrayBuffer:ns,readBlobAsArrayBuffer:as,chunkedProps:us,otherSegments:ds,segments:hs,tiffBlocks:ms,segmentsAndBlocks:fs,tiffExtractables:gs,inheritables:vs,allFormatters:bs,Options:Ss,parse:Ts});const Ms={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1};Object.assign({},Ms,{firstChunkSize:4e4,gps:[1,2,3,4]});Object.assign({},Ms,{tiff:!1,ifd1:!0,mergeOutput:!1});const Ls=Object.assign({},Ms,{firstChunkSize:4e4,ifd0:[274]});const zs=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});let qs=!0,Hs=!0;if("object"==typeof navigator){let e=navigator.userAgent;if(e.includes("iPad")||e.includes("iPhone")){let t=e.match(/OS (\d+)_(\d+)/);if(t){let[,e,i]=t,n=Number(e)+.1*Number(i);qs=n<13.4,Hs=!1}}else if(e.includes("OS X 10")){let[,t]=e.match(/OS X 10[_.](\d+)/);qs=Hs=Number(t)<15}if(e.includes("Chrome/")){let[,t]=e.match(/Chrome\/(\d+)/);qs=Hs=Number(t)<81}else if(e.includes("Firefox/")){let[,t]=e.match(/Firefox\/(\d+)/);qs=Hs=Number(t)<77}}async function Ws(e){let t=await async function(e){let t=new Fs(Ls);await t.read(e);let i=await t.parse();if(i&&i.ifd0)return i.ifd0[274]}(e);return Object.assign({canvas:qs,css:Hs},zs[t])}class Vs extends Ko{constructor(){super(...arguments),Io(this,"ranges",new Gs),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(e,t,i){if(0===e&&0===this.byteLength&&i){let e=new DataView(i.buffer||i,i.byteOffset,i.byteLength);this._swapDataView(e)}else{let i=e+t;if(i>this.byteLength){let{dataView:e}=this._extend(i);this._swapDataView(e)}}}_extend(e){let t;t=Lo?Mo.allocUnsafe(e):new Uint8Array(e);let i=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:i}}subarray(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=t||this._lengthToEnd(e),i&&this._tryExtend(e,t),this.ranges.add(e,t),super.subarray(e,t)}set(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this._tryExtend(t,e.byteLength,e);let i=super.set(e,t);return this.ranges.add(t,i.byteLength),i}async ensureChunk(e,t){this.chunked&&(this.ranges.available(e,t)||await this.readChunk(e,t))}available(e,t){return this.ranges.available(e,t)}}class Gs{constructor(){Io(this,"list",[])}get length(){return this.list.length}add(e,t){let i=e+t,n=this.list.filter((t=>Ks(e,t.offset,i)||Ks(e,t.end,i)));if(n.length>0){e=Math.min(e,...n.map((e=>e.offset))),i=Math.max(i,...n.map((e=>e.end))),t=i-e;let a=n.shift();a.offset=e,a.length=t,a.end=i,this.list=this.list.filter((e=>!n.includes(e)))}else this.list.push({offset:e,length:t,end:i})}available(e,t){let i=e+t;return this.list.some((t=>t.offset<=e&&i<=t.end))}}function Ks(e,t,i){return e<=t&&t<=i}class Xs extends Vs{constructor(e,t){super(0),Io(this,"chunksRead",0),this.input=e,this.options=t}async readWhole(){this.chunked=!1,await this.readChunk(this.nextChunkOffset)}async readChunked(){this.chunked=!0,await this.readChunk(0,this.options.firstChunkSize)}async readNextChunk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.nextChunkOffset;if(this.fullyRead)return this.chunksRead++,!1;let t=this.options.chunkSize,i=await this.readChunk(e,t);return!!i&&i.byteLength===t}async readChunk(e,t){if(this.chunksRead++,0!==(t=this.safeWrapAddress(e,t)))return this._readChunk(e,t)}safeWrapAddress(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}Qo.set("blob",class extends Xs{async readWhole(){this.chunked=!1;let e=await as(this.input);this._swapArrayBuffer(e)}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}async _readChunk(e,t){let i=t?e+t:void 0,n=this.input.slice(e,i),a=await as(n);return this.set(a,e,!0)}});const Ys={strings:{generatingThumbnails:"Generating thumbnails..."}};function Zs(e,t,i){try{e.getContext("2d").getImageData(0,0,1,1)}catch(n){if(18===n.code)return Promise.reject(new Error("cannot read image, probably an svg with external resources"))}return e.toBlob?new Promise((n=>{e.toBlob(n,t,i)})).then((e=>{if(null===e)throw new Error("cannot read image, probably an svg with external resources");return e})):Promise.resolve().then((()=>function(e,t,i){var n,a;const o=Eo.exec(e),s=null!=(n=null!=(a=t.mimeType)?a:null==o?void 0:o[1])?n:"plain/text";let r;if(null!=(null==o?void 0:o[2])){const e=atob(decodeURIComponent(o[3])),t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);r=[t]}else null!=(null==o?void 0:o[3])&&(r=[decodeURIComponent(o[3])]);return i?new File(r,t.name||"",{type:s}):new Blob(r,{type:s})}(e.toDataURL(t,i),{}))).then((e=>{if(null===e)throw new Error("could not extract blob, probably an old browser");return e}))}class Js extends Ze{constructor(e,t){super(e,t),this.onFileAdded=e=>{!e.preview&&e.data&&la(e.type)&&!e.isRemote&&this.addToQueue(e.id)},this.onCancelRequest=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1)},this.onFileRemoved=e=>{const t=this.queue.indexOf(e.id);-1!==t&&this.queue.splice(t,1),e.preview&&Do(e.preview)&&URL.revokeObjectURL(e.preview)},this.onRestored=()=>{this.uppy.getFiles().filter((e=>e.isRestored)).forEach((e=>{e.preview&&!Do(e.preview)||this.addToQueue(e.id)}))},this.onAllFilesRemoved=()=>{this.queue=[]},this.waitUntilAllProcessed=e=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("generatingThumbnails")})}));const t=()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))};return new Promise((e=>{this.queueProcessing?this.uppy.once("thumbnail:all-generated",(()=>{t(),e()})):(t(),e())}))},this.type="modifier",this.id=this.opts.id||"ThumbnailGenerator",this.title="Thumbnail Generator",this.queue=[],this.queueProcessing=!1,this.defaultThumbnailDimension=200,this.thumbnailType=this.opts.thumbnailType||"image/jpeg",this.defaultLocale=Ys;if(this.opts={thumbnailWidth:null,thumbnailHeight:null,waitForThumbnailsBeforeUpload:!1,lazy:!1,...t},this.i18nInit(),this.opts.lazy&&this.opts.waitForThumbnailsBeforeUpload)throw new Error("ThumbnailGenerator: The `lazy` and `waitForThumbnailsBeforeUpload` options are mutually exclusive. Please ensure at most one of them is set to `true`.")}createThumbnail(e,t,i){const n=URL.createObjectURL(e.data),a=new Promise(((e,t)=>{const i=new Image;i.src=n,i.addEventListener("load",(()=>{URL.revokeObjectURL(n),e(i)})),i.addEventListener("error",(e=>{URL.revokeObjectURL(n),t(e.error||new Error("Could not create thumbnail"))}))})),o=Ws(e.data).catch((()=>1));return Promise.all([a,o]).then((e=>{let[n,a]=e;const o=this.getProportionalDimensions(n,t,i,a.deg),s=function(e,t){let i=e.width,n=e.height;90!==t.deg&&270!==t.deg||(i=e.height,n=e.width);const a=document.createElement("canvas");a.width=i,a.height=n;const o=a.getContext("2d");return o.translate(i/2,n/2),t.canvas&&(o.rotate(t.rad),o.scale(t.scaleX,t.scaleY)),o.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),a}(n,a);return Zs(this.resizeImage(s,o.width,o.height),this.thumbnailType,80)})).then((e=>URL.createObjectURL(e)))}getProportionalDimensions(e,t,i,n){let a=e.width/e.height;return 90!==n&&270!==n||(a=e.height/e.width),null!=t?{width:t,height:Math.round(t/a)}:null!=i?{width:Math.round(i*a),height:i}:{width:this.defaultThumbnailDimension,height:Math.round(this.defaultThumbnailDimension/a)}}resizeImage(e,t,i){let n=function(e){const t=e.width/e.height,i=5e6,n=4096;let a=Math.floor(Math.sqrt(i*t)),o=Math.floor(i/Math.sqrt(i*t));if(a>n&&(a=n,o=Math.round(a/t)),o>n&&(o=n,a=Math.round(t*o)),e.width>a){const t=document.createElement("canvas");return t.width=a,t.height=o,t.getContext("2d").drawImage(e,0,0,a,o),t}return e}(e),a=Math.ceil(Math.log2(n.width/t));a<1&&(a=1);let o=t*2**(a-1),s=i*2**(a-1);for(;a--;){const e=document.createElement("canvas");e.width=o,e.height=s,e.getContext("2d").drawImage(n,0,0,o,s),n=e,o=Math.round(o/2),s=Math.round(s/2)}return n}setPreviewURL(e,t){this.uppy.setFileState(e,{preview:t})}addToQueue(e){this.queue.push(e),!1===this.queueProcessing&&this.processQueue()}processQueue(){if(this.queueProcessing=!0,this.queue.length>0){const e=this.uppy.getFile(this.queue.shift());return e?this.requestThumbnail(e).catch((()=>{})).then((()=>this.processQueue())):(this.uppy.log("[ThumbnailGenerator] file was removed before a thumbnail could be generated, but not removed from the queue. This is probably a bug","error"),Promise.resolve())}return this.queueProcessing=!1,this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"),this.uppy.emit("thumbnail:all-generated"),Promise.resolve()}requestThumbnail(e){return la(e.type)&&!e.isRemote?this.createThumbnail(e,this.opts.thumbnailWidth,this.opts.thumbnailHeight).then((t=>{this.setPreviewURL(e.id,t),this.uppy.log("[ThumbnailGenerator] Generated thumbnail for ".concat(e.id)),this.uppy.emit("thumbnail:generated",this.uppy.getFile(e.id),t)})).catch((t=>{this.uppy.log("[ThumbnailGenerator] Failed thumbnail for ".concat(e.id,":"),"warning"),this.uppy.log(t,"warning"),this.uppy.emit("thumbnail:error",this.uppy.getFile(e.id),t)})):Promise.resolve()}install(){this.uppy.on("file-removed",this.onFileRemoved),this.uppy.on("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("thumbnail:cancel",this.onCancelRequest)):(this.uppy.on("thumbnail:request",this.onFileAdded),this.uppy.on("file-added",this.onFileAdded),this.uppy.on("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.addPreProcessor(this.waitUntilAllProcessed)}uninstall(){this.uppy.off("file-removed",this.onFileRemoved),this.uppy.off("cancel-all",this.onAllFilesRemoved),this.opts.lazy?(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("thumbnail:cancel",this.onCancelRequest)):(this.uppy.off("thumbnail:request",this.onFileAdded),this.uppy.off("file-added",this.onFileAdded),this.uppy.off("restored",this.onRestored)),this.opts.waitForThumbnailsBeforeUpload&&this.uppy.removePreProcessor(this.waitUntilAllProcessed)}}function Qs(e){if("string"===typeof e){const t=document.querySelectorAll(e);return 0===t.length?null:Array.from(t)}return"object"===typeof e&&ze(e)?[e]:null}function $s(e,t,i,n){let{onSuccess:a}=n;e.readEntries((n=>{const o=[...t,...n];n.length?queueMicrotask((()=>{$s(e,o,i,{onSuccess:a})})):a(o)}),(e=>{i(e),a(t)}))}function er(e,t){return null==e?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile:()=>new Promise(((t,i)=>e.file(t,i))),async*values(){const i=e.createReader(),n=await new Promise((e=>{$s(i,[],t,{onSuccess:i=>e(i.map((e=>er(e,t))))})}));yield*n},isSameEntry:void 0}}function tr(e,t,i){try{return void 0===i&&(i=void 0),async function*(){const n=()=>"".concat(t,"/").concat(e.name);if("file"===e.kind){const a=await e.getFile();null!=a?(a.relativePath=t?n():null,yield a):null!=i&&(yield i)}else if("directory"===e.kind)for await(const i of e.values())yield*tr(i,t?n():e.name);else null!=i&&(yield i)}()}catch(n){return Promise.reject(n)}}async function ir(e,t){var i;const n=null!=(i=null==t?void 0:t.logDropError)?i:Function.prototype;try{const t=[];for await(const i of async function*(e,t){const i=await Promise.all(Array.from(e.items,(async e=>{let i;return null!=i||(i=er("function"===typeof e.getAsEntry?e.getAsEntry():e.webkitGetAsEntry(),t)),{fileSystemHandle:i,lastResortFile:e.getAsFile()}})));for(const{lastResortFile:a,fileSystemHandle:o}of i)if(null!=o)try{yield*tr(o,"",a)}catch(n){null!=a?yield a:t(n)}else null!=a&&(yield a)}(e,n))t.push(i);return t}catch{return function(e){const t=hi(e.files);return Promise.resolve(t)}(e)}}Js.VERSION="3.0.8";var nr=i(776);const ar=['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])',"input:not([disabled]):not([inert]):not([aria-hidden])","select:not([disabled]):not([inert]):not([aria-hidden])","textarea:not([disabled]):not([inert]):not([aria-hidden])","button:not([disabled]):not([inert]):not([aria-hidden])",'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])','object:not([tabindex^="-"]):not([inert]):not([aria-hidden])','embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])','[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];function or(e,t){if(t){const i=e.querySelector('[data-uppy-paneltype="'.concat(t,'"]'));if(i)return i}return e}function sr(e,t){const i=t[0];i&&(i.focus(),e.preventDefault())}function rr(e,t,i){const n=or(i,t),a=hi(n.querySelectorAll(ar)),o=a.indexOf(document.activeElement);!function(e){return e.contains(document.activeElement)}(n)?sr(e,a):e.shiftKey&&0===o?function(e,t){const i=t[t.length-1];i&&(i.focus(),e.preventDefault())}(e,a):e.shiftKey||o!==a.length-1||sr(e,a)}var lr=i(67047),cr=i.n(lr);function pr(){const e=document.body;return"draggable"in e&&"ondragstart"in e&&"ondrop"in e&&("FormData"in window&&"FileReader"in window)}var ur=i(21379);function dr(e){const t={color:"#838999",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("g",{fill:"#A7AFB7",fillRule:"nonzero"},(0,Le.h)("path",{d:"M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z"}),(0,Le.h)("path",{d:"M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z"})))};if(!e)return t;const i=e.split("/")[0],n=e.split("/")[1];if("text"===i)return{color:"#5a5e69",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z",fill:"#5A5E69",fillRule:"nonzero"}))};if("image"===i)return{color:"#686de0",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("g",{fill:"#686DE0",fillRule:"evenodd"},(0,Le.h)("path",{d:"M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z",fillRule:"nonzero"}),(0,Le.h)("path",{d:"M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z",fillRule:"nonzero"}),(0,Le.h)("circle",{cx:"7.5",cy:"9.5",r:"1.5"})))};if("audio"===i)return{color:"#068dbb",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z",fill:"#049BCF",fillRule:"nonzero"}))};if("video"===i)return{color:"#19af67",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z",fill:"#19AF67",fillRule:"nonzero"}))};if("application"===i&&"pdf"===n)return{color:"#e25149",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z",fill:"#E2514A",fillRule:"nonzero"}))};return"application"===i&&-1!==["zip","x-7z-compressed","x-rar-compressed","x-tar","x-gzip","x-apple-diskimage"].indexOf(n)?{color:"#00C469",icon:(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"25",height:"25",viewBox:"0 0 25 25"},(0,Le.h)("path",{d:"M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z",fill:"#00C469",fillRule:"nonzero"}))}:t}function hr(e){const{file:t}=e;if(t.preview)return(0,Le.h)("img",{className:"uppy-Dashboard-Item-previewImg",alt:t.name,src:t.preview});const{color:i,icon:n}=dr(t.type);return(0,Le.h)("div",{className:"uppy-Dashboard-Item-previewIconWrap"},(0,Le.h)("span",{className:"uppy-Dashboard-Item-previewIcon",style:{color:i}},n),(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-Dashboard-Item-previewIconBg",width:"58",height:"76",viewBox:"0 0 58 76"},(0,Le.h)("rect",{fill:"#FFF",width:"58",height:"76",rx:"3",fillRule:"evenodd"})))}const mr=(e,t)=>{const i=("function"===typeof t?t():t).filter((t=>t.id===e));return i[0].name};function fr(e){const{file:t,toggleFileCard:i,i18n:n,metaFields:a}=e,{missingRequiredMetaFields:o}=t;if(null==o||!o.length)return null;const s=o.map((e=>mr(e,a))).join(", ");return(0,Le.h)("div",{className:"uppy-Dashboard-Item-errorMessage"},n("missingRequiredMetaFields",{smart_count:o.length,fields:s})," ",(0,Le.h)("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>i(!0,t.id)},n("editFile")))}function gr(e){const{file:t,i18n:i,toggleFileCard:n,metaFields:a,showLinkToFileUploadResult:o}=e,s=t.preview?"rgba(255, 255, 255, 0.5)":dr(e.file.type).color;return(0,Le.h)("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:s}},o&&t.uploadURL&&(0,Le.h)("a",{className:"uppy-Dashboard-Item-previewLink",href:t.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":t.meta.name},(0,Le.h)("span",{hidden:!0},t.meta.name)),(0,Le.h)(hr,{file:t}),(0,Le.h)(fr,{file:t,i18n:i,toggleFileCard:n,metaFields:a}))}function vr(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function br(e){return(0,Le.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":vr(e),title:vr(e),onClick:()=>function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.resumableUploads&&!e.hidePauseResumeButton?e.uppy.pauseResume(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.uppy.removeFile(e.file.id):e.uppy.retryUpload(e.file.id))}(e)},e.children))}function yr(e){let{children:t}=e;return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function xr(e){let{progress:t}=e;const i=2*Math.PI*15;return(0,Le.h)("g",null,(0,Le.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),(0,Le.h)("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":i,"stroke-dashoffset":i-i/100*t}))}function wr(e){return e.file.progress.uploadStarted?e.isUploaded?(0,Le.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,Le.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,Le.h)(yr,null,(0,Le.h)("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),(0,Le.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?(0,Le.h)(br,e,(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},(0,Le.h)("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),(0,Le.h)("path",{d:"M7.9 3H10v2H7.9z"}),(0,Le.h)("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),(0,Le.h)("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?(0,Le.h)(br,e,(0,Le.h)(yr,null,(0,Le.h)(xr,{progress:e.file.progress.percentage}),e.file.isPaused?(0,Le.h)("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):(0,Le.h)("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},(0,Le.h)("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),(0,Le.h)("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?(0,Le.h)("div",{className:"uppy-Dashboard-Item-progress"},(0,Le.h)("div",{className:"uppy-Dashboard-Item-progressIndicator"},(0,Le.h)(yr,null,(0,Le.h)(xr,{progress:e.file.progress.percentage})))):(0,Le.h)(br,e,(0,Le.h)(yr,null,(0,Le.h)(xr,{progress:e.file.progress.percentage}),(0,Le.h)("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null}const Pr="...";function Sr(e,t){if(0===t)return"";if(e.length<=t)return e;if(t<=4)return"".concat(e.slice(0,t-1),"\u2026");const i=t-3,n=Math.ceil(i/2),a=Math.floor(i/2);return e.slice(0,n)+Pr+e.slice(-a)}const kr=e=>{let{file:t,onClick:i}=e;return t.error?(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-errorDetails","aria-label":t.error,"data-microtip-position":"bottom","data-microtip-size":"medium",onClick:i,type:"button"},"?"):null};function _r(e){const{file:t}=e;return(0,Le.h)("div",{className:"uppy-Dashboard-Item-fileInfo","data-uppy-file-source":t.source},(0,Le.h)("div",{className:"uppy-Dashboard-Item-fileName"},(e=>{const{author:t,name:i}=e.file.meta;return(0,Le.h)("div",{className:"uppy-Dashboard-Item-name",title:i},Sr(i,e.isSingleFile&&e.containerHeight>=350?90:e.containerWidth<=352?35:e.containerWidth<=576?60:t?20:30))})(e),(0,Le.h)(kr,{file:e.file,onClick:()=>alert(e.file.error)})),(0,Le.h)("div",{className:"uppy-Dashboard-Item-status"},(e=>{var t;const{author:i}=e.file.meta,n=null==(t=e.file.remote)?void 0:t.providerName;return i?(0,Le.h)("div",{className:"uppy-Dashboard-Item-author"},(0,Le.h)("a",{href:"".concat(i.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer"},Sr(i.name,13)),n?(0,Le.h)(Le.HY,null," ".concat("\xb7"," "),n," ".concat("\xb7"," ")):null):null})(e),(e=>e.file.size&&(0,Le.h)("div",{className:"uppy-Dashboard-Item-statusSize"},K(e.file.size)))(e),(e=>e.file.isGhost&&(0,Le.h)("span",null," \u2022 ",(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-reSelect",type:"button",onClick:e.toggleAddFilesPanel},e.i18n("reSelect"))))(e)),(0,Le.h)(fr,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))}function Cr(e){let{file:t,uploadInProgressOrComplete:i,metaFields:n,canEditFile:a,i18n:o,onClick:s}=e;return!i&&n&&n.length>0||!i&&a(t)?(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-Dashboard-Item-action uppy-Dashboard-Item-action--edit",type:"button","aria-label":o("editFileWithFilename",{file:t.meta.name}),title:o("editFileWithFilename",{file:t.meta.name}),onClick:()=>s()},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 14"},(0,Le.h)("g",{fillRule:"evenodd"},(0,Le.h)("path",{d:"M1.5 10.793h2.793A1 1 0 0 0 5 10.5L11.5 4a1 1 0 0 0 0-1.414L9.707.793a1 1 0 0 0-1.414 0l-6.5 6.5A1 1 0 0 0 1.5 8v2.793zm1-1V8L9 1.5l1.793 1.793-6.5 6.5H2.5z",fillRule:"nonzero"}),(0,Le.h)("rect",{x:"1",y:"12.293",width:"11",height:"1",rx:".5"}),(0,Le.h)("path",{fillRule:"nonzero",d:"M6.793 2.5L9.5 5.207l.707-.707L7.5 1.793z"})))):null}function Fr(e){let{i18n:t,onClick:i,file:n}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--remove",type:"button","aria-label":t("removeFile",{file:n.meta.name}),title:t("removeFile",{file:n.meta.name}),onClick:()=>i()},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"18",height:"18",viewBox:"0 0 18 18"},(0,Le.h)("path",{d:"M9 0C4.034 0 0 4.034 0 9s4.034 9 9 9 9-4.034 9-9-4.034-9-9-9z"}),(0,Le.h)("path",{fill:"#FFF",d:"M13 12.222l-.778.778L9 9.778 5.778 13 5 12.222 8.222 9 5 5.778 5.778 5 9 8.222 12.222 5l.778.778L9.778 9z"})))}const Tr=(e,t)=>{var i,n;(i=t.file.uploadURL,n=t.i18n("copyLinkToClipboardFallback"),void 0===n&&(n="Copy the URL below"),new Promise((e=>{const t=document.createElement("textarea");t.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),t.value=i,document.body.appendChild(t),t.select();const a=()=>{document.body.removeChild(t),window.prompt(n,i),e()};try{return document.execCommand("copy")?(document.body.removeChild(t),e()):a()}catch(o){return document.body.removeChild(t),a()}}))).then((()=>{t.uppy.log("Link copied to clipboard."),t.uppy.info(t.i18n("copyLinkToClipboardSuccess"),"info",3e3)})).catch(t.uppy.log).then((()=>e.target.focus({preventScroll:!0})))};function Or(e){const{i18n:t}=e;return(0,Le.h)("button",{className:"uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink",type:"button","aria-label":t("copyLink"),title:t("copyLink"),onClick:t=>Tr(t,e)},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"14",height:"14",viewBox:"0 0 14 12"},(0,Le.h)("path",{d:"M7.94 7.703a2.613 2.613 0 0 1-.626 2.681l-.852.851a2.597 2.597 0 0 1-1.849.766A2.616 2.616 0 0 1 2.764 7.54l.852-.852a2.596 2.596 0 0 1 2.69-.625L5.267 7.099a1.44 1.44 0 0 0-.833.407l-.852.851a1.458 1.458 0 0 0 1.03 2.486c.39 0 .755-.152 1.03-.426l.852-.852c.231-.231.363-.522.406-.824l1.04-1.038zm4.295-5.937A2.596 2.596 0 0 0 10.387 1c-.698 0-1.355.272-1.849.766l-.852.851a2.614 2.614 0 0 0-.624 2.688l1.036-1.036c.041-.304.173-.6.407-.833l.852-.852c.275-.275.64-.426 1.03-.426a1.458 1.458 0 0 1 1.03 2.486l-.852.851a1.442 1.442 0 0 1-.824.406l-1.04 1.04a2.596 2.596 0 0 0 2.683-.628l.851-.85a2.616 2.616 0 0 0 0-3.697zm-6.88 6.883a.577.577 0 0 0 .82 0l3.474-3.474a.579.579 0 1 0-.819-.82L5.355 7.83a.579.579 0 0 0 0 .819z"})))}function Er(e){const{uppy:t,file:i,uploadInProgressOrComplete:n,canEditFile:a,metaFields:o,showLinkToFileUploadResult:s,showRemoveButton:r,i18n:l,toggleFileCard:c,openFileEditor:p}=e;return(0,Le.h)("div",{className:"uppy-Dashboard-Item-actionWrapper"},(0,Le.h)(Cr,{i18n:l,file:i,uploadInProgressOrComplete:n,canEditFile:a,metaFields:o,onClick:()=>{o&&o.length>0?c(!0,i.id):p(i)}}),s&&i.uploadURL?(0,Le.h)(Or,{file:i,uppy:t,i18n:l}):null,r?(0,Le.h)(Fr,{i18n:l,file:i,uppy:t,onClick:()=>e.uppy.removeFile(i.id,"removed-by-user")}):null)}class Dr extends Le.wA{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!ur(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,i=e.progress.uploadComplete&&!t&&!e.error,n=e.progress.uploadStarted||t,a=e.progress.uploadStarted&&!e.progress.uploadComplete||t,o=e.error||!1,{isGhost:s}=e;let r=(this.props.individualCancellation||!a)&&!i;i&&this.props.showRemoveButtonAfterComplete&&(r=!0);const l=zn({"uppy-Dashboard-Item":!0,"is-inprogress":a&&!this.props.recoveredState,"is-processing":t,"is-complete":i,"is-error":!!o,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":s});return(0,Le.h)("div",{className:l,id:"uppy_".concat(e.id),role:this.props.role},(0,Le.h)("div",{className:"uppy-Dashboard-Item-preview"},(0,Le.h)(gr,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),(0,Le.h)(wr,{uppy:this.props.uppy,file:e,error:o,isUploaded:i,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),(0,Le.h)("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},(0,Le.h)(_r,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,containerHeight:this.props.containerHeight,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields,isSingleFile:this.props.isSingleFile}),(0,Le.h)(Er,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:r,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:n,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}const Rr=e=>{let{id:t,error:i,i18n:n,uppy:a,files:o,acquirers:s,resumableUploads:r,hideRetryButton:l,hidePauseResumeButton:c,hideCancelButton:p,showLinkToFileUploadResult:u,showRemoveButtonAfterComplete:d,isWide:h,metaFields:m,isSingleFile:f,toggleFileCard:g,handleRequestThumbnail:v,handleCancelThumbnail:b,recoveredState:y,individualCancellation:x,itemsPerRow:w,openFileEditor:P,canEditFile:S,toggleAddFilesPanel:k,containerWidth:_,containerHeight:C}=e;const F=1===w?71:200,T=kn((()=>{const e=Object.keys(o);return y&&e.sort(((e,t)=>o[t].isGhost-o[e].isGhost)),function(e,t){const i=[];let n=[];return e.forEach((e=>{n.length<t?n.push(e):(i.push(n),n=[e])})),n.length&&i.push(n),i}(e,w)}),[o,w,y]),O=e=>(0,Le.h)("div",{class:"uppy-Dashboard-filesInner",role:"presentation",key:e[0]},e.map((e=>(0,Le.h)(Dr,{key:e,uppy:a,id:t,error:i,i18n:n,acquirers:s,resumableUploads:r,individualCancellation:x,hideRetryButton:l,hidePauseResumeButton:c,hideCancelButton:p,showLinkToFileUploadResult:u,showRemoveButtonAfterComplete:d,isWide:h,metaFields:m,recoveredState:y,isSingleFile:f,containerWidth:_,containerHeight:C,toggleFileCard:g,handleRequestThumbnail:v,handleCancelThumbnail:b,role:"listitem",openFileEditor:P,canEditFile:S,toggleAddFilesPanel:k,file:o[e]}))));return f?(0,Le.h)("div",{class:"uppy-Dashboard-files"},O(T[0])):(0,Le.h)(Kn,{class:"uppy-Dashboard-files",role:"list",data:T,renderRow:O,rowHeight:F})};let Ur;Ur=Symbol.for("uppy test: disable unused locale key warning");class Ir extends Le.wA{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.triggerVideoCameraInputClick=()=>{this.mobileVideoFileInput.click()},this.triggerPhotoCameraInputClick=()=>{this.mobilePhotoFileInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>(0,Le.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderHiddenCameraInput=(e,t,i)=>{const n={photo:"image/*",video:"video/*"}[e];return(0,Le.h)("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,type:"file",name:"camera-".concat(e),onChange:this.onFileInputChange,capture:t,accept:n,ref:i})},this.renderMyDeviceAcquirer=()=>(0,Le.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},(0,Le.h)("div",{className:"uppy-DashboardTab-inner"},(0,Le.h)("svg",{className:"uppy-DashboardTab-iconMyDevice","aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{d:"M8.45 22.087l-1.305-6.674h17.678l-1.572 6.674H8.45zm4.975-12.412l1.083 1.765a.823.823 0 00.715.386h7.951V13.5H8.587V9.675h4.838zM26.043 13.5h-1.195v-2.598c0-.463-.336-.75-.798-.75h-8.356l-1.082-1.766A.823.823 0 0013.897 8H7.728c-.462 0-.815.256-.815.718V13.5h-.956a.97.97 0 00-.746.37.972.972 0 00-.19.81l1.724 8.565c.095.44.484.755.933.755H24c.44 0 .824-.3.929-.727l2.043-8.568a.972.972 0 00-.176-.825.967.967 0 00-.753-.38z",fill:"currentcolor","fill-rule":"evenodd"}))),(0,Le.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderPhotoCamera=()=>(0,Le.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobilePhotoCamera"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerPhotoCameraInputClick},(0,Le.h)("div",{className:"uppy-DashboardTab-inner"},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{d:"M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z",fill:"#02B383","fill-rule":"nonzero"}))),(0,Le.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("takePictureBtn")))),this.renderVideoCamera=()=>(0,Le.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MobileVideoCamera"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerVideoCameraInputClick},(0,Le.h)("div",{className:"uppy-DashboardTab-inner"},(0,Le.h)("svg",{"aria-hidden":"true",width:"32",height:"32",viewBox:"0 0 32 32"},(0,Le.h)("path",{fill:"#FF675E",fillRule:"nonzero",d:"m21.254 14.277 2.941-2.588c.797-.313 1.243.818 1.09 1.554-.01 2.094.02 4.189-.017 6.282-.126.915-1.145 1.08-1.58.34l-2.434-2.142c-.192.287-.504 1.305-.738.468-.104-1.293-.028-2.596-.05-3.894.047-.312.381.823.426 1.069.063-.384.206-.744.362-1.09zm-12.939-3.73c3.858.013 7.717-.025 11.574.02.912.129 1.492 1.237 1.351 2.217-.019 2.412.04 4.83-.03 7.239-.17 1.025-1.166 1.59-2.029 1.429-3.705-.012-7.41.025-11.114-.019-.913-.129-1.492-1.237-1.352-2.217.018-2.404-.036-4.813.029-7.214.136-.82.83-1.473 1.571-1.454z "}))),(0,Le.h)("div",{className:"uppy-DashboardTab-name"},this.props.i18n("recordVideoBtn")))),this.renderBrowseButton=(e,t)=>{const i=this.props.acquirers.length;return(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===i},e)},this.renderDropPasteBrowseTagline=e=>{const t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),i=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),n=this.props.fileManagerSelectionType,a=n.charAt(0).toUpperCase()+n.slice(1);return(0,Le.h)("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray("dropPasteImport".concat(a),{browseFiles:t,browseFolders:i,browse:t}):this.props.i18nArray("dropPaste".concat(a),{browseFiles:t,browseFolders:i,browse:t}))},this.renderAcquirer=e=>(0,Le.h)("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-cy":e.id,"aria-controls":"uppy-DashboardContent-panel--".concat(e.id),"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},(0,Le.h)("div",{className:"uppy-DashboardTab-inner"},e.icon()),(0,Le.h)("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=e=>{const t=[...e],i=t.splice(e.length-2,e.length);return(0,Le.h)(Le.HY,null,t.map((e=>this.renderAcquirer(e))),(0,Le.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map((e=>this.renderAcquirer(e)))))},this.renderSourcesList=(e,t)=>{const{showNativePhotoCameraButton:i,showNativeVideoCameraButton:n}=this.props;let a=[];const o="myDevice";t||a.push({key:o,elements:this.renderMyDeviceAcquirer()}),i&&a.push({key:"nativePhotoCameraButton",elements:this.renderPhotoCamera()}),n&&a.push({key:"nativePhotoCameraButton",elements:this.renderVideoCamera()}),a.push(...e.map((e=>({key:e.id,elements:this.renderAcquirer(e)}))));1===a.length&&a[0].key===o&&(a=[]);const s=[...a],r=s.splice(a.length-2,a.length),l=e=>e.map((e=>{let{key:t,elements:i}=e;return(0,Le.h)(Le.HY,{key:t},i)}));return(0,Le.h)(Le.HY,null,this.renderDropPasteBrowseTagline(a.length),(0,Le.h)("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},l(s),(0,Le.h)("span",{role:"presentation",style:{"white-space":"nowrap"}},l(r))))}}[Ur](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:(0,Le.h)("span",null,(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},(0,Le.h)("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),(0,Le.h)("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return(0,Le.h)("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){const{showNativePhotoCameraButton:e,showNativeVideoCameraButton:t,nativeCameraFacingMode:i}=this.props;return(0,Le.h)("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,(e=>{this.fileInput=e})),this.renderHiddenInput(!0,(e=>{this.folderInput=e})),e&&this.renderHiddenCameraInput("photo",i,(e=>{this.mobilePhotoFileInput=e})),t&&this.renderHiddenCameraInput("video",i,(e=>{this.mobileVideoFileInput=e})),this.renderSourcesList(this.props.acquirers,this.props.disableLocalFiles),(0,Le.h)("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&(0,Le.h)("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}const jr=Ir,Ar=e=>(0,Le.h)("div",{className:zn("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":!e.showAddFilesPanel},(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),(0,Le.h)(jr,e));const Nr=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()};const Br=function(e){let{activePickerPanel:t,className:i,hideAllPanels:n,i18n:a,state:o,uppy:s}=e;return(0,Le.h)("div",{className:zn("uppy-DashboardContent-panel",i),role:"tabpanel","data-uppy-panelType":"PickerPanel",id:"uppy-DashboardContent-panel--".concat(t.id),onDragOver:Nr,onDragLeave:Nr,onDrop:Nr,onPaste:Nr},(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},a("importFrom",{name:t.name})),(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:n},a("cancel"))),(0,Le.h)("div",{className:"uppy-DashboardContent-panelBody"},s.getPlugin(t.id).render(o)))};const Mr=function(e){const t=e.files[e.fileCardFor];return(0,Le.h)("div",{className:zn("uppy-DashboardContent-panel",e.className),role:"tabpanel","data-uppy-panelType":"FileEditor",id:"uppy-DashboardContent-panel--editor"},(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18nArray("editing",{file:(0,Le.h)("span",{className:"uppy-DashboardContent-titleFile"},t.meta?t.meta.name:t.name)})),(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>{e.uppy.emit("file-editor:cancel",t),e.closeFileEditor()}},e.i18n("cancel")),(0,Le.h)("button",{className:"uppy-DashboardContent-save",type:"button",onClick:e.saveFileEditor},e.i18n("save"))),(0,Le.h)("div",{className:"uppy-DashboardContent-panelBody"},e.editors.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))},Lr={STATE_ERROR:"error",STATE_WAITING:"waiting",STATE_PREPROCESSING:"preprocessing",STATE_UPLOADING:"uploading",STATE_POSTPROCESSING:"postprocessing",STATE_COMPLETE:"complete",STATE_PAUSED:"paused"};function zr(e){let{files:t,i18n:i,isAllComplete:n,isAllErrored:a,isAllPaused:o,inProgressNotPausedFiles:s,newFiles:r,processingFiles:l}=e;const c=function(e,t,i,n){if(void 0===n&&(n={}),e)return Lr.STATE_ERROR;if(t)return Lr.STATE_COMPLETE;if(i)return Lr.STATE_PAUSED;let a=Lr.STATE_WAITING;const o=Object.keys(n);for(let s=0;s<o.length;s++){const{progress:e}=n[o[s]];if(e.uploadStarted&&!e.uploadComplete)return Lr.STATE_UPLOADING;e.preprocess&&a!==Lr.STATE_UPLOADING&&(a=Lr.STATE_PREPROCESSING),e.postprocess&&a!==Lr.STATE_UPLOADING&&a!==Lr.STATE_PREPROCESSING&&(a=Lr.STATE_POSTPROCESSING)}return a}(a,n,o,t);switch(c){case"uploading":return i("uploadingXFiles",{smart_count:s.length});case"preprocessing":case"postprocessing":return i("processingXFiles",{smart_count:l.length});case"paused":return i("uploadPaused");case"waiting":return i("xFilesSelected",{smart_count:r.length});case"complete":return i("uploadComplete");case"error":return i("error")}}const qr=function(e){const{i18n:t,isAllComplete:i,hideCancelButton:n,maxNumberOfFiles:a,toggleAddFilesPanel:o,uppy:s}=e;let{allowNewUpload:r}=e;return r&&a&&(r=e.totalFileCount<e.maxNumberOfFiles),(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},i||n?(0,Le.h)("div",null):(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>s.cancelAll()},t("cancel")),(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},(0,Le.h)(zr,e)),r?(0,Le.h)("button",{className:"uppy-DashboardContent-addMore",type:"button","aria-label":t("addMoreFiles"),title:t("addMoreFiles"),onClick:()=>o(!0)},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"15",height:"15",viewBox:"0 0 15 15"},(0,Le.h)("path",{d:"M8 6.5h6a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H8v6a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V8h-6a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h6v-6A.5.5 0 0 1 7 0h.5a.5.5 0 0 1 .5.5v6z"})),(0,Le.h)("span",{className:"uppy-DashboardContent-addMoreCaption"},t("addMore"))):(0,Le.h)("div",null))};function Hr(e){const{computedMetaFields:t,requiredMetaFields:i,updateMeta:n,form:a,formState:o}=e,s={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return t.map((e=>{const t="uppy-Dashboard-FileCard-input-".concat(e.id),r=i.includes(e.id);return(0,Le.h)("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},(0,Le.h)("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:t},e.name),void 0!==e.render?e.render({value:o[e.id],onChange:t=>n(t,e.id),fieldCSSClasses:s,required:r,form:a.id},Le.h):(0,Le.h)("input",{className:s.text,id:t,form:a.id,type:e.type||"text",required:r,value:o[e.id],placeholder:e.placeholder,onInput:t=>n(t.target.value,e.id),"data-uppy-super-focusable":!0}))}))}function Wr(e){var t;const{files:i,fileCardFor:n,toggleFileCard:a,saveFileCard:o,metaFields:s,requiredMetaFields:r,openFileEditor:l,i18n:c,i18nArray:p,className:u,canEditFile:d}=e,h=i[n],m=null!=(t="function"===typeof s?s(i[n]):s)?t:[],f=d(h),g={};m.forEach((e=>{var t;g[e.id]=null!=(t=h.meta[e.id])?t:""}));const[v,b]=Pn(g),y=_n((e=>{e.preventDefault(),o(v,n)}),[o,v,n]),x=()=>{a(!1)},[w]=Pn((()=>{const e=document.createElement("form");return e.setAttribute("tabindex","-1"),e.id=F(),e}));return Sn((()=>(document.body.appendChild(w),w.addEventListener("submit",y),()=>{w.removeEventListener("submit",y),document.body.removeChild(w)})),[w,y]),(0,Le.h)("div",{className:zn("uppy-Dashboard-FileCard",u),"data-uppy-panelType":"FileCard",onDragOver:Nr,onDragLeave:Nr,onDrop:Nr,onPaste:Nr},(0,Le.h)("div",{className:"uppy-DashboardContent-bar"},(0,Le.h)("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},p("editing",{file:(0,Le.h)("span",{className:"uppy-DashboardContent-titleFile"},h.meta?h.meta.name:h.name)})),(0,Le.h)("button",{className:"uppy-DashboardContent-back",type:"button",form:w.id,title:c("finishEditingFile"),onClick:x},c("cancel"))),(0,Le.h)("div",{className:"uppy-Dashboard-FileCard-inner"},(0,Le.h)("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:dr(h.type).color}},(0,Le.h)(hr,{file:h}),f&&(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:e=>{y(e),l(h)}},c("editImage"))),(0,Le.h)("div",{className:"uppy-Dashboard-FileCard-info"},(0,Le.h)(Hr,{computedMetaFields:m,requiredMetaFields:r,updateMeta:(e,t)=>{b({...v,[t]:e})},form:w,formState:v})),(0,Le.h)("div",{className:"uppy-Dashboard-FileCard-actions"},(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"submit",form:w.id},c("saveChanges")),(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:x,form:w.id},c("cancel")))))}const Vr="uppy-transition-slideDownUp";class Gr extends Le.wA{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,i=(0,Le.bR)(e.children)[0];if(t===i)return null;const n={cachedChildren:i};i&&!t&&(n.className="".concat(Vr,"-enter"),cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:"".concat(Vr,"-enter ").concat(Vr,"-enter-active")}),this.enterTimeout=setTimeout((()=>{this.setState({className:""})}),250)}))),t&&!i&&void 0===this.leaveTimeout&&(n.cachedChildren=t,n.className="".concat(Vr,"-leave"),cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame((()=>{this.setState({className:"".concat(Vr,"-leave ").concat(Vr,"-leave-active")}),this.leaveTimeout=setTimeout((()=>{this.setState({cachedChildren:null,className:""})}),250)}))),this.setState(n)}render(){const{cachedChildren:e,className:t}=this.state;return e?(0,Le.Tm)(e,{className:zn(t,e.props.className)}):null}}const Kr=Gr;function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},Xr.apply(this,arguments)}const Yr={strings:{closeModal:"Close Modal",addMoreFiles:"Add more files",addingMoreFiles:"Adding more files",importFrom:"Import from %{name}",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",copyLink:"Copy link",back:"Back",removeFile:"Remove file",editFile:"Edit file",editImage:"Edit image",editing:"Editing %{file}",error:"Error",finishEditingFile:"Finish editing file",saveChanges:"Save changes",myDevice:"My Device",dropHint:"Drop your files here",uploadComplete:"Upload complete",uploadPaused:"Upload paused",resumeUpload:"Resume upload",pauseUpload:"Pause upload",retryUpload:"Retry upload",cancelUpload:"Cancel upload",xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},poweredBy:"Powered by %{uppy}",addMore:"Add more",editFileWithFilename:"Edit file %{file}",save:"Save",cancel:"Cancel",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",importFiles:"Import files from:",browseFiles:"browse files",browseFolders:"browse folders",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},recoveredAllFiles:"We restored all files. You can now resume the upload.",sessionRestored:"Session restored",reSelect:"Re-select",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},takePictureBtn:"Take Picture",recordVideoBtn:"Record Video"}};function Zr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Jr=0;function Qr(e){return"__private_"+Jr+++"_"+e}const $r=nr.Z.default||nr.Z;function el(){const e={};return e.promise=new Promise(((t,i)=>{e.resolve=t,e.reject=i})),e}var tl=Qr("disabledNodes"),il=Qr("generateLargeThumbnailIfSingleFile"),nl=Qr("openFileEditorWhenFilesAdded"),al=Qr("attachRenderFunctionToTarget"),ol=Qr("isTargetSupported"),sl=Qr("getAcquirers"),rl=Qr("getProgressIndicators"),ll=Qr("getEditors"),cl=Qr("addSpecifiedPluginsFromOptions"),pl=Qr("autoDiscoverPlugins"),ul=Qr("addSupportedPluginIfNoTarget");class dl extends Ze{constructor(e,t){var i;super(e,t),i=this,Object.defineProperty(this,tl,{writable:!0,value:null}),this.removeTarget=e=>{const t=this.getPluginState().targets.filter((t=>t.id!==e.id));this.setPluginState({targets:t})},this.addTarget=e=>{const t=e.id||e.constructor.name,i=e.title||t,n=e.type;if("acquirer"!==n&&"progressindicator"!==n&&"editor"!==n){const e="Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor";return void this.uppy.log(e,"error")}const a={id:t,name:i,type:n},o=this.getPluginState().targets.slice();return o.push(a),this.setPluginState({targets:o}),this.el},this.hideAllPanels=()=>{const e=this.getPluginState(),t={activePickerPanel:!1,showAddFilesPanel:!1,activeOverlayType:null,fileCardFor:null,showFileEditor:!1};e.activePickerPanel===t.activePickerPanel&&e.showAddFilesPanel===t.showAddFilesPanel&&e.showFileEditor===t.showFileEditor&&e.activeOverlayType===t.activeOverlayType||(this.setPluginState(t),this.uppy.emit("dashboard:close-panel",e.activePickerPanel.id))},this.showPanel=e=>{const{targets:t}=this.getPluginState(),i=t.filter((t=>"acquirer"===t.type&&t.id===e))[0];this.setPluginState({activePickerPanel:i,activeOverlayType:"PickerPanel"}),this.uppy.emit("dashboard:show-panel",e)},this.canEditFile=e=>{const{targets:t}=this.getPluginState();return Zr(this,ll)[ll](t).some((t=>this.uppy.getPlugin(t.id).canEditFile(e)))},this.openFileEditor=e=>{const{targets:t}=this.getPluginState(),i=Zr(this,ll)[ll](t);this.setPluginState({showFileEditor:!0,fileCardFor:e.id||null,activeOverlayType:"FileEditor"}),i.forEach((t=>{this.uppy.getPlugin(t.id).selectFile(e)}))},this.closeFileEditor=()=>{const{metaFields:e}=this.getPluginState();e&&e.length>0?this.setPluginState({showFileEditor:!1,activeOverlayType:"FileCard"}):this.setPluginState({showFileEditor:!1,fileCardFor:null,activeOverlayType:"AddFiles"})},this.saveFileEditor=()=>{const{targets:e}=this.getPluginState();Zr(this,ll)[ll](e).forEach((e=>{this.uppy.getPlugin(e.id).save()})),this.closeFileEditor()},this.openModal=()=>{const{promise:e,resolve:t}=el();if(this.savedScrollPosition=window.pageYOffset,this.savedActiveElement=document.activeElement,this.opts.disablePageScrollWhenModalOpen&&document.body.classList.add("uppy-Dashboard-isFixed"),this.opts.animateOpenClose&&this.getPluginState().isClosing){const e=()=>{this.setPluginState({isHidden:!1}),this.el.removeEventListener("animationend",e,!1),t()};this.el.addEventListener("animationend",e,!1)}else this.setPluginState({isHidden:!1}),t();return this.opts.browserBackButtonClose&&this.updateBrowserHistory(),document.addEventListener("keydown",this.handleKeyDownInModal),this.uppy.emit("dashboard:modal-open"),e},this.closeModal=function(e){void 0===e&&(e={});const{manualClose:t=!0}=e,{isHidden:n,isClosing:a}=i.getPluginState();if(n||a)return;const{promise:o,resolve:s}=el();if(i.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),i.opts.animateOpenClose){i.setPluginState({isClosing:!0});const e=()=>{i.setPluginState({isHidden:!0,isClosing:!1}),i.superFocus.cancel(),i.savedActiveElement.focus(),i.el.removeEventListener("animationend",e,!1),s()};i.el.addEventListener("animationend",e,!1)}else i.setPluginState({isHidden:!0}),i.superFocus.cancel(),i.savedActiveElement.focus(),s();var r;(document.removeEventListener("keydown",i.handleKeyDownInModal),t)&&(i.opts.browserBackButtonClose&&null!=(r=history.state)&&r[i.modalName]&&history.back());return i.uppy.emit("dashboard:modal-closed"),o},this.isModalOpen=()=>!this.getPluginState().isHidden||!1,this.requestCloseModal=()=>this.opts.onRequestCloseModal?this.opts.onRequestCloseModal():this.closeModal(),this.setDarkModeCapability=e=>{const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,darkMode:e}})},this.handleSystemDarkModeChange=e=>{const t=e.matches;this.uppy.log("[Dashboard] Dark mode is ".concat(t?"on":"off")),this.setDarkModeCapability(t)},this.toggleFileCard=(e,t)=>{const i=this.uppy.getFile(t);e?this.uppy.emit("dashboard:file-edit-start",i):this.uppy.emit("dashboard:file-edit-complete",i),this.setPluginState({fileCardFor:e?t:null,activeOverlayType:e?"FileCard":null})},this.toggleAddFilesPanel=e=>{this.setPluginState({showAddFilesPanel:e,activeOverlayType:e?"AddFiles":null})},this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||e.webkitRelativePath||null}})));try{this.uppy.addFiles(t)}catch(i){this.uppy.log(i)}},this.startListeningToResize=()=>{this.resizeObserver=new ResizeObserver((e=>{const t=e[0],{width:i,height:n}=t.contentRect;this.setPluginState({containerWidth:i,containerHeight:n,areInsidesReadyToBeVisible:!0})})),this.resizeObserver.observe(this.el.querySelector(".uppy-Dashboard-inner")),this.makeDashboardInsidesVisibleAnywayTimeout=setTimeout((()=>{const e=this.getPluginState(),t=!this.opts.inline&&e.isHidden;e.areInsidesReadyToBeVisible||t||(this.uppy.log("[Dashboard] resize event didn\u2019t fire on time: defaulted to mobile layout","warning"),this.setPluginState({areInsidesReadyToBeVisible:!0}))}),1e3)},this.stopListeningToResize=()=>{this.resizeObserver.disconnect(),clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout)},this.recordIfFocusedOnUppyRecently=e=>{this.el.contains(e.target)?this.ifFocusedOnUppyRecently=!0:(this.ifFocusedOnUppyRecently=!1,this.superFocus.cancel())},this.disableInteractiveElements=e=>{var t;const i=null!=(t=Zr(this,tl)[tl])?t:hi(this.el.querySelectorAll(["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[role="button"]:not([disabled])'])).filter((e=>!e.classList.contains("uppy-Dashboard-close")));for(const n of i)"A"===n.tagName?n.setAttribute("aria-disabled",e):n.disabled=e;Zr(this,tl)[tl]=e?i:null,this.dashboardIsDisabled=e},this.updateBrowserHistory=()=>{var e;null!=(e=history.state)&&e[this.modalName]||history.pushState({...history.state,[this.modalName]:!0},""),window.addEventListener("popstate",this.handlePopState,!1)},this.handlePopState=e=>{var t;!this.isModalOpen()||e.state&&e.state[this.modalName]||this.closeModal({manualClose:!1}),!this.isModalOpen()&&null!=(t=e.state)&&t[this.modalName]&&history.back()},this.handleKeyDownInModal=e=>{27===e.keyCode&&this.requestCloseModal(e),9===e.keyCode&&rr(e,this.getPluginState().activeOverlayType,this.el)},this.handleClickOutside=()=>{this.opts.closeModalOnClickOutside&&this.requestCloseModal()},this.handlePaste=e=>{this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootPaste||t.handleRootPaste(e))}));const t=hi(e.clipboardData.files);t.length>0&&(this.uppy.log("[Dashboard] Files pasted"),this.addFiles(t))},this.handleInputChange=e=>{e.preventDefault();const t=hi(e.target.files);t.length>0&&(this.uppy.log("[Dashboard] Files selected through input"),this.addFiles(t))},this.handleDragOver=e=>{var t,i;e.preventDefault(),e.stopPropagation();const n=(()=>{let t=!0;return this.uppy.iteratePlugins((i=>{null!=i.canHandleRootDrop&&i.canHandleRootDrop(e)&&(t=!0)})),t})(),a=(()=>{const{types:t}=e.dataTransfer;return t.some((e=>"Files"===e))})();if(!n&&!a||this.opts.disabled||this.opts.disableLocalFiles&&(a||!n)||!this.uppy.getState().allowNewUpload)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(i=this.opts).onDragOver)||t.call(i,e)},this.handleDragLeave=e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(i=this.opts).onDragLeave)||t.call(i,e)},this.handleDrop=async e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let n=!1;this.uppy.log("[Dashboard] Processing dropped files");const a=await ir(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),n||(this.uppy.info(e.message,"error"),n=!0)}});a.length>0&&(this.uppy.log("[Dashboard] Files dropped"),this.addFiles(a)),null==(t=(i=this.opts).onDrop)||t.call(i,e)},this.handleRequestThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:request",e)},this.handleCancelThumbnail=e=>{this.opts.waitForThumbnailsBeforeUpload||this.uppy.emit("thumbnail:cancel",e)},this.handleKeyDownInInline=e=>{9===e.keyCode&&function(e,t,i){null===t||rr(e,t,i)}(e,this.getPluginState().activeOverlayType,this.el)},this.handlePasteOnBody=e=>{this.el.contains(document.activeElement)&&this.handlePaste(e)},this.handleComplete=e=>{let{failed:t}=e;this.opts.closeAfterFinish&&0===t.length&&this.requestCloseModal()},this.handleCancelRestore=()=>{this.uppy.emit("restore-canceled")},Object.defineProperty(this,il,{writable:!0,value:()=>{if(this.opts.disableThumbnailGenerator)return;const e=this.uppy.getFiles();if(1===e.length){const t=this.uppy.getPlugin("".concat(this.id,":ThumbnailGenerator"));null==t||t.setOptions({thumbnailWidth:600});const i={...e[0],preview:void 0};t.requestThumbnail(i).then((()=>{null==t||t.setOptions({thumbnailWidth:this.opts.thumbnailWidth})}))}}}),Object.defineProperty(this,nl,{writable:!0,value:e=>{const t=e[0],{metaFields:i}=this.getPluginState(),n=i&&i.length>0,a=this.canEditFile(t);n?this.toggleFileCard(!0,t.id):a&&this.openFileEditor(t)}}),this.initEvents=()=>{if(this.opts.trigger&&!this.opts.inline){const e=Qs(this.opts.trigger);e?e.forEach((e=>e.addEventListener("click",this.openModal))):this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself","warning")}this.startListeningToResize(),document.addEventListener("paste",this.handlePasteOnBody),this.uppy.on("plugin-added",Zr(this,ul)[ul]),this.uppy.on("plugin-remove",this.removeTarget),this.uppy.on("file-added",this.hideAllPanels),this.uppy.on("dashboard:modal-closed",this.hideAllPanels),this.uppy.on("complete",this.handleComplete),this.uppy.on("files-added",Zr(this,il)[il]),this.uppy.on("file-removed",Zr(this,il)[il]),document.addEventListener("focus",this.recordIfFocusedOnUppyRecently,!0),document.addEventListener("click",this.recordIfFocusedOnUppyRecently,!0),this.opts.inline&&this.el.addEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.on("files-added",Zr(this,nl)[nl])},this.removeEvents=()=>{const e=Qs(this.opts.trigger);!this.opts.inline&&e&&e.forEach((e=>e.removeEventListener("click",this.openModal))),this.stopListeningToResize(),document.removeEventListener("paste",this.handlePasteOnBody),window.removeEventListener("popstate",this.handlePopState,!1),this.uppy.off("plugin-added",Zr(this,ul)[ul]),this.uppy.off("plugin-remove",this.removeTarget),this.uppy.off("file-added",this.hideAllPanels),this.uppy.off("dashboard:modal-closed",this.hideAllPanels),this.uppy.off("complete",this.handleComplete),this.uppy.off("files-added",Zr(this,il)[il]),this.uppy.off("file-removed",Zr(this,il)[il]),document.removeEventListener("focus",this.recordIfFocusedOnUppyRecently),document.removeEventListener("click",this.recordIfFocusedOnUppyRecently),this.opts.inline&&this.el.removeEventListener("keydown",this.handleKeyDownInInline),this.opts.autoOpenFileEditor&&this.uppy.off("files-added",Zr(this,nl)[nl])},this.superFocusOnEachUpdate=()=>{const e=this.el.contains(document.activeElement),t=document.activeElement===document.body||null===document.activeElement,i=0===this.uppy.getState().info.length,n=!this.opts.inline;i&&(n||e||t&&this.ifFocusedOnUppyRecently)?this.superFocus(this.el,this.getPluginState().activeOverlayType):this.superFocus.cancel()},this.afterUpdate=()=>{!this.opts.disabled||this.dashboardIsDisabled?(!this.opts.disabled&&this.dashboardIsDisabled&&this.disableInteractiveElements(!1),this.superFocusOnEachUpdate()):this.disableInteractiveElements(!0)},this.saveFileCard=(e,t)=>{this.uppy.setFileMeta(t,e),this.toggleFileCard(!1,t)},Object.defineProperty(this,al,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return{...e,icon:t.icon||this.opts.defaultPickerIcon,render:t.render}}}),Object.defineProperty(this,ol,{writable:!0,value:e=>{const t=this.uppy.getPlugin(e.id);return"function"!==typeof t.isSupported||t.isSupported()}}),Object.defineProperty(this,sl,{writable:!0,value:$r((e=>e.filter((e=>"acquirer"===e.type&&Zr(this,ol)[ol](e))).map(Zr(this,al)[al])))}),Object.defineProperty(this,rl,{writable:!0,value:$r((e=>e.filter((e=>"progressindicator"===e.type)).map(Zr(this,al)[al])))}),Object.defineProperty(this,ll,{writable:!0,value:$r((e=>e.filter((e=>"editor"===e.type)).map(Zr(this,al)[al])))}),this.render=e=>{const t=this.getPluginState(),{files:i,capabilities:n,allowNewUpload:a}=e,{newFiles:o,uploadStartedFiles:s,completeFiles:r,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:p,processingFiles:u,isUploadStarted:d,isAllComplete:h,isAllErrored:m,isAllPaused:f}=this.uppy.getObjectOfFilesPerState(),g=Zr(this,sl)[sl](t.targets),v=Zr(this,rl)[rl](t.targets),b=Zr(this,ll)[ll](t.targets);let y;return y="auto"===this.opts.theme?n.darkMode?"dark":"light":this.opts.theme,["files","folders","both"].indexOf(this.opts.fileManagerSelectionType)<0&&(this.opts.fileManagerSelectionType="files",console.warn('Unsupported option for "fileManagerSelectionType". Using default of "'.concat(this.opts.fileManagerSelectionType,'".'))),function(e){const t=0===e.totalFileCount,i=1===e.totalFileCount,n=e.containerWidth>576,a=e.containerHeight>330,o=zn({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>576,"uppy-size--lg":e.containerWidth>700,"uppy-size--xl":e.containerWidth>900,"uppy-size--height-md":e.containerHeight>330,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible,"uppy-Dashboard--singleFile":e.singleFileFullScreen&&i&&a});let s=1;e.containerWidth>900?s=5:e.containerWidth>700?s=4:e.containerWidth>576&&(s=3);const r=e.showSelectedFiles&&!t,l=e.recoveredState?Object.keys(e.recoveredState.files).length:null,c=e.files?Object.keys(e.files).filter((t=>e.files[t].isGhost)).length:null,p=(0,Le.h)("div",{className:o,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&pr(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},(0,Le.h)("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),(0,Le.h)("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:(0,Le.h)("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},(0,Le.h)("span",{"aria-hidden":"true"},"\xd7")),(0,Le.h)("div",{className:"uppy-Dashboard-innerWrap"},(0,Le.h)("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),r&&(0,Le.h)(qr,e),l&&(0,Le.h)("div",{className:"uppy-Dashboard-serviceMsg"},(0,Le.h)("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},(0,Le.h)("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},(0,Le.h)("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),(0,Le.h)("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),(0,Le.h)("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),(0,Le.h)("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),(0,Le.h)("div",{className:"uppy-Dashboard-serviceMsg-text"},c>0?e.i18n("recoveredXFiles",{smart_count:c}):e.i18n("recoveredAllFiles"))),r?(0,Le.h)(Rr,{id:e.id,error:e.error,i18n:e.i18n,uppy:e.uppy,files:e.files,acquirers:e.acquirers,resumableUploads:e.resumableUploads,hideRetryButton:e.hideRetryButton,hidePauseResumeButton:e.hidePauseResumeButton,hideCancelButton:e.hideCancelButton,showLinkToFileUploadResult:e.showLinkToFileUploadResult,showRemoveButtonAfterComplete:e.showRemoveButtonAfterComplete,isWide:e.isWide,metaFields:e.metaFields,toggleFileCard:e.toggleFileCard,handleRequestThumbnail:e.handleRequestThumbnail,handleCancelThumbnail:e.handleCancelThumbnail,recoveredState:e.recoveredState,individualCancellation:e.individualCancellation,openFileEditor:e.openFileEditor,canEditFile:e.canEditFile,toggleAddFilesPanel:e.toggleAddFilesPanel,isSingleFile:i,itemsPerRow:s}):(0,Le.h)(jr,Xr({},e,{isSizeMD:n})),(0,Le.h)(Kr,null,e.showAddFilesPanel?(0,Le.h)(Ar,Xr({key:"AddFiles"},e,{isSizeMD:n})):null),(0,Le.h)(Kr,null,e.fileCardFor?(0,Le.h)(Wr,Xr({key:"FileCard"},e)):null),(0,Le.h)(Kr,null,e.activePickerPanel?(0,Le.h)(Br,Xr({key:"Picker"},e)):null),(0,Le.h)(Kr,null,e.showFileEditor?(0,Le.h)(Mr,Xr({key:"Editor"},e)):null),(0,Le.h)("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map((t=>e.uppy.getPlugin(t.id).render(e.state)))))));return p}({state:e,isHidden:t.isHidden,files:i,newFiles:o,uploadStartedFiles:s,completeFiles:r,erroredFiles:l,inProgressFiles:c,inProgressNotPausedFiles:p,processingFiles:u,isUploadStarted:d,isAllComplete:h,isAllErrored:m,isAllPaused:f,totalFileCount:Object.keys(i).length,totalProgress:e.totalProgress,allowNewUpload:a,acquirers:g,theme:y,disabled:this.opts.disabled,disableLocalFiles:this.opts.disableLocalFiles,direction:this.opts.direction,activePickerPanel:t.activePickerPanel,showFileEditor:t.showFileEditor,saveFileEditor:this.saveFileEditor,closeFileEditor:this.closeFileEditor,disableInteractiveElements:this.disableInteractiveElements,animateOpenClose:this.opts.animateOpenClose,isClosing:t.isClosing,progressindicators:v,editors:b,autoProceed:this.uppy.opts.autoProceed,id:this.id,closeModal:this.requestCloseModal,handleClickOutside:this.handleClickOutside,handleInputChange:this.handleInputChange,handlePaste:this.handlePaste,inline:this.opts.inline,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,i18n:this.i18n,i18nArray:this.i18nArray,uppy:this.uppy,note:this.opts.note,recoveredState:e.recoveredState,metaFields:t.metaFields,resumableUploads:n.resumableUploads||!1,individualCancellation:n.individualCancellation,isMobileDevice:n.isMobileDevice,fileCardFor:t.fileCardFor,toggleFileCard:this.toggleFileCard,toggleAddFilesPanel:this.toggleAddFilesPanel,showAddFilesPanel:t.showAddFilesPanel,saveFileCard:this.saveFileCard,openFileEditor:this.openFileEditor,canEditFile:this.canEditFile,width:this.opts.width,height:this.opts.height,showLinkToFileUploadResult:this.opts.showLinkToFileUploadResult,fileManagerSelectionType:this.opts.fileManagerSelectionType,proudlyDisplayPoweredByUppy:this.opts.proudlyDisplayPoweredByUppy,hideCancelButton:this.opts.hideCancelButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,showRemoveButtonAfterComplete:this.opts.showRemoveButtonAfterComplete,containerWidth:t.containerWidth,containerHeight:t.containerHeight,areInsidesReadyToBeVisible:t.areInsidesReadyToBeVisible,isTargetDOMEl:this.isTargetDOMEl,parentElement:this.el,allowedFileTypes:this.uppy.opts.restrictions.allowedFileTypes,maxNumberOfFiles:this.uppy.opts.restrictions.maxNumberOfFiles,requiredMetaFields:this.uppy.opts.restrictions.requiredMetaFields,showSelectedFiles:this.opts.showSelectedFiles,showNativePhotoCameraButton:this.opts.showNativePhotoCameraButton,showNativeVideoCameraButton:this.opts.showNativeVideoCameraButton,nativeCameraFacingMode:this.opts.nativeCameraFacingMode,singleFileFullScreen:this.opts.singleFileFullScreen,handleCancelRestore:this.handleCancelRestore,handleRequestThumbnail:this.handleRequestThumbnail,handleCancelThumbnail:this.handleCancelThumbnail,isDraggingOver:t.isDraggingOver,handleDragOver:this.handleDragOver,handleDragLeave:this.handleDragLeave,handleDrop:this.handleDrop})},Object.defineProperty(this,cl,{writable:!0,value:()=>{(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t?t.mount(this,t):this.uppy.log("[Uppy] Dashboard could not find plugin '".concat(e,"', make sure to uppy.use() the plugins you are specifying"),"warning")}))}}),Object.defineProperty(this,pl,{writable:!0,value:()=>{this.uppy.iteratePlugins(Zr(this,ul)[ul])}}),Object.defineProperty(this,ul,{writable:!0,value:e=>{var t;if(e&&(null==(t=e.opts)||!t.target)&&["acquirer","editor"].includes(e.type)){this.getPluginState().targets.some((t=>e.id===t.id))||e.mount(this,e)}}}),this.install=()=>{this.setPluginState({isHidden:!0,fileCardFor:null,activeOverlayType:null,showAddFilesPanel:!1,activePickerPanel:!1,showFileEditor:!1,metaFields:this.opts.metaFields,targets:[],areInsidesReadyToBeVisible:!1,isDraggingOver:!1});const{inline:e,closeAfterFinish:t}=this.opts;if(e&&t)throw new Error("[Dashboard] `closeAfterFinish: true` cannot be used on an inline Dashboard, because an inline Dashboard cannot be closed at all. Either set `inline: false`, or disable the `closeAfterFinish` option.");const{allowMultipleUploads:i,allowMultipleUploadBatches:n}=this.uppy.opts;(i||n)&&t&&this.uppy.log("[Dashboard] When using `closeAfterFinish`, we recommended setting the `allowMultipleUploadBatches` option to `false` in the Uppy constructor. See https://uppy.io/docs/uppy/#allowMultipleUploads-true","warning");const{target:a}=this.opts;a&&this.mount(a,this),this.opts.disableStatusBar||this.uppy.use(wo,{id:"".concat(this.id,":StatusBar"),target:this,hideUploadButton:this.opts.hideUploadButton,hideRetryButton:this.opts.hideRetryButton,hidePauseResumeButton:this.opts.hidePauseResumeButton,hideCancelButton:this.opts.hideCancelButton,showProgressDetails:this.opts.showProgressDetails,hideAfterFinish:this.opts.hideProgressAfterFinish,locale:this.opts.locale,doneButtonHandler:this.opts.doneButtonHandler}),this.opts.disableInformer||this.uppy.use(Oo,{id:"".concat(this.id,":Informer"),target:this}),this.opts.disableThumbnailGenerator||this.uppy.use(Js,{id:"".concat(this.id,":ThumbnailGenerator"),thumbnailWidth:this.opts.thumbnailWidth,thumbnailHeight:this.opts.thumbnailHeight,thumbnailType:this.opts.thumbnailType,waitForThumbnailsBeforeUpload:this.opts.waitForThumbnailsBeforeUpload,lazy:!this.opts.waitForThumbnailsBeforeUpload}),this.darkModeMediaQuery="undefined"!==typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null;const o=!!this.darkModeMediaQuery&&this.darkModeMediaQuery.matches;this.uppy.log("[Dashboard] Dark mode is ".concat(o?"on":"off")),this.setDarkModeCapability(o),"auto"===this.opts.theme&&this.darkModeMediaQuery.addListener(this.handleSystemDarkModeChange),Zr(this,cl)[cl](),Zr(this,pl)[pl](),this.initEvents()},this.uninstall=()=>{if(!this.opts.disableInformer){const e=this.uppy.getPlugin("".concat(this.id,":Informer"));e&&this.uppy.removePlugin(e)}if(!this.opts.disableStatusBar){const e=this.uppy.getPlugin("".concat(this.id,":StatusBar"));e&&this.uppy.removePlugin(e)}if(!this.opts.disableThumbnailGenerator){const e=this.uppy.getPlugin("".concat(this.id,":ThumbnailGenerator"));e&&this.uppy.removePlugin(e)}(this.opts.plugins||[]).forEach((e=>{const t=this.uppy.getPlugin(e);t&&t.unmount()})),"auto"===this.opts.theme&&this.darkModeMediaQuery.removeListener(this.handleSystemDarkModeChange),this.opts.disablePageScrollWhenModalOpen&&document.body.classList.remove("uppy-Dashboard-isFixed"),this.unmount(),this.removeEvents()},this.id=this.opts.id||"Dashboard",this.title="Dashboard",this.type="orchestrator",this.modalName="uppy-Dashboard-".concat(F()),this.defaultLocale=Yr;const n={target:"body",metaFields:[],trigger:null,inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,defaultPickerIcon:ma,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,doneButtonHandler:()=>{this.uppy.clearUploadedFiles(),this.requestCloseModal()},note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,singleFileFullScreen:!0,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,onRequestCloseModal:()=>this.closeModal(),showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,showNativePhotoCameraButton:!1,showNativeVideoCameraButton:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1};this.opts={...n,...t},this.i18nInit(),this.superFocus=function(){let e=!1;return lr(((t,i)=>{const n=or(t,i),a=n.contains(document.activeElement);if(a&&e)return;const o=n.querySelector("[data-uppy-super-focusable]");if(!a||o)if(o)o.focus({preventScroll:!0}),e=!0;else{const t=n.querySelector(ar);null==t||t.focus({preventScroll:!0}),e=!1}}),260)}(),this.ifFocusedOnUppyRecently=!1,this.makeDashboardInsidesVisibleAnywayTimeout=null,this.removeDragOverClassTimeout=null}}dl.VERSION="3.7.5";var hl=i(55898),ml=i.n(hl);const fl=hl.instanceOf(Me),gl=hl.arrayOf(hl.string),vl=hl.shape({strings:hl.object,pluralize:hl.func}),bl=hl.shape({id:hl.string.isRequired,name:hl.string.isRequired,placeholder:hl.string}),yl=hl.oneOfType([hl.arrayOf(bl),hl.func]),xl=hl.oneOfType([hl.string,hl.number]),wl={uppy:fl,inline:hl.bool,plugins:gl,width:xl,height:xl,showProgressDetails:hl.bool,hideUploadButton:hl.bool,hideProgressAfterFinish:hl.bool,note:hl.string,metaFields:yl,proudlyDisplayPoweredByUppy:hl.bool,disableStatusBar:hl.bool,disableInformer:hl.bool,disableThumbnailGenerator:hl.bool,thumbnailWidth:hl.number,locale:vl},Pl=["defaultChecked","defaultValue","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML","accessKey","className","contentEditable","contextMenu","dir","draggable","hidden","id","lang","placeholder","slot","spellCheck","style","tabIndex","title","translate","radioGroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","inputMode","is","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Sl=/^(aria-|data-)/,kl=e=>Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return Sl.test(t)||Pl.includes(t)})));function _l(e,t){return Object.keys(e).some((i=>!Object.hasOwn(e,i)&&e[i]!==t[i]))}class Cl extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e}=this.props,t={id:"react:Dashboard",...this.props,target:this.container};delete t.uppy,e.use(dl,t),this.plugin=e.getPlugin(t.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Cl.propTypes=wl,Cl.defaultProps={inline:!0};const Fl=Cl;class Tl extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){const{uppy:t,open:i,onRequestClose:n}=this.props;if(e.uppy!==t)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,onRequestCloseModal:n};delete e.uppy,this.plugin.setOptions(e)}e.open&&!i?this.plugin.closeModal():!e.open&&i&&this.plugin.openModal()}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{id:e="react:DashboardModal",uppy:t,target:i,open:n,onRequestClose:a,closeModalOnClickOutside:o,disablePageScrollWhenModalOpen:s,inline:r,plugins:l,width:c,height:p,showProgressDetails:u,note:d,metaFields:h,proudlyDisplayPoweredByUppy:m,autoOpenFileEditor:f,animateOpenClose:g,browserBackButtonClose:v,closeAfterFinish:b,disableStatusBar:y,disableInformer:x,disableThumbnailGenerator:w,disableLocalFiles:P,disabled:S,hideCancelButton:k,hidePauseResumeButton:_,hideProgressAfterFinish:C,hideRetryButton:F,hideUploadButton:T,showLinkToFileUploadResult:O,showRemoveButtonAfterComplete:E,showSelectedFiles:D,waitForThumbnailsBeforeUpload:R,fileManagerSelectionType:U,theme:I,thumbnailType:j,thumbnailWidth:A,locale:N}=this.props,B={id:e,target:i,closeModalOnClickOutside:o,disablePageScrollWhenModalOpen:s,inline:r,plugins:l,width:c,height:p,showProgressDetails:u,note:d,metaFields:h,proudlyDisplayPoweredByUppy:m,autoOpenFileEditor:f,animateOpenClose:g,browserBackButtonClose:v,closeAfterFinish:b,disableStatusBar:y,disableInformer:x,disableThumbnailGenerator:w,disableLocalFiles:P,disabled:S,hideCancelButton:k,hidePauseResumeButton:_,hideProgressAfterFinish:C,hideRetryButton:F,hideUploadButton:T,showLinkToFileUploadResult:O,showRemoveButtonAfterComplete:E,showSelectedFiles:D,waitForThumbnailsBeforeUpload:R,fileManagerSelectionType:U,theme:I,thumbnailType:j,thumbnailWidth:A,locale:N,onRequestCloseModal:a};B.target||(B.target=this.container),delete B.uppy,t.use(dl,B),this.plugin=t.getPlugin(B.id),n&&this.plugin.openModal()}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Tl.propTypes={uppy:fl.isRequired,target:"undefined"!==typeof window?hl.instanceOf(window.HTMLElement):hl.any,open:hl.bool,onRequestClose:hl.func,closeModalOnClickOutside:hl.bool,disablePageScrollWhenModalOpen:hl.bool,inline:hl.bool,plugins:gl,width:xl,height:xl,showProgressDetails:hl.bool,note:hl.string,metaFields:yl,proudlyDisplayPoweredByUppy:hl.bool,autoOpenFileEditor:hl.bool,animateOpenClose:hl.bool,browserBackButtonClose:hl.bool,closeAfterFinish:hl.bool,disableStatusBar:hl.bool,disableInformer:hl.bool,disableThumbnailGenerator:hl.bool,disableLocalFiles:hl.bool,disabled:hl.bool,hideCancelButton:hl.bool,hidePauseResumeButton:hl.bool,hideProgressAfterFinish:hl.bool,hideRetryButton:hl.bool,hideUploadButton:hl.bool,showLinkToFileUploadResult:hl.bool,showRemoveButtonAfterComplete:hl.bool,showSelectedFiles:hl.bool,waitForThumbnailsBeforeUpload:hl.bool,fileManagerSelectionType:hl.string,theme:hl.string,thumbnailType:hl.string,thumbnailWidth:hl.number,locale:vl},Tl.defaultProps={metaFields:[],plugins:[],inline:!1,width:750,height:550,thumbnailWidth:280,thumbnailType:"image/jpeg",waitForThumbnailsBeforeUpload:!1,showLinkToFileUploadResult:!1,showProgressDetails:!1,hideUploadButton:!1,hideCancelButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideProgressAfterFinish:!1,note:null,closeModalOnClickOutside:!1,closeAfterFinish:!1,disableStatusBar:!1,disableInformer:!1,disableThumbnailGenerator:!1,disablePageScrollWhenModalOpen:!0,animateOpenClose:!0,fileManagerSelectionType:"files",proudlyDisplayPoweredByUppy:!0,showSelectedFiles:!0,showRemoveButtonAfterComplete:!1,browserBackButtonClose:!1,theme:"light",autoOpenFileEditor:!1,disabled:!1,disableLocalFiles:!1,open:void 0,target:void 0,locale:null,onRequestClose:void 0};const Ol={strings:{dropHereOr:"Drop here or %{browse}",browse:"browse"}};class El extends Ze{constructor(e,t){super(e,t),this.handleDrop=async e=>{var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!1});const n=await ir(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error")}});n.length>0&&(this.uppy.log("[DragDrop] Files dropped"),this.addFiles(n)),null==(t=(i=this.opts).onDrop)||t.call(i,e)},this.type="acquirer",this.id=this.opts.id||"DragDrop",this.title="Drag & Drop",this.defaultLocale=Ol;this.opts={target:null,inputName:"files[]",width:"100%",height:"100%",note:null,...t},this.i18nInit(),this.isDragDropSupported=pr(),this.removeDragOverClassTimeout=null,this.onInputChange=this.onInputChange.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this),this.addFiles=this.addFiles.bind(this),this.render=this.render.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(i){this.uppy.log(i)}}onInputChange(e){const t=hi(e.target.files);t.length>0&&(this.uppy.log("[DragDrop] Files selected through input"),this.addFiles(t)),e.target.value=null}handleDragOver(e){var t,i;e.preventDefault(),e.stopPropagation();const{types:n}=e.dataTransfer,a=n.some((e=>"Files"===e)),{allowNewUpload:o}=this.uppy.getState();if(!a||!o)return e.dataTransfer.dropEffect="none",void clearTimeout(this.removeDragOverClassTimeout);e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),this.setPluginState({isDraggingOver:!0}),null==(t=(i=this.opts).onDragOver)||t.call(i,e)}handleDragLeave(e){var t,i;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{this.setPluginState({isDraggingOver:!1})}),50),null==(t=(i=this.opts).onDragLeave)||t.call(i,e)}renderHiddenFileInput(){const{restrictions:e}=this.uppy.opts;return(0,Le.h)("input",{className:"uppy-DragDrop-input",type:"file",hidden:!0,ref:e=>{this.fileInputRef=e},name:this.opts.inputName,multiple:1!==e.maxNumberOfFiles,accept:e.allowedFileTypes,onChange:this.onInputChange})}static renderArrowSvg(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-DragDrop-arrow",width:"16",height:"16",viewBox:"0 0 16 16"},(0,Le.h)("path",{d:"M11 10V0H5v10H2l6 6 6-6h-3zm0 0",fillRule:"evenodd"}))}renderLabel(){return(0,Le.h)("div",{className:"uppy-DragDrop-label"},this.i18nArray("dropHereOr",{browse:(0,Le.h)("span",{className:"uppy-DragDrop-browse"},this.i18n("browse"))}))}renderNote(){return(0,Le.h)("span",{className:"uppy-DragDrop-note"},this.opts.note)}render(){const e="uppy-u-reset\n uppy-DragDrop-container\n ".concat(this.isDragDropSupported?"uppy-DragDrop--isDragDropSupported":"","\n ").concat(this.getPluginState().isDraggingOver?"uppy-DragDrop--isDraggingOver":"","\n "),t={width:this.opts.width,height:this.opts.height};return(0,Le.h)("button",{type:"button",className:e,style:t,onClick:()=>this.fileInputRef.click(),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},this.renderHiddenFileInput(),(0,Le.h)("div",{className:"uppy-DragDrop-inner"},El.renderArrowSvg(),this.renderLabel(),this.renderNote()))}install(){const{target:e}=this.opts;this.setPluginState({isDraggingOver:!1}),e&&this.mount(e,this)}uninstall(){this.unmount()}}El.VERSION="3.0.3";class Dl extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e,locale:t,inputName:i,width:n,height:a,note:o}=this.props,s={id:"react:DragDrop",locale:t,inputName:i,width:n,height:a,note:o,target:this.container};delete s.uppy,e.use(El,s),this.plugin=e.getPlugin(s.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Dl.propTypes={uppy:fl.isRequired,locale:vl,inputName:hl.string,width:hl.string,height:hl.string,note:hl.string},Dl.defaultProps={locale:null,inputName:"files[]",width:"100%",height:"100%",note:null};class Rl extends Ze{constructor(e,t){super(e,t),this.id=this.opts.id||"ProgressBar",this.title="Progress Bar",this.type="progressindicator";this.opts={target:"body",fixed:!1,hideAfterFinish:!0,...t},this.render=this.render.bind(this)}render(e){const t=e.totalProgress||0,i=(0===t||100===t)&&this.opts.hideAfterFinish;return(0,Le.h)("div",{className:"uppy uppy-ProgressBar",style:{position:this.opts.fixed?"fixed":"initial"},"aria-hidden":i},(0,Le.h)("div",{className:"uppy-ProgressBar-inner",style:{width:"".concat(t,"%")}}),(0,Le.h)("div",{className:"uppy-ProgressBar-percentage"},t))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Rl.VERSION="3.0.4";class Ul extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e,fixed:t,hideAfterFinish:i}=this.props,n={id:"react:ProgressBar",fixed:t,hideAfterFinish:i,target:this.container};delete n.uppy,e.use(Rl,n),this.plugin=e.getPlugin(n.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Ul.propTypes={uppy:fl.isRequired,fixed:hl.bool,hideAfterFinish:hl.bool},Ul.defaultProps={fixed:!1,hideAfterFinish:!0};class Il extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){if(e.uppy!==this.props.uppy)this.uninstallPlugin(e),this.installPlugin();else if(_l(this.props,e)){const e={...this.props,target:this.container};delete e.uppy,this.plugin.setOptions(e)}}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e,hideUploadButton:t,hideRetryButton:i,hidePauseResumeButton:n,hideCancelButton:a,showProgressDetails:o,hideAfterFinish:s,doneButtonHandler:r}=this.props,l={id:"react:StatusBar",hideUploadButton:t,hideRetryButton:i,hidePauseResumeButton:n,hideCancelButton:a,showProgressDetails:o,hideAfterFinish:s,doneButtonHandler:r,target:this.container};delete l.uppy,e.use(wo,l),this.plugin=e.getPlugin(l.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e},...kl(this.props)})}}Il.propTypes={uppy:fl.isRequired,hideUploadButton:hl.bool,hideRetryButton:hl.bool,hidePauseResumeButton:hl.bool,hideCancelButton:hl.bool,showProgressDetails:hl.bool,hideAfterFinish:hl.bool,doneButtonHandler:hl.func},Il.defaultProps={hideUploadButton:!1,hideRetryButton:!1,hidePauseResumeButton:!1,hideCancelButton:!1,showProgressDetails:!1,hideAfterFinish:!0,doneButtonHandler:null};const jl={strings:{chooseFiles:"Choose files"}};class Al extends Ze{constructor(e,t){super(e,t),this.id=this.opts.id||"FileInput",this.title="File Input",this.type="acquirer",this.defaultLocale=jl;this.opts={target:null,pretty:!0,inputName:"files[]",...t},this.i18nInit(),this.render=this.render.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleClick=this.handleClick.bind(this)}addFiles(e){const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e})));try{this.uppy.addFiles(t)}catch(i){this.uppy.log(i)}}handleInputChange(e){this.uppy.log("[FileInput] Something selected through input...");const t=hi(e.target.files);this.addFiles(t),e.target.value=null}handleClick(){this.input.click()}render(){const{restrictions:e}=this.uppy.opts,t=e.allowedFileTypes?e.allowedFileTypes.join(","):null;return(0,Le.h)("div",{className:"uppy-FileInput-container"},(0,Le.h)("input",{className:"uppy-FileInput-input",style:this.opts.pretty&&{width:"0.1px",height:"0.1px",opacity:0,overflow:"hidden",position:"absolute",zIndex:-1},type:"file",name:this.opts.inputName,onChange:this.handleInputChange,multiple:1!==e.maxNumberOfFiles,accept:t,ref:e=>{this.input=e}}),this.opts.pretty&&(0,Le.h)("button",{className:"uppy-FileInput-btn",type:"button",onClick:this.handleClick},this.i18n("chooseFiles")))}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}}Al.VERSION="3.0.4";class Nl extends c.Component{componentDidMount(){this.installPlugin()}componentDidUpdate(e){e.uppy!==this.props.uppy&&(this.uninstallPlugin(e),this.installPlugin())}componentWillUnmount(){this.uninstallPlugin()}installPlugin(){const{uppy:e,locale:t,pretty:i,inputName:n}=this.props,a={id:"react:FileInput",locale:t,pretty:i,inputName:n,target:this.container};delete a.uppy,e.use(Al,a),this.plugin=e.getPlugin(a.id)}uninstallPlugin(e){void 0===e&&(e=this.props);const{uppy:t}=e;t.removePlugin(this.plugin)}render(){return(0,c.createElement)("div",{className:"uppy-Container",ref:e=>{this.container=e}})}}Nl.propTypes={uppy:fl.isRequired,locale:vl,pretty:hl.bool,inputName:hl.string},Nl.defaultProps={locale:void 0,pretty:!0,inputName:"files[]"};const Bl={target:null};function Ml(e){var t,i;return null!=(t=null==(i=e.dataTransfer)||null==(i=i.types)?void 0:i.some((e=>"Files"===e)))&&t}class Ll extends We{constructor(e,t){super(e,{...Bl,...t}),this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(i){this.uppy.log(i)}},this.handleDrop=async e=>{var t,i,n;if(!Ml(e))return;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),null==(t=e.currentTarget)||t.classList.remove("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let a=!1;const o=await ir(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),a||(this.uppy.info(e.message,"error"),a=!0)}});o.length>0&&(this.uppy.log("[DropTarget] Files were dropped"),this.addFiles(o)),null==(i=(n=this.opts).onDrop)||i.call(n,e)},this.handleDragOver=e=>{var t,i;Ml(e)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),e.currentTarget.classList.add("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!0}),null==(t=(i=this.opts).onDragOver)||t.call(i,e))},this.handleDragLeave=e=>{var t,i;if(!Ml(e))return;e.preventDefault(),e.stopPropagation();const{currentTarget:n}=e;clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{n.classList.remove("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!1})}),50),null==(t=(i=this.opts).onDragLeave)||t.call(i,e)},this.addListeners=()=>{const{target:e}=this.opts;if(e instanceof Element?this.nodes=[e]:"string"===typeof e&&(this.nodes=hi(document.querySelectorAll(e))),!this.nodes||0===this.nodes.length)throw new Error('"'.concat(e,'" does not match any HTML elements'));this.nodes.forEach((e=>{e.addEventListener("dragover",this.handleDragOver,!1),e.addEventListener("dragleave",this.handleDragLeave,!1),e.addEventListener("drop",this.handleDrop,!1)}))},this.removeListeners=()=>{this.nodes&&this.nodes.forEach((e=>{e.removeEventListener("dragover",this.handleDragOver,!1),e.removeEventListener("dragleave",this.handleDragLeave,!1),e.removeEventListener("drop",this.handleDrop,!1)}))},this.type="acquirer",this.id=this.opts.id||"DropTarget",this.title="Drop Target"}install(){this.setPluginState({isDraggingOver:!1}),this.addListeners()}uninstall(){this.removeListeners()}}Ll.VERSION="2.0.4";var zl=i(76631);const ql=function(e,t){const i=e.width/t.width,n=e.height/t.height,a=Math.min(i,n),o=t.width*a,s=t.height*a;return{width:o,height:s,left:(e.width-o)/2,top:(e.height-s)/2}};const Hl=function(e,t,i){const n=Math.abs(i*(Math.PI/180));return Math.max((Math.sin(n)*e+Math.cos(n)*t)/t,(Math.sin(n)*t+Math.cos(n)*e)/e)};const Wl=function(e,t,i){return t.left<e.left?{left:e.left,width:i.width}:t.top<e.top?{top:e.top,height:i.height}:t.left+t.width>e.left+e.width?{left:e.left+e.width-i.width,width:i.width}:t.top+t.height>e.top+e.height?{top:e.top+e.height-i.height,height:i.height}:null};const Vl=function(e,t,i){return t.left<e.left?{left:e.left,width:i.left+i.width-e.left}:t.top<e.top?{top:e.top,height:i.top+i.height-e.top}:t.left+t.width>e.left+e.width?{left:i.left,width:e.left+e.width-i.left}:t.top+t.height>e.top+e.height?{top:i.top,height:e.top+e.height-i.top}:null};class Gl extends Le.wA{constructor(e){super(e),this.onRotate90Deg=()=>{const{angle90Deg:e}=this.state,t=e-90;this.setState({angle90Deg:t,angleGranular:0}),this.cropper.scale(1),this.cropper.rotateTo(t);const i=this.cropper.getCanvasData(),n=this.cropper.getContainerData(),a=ql(n,i);this.cropper.setCanvasData(a),this.cropper.setCropBoxData(a)},this.onRotateGranular=e=>{const t=Number(e.target.value);this.setState({angleGranular:t});const{angle90Deg:i}=this.state,n=i+t;this.cropper.rotateTo(n);const a=this.cropper.getImageData(),o=Hl(a.naturalWidth,a.naturalHeight,t),s=this.cropper.getImageData().scaleX<0?-o:o;this.cropper.scale(s,o)},this.state={angle90Deg:0,angleGranular:0,prevCropboxData:null},this.storePrevCropboxData=this.storePrevCropboxData.bind(this),this.limitCropboxMovement=this.limitCropboxMovement.bind(this)}componentDidMount(){const{opts:e,storeCropperInstance:t}=this.props;this.cropper=new zl(this.imgElement,e.cropperOptions),this.imgElement.addEventListener("cropstart",this.storePrevCropboxData),this.imgElement.addEventListener("cropend",this.limitCropboxMovement),t(this.cropper)}componentWillUnmount(){this.cropper.destroy(),this.imgElement.removeEventListener("cropstart",this.storePrevCropboxData),this.imgElement.removeEventListener("cropend",this.limitCropboxMovement)}storePrevCropboxData(){this.setState({prevCropboxData:this.cropper.getCropBoxData()})}limitCropboxMovement(e){const t=this.cropper.getCanvasData(),i=this.cropper.getCropBoxData(),{prevCropboxData:n}=this.state;if("all"===e.detail.action){const e=Wl(t,i,n);e&&this.cropper.setCropBoxData(e)}else{const e=Vl(t,i,n);e&&this.cropper.setCropBoxData(e)}}renderGranularRotate(){const{i18n:e}=this.props,{angleGranular:t}=this.state;return(0,Le.h)("label",{role:"tooltip","aria-label":"".concat(t,"\xba"),"data-microtip-position":"top",className:"uppy-ImageCropper-rangeWrapper"},(0,Le.h)("input",{className:"uppy-ImageCropper-range uppy-u-reset",type:"range",onInput:this.onRotateGranular,onChange:this.onRotateGranular,value:t,min:"-45",max:"45","aria-label":e("rotate")}))}renderRevert(){const{i18n:e,opts:t}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("revert"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>{this.cropper.reset(),this.cropper.setAspectRatio(t.cropperOptions.initialAspectRatio),this.setState({angle90Deg:0,angleGranular:0})}},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,Le.h)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}))))}renderRotate(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("rotate"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:this.onRotate90Deg},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),(0,Le.h)("path",{d:"M14 10a2 2 0 012 2v7a2 2 0 01-2 2H6a2 2 0 01-2-2v-7a2 2 0 012-2h8zm0 1.75H6a.25.25 0 00-.243.193L5.75 12v7a.25.25 0 00.193.243L6 19.25h8a.25.25 0 00.243-.193L14.25 19v-7a.25.25 0 00-.193-.243L14 11.75zM12 .76V4c2.3 0 4.61.88 6.36 2.64a8.95 8.95 0 012.634 6.025L21 13a1 1 0 01-1.993.117L19 13h-.003a6.979 6.979 0 00-2.047-4.95 6.97 6.97 0 00-4.652-2.044L12 6v3.24L7.76 5 12 .76z"}))))}renderFlip(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("flipHorizontal"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.scaleX(-this.cropper.getData().scaleX||-1)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,Le.h)("path",{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}))))}renderZoomIn(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("zoomIn"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.zoom(.1)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",height:"24",viewBox:"0 0 24 24",width:"24"},(0,Le.h)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,Le.h)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),(0,Le.h)("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))))}renderZoomOut(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("zoomOut"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.zoom(-.1)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,Le.h)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"}))))}renderCropSquare(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("aspectRatioSquare"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.setAspectRatio(1)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,Le.h)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))))}renderCropWidescreen(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("aspectRatioLandscape"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.setAspectRatio(16/9)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M 19,4.9999992 V 17.000001 H 4.9999998 V 6.9999992 H 19 m 0,-2 H 4.9999998 c -1.0999999,0 -1.9999999,0.9000001 -1.9999999,2 V 17.000001 c 0,1.1 0.9,2 1.9999999,2 H 19 c 1.1,0 2,-0.9 2,-2 V 6.9999992 c 0,-1.0999999 -0.9,-2 -2,-2 z"}),(0,Le.h)("path",{fill:"none",d:"M0 0h24v24H0z"}))))}renderCropWidescreenVertical(){const{i18n:e}=this.props;return(0,Le.h)("label",{role:"tooltip","aria-label":e("aspectRatioPortrait"),"data-microtip-position":"top"},(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:()=>this.cropper.setAspectRatio(9/16)},(0,Le.h)("svg",{"aria-hidden":"true",className:"uppy-c-icon",width:"24",height:"24",viewBox:"0 0 24 24"},(0,Le.h)("path",{d:"M 19.000001,19 H 6.999999 V 5 h 10.000002 v 14 m 2,0 V 5 c 0,-1.0999999 -0.9,-1.9999999 -2,-1.9999999 H 6.999999 c -1.1,0 -2,0.9 -2,1.9999999 v 14 c 0,1.1 0.9,2 2,2 h 10.000002 c 1.1,0 2,-0.9 2,-2 z"}),(0,Le.h)("path",{d:"M0 0h24v24H0z",fill:"none"}))))}render(){const{currentImage:e,opts:t}=this.props,{actions:i}=t,n=URL.createObjectURL(e.data);return(0,Le.h)("div",{className:"uppy-ImageCropper"},(0,Le.h)("div",{className:"uppy-ImageCropper-container"},(0,Le.h)("img",{className:"uppy-ImageCropper-image",alt:e.name,src:n,ref:e=>{this.imgElement=e}})),(0,Le.h)("div",{className:"uppy-ImageCropper-controls"},i.revert&&this.renderRevert(),i.rotate&&this.renderRotate(),i.granularRotate&&this.renderGranularRotate(),i.flip&&this.renderFlip(),i.zoomIn&&this.renderZoomIn(),i.zoomOut&&this.renderZoomOut(),i.cropSquare&&this.renderCropSquare(),i.cropWidescreen&&this.renderCropWidescreen(),i.cropWidescreenVertical&&this.renderCropWidescreenVertical()))}}const Kl={strings:{revert:"Reset",rotate:"Rotate 90\xb0",zoomIn:"Zoom in",zoomOut:"Zoom out",flipHorizontal:"Flip horizontally",aspectRatioSquare:"Crop square",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)"}},Xl={viewMode:0,background:!1,autoCropArea:1,responsive:!0,minCropBoxWidth:70,minCropBoxHeight:70,croppedCanvasOptions:{},initialAspectRatio:0},Yl={revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!0,cropWidescreen:!0,cropWidescreenVertical:!0},Zl={quality:.8,actions:Yl,cropperOptions:Xl};class Jl extends Ze{constructor(e,t){super(e,{...Zl,...t,actions:{...Yl,...null==t?void 0:t.actions},cropperOptions:{...Xl,...null==t?void 0:t.cropperOptions}}),this.save=()=>{const{currentImage:e}=this.getPluginState(),t=this.cropper.getCroppedCanvas({});t.width%2!==0&&this.cropper.setData({width:t.width-1}),t.height%2!==0&&this.cropper.setData({height:t.height-1}),this.cropper.getCroppedCanvas(this.opts.cropperOptions.croppedCanvasOptions).toBlob((e=>{const{currentImage:t}=this.getPluginState();this.uppy.setFileState(t.id,{data:new File([e],t.name,{type:e.type}),size:e.size,preview:void 0});const i=this.uppy.getFile(t.id);this.uppy.emit("thumbnail:request",i),this.setPluginState({currentImage:i}),this.uppy.emit("file-editor:complete",i)}),e.type,this.opts.quality)},this.storeCropperInstance=e=>{this.cropper=e},this.selectFile=e=>{this.uppy.emit("file-editor:start",e),this.setPluginState({currentImage:e})},this.id=this.opts.id||"ImageEditor",this.title="Image Editor",this.type="editor",this.defaultLocale=Kl,this.i18nInit()}canEditFile(e){if(!e.type||e.isRemote)return!1;const t=e.type.split("/")[1];return!!/^(jpe?g|gif|png|bmp|webp)$/.test(t)}install(){this.setPluginState({currentImage:null});const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){const{currentImage:e}=this.getPluginState();if(e){const t=this.uppy.getFile(e.id);this.uppy.emit("file-editor:cancel",t)}this.unmount()}render(){const{currentImage:e}=this.getPluginState();return null===e||e.isRemote?null:(0,Le.h)(Gl,{currentImage:e,storeCropperInstance:this.storeCropperInstance,save:this.save,opts:this.opts,i18n:this.i18n})}}Jl.VERSION="2.4.4";var Ql=i(55227).Buffer;const $l="function"===typeof btoa,ec="function"===typeof Ql,tc=("function"===typeof TextDecoder&&new TextDecoder,"function"===typeof TextEncoder?new TextEncoder:void 0),ic=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),nc=((e=>{let t={};e.forEach(((e,i)=>t[e]=i))})(ic),String.fromCharCode.bind(String)),ac=("function"===typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),oc=e=>{let t,i,n,a,o="";const s=e.length%3;for(let r=0;r<e.length;){if((i=e.charCodeAt(r++))>255||(n=e.charCodeAt(r++))>255||(a=e.charCodeAt(r++))>255)throw new TypeError("invalid character found");t=i<<16|n<<8|a,o+=ic[t>>18&63]+ic[t>>12&63]+ic[t>>6&63]+ic[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},sc=$l?e=>btoa(e):ec?e=>Ql.from(e,"binary").toString("base64"):oc,rc=ec?e=>Ql.from(e).toString("base64"):e=>{let t=[];for(let i=0,n=e.length;i<n;i+=4096)t.push(nc.apply(null,e.subarray(i,i+4096)));return sc(t.join(""))},lc=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?nc(192|t>>>6)+nc(128|63&t):nc(224|t>>>12&15)+nc(128|t>>>6&63)+nc(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return nc(240|t>>>18&7)+nc(128|t>>>12&63)+nc(128|t>>>6&63)+nc(128|63&t)},cc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,pc=e=>e.replace(cc,lc),uc=ec?e=>Ql.from(e,"utf8").toString("base64"):tc?e=>rc(tc.encode(e)):e=>sc(pc(e)),dc=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?ac(uc(e)):uc(e)},hc=dc;var mc=i(44189),fc=i.n(mc);function gc(e){return gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gc(e)}function vc(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bc(n.key),n)}}function bc(e){var t=function(e,t){if("object"!==gc(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==gc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gc(t)?t:String(t)}function yc(e){var t=Pc();return function(){var i,n=kc(e);if(t){var a=kc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===gc(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,i)}}function xc(e){var t="function"===typeof Map?new Map:void 0;return xc=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return wc(e,arguments,kc(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Sc(i,e)},xc(e)}function wc(e,t,i){return wc=Pc()?Reflect.construct.bind():function(e,t,i){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return i&&Sc(a,i.prototype),a},wc.apply(null,arguments)}function Pc(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sc(e,t)}function kc(e){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kc(e)}const _c=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sc(e,t)}(o,e);var t,i,n,a=yc(o);function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).originalRequest=n,t.originalResponse=s,t.causingError=i,null!=i&&(e+=", caused by ".concat(i.toString())),null!=n){var r=n.getHeader("X-Request-ID")||"n/a",l=n.getMethod(),c=n.getURL(),p=s?s.getStatus():"n/a",u=s?s.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(p,", response text: ").concat(u,", request id: ").concat(r,")")}return t.message=e,t}return t=o,i&&vc(t.prototype,i),n&&vc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(xc(Error));var Cc=!1;function Fc(e){Cc&&console.log(e)}function Tc(){Tc=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,i){return e[t]=i}}function p(e,t,i,n){var o=t&&t.prototype instanceof v?t:v,s=Object.create(o.prototype),r=new E(n||[]);return a(s,"_invoke",{value:C(e,i,r)}),s}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var d="suspendedStart",h="suspendedYield",m="executing",f="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,s,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(D([])));P&&P!==i&&n.call(P,s)&&(x=P);var S=y.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(a,o,s,r){var l=u(e[a],e,o);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==Rc(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){i("next",e,s,r)}),(function(e){i("throw",e,s,r)})):t.resolve(p).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,r)}))}r(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){i(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function C(t,i,n){var a=d;return function(o,s){if(a===m)throw new Error("Generator is already running");if(a===f){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var r=n.delegate;if(r){var l=F(r,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=u(t,i,n);if("normal"===c.type){if(a=n.done?f:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=f,n.method="throw",n.arg=c.arg)}}}function F(t,i){var n=i.method,a=t.iterator[n];if(a===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,F(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=u(a,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var s=o.arg;return s?s.done?(i[t.resultName]=s.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):s:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var i=t[s];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function i(){for(;++a<t.length;)if(n.call(t,a))return i.value=t[a],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(Rc(t)+" is not iterable")}return b.prototype=y,a(S,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(_.prototype),c(_.prototype,r,(function(){return this})),t.AsyncIterator=_,t.async=function(e,i,n,a,o){void 0===o&&(o=Promise);var s=new _(p(e,i,n,a),o);return t.isGeneratorFunction(i)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(S),c(S,l,"Generator"),c(S,s,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function a(n,a){return r.type="throw",r.arg=t,i.next=n,a&&(i.method="next",i.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return a(s.catchLoc,!0);if(this.prev<s.finallyLoc)return a(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return a(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return a(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),O(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;O(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:D(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Oc(e,t,i,n,a,o,s){try{var r=e[o](s),l=r.value}catch(_c){return void i(_c)}r.done?t(l):Promise.resolve(l).then(n,a)}function Ec(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,a,o,s,r=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(r.push(n.value),r.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw a}}return r}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Dc(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Dc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Rc(e){return Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rc(e)}function Uc(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ic(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Uc(Object(i),!0).forEach((function(t){jc(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Uc(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function jc(e,t,i){return(t=Nc(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ac(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nc(n.key),n)}}function Nc(e){var t=function(e,t){if("object"!==Rc(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Rc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rc(t)?t:String(t)}var Bc={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Gc,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Mc=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in i&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=i,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,i,n;return t=e,i=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl||this.url){var i=this.options.retryDelays;if(null==i||"[object Array]"===Object.prototype.toString.call(i)){if(this.options.parallelUploads>1)for(var n=0,a=["uploadUrl","uploadSize","uploadLengthDeferred"];n<a.length;n++){var o=a[n];if(this.options[o])return void this._emitError(new Error("tus: cannot use the ".concat(o," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(t,this.options).then((function(i){return Fc(null==i?"No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.":"Calculated fingerprint: ".concat(i)),e._fingerprint=i,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){if(e._source=t,e.options.uploadLengthDeferred)e._size=null;else if(null!=e.options.uploadSize){if(e._size=Number(e.options.uploadSize),Number.isNaN(e._size))return void e._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(e._size=e._source.size,null==e._size)return void e._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,i=this,n=this._size,a=0;this._parallelUploads=[];var o=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,s=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var i=Math.floor(e/t),n=[],a=0;a<t;a++)n.push({start:i*a,end:i*(a+1)});return n[t-1].end=e,n}(this._source.size,o);this._parallelUploadUrls&&s.forEach((function(e,t){e.uploadUrl=i._parallelUploadUrls[t]||null})),this._parallelUploadUrls=new Array(s.length);var r,l=s.map((function(t,o){var r=0;return i._source.slice(t.start,t.end).then((function(l){var c=l.value;return new Promise((function(l,p){var u=Ic(Ic({},i.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:Ic(Ic({},i.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:l,onError:p,onProgress:function(e){a=a-r+e,r=e,i._emitProgress(a,n)},onUploadUrlAvailable:function(){i._parallelUploadUrls[o]=d.url,i._parallelUploadUrls.filter((function(e){return Boolean(e)})).length===s.length&&i._saveUploadInUrlStorage()}}),d=new e(c,u);d.start(),i._parallelUploads.push(d)}))}))}));Promise.all(l).then((function(){(r=i._openRequest("POST",i.options.endpoint)).setHeader("Upload-Concat","final;".concat(i._parallelUploadUrls.join(" ")));var e=Lc(i.options.metadata);return""!==e&&r.setHeader("Upload-Metadata",e),i._sendRequest(r,null)})).then((function(e){if(zc(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(i.url=Kc(i.options.endpoint,t),Fc("Created upload at ".concat(i.url)),i._emitSuccess()):i._emitHttpError(r,e,"tus: invalid or missing Location header")}else i._emitHttpError(r,e,"tus: unexpected response while creating upload")})).catch((function(e){i._emitError(e)}))}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?(Fc("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?(Fc("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,void this._resumeUpload()):(Fc("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(t){var i=this;return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return i._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,i,n){this._emitError(new _c(i,n,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),Vc(e,this._retryAttempt,this.options))){var i=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),i))}if("function"!==typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"===typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"===typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,i){"function"===typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,i)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var i,n=Lc(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(t)):i=this._sendRequest(t,null),i.then((function(i){if(zc(i.getStatus(),200)){var n=i.getHeader("Location");if(null!=n){if(e.url=Kc(e.options.endpoint,n),Fc("Created upload at ".concat(e.url)),"function"===typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,i):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,i,"tus: invalid or missing Location header")}else e._emitHttpError(t,i,"tus: unexpected response while creating upload")})).catch((function(i){e._emitHttpError(t,null,"tus: failed to create upload",i)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(i){var n=i.getStatus();if(!zc(n,200))return 423===n?void e._emitHttpError(t,i,"tus: upload is currently locked; retry later"):(zc(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var a=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(a))e._emitHttpError(t,i,"tus: invalid or missing offset value");else{var o=parseInt(i.getHeader("Upload-Length"),10);!Number.isNaN(o)||e.options.uploadLengthDeferred?("function"===typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(a===o)return e._emitProgress(o,o),void e._emitSuccess();e._offset=a,e._performUpload()}))):e._emitHttpError(t,i,"tus: invalid or missing length value")}})).catch((function(i){e._emitHttpError(t,null,"tus: failed to resume upload",i)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(i){zc(i.getStatus(),200)?t._handleUploadResponse(e,i):t._emitHttpError(e,i,"tus: unexpected response while uploading chunk")})).catch((function(i){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),i)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,i=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(i+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(i,n).then((function(i){var n=i.value,a=i.done,o=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&a&&(t._size=t._offset+o,e.setHeader("Upload-Length",t._size));var s=t._offset+o;return!t.options.uploadLengthDeferred&&a&&s!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(s," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var i=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(i))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var i=qc(e,t,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){return Hc(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=qc("DELETE",t,i);return Hc(n,null,i).then((function(e){if(204!==e.getStatus())throw new _c("tus: unexpected response while terminating upload",null,n,e)})).catch((function(a){if(a instanceof _c||(a=new _c("tus: failed to terminate upload",a,n,null)),!Vc(a,0,i))throw a;var o=i.retryDelays[0],s=i.retryDelays.slice(1),r=Ic(Ic({},i),{},{retryDelays:s});return new Promise((function(e){return setTimeout(e,o)})).then((function(){return e.terminate(t,r)}))}))}}],i&&Ac(t.prototype,i),n&&Ac(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Lc(e){return Object.entries(e).map((function(e){var t=Ec(e,2),i=t[0],n=t[1];return"".concat(i," ").concat(hc(String(n)))})).join(",")}function zc(e,t){return e>=t&&e<t+100}function qc(e,t,i){var n=i.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var a=i.headers||{};if(Object.entries(a).forEach((function(e){var t=Ec(e,2),i=t[0],a=t[1];n.setHeader(i,a)})),i.addRequestId){var o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));n.setHeader("X-Request-ID",o)}return n}function Hc(e,t,i){return Wc.apply(this,arguments)}function Wc(){var e;return e=Tc().mark((function e(t,i,n){var a;return Tc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof n.onBeforeRequest){e.next=3;break}return e.next=3,n.onBeforeRequest(t);case 3:return e.next=5,t.send(i);case 5:if(a=e.sent,"function"!==typeof n.onAfterResponse){e.next=9;break}return e.next=9,n.onAfterResponse(t,a);case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})),Wc=function(){var t=this,i=arguments;return new Promise((function(n,a){var o=e.apply(t,i);function s(e){Oc(o,n,a,s,r,"next",e)}function r(e){Oc(o,n,a,s,r,"throw",e)}s(void 0)}))},Wc.apply(this,arguments)}function Vc(e,t,i){return!(null==i.retryDelays||t>=i.retryDelays.length||null==e.originalRequest)&&(i&&"function"===typeof i.onShouldRetry?i.onShouldRetry(e,t,i):Gc(e))}function Gc(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!zc(t,400)||409===t||423===t)&&function(){var e=!0;return"undefined"!==typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(e=!1),e}()}function Kc(e,t){return new(fc())(t,e).toString()}Mc.defaultOptions=Bc;const Xc=Mc;function Yc(e){return Yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yc(e)}function Zc(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jc(n.key),n)}}function Jc(e){var t=function(e,t){if("object"!==Yc(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Yc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Yc(t)?t:String(t)}var Qc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,i,n;return t=e,(i=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&Zc(t.prototype,i),n&&Zc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function $c(e){return $c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$c(e)}function ep(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tp(n.key),n)}}function tp(e){var t=function(e,t){if("object"!==$c(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==$c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$c(t)?t:String(t)}var ip=!1;try{ip="localStorage"in window;var np="tusSupport",ap=localStorage.getItem(np);localStorage.setItem(np,ap),null===ap&&localStorage.removeItem(np)}catch(bm){if(bm.code!==bm.SECURITY_ERR&&bm.code!==bm.QUOTA_EXCEEDED_ERR)throw bm;ip=!1}var op=ip,sp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,i,n;return t=e,i=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var i=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(i);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],i=0;i<localStorage.length;i++){var n=localStorage.key(i);if(0===n.indexOf(e))try{var a=JSON.parse(localStorage.getItem(n));a.urlStorageKey=n,t.push(a)}catch(bm){}}return t}}],i&&ep(t.prototype,i),n&&ep(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rp(e){return rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rp(e)}function lp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cp(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,up(n.key),n)}}function pp(e,t,i){return t&&cp(e.prototype,t),i&&cp(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function up(e){var t=function(e,t){if("object"!==rp(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==rp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rp(t)?t:String(t)}var dp=function(){function e(){lp(this,e)}return pp(e,[{key:"createRequest",value:function(e,t){return new hp(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),hp=function(){function e(t,i){lp(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,i,!0),this._method=t,this._url=i,this._headers={}}return pp(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(i,n){e._xhr.onload=function(){i(new mp(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),mp=function(){function e(t){lp(this,e),this._xhr=t}return pp(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}();const fp=function(){return"undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function gp(e){return new Promise((function(t,i){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){i(e)},n.open("GET",e),n.send()}))}const vp=function(){return"undefined"!==typeof window&&("undefined"!==typeof window.PhoneGap||"undefined"!==typeof window.Cordova||"undefined"!==typeof window.cordova)};function bp(e){return bp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bp(e)}function yp(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xp(n.key),n)}}function xp(e){var t=function(e,t){if("object"!==bp(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bp(t)?t:String(t)}var wp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size}var t,i,n;return t=e,(i=[{key:"slice",value:function(e,t){if(vp())return i=this._file.slice(e,t),new Promise((function(e,t){var n=new FileReader;n.onload=function(){var t=new Uint8Array(n.result);e({value:t})},n.onerror=function(e){t(e)},n.readAsArrayBuffer(i)}));var i,n=this._file.slice(e,t),a=t>=this.size;return Promise.resolve({value:n,done:a})}},{key:"close",value:function(){}}])&&yp(t.prototype,i),n&&yp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pp(e){return Pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pp(e)}function Sp(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kp(n.key),n)}}function kp(e){var t=function(e,t){if("object"!==Pp(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pp(t)?t:String(t)}function _p(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var Cp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}var t,i,n;return t=e,i=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var i=this,n=t<=this._bufferOffset+_p(this._buffer);if(this._done||n){var a=this._getDataFromBuffer(e,t),o=null==a&&this._done;return Promise.resolve({value:a,done:o})}return this._reader.read().then((function(n){var a=n.value;return n.done?i._done=!0:void 0===i._buffer?i._buffer=a:i._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var i=new e.constructor(e.length+t.length);return i.set(e),i.set(t,e.length),i}throw new Error("Unknown data type")}(i._buffer,a),i._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var i=0===_p(this._buffer);return this._done&&i?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],i&&Sp(t.prototype,i),n&&Sp(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Fp(e){return Fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fp(e)}function Tp(){Tp=function(){return t};var e,t={},i=Object.prototype,n=i.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",r=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,i){return e[t]=i}}function p(e,t,i,n){var o=t&&t.prototype instanceof v?t:v,s=Object.create(o.prototype),r=new E(n||[]);return a(s,"_invoke",{value:C(e,i,r)}),s}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var d="suspendedStart",h="suspendedYield",m="executing",f="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,s,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(D([])));P&&P!==i&&n.call(P,s)&&(x=P);var S=y.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(a,o,s,r){var l=u(e[a],e,o);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==Fp(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){i("next",e,s,r)}),(function(e){i("throw",e,s,r)})):t.resolve(p).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,r)}))}r(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){i(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function C(t,i,n){var a=d;return function(o,s){if(a===m)throw new Error("Generator is already running");if(a===f){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var r=n.delegate;if(r){var l=F(r,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=u(t,i,n);if("normal"===c.type){if(a=n.done?f:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=f,n.method="throw",n.arg=c.arg)}}}function F(t,i){var n=i.method,a=t.iterator[n];if(a===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,F(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=u(a,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,g;var s=o.arg;return s?s.done?(i[t.resultName]=s.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):s:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var i=t[s];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function i(){for(;++a<t.length;)if(n.call(t,a))return i.value=t[a],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(Fp(t)+" is not iterable")}return b.prototype=y,a(S,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(_.prototype),c(_.prototype,r,(function(){return this})),t.AsyncIterator=_,t.async=function(e,i,n,a,o){void 0===o&&(o=Promise);var s=new _(p(e,i,n,a),o);return t.isGeneratorFunction(i)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(S),c(S,l,"Generator"),c(S,s,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=D,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function a(n,a){return r.type="throw",r.arg=t,i.next=n,a&&(i.method="next",i.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return a("end");if(s.tryLoc<=this.prev){var l=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return a(s.catchLoc,!0);if(this.prev<s.finallyLoc)return a(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return a(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return a(s.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),O(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;O(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:D(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function Op(e,t,i,n,a,o,s){try{var r=e[o](s),l=r.value}catch(_c){return void i(_c)}r.done?t(l):Promise.resolve(l).then(n,a)}function Ep(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dp(n.key),n)}}function Dp(e){var t=function(e,t){if("object"!==Fp(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Fp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fp(t)?t:String(t)}var Rp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,i,n;return t=e,i=[{key:"openFile",value:function(){var e,t=(e=Tp().mark((function e(t,i){var n;return Tp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!fp()||!t||"undefined"===typeof t.uri){e.next=11;break}return e.prev=1,e.next=4,gp(t.uri);case 4:return n=e.sent,e.abrupt("return",new wp(n));case 8:throw e.prev=8,e.t0=e.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e.t0));case 11:if("function"!==typeof t.slice||"undefined"===typeof t.size){e.next=13;break}return e.abrupt("return",Promise.resolve(new wp(t)));case 13:if("function"!==typeof t.read){e.next=18;break}if(i=Number(i),Number.isFinite(i)){e.next=17;break}return e.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return e.abrupt("return",Promise.resolve(new Cp(t,i)));case 18:return e.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var t=this,i=arguments;return new Promise((function(n,a){var o=e.apply(t,i);function s(e){Op(o,n,a,s,r,"next",e)}function r(e){Op(o,n,a,s,r,"throw",e)}s(void 0)}))});return function(e,i){return t.apply(this,arguments)}}()}],i&&Ep(t.prototype,i),n&&Ep(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Up(e){return Up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Up(e)}function Ip(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zp(n.key),n)}}function jp(e,t){return jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jp(e,t)}function Ap(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(bm){return!1}}();return function(){var i,n=Np(e);if(t){var a=Np(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"===Up(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,i)}}function Np(e){return Np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Np(e)}function Bp(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Mp(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Bp(Object(i),!0).forEach((function(t){Lp(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Bp(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Lp(e,t,i){return(t=zp(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function zp(e){var t=function(e,t){if("object"!==Up(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==Up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Up(t)?t:String(t)}var qp=Mp(Mp({},Xc.defaultOptions),{},{httpStack:new dp,fileReader:new Rp,urlStorage:op?new sp:new Qc,fingerprint:function(e,t){return fp()?Promise.resolve(function(e,t){var i=e.exif?function(e){var t=0;if(0===e.length)return t;for(var i=0;i<e.length;i++){t=(t<<5)-t+e.charCodeAt(i),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",i,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),Hp=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jp(e,t)}(o,e);var t,i,n,a=Ap(o);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=Mp(Mp({},qp),t),a.call(this,e,t)}return t=o,n=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Mp(Mp({},qp),t),Xc.terminate(e,t)}}],(i=null)&&Ip(t.prototype,i),n&&Ip(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(Xc),Wp=window,Vp=Wp.XMLHttpRequest,Gp=Wp.Blob;Vp&&Gp&&Gp.prototype.slice;function Kp(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xp=0;function Yp(e){return"__private_"+Xp+++"_"+e}var Zp=Yp("uppy"),Jp=Yp("events");class Qp{constructor(e){Object.defineProperty(this,Zp,{writable:!0,value:void 0}),Object.defineProperty(this,Jp,{writable:!0,value:[]}),Kp(this,Zp)[Zp]=e}on(e,t){return Kp(this,Jp)[Jp].push([e,t]),Kp(this,Zp)[Zp].on(e,t)}remove(){for(const[e,t]of Kp(this,Jp)[Jp].splice(0))Kp(this,Zp)[Zp].off(e,t)}onFilePause(e,t){this.on("upload-pause",((i,n)=>{e===i&&t(n)}))}onFileRemove(e,t){this.on("file-removed",(i=>{e===i.id&&t(i.id)}))}onPause(e,t){this.on("upload-pause",((i,n)=>{e===i&&t(n)}))}onRetry(e,t){this.on("upload-retry",(i=>{e===i&&t()}))}onRetryAll(e,t){this.on("retry-all",(()=>{Kp(this,Zp)[Zp].getFile(e)&&t()}))}onPauseAll(e,t){this.on("pause-all",(()=>{Kp(this,Zp)[Zp].getFile(e)&&t()}))}onCancelAll(e,t){var i=this;this.on("cancel-all",(function(){Kp(i,Zp)[Zp].getFile(e)&&t(...arguments)}))}onResumeAll(e,t){this.on("resume-all",(()=>{Kp(this,Zp)[Zp].getFile(e)&&t()}))}}const $p=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)};function eu(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tu=0;function iu(e){return"__private_"+tu+++"_"+e}function nu(e){if(null!=e){var t;const i=()=>this.abort(e.reason);e.addEventListener("abort",i,{once:!0});const n=()=>{e.removeEventListener("abort",i)};null==(t=this.then)||t.call(this,n,n)}return this}var au=iu("activeRequests"),ou=iu("queuedHandlers"),su=iu("paused"),ru=iu("pauseTimer"),lu=iu("downLimit"),cu=iu("upperLimit"),pu=iu("rateLimitingTimer"),uu=iu("call"),du=iu("queueNext"),hu=iu("next"),mu=iu("queue"),fu=iu("dequeue"),gu=iu("resume"),vu=iu("increaseLimit");class bu{constructor(e){Object.defineProperty(this,fu,{value:Su}),Object.defineProperty(this,mu,{value:Pu}),Object.defineProperty(this,hu,{value:wu}),Object.defineProperty(this,du,{value:xu}),Object.defineProperty(this,uu,{value:yu}),Object.defineProperty(this,au,{writable:!0,value:0}),Object.defineProperty(this,ou,{writable:!0,value:[]}),Object.defineProperty(this,su,{writable:!0,value:!1}),Object.defineProperty(this,ru,{writable:!0,value:void 0}),Object.defineProperty(this,lu,{writable:!0,value:1}),Object.defineProperty(this,cu,{writable:!0,value:void 0}),Object.defineProperty(this,pu,{writable:!0,value:void 0}),Object.defineProperty(this,gu,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,vu,{writable:!0,value:()=>{if(eu(this,su)[su])eu(this,pu)[pu]=setTimeout(eu(this,vu)[vu],0);else{eu(this,lu)[lu]=this.limit,this.limit=Math.ceil((eu(this,cu)[cu]+eu(this,lu)[lu])/2);for(let e=eu(this,lu)[lu];e<=this.limit;e++)eu(this,du)[du]();eu(this,cu)[cu]-eu(this,lu)[lu]>3?eu(this,pu)[pu]=setTimeout(eu(this,vu)[vu],2e3):eu(this,lu)[lu]=Math.floor(eu(this,lu)[lu]/2)}}}),this.limit="number"!==typeof e||0===e?1/0:e}run(e,t){return!eu(this,su)[su]&&eu(this,au)[au]<this.limit?eu(this,uu)[uu](e):eu(this,mu)[mu](e,t)}wrapSyncFunction(e,t){var i=this;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];const s=i.run((()=>(e(...a),queueMicrotask((()=>s.done())),()=>{})),t);return{abortOn:nu,abort(){s.abort()}}}}wrapPromiseFunction(e,t){var i=this;return function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];let s;const r=new Promise(((n,o)=>{s=i.run((()=>{let t,i;try{i=Promise.resolve(e(...a))}catch(r){i=Promise.reject(r)}return i.then((e=>{t?o(t):(s.done(),n(e))}),(e=>{t?o(t):(s.done(),o(e))})),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}}),t)}));return r.abort=e=>{s.abort(e)},r.abortOn=nu,r}}resume(){eu(this,su)[su]=!1,clearTimeout(eu(this,ru)[ru]);for(let e=0;e<this.limit;e++)eu(this,du)[du]()}pause(e){void 0===e&&(e=null),eu(this,su)[su]=!0,clearTimeout(eu(this,ru)[ru]),null!=e&&(eu(this,ru)[ru]=setTimeout(eu(this,gu)[gu],e))}rateLimit(e){clearTimeout(eu(this,pu)[pu]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(eu(this,cu)[cu]=this.limit-1,this.limit=eu(this,lu)[lu],eu(this,pu)[pu]=setTimeout(eu(this,vu)[vu],e))}get isPaused(){return eu(this,su)[su]}}function yu(e){eu(this,au)[au]+=1;let t,i=!1;try{t=e()}catch(n){throw eu(this,au)[au]-=1,n}return{abort:e=>{i||(i=!0,eu(this,au)[au]-=1,null==t||t(e),eu(this,du)[du]())},done:()=>{i||(i=!0,eu(this,au)[au]-=1,eu(this,du)[du]())}}}function xu(){queueMicrotask((()=>eu(this,hu)[hu]()))}function wu(){if(eu(this,su)[su]||eu(this,au)[au]>=this.limit)return;if(0===eu(this,ou)[ou].length)return;const e=eu(this,ou)[ou].shift(),t=eu(this,uu)[uu](e.fn);e.abort=t.abort,e.done=t.done}function Pu(e,t){void 0===t&&(t={});const i={fn:e,priority:t.priority||0,abort:()=>{eu(this,fu)[fu](i)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=eu(this,ou)[ou].findIndex((e=>i.priority>e.priority));return-1===n?eu(this,ou)[ou].push(i):eu(this,ou)[ou].splice(n,0,i),i}function Su(e){const t=eu(this,ou)[ou].indexOf(e);-1!==t&&eu(this,ou)[ou].splice(t,1)}Symbol("__queue");function ku(e){return(t,i)=>{if("undefined"!==typeof window&&("undefined"!==typeof window.PhoneGap||"undefined"!==typeof window.Cordova||"undefined"!==typeof window.cordova)||"undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return qp.fingerprint(t,i);const n=["tus",e.id,i.endpoint].join("-");return Promise.resolve(n)}}function _u(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Cu=0;function Fu(e){return"__private_"+Cu+++"_"+e}const Tu={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},Ou={limit:20,retryDelays:Tu.retryDelays,withCredentials:!1};var Eu=Fu("retryDelayIterator"),Du=Fu("uploadLocalFile"),Ru=Fu("getCompanionClientArgs"),Uu=Fu("uploadFiles"),Iu=Fu("handleUpload");class ju extends We{constructor(e,t){var i,n;if(super(e,{...Ou,...t}),Object.defineProperty(this,Uu,{value:Bu}),Object.defineProperty(this,Ru,{value:Nu}),Object.defineProperty(this,Du,{value:Au}),Object.defineProperty(this,Eu,{writable:!0,value:void 0}),Object.defineProperty(this,Iu,{writable:!0,value:async e=>{if(0===e.length)return void this.uppy.log("[Tus] No files to upload");0===this.opts.limit&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const t=this.uppy.getFilesByIds(e);await _u(this,Uu)[Uu](t)}}),this.type="uploader",this.id=this.opts.id||"Tus",void 0===(null==t?void 0:t.allowedMetaFields)&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in t)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=null!=(i=this.opts.rateLimitedQueue)?i:new bu(this.opts.limit),_u(this,Eu)[Eu]=null==(n=this.opts.retryDelays)?void 0:n.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const e={...this.uppy.getState().files};Object.keys(e).forEach((t=>{var i;if(null!=(i=e[t])&&null!=(i=i.tus)&&i.uploadUrl){const i={...e[t].tus};delete i.uploadUrl,e[t]={...e[t],tus:i}}})),this.uppy.setState({files:e})}resetUploaderReferences(e,t){const i=this.uploaders[e];i&&(i.abort(),null!=t&&t.abort&&i.abort(!0),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}onReceiveUploadUrl(e,t){const i=this.uppy.getFile(e.id);i&&(i.tus&&i.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(i.id,{tus:{...i.tus,uploadUrl:t}})))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(_u(this,Iu)[Iu]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(_u(this,Iu)[Iu])}}function Au(e){var t=this;return this.resetUploaderReferences(e.id),new Promise(((i,n)=>{let a,o,s;const r={...this.opts,...e.tus||{}};"function"===typeof r.headers&&(r.headers=r.headers(e));const{onShouldRetry:l,onBeforeRequest:c,...p}=r,u={...Tu,...p};u.fingerprint=ku(e),u.onBeforeRequest=async t=>{let i;if(t.getUnderlyingObject().withCredentials=!!r.withCredentials,"function"===typeof c&&(i=c(t,e)),Ut(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();let t;const n=new Promise((e=>{t=e}));return a=this.requests.run((()=>(e.isPaused&&a.abort(),t(),()=>{}))),void await Promise.all([n,i])}return i},u.onError=t=>{var i;this.uppy.log(t);const o=null!=t.originalRequest?t.originalRequest.getUnderlyingObject():null;$p(o)&&(t=new Rt(t,o)),this.resetUploaderReferences(e.id),null==(i=a)||i.abort(),this.uppy.emit("upload-error",e,t),"function"===typeof r.onError&&r.onError(t),n(t)},u.onProgress=(t,i)=>{this.onReceiveUploadUrl(e,s.url),"function"===typeof r.onProgress&&r.onProgress(t,i),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:t,bytesTotal:i})},u.onSuccess=()=>{var t;const n={uploadURL:null!=(t=s.url)?t:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),a.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),n),s.url){const{name:e}=s.file;this.uppy.log("Download ".concat(e," from ").concat(s.url))}"function"===typeof r.onSuccess&&r.onSuccess(),i(s)};const d=e=>{var t;const i=null==e||null==(t=e.originalResponse)?void 0:t.getStatus();if(429===i){if(!this.requests.isPaused){var n;const e=null==(n=_u(this,Eu)[Eu])?void 0:n.next();if(null==e||e.done)return!1;this.requests.rateLimit(e.value)}}else{if(null!=i&&i>400&&i<500&&409!==i&&423!==i)return!1;"undefined"!==typeof navigator&&!1===navigator.onLine&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",(()=>{this.requests.resume()}),{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};u.onShouldRetry=null!=l?(e,t)=>l(e,t,r,d):d;const h=(e,t,i)=>{Ut(e,t)&&!Ut(e,i)&&(e[i]=e[t])},m={};(Array.isArray(r.allowedMetaFields)?r.allowedMetaFields:Object.keys(e.meta)).forEach((t=>{m[t]=String(e.meta[t])})),h(m,"type","filetype"),h(m,"name","filename"),u.metadata=m,s=new Hp(e.data,u),this.uploaders[e.id]=s;const f=new Qp(this.uppy);this.uploaderEvents[e.id]=f,o=()=>(e.isPaused||s.start(),()=>{}),s.findPreviousUploads().then((t=>{const i=t[0];i&&(this.uppy.log("[Tus] Resuming upload of ".concat(e.id," started at ").concat(i.creationTime)),s.resumeFromPreviousUpload(i))})),a=this.requests.run(o),f.onFileRemove(e.id,(t=>{a.abort(),this.resetUploaderReferences(e.id,{abort:!!s.url}),i("upload ".concat(t," was removed"))})),f.onPause(e.id,(e=>{a.abort(),e?s.abort():a=this.requests.run(o)})),f.onPauseAll(e.id,(()=>{a.abort(),s.abort()})),f.onCancelAll(e.id,(function(n){let{reason:o}=void 0===n?{}:n;"user"===o&&(a.abort(),t.resetUploaderReferences(e.id,{abort:!!s.url})),i("upload ".concat(e.id," was canceled"))})),f.onResumeAll(e.id,(()=>{a.abort(),e.error&&s.abort(),a=this.requests.run(o)}))})).catch((t=>{throw this.uppy.emit("upload-error",e,t),t}))}function Nu(e){var t;const i={...this.opts};return e.tus&&Object.assign(i,e.tus),{...null==(t=e.remote)?void 0:t.body,endpoint:i.endpoint,uploadUrl:i.uploadUrl,protocol:"tus",size:e.data.size,headers:i.headers,metadata:e.meta}}async function Bu(e){const t=function(e){return e.filter((e=>!(e=>"error"in e&&!!e.error)(e)))}(e),i=function(e){return e.filter((e=>{var t;return!(null!=(t=e.progress)&&t.uploadStarted)||!e.isRestored}))}(t);this.uppy.emit("upload-start",i),await Promise.allSettled(t.map((e=>{if(e.isRemote){const t=()=>this.requests,i=new AbortController,n=t=>{t.id===e.id&&i.abort()};this.uppy.on("file-removed",n);const a=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,_u(this,Ru)[Ru](e),{signal:i.signal,getQueue:t});return this.requests.wrapSyncFunction((()=>{this.uppy.off("file-removed",n)}),{priority:-1})(),a}return _u(this,Du)[Du](e)})))}ju.VERSION="3.5.3";const Mu={strings:{},pluralize:()=>0};Mu.strings={addBulkFilesFailed:"\u5185\u90e8\u9519\u8bef\u5bfc\u81f4\u6dfb\u52a0 %{smart_count} \u4e2a\u6587\u4ef6\u5931\u8d25",addMore:"\u6dfb\u52a0\u66f4\u591a\u6587\u4ef6",addMoreFiles:"\u6dfb\u52a0\u66f4\u591a\u6587\u4ef6",addingMoreFiles:"\u6dfb\u52a0\u66f4\u591a\u6587\u4ef6",allowAccessDescription:"\u4e3a\u4e86\u901a\u8fc7\u60a8\u7684\u76f8\u673a\u8fdb\u884c\u62cd\u7167\u6216\u5f55\u50cf\uff0c\u8bf7\u7ed9\u7f51\u7ad9\u76f8\u673a\u7684\u8bbf\u95ee\u6743\u9650",allowAccessTitle:"\u8bf7\u5141\u8bb8\u5bf9\u76f8\u673a\u7684\u8bbf\u95ee\u6743\u9650",authenticateWith:"\u8fde\u63a5\u5230 %{pluginName}",authenticateWithTitle:"\u8bf7\u4f7f\u7528 %{pluginName} \u8fdb\u884c\u8ba4\u8bc1\u4ee5\u9009\u62e9\u6587\u4ef6",back:"\u8fd4\u56de",browse:"\u6d4f\u89c8",browseFiles:"\u6d4f\u89c8",cancel:"\u53d6\u6d88",cancelUpload:"\u53d6\u6d88\u4e0a\u4f20",chooseFiles:"\u9009\u62e9\u6587\u4ef6",closeModal:"\u5173\u95ed\u7a97\u53e3",companionError:"\u548c Companion \u8fde\u63a5\u5931\u8d25\u4e86",companionUnauthorizeHint:"\u8bf7\u8bbf\u95ee %{url} \u4ee5\u8ba4\u8bc1\u60a8\u7684 %{provider} \u8d26\u6237",complete:"\u4e0a\u4f20\u5b8c\u6bd5",connectedToInternet:"\u8fde\u63a5\u81f3\u7f51\u7edc",copyLink:"\u590d\u5236\u94fe\u63a5",copyLinkToClipboardFallback:"\u590d\u5236\u4ee5\u4e0b\u7f51\u5740",copyLinkToClipboardSuccess:"\u94fe\u63a5\u5df2\u590d\u5236\u5230\u526a\u8d34\u677f",creatingAssembly:"\u6b63\u5728\u51c6\u5907\u4e0a\u4f20\u2026",creatingAssemblyFailed:"Transloadit\uff1a\u65e0\u6cd5\u521b\u5efa\u7a0b\u5e8f\u96c6",dashboardTitle:"\u6587\u4ef6\u4e0a\u4f20\u5de5\u5177",dashboardWindowTitle:"\u6587\u4ef6\u4e0a\u4f20\u5de5\u5177\u7a97\u53e3\uff08\u70b9\u51fb\u79bb\u5f00\u4ee5\u5173\u95ed\uff09",dataUploadedOfTotal:"%{total} / %{complete}",done:"\u5b8c\u6210",dropHereOr:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216%{browse}",dropHint:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc",dropPasteBoth:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216\u8005%{browse}\u6587\u4ef6",dropPasteFiles:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216\u8005%{browse}\u6587\u4ef6",dropPasteFolders:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216\u8005%{browse}\u6587\u4ef6",dropPasteImportBoth:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u7c98\u8d34\u3001%{browse}\u6216\u8005\u5bfc\u5165",dropPasteImportFiles:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u7c98\u8d34\u3001%{browse}\u6216\u8005\u5bfc\u5165",dropPasteImportFolders:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u7c98\u8d34\u3001%{browse}\u6216\u8005\u5bfc\u5165",editFile:"\u7f16\u8f91\u6587\u4ef6",editImage:"\u7f16\u8f91\u56fe\u7247",editing:"\u6b63\u5728\u7f16\u8f91 %{file}",emptyFolderAdded:"\u65e0\u6cd5\u4ece\u7a7a\u6587\u4ef6\u5939\u6dfb\u52a0\u6587\u4ef6",encoding:"\u6b63\u5728\u7f16\u7801\u2026",enterCorrectUrl:"\u9519\u8bef\u94fe\u63a5\uff1a \u8bf7\u786e\u8ba4\u60a8\u8f93\u5165\u7684\u662f\u6587\u4ef6\u7684\u94fe\u63a5",enterUrlToImport:"\u8f93\u5165\u94fe\u63a5\u6216\u8005\u5bfc\u5165\u6587\u4ef6",exceedsSize:"\u6587\u4ef6\u8d85\u8fc7\u4e86\u6700\u5927\u5c3a\u5bf8\u9650\u5236 %{size}",failedToFetch:"Companion \u65e0\u6cd5\u6293\u53d6\u6b64\u94fe\u63a5\uff0c\u8bf7\u786e\u4fdd\u5b83\u662f\u6b63\u786e\u7684",failedToUpload:"\u4e0a\u4f20 %{file} \u5931\u8d25",fileSource:"\u6587\u4ef6\u6e90\uff1a%{name}",filesUploadedOfTotal:"\u5df2\u4e0a\u4f20 %{smart_count} \u4e2a\u6587\u4ef6\u4e2d\u7684 %{complete} \u4e2a",filter:"\u7b5b\u9009\u5668",finishEditingFile:"\u5b8c\u6210\u6587\u4ef6\u7f16\u8f91",folderAdded:"\u4ece %{folder} \u6dfb\u52a0\u4e86 %{smart_count} \u4e2a\u6587\u4ef6",generatingThumbnails:"\u6b63\u5728\u751f\u6210\u7f29\u7565\u56fe\u2026",import:"\u5bfc\u5165",importFrom:"\u4ece %{name} \u5bfc\u5165",inferiorSize:"\u6587\u4ef6\u5927\u5c0f\u5fc5\u987b\u8d85\u8fc7 %{size}",loading:"\u6b63\u5728\u8f7d\u5165\u2026",logOut:"\u767b\u51fa",micDisabled:"\u9ea6\u514b\u98ce\u7684\u6743\u9650\u8bbf\u95ee\u88ab\u7528\u6237\u62d2\u7edd",myDevice:"\u6211\u7684\u8bbe\u5907",noCameraDescription:"\u4e3a\u4e86\u62cd\u6444\u7167\u7247\u6216\u5f55\u5236\u89c6\u9891\uff0c\u8bf7\u8fde\u63a5\u4e00\u4e2a\u6444\u50cf\u8bbe\u5907",noCameraTitle:"\u6444\u50cf\u5934\u4e0d\u53ef\u7528",noDuplicates:"\u65e0\u6cd5\u6dfb\u52a0\u91cd\u590d\u6587\u4ef6 %{fileName}\uff0c\u8be5\u6587\u4ef6\u5df2\u5b58\u5728",noFilesFound:"\u8fd9\u91cc\u7a7a\u7a7a\u5982\u4e5f",noInternetConnection:"\u65e0\u6cd5\u8fde\u63a5\u5230\u7f51\u7edc",noMoreFilesAllowed:"\u65e0\u6cd5\u6dfb\u52a0\u65b0\u6587\u4ef6\uff1a\u5df2\u6b63\u5728\u4e0a\u4f20\u6587\u4ef6",openFolderNamed:"\u6253\u5f00\u6587\u4ef6\u5939 %{name}",pause:"\u6682\u505c",pauseUpload:"\u6682\u505c\u4e0a\u4f20",paused:"\u5df2\u6682\u505c",poweredBy:"\u5f3a\u529b\u9a71\u52a8\u4e8e %{uppy}",processingXFiles:"\u6b63\u5728\u5904\u7406 %{smart_count} \u4e2a\u6587\u4ef6",recording:"\u6b63\u5728\u5f55\u5236",recordingLength:"\u5f55\u5236\u957f\u5ea6 %{recording_length}",recordingStoppedMaxSize:"\u5f55\u50cf\u5df2\u505c\u6b62\uff0c\u6587\u4ef6\u5927\u5c0f\u5373\u5c06\u8d85\u8fc7\u9650\u5236",removeFile:"\u5220\u9664\u6587\u4ef6",resetFilter:"\u91cd\u7f6e\u7b5b\u9009\u5668",resume:"\u6062\u590d",resumeUpload:"\u6062\u590d\u4e0a\u4f20",retry:"\u91cd\u8bd5",retryUpload:"\u91cd\u8bd5",saveChanges:"\u4fdd\u5b58\u53d8\u66f4",selectFileNamed:"\u9009\u62e9\u6587\u4ef6 %{name}",selectX:"\u9009\u62e9 %{smart_count}",smile:"\u7b11\u4e00\u7b11\uff01",startCapturing:"\u5f00\u59cb\u5c4f\u5e55\u5f55\u5236",startRecording:"\u5f00\u59cb\u89c6\u9891\u5f55\u5236",stopCapturing:"\u505c\u6b62\u5c4f\u5e55\u5f55\u5236",stopRecording:"\u505c\u6b62\u89c6\u9891\u5f55\u5236",streamActive:"\u89c6\u9891\u6d41\u5df2\u6fc0\u6d3b",streamPassive:"\u89c6\u9891\u6d41\u672a\u6fc0\u6d3b",submitRecordedFile:"\u63d0\u4ea4\u5df2\u5f55\u5236\u89c6\u9891",takePicture:"\u62cd\u7167",timedOut:"\u4e0a\u4f20\u5df2\u8d85\u65f6 %{seconds} \u79d2\uff0c\u4e2d\u6b62\u4e0a\u4f20",unselectFileNamed:"\u53d6\u6d88\u9009\u62e9\u6587\u4ef6 %{name}",upload:"\u4e0a\u4f20",uploadComplete:"\u4e0a\u4f20\u5b8c\u6210",uploadFailed:"\u4e0a\u4f20\u5931\u8d25",uploadPaused:"\u4e0a\u4f20\u6682\u505c",uploadXFiles:"\u4e0a\u4f20 %{smart_count} \u4e2a\u6587\u4ef6",uploadXNewFiles:"\u65b0\u4e0a\u4f20\u4e86 %{smart_count} \u4e2a\u6587\u4ef6",uploading:"\u6b63\u5728\u4e0a\u4f20",uploadingXFiles:"\u6b63\u5728\u4e0a\u4f20 %{smart_count} \u4e2a\u6587\u4ef6",xFilesSelected:"%{smart_count} \u4e2a\u6587\u4ef6\u5f85\u4e0a\u4f20",xMoreFilesAdded:"\u53c8\u6709 %{smart_count} \u4e2a\u6587\u4ef6\u88ab\u6dfb\u52a0",xTimeLeft:"\u5269\u4f59 %{time}",youCanOnlyUploadFileTypes:"\u60a8\u53ea\u80fd\u4e0a\u4f20\u8fd9\u4e9b\u6587\u4ef6\u7c7b\u578b\uff1a%{types}",youCanOnlyUploadX:"\u60a8\u53ea\u80fd\u4e0a\u4f20 %{smart_count} \u4e2a\u6587\u4ef6",youHaveToAtLeastSelectX:"\u60a8\u81f3\u5c11\u8981\u9009\u62e9 %{smart_count} \u4e2a\u6587\u4ef6"},"undefined"!==typeof Uppy&&(globalThis.Uppy.locales.zh_CN=Mu);const Lu=Mu,zu={strings:{},pluralize:e=>1===e?0:1};zu.strings={addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},addedNumFiles:"Added %{numFiles} file(s)",addingMoreFiles:"Adding more files",additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",addMore:"Add more",addMoreFiles:"Add more files",allFilesFromFolderNamed:"All files from folder %{name}",allowAccessDescription:"In order to take pictures or record video with your camera, please allow camera access for this site.",allowAccessTitle:"Please allow access to your camera",allowAudioAccessDescription:"In order to record audio, please allow microphone access for this site.",allowAudioAccessTitle:"Please allow access to your microphone",aspectRatioLandscape:"Crop landscape (16:9)",aspectRatioPortrait:"Crop portrait (9:16)",aspectRatioSquare:"Crop square",authAborted:"Authentication aborted",authenticateWith:"Connect to %{pluginName}",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",back:"Back",browse:"browse",browseFiles:"browse files",browseFolders:"browse folders",cancel:"Cancel",cancelUpload:"Cancel upload",chooseFiles:"Choose files",closeModal:"Close Modal",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",complete:"Complete",compressedX:"Saved %{size} by compressing images",compressingImages:"Compressing images...",connectedToInternet:"Connected to the Internet",copyLink:"Copy link",copyLinkToClipboardFallback:"Copy the URL below",copyLinkToClipboardSuccess:"Link copied to clipboard.",creatingAssembly:"Preparing upload...",creatingAssemblyFailed:"Transloadit: Could not create Assembly",dashboardTitle:"Uppy Dashboard",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dataUploadedOfTotal:"%{complete} of %{total}",discardRecordedFile:"Discard recorded file",done:"Done",dropHereOr:"Drop here or %{browse}",dropHint:"Drop your files here",dropPasteBoth:"Drop files here, %{browseFiles} or %{browseFolders}",dropPasteFiles:"Drop files here or %{browseFiles}",dropPasteFolders:"Drop files here or %{browseFolders}",dropPasteImportBoth:"Drop files here, %{browseFiles}, %{browseFolders} or import from:",dropPasteImportFiles:"Drop files here, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, %{browseFolders} or import from:",editFile:"Edit file",editImage:"Edit image",editFileWithFilename:"Edit file %{file}",editing:"Editing %{file}",emptyFolderAdded:"No files were added from empty folder",encoding:"Encoding...",enterCorrectUrl:"Incorrect URL: Please make sure you are entering a direct link to a file",enterTextToSearch:"Enter text to search for images",enterUrlToImport:"Enter URL to import a file",error:"Error",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",failedToFetch:"Companion failed to fetch this URL, please make sure it\u2019s correct",failedToUpload:"Failed to upload %{file}",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},filter:"Filter",finishEditingFile:"Finish editing file",flipHorizontal:"Flip horizontal",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},folderAlreadyAdded:'The folder "%{folder}" was already added',generatingThumbnails:"Generating thumbnails...",import:"Import",importFiles:"Import files from:",importFrom:"Import from %{name}",inferiorSize:"This file is smaller than the allowed size of %{size}",loadedXFiles:"Loaded %{numFiles} files",loading:"Loading...",logOut:"Log out",micDisabled:"Microphone access denied by user",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",missingRequiredMetaFields:{0:"Missing required meta field: %{fields}.",1:"Missing required meta fields: %{fields}."},myDevice:"My Device",noAudioDescription:"In order to record audio, please connect a microphone or another audio input device",noAudioTitle:"Microphone Not Available",noCameraDescription:"In order to take pictures or record video, please connect a camera device",noCameraTitle:"Camera Not Available",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",noFilesFound:"You have no files or folders here",noInternetConnection:"No Internet connection",noMoreFilesAllowed:"Cannot add more files",noSearchResults:"Unfortunately, there are no results for this search",openFolderNamed:"Open folder %{name}",pause:"Pause",paused:"Paused",pauseUpload:"Pause upload",pluginNameAudio:"Audio",pluginNameBox:"Box",pluginNameCamera:"Camera",pluginNameDropbox:"Dropbox",pluginNameFacebook:"Facebook",pluginNameGoogleDrive:"Google Drive",pluginNameInstagram:"Instagram",pluginNameOneDrive:"OneDrive",pluginNameZoom:"Zoom",poweredBy:"Powered by %{uppy}",processingXFiles:{0:"Processing %{smart_count} file",1:"Processing %{smart_count} files"},recording:"Recording",recordingLength:"Recording length %{recording_length}",recordingStoppedMaxSize:"Recording stopped because the file size is about to exceed the limit",recordVideoBtn:"Record Video",recoveredAllFiles:"We restored all files. You can now resume the upload.",recoveredXFiles:{0:"We could not fully recover 1 file. Please re-select it and resume the upload.",1:"We could not fully recover %{smart_count} files. Please re-select them and resume the upload."},removeFile:"Remove file",reSelect:"Re-select",resetFilter:"Reset filter",resetSearch:"Reset search",resume:"Resume",resumeUpload:"Resume upload",retry:"Retry",retryUpload:"Retry upload",revert:"Revert",rotate:"Rotate",save:"Save",saveChanges:"Save changes",search:"Search",searchImages:"Search for images",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},sessionRestored:"Session restored",showErrorDetails:"Show error details",signInWithGoogle:"Sign in with Google",smile:"Smile!",startAudioRecording:"Begin audio recording",startCapturing:"Begin screen capturing",startRecording:"Begin video recording",stopAudioRecording:"Stop audio recording",stopCapturing:"Stop screen capturing",stopRecording:"Stop video recording",streamActive:"Stream active",streamPassive:"Stream passive",submitRecordedFile:"Submit recorded file",takePicture:"Take a picture",takePictureBtn:"Take Picture",timedOut:"Upload stalled for %{seconds} seconds, aborting.",upload:"Upload",uploadComplete:"Upload complete",uploadFailed:"Upload failed",uploading:"Uploading",uploadingXFiles:{0:"Uploading %{smart_count} file",1:"Uploading %{smart_count} files"},uploadPaused:"Upload paused",uploadStalled:"Upload has not made any progress for %{seconds} seconds. You may want to retry it.",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},xFilesSelected:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"},xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},xTimeLeft:"%{time} left",youCanOnlyUploadFileTypes:"You can only upload: %{types}",youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},zoomIn:"Zoom in",zoomOut:"Zoom out"},"undefined"!==typeof Uppy&&(globalThis.Uppy.locales.en_US=zu);const qu=zu;var Hu=i(40807),Wu=i.n(Hu);const Vu={zh:Wu()({...Lu},{strings:{aiKitRequired:"\u8bf7\u5148\u5b89\u88c5\u5e76\u914d\u7f6e AI Kit",aiImageSelectedUse:"\u4f7f\u7528\u5df2\u9009\u62e9\u7684\u56fe\u7247",aiImageSelectedTip:"\u8bf7\u9009\u62e9\u5fc3\u4eea\u7684\u56fe\u7247",aiImagePrompt:"\u63d0\u793a\u8bcd",aiImagePromptTip:"\u8bf7\u8f93\u5165\u63d0\u793a\u8bcd",aiImageSize:"\u56fe\u7247\u5c3a\u5bf8",aiImageModel:"\u56fe\u7247\u6a21\u578b",aiImageNumber:"\u751f\u6210\u6570\u91cf",aiImageGenerate:"\u751f\u6210\u56fe\u7247",aiImageGenerating:"\u6b63\u5728\u751f\u6210\u56fe\u7247...",browse:"\u6d4f\u89c8",browseFiles:"\u6d4f\u89c8\u6587\u4ef6",browseFolders:"\u6d4f\u89c8\u6587\u4ef6\u5939",dropHereOr:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\uff0c\u6216%{browse}",dropHint:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc",dropPasteBoth:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u3001%{browseFiles}\u6216\u8005%{browseFolders}",dropPasteFiles:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u6216\u8005%{browseFiles}",dropPasteFolders:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u6216\u8005%{browseFolders}",dropPasteImportBoth:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u3001\u7c98\u8d34\u3001%{browseFiles}\u3001%{browseFolders}\u6216\u8005\u901a\u8fc7\u4e0b\u65b9\u5bfc\u5165\uff1a",dropPasteImportFiles:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u3001\u7c98\u8d34\u3001%{browseFiles}\u6216\u8005\u901a\u8fc7\u4e0b\u65b9\u5bfc\u5165\uff1a",dropPasteImportFolders:"\u62d6\u62fd\u6587\u4ef6\u5230\u8fd9\u91cc\u3001\u7c98\u8d34\u3001%{browseFolders}\u6216\u8005\u901a\u8fc7\u4e0b\u65b9\u5bfc\u5165\uff1a"}}),en:Wu()({...qu},{strings:{aiKitRequired:"Install and config the AI Kit component first",aiImageSelectedUse:"Use selected images",aiImageSelectedTip:"Please select images",aiImagePrompt:"Prompt",aiImagePromptTip:"Please enter the prompt",aiImageSize:"Size",aiImageModel:"Model",aiImageNumber:"Number of images",aiImageGenerate:"Generate",aiImageGenerating:"Generating...",browse:"browse",browseFiles:"browse files",browseFolders:"browse folders",dropHint:"Drop your files here",dropPasteBoth:"Drop files here, paste, %{browseFiles} or %{browseFolders}",dropPasteFiles:"Drop files here, paste or %{browseFiles}",dropPasteFolders:"Drop files here, paste or %{browseFolders}",dropPasteImportBoth:"Drop files here, paste, %{browseFiles}, %{browseFolders} or import from:",dropPasteImportFiles:"Drop files here, paste, %{browseFiles} or import from:",dropPasteImportFolders:"Drop files here, paste, %{browseFolders} or import from:"}})};i(1192),i(2484),i(5873),i(79787);var Gu=i(44247),Ku=i(76223),Xu=i(68420),Yu=i(11337),Zu=i(43907),Ju=i(55498),Qu=i(13727),$u=i(72113),ed=i(7469),td=i(25228),id=i(99360),nd=i(56556);function ad(e){let{optionalComponent:t,index:i,installStatus:n,hasPermission:o,t:s}=e;const r="stopped"===n||"running"===n;return(0,a.jsxs)(h.Z,{children:[0===i?null:(0,a.jsx)(h.Z,{sx:{width:"100%",height:"1px",backgroundColor:Ku.E.gray6}}),(0,a.jsxs)(h.Z,{sx:{padding:"20px 24px",paddingTop:.5,marginTop:2,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[(0,a.jsx)("img",{style:{width:60,height:60,minWidth:60,minHeight:60},src:t.logoUrl,alt:t.meta.title}),(0,a.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",marginLeft:2},children:[(0,a.jsxs)(h.Z,{sx:{fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var e;return null===(e=t.meta)||void 0===e||e.did,void window.open(null===t||void 0===t?void 0:t.storeUrl,"_blank")},children:[t.meta.title,(0,a.jsxs)(h.Z,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[t.meta.version,(0,a.jsx)(Ju.JO,{className:"link-icon",icon:"fluent:open-20-filled",style:{color:Ku.E.primaryBase,fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.3s"}})]})]}),(0,a.jsx)(h.Z,{sx:{marginTop:0,opacity:.7},children:t.meta.description}),(0,a.jsx)(h.Z,{sx:{display:o?"flex":"none",flexDirection:"row",gap:1},children:n?(0,a.jsx)(h.Z,{sx:{marginTop:2,opacity:.7},children:r?(0,a.jsx)(nd.Z,{variant:"contained",onClick:()=>{window.location.reload()},children:s("componentInstallerRefresh")},"refresh"):(0,a.jsx)(nd.Z,{disabled:!0,sx:{color:"#333"},startIcon:(0,a.jsx)(Ju.JO,{icon:"line-md:loading-loop",style:{color:"#333",fontSize:16}}),variant:"contained",children:n},"status")}):(0,a.jsx)(nd.Z,{sx:{marginTop:2},variant:"contained",className:"button",onClick:()=>{var e;return null===(e=t.meta)||void 0===e||e.did,void window.open(null===t||void 0===t?void 0:t.installUrl,"_blank")},children:s("componentInstallerInstall")},"install")}),r?(0,a.jsx)(h.Z,{sx:{marginTop:2,opacity:.7},children:s("componentInstallerSuccessInstalled")}):null]})]})]})}ad.propTypes={t:ml().func.isRequired,optionalComponent:ml().object.isRequired,index:ml().number.isRequired,installStatus:ml().string,hasPermission:ml().bool.isRequired},ad.defaultProps={installStatus:""};const od={zh:{componentInstallerTitle:"\u7f3a\u5c11\u7ec4\u4ef6",componentInstallerInstall:"\u5b89\u88c5",componentInstallerClose:"\u5173\u95ed",componentInstallerRefresh:"\u91cd\u8f7d\u9875\u9762",componentInstallerSuccessInstalled:"\u5b89\u88c5\u6210\u529f\uff0c\u8bf7\u91cd\u8f7d\u9875\u9762\u67e5\u770b\u53d8\u5316\u3002",componentInstallerSuggestions:"\u8bf7\u8054\u7cfb\u7cfb\u7edf\u7ba1\u7406\u5458\u5b89\u88c5\u8be5\u7ec4\u4ef6\u3002",componentInstallerNoDefinedInBlockletYML:"\u7ec4\u4ef6\u672a\u5728 blocklet.yml \u4e2d\u5b9a\u4e49"},en:{componentInstallerTitle:"Missing component",componentInstallerInstall:"Install",componentInstallerClose:"Close",componentInstallerRefresh:"Refresh",componentInstallerSuccessInstalled:"Successfully installed, please refresh the page to see the changes.",componentInstallerSuggestions:"Please contact the system administrator to install the component.",componentInstallerNoDefinedInBlockletYML:"The component is not defined in blocklet.yml"}};var sd=i(74958),rd=i(6352),ld=i.n(rd);const cd=e=>"string"===typeof e?new Set(e.split(";;")):new Set(e);const pd=function(e){let{did:t,onInstalled:i,onError:n}=e;const a=Array.isArray(t)?t.join(";;"):t,[o,s]=(0,c.useState)({}),r=(0,c.useRef)({onInstalled:i,onError:n});r.current={onInstalled:i,onError:n};const{optionalComponents:l,componentMountPoints:p}=window.blocklet,u=(0,c.useMemo)((()=>{var e;if(!l||!l.length)return[];const t=cd(a),i=l.filter((e=>t.has(e.meta.did)));return null===(e=i?r.current.onError:r.current.onInstalled)||void 0===e||e(i),i}),[a,l]),d=(0,c.useMemo)((()=>{if(u.length)return!0;const e=cd(a);return(p||[]).find((t=>e.has(t.did)))}),[u,p,a]);return u.forEach((e=>{e.storeUrl=ld()(e.meta.homepage,"blocklets",e.meta.did),e.installUrl=ld()(window.blocklet.appUrl,sd.Bu,"/admin/components?install-component=".concat(e.meta.did))})),(0,c.useEffect)((()=>{const e=e=>{var t,i,n;if(e.origin===window.blocklet.appUrl&&"component-installer"===(null===(t=e.data)||void 0===t?void 0:t.kind)&&null!==(i=e.data)&&void 0!==i&&null!==(n=i.blocklet)&&void 0!==n&&n.children){var o,r;let t=!1;const i=cd(a);null===(o=e.data)||void 0===o||null===(r=o.blocklet)||void 0===r||r.children.forEach((e=>{var n;i.has(null===(n=e.meta)||void 0===n?void 0:n.did)&&(t=!0,s((t=>{var i;return{...t,[null===(i=e.meta)||void 0===i?void 0:i.did]:e.status||"waiting"}})))})),t||s({})}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[a]),{optComponents:u,installed:!u.length&&d,installStatus:o,setInstallStatus:s,definedInBlockletYML:d}};function ud(e){let{warnIcon:t,did:i,noPermissionMute:n,onInstalled:o,onError:s,children:r,closeByOutSize:l,onClose:p,fallback:u,disabled:m,roles:f=["owner","admin"]}=e;const{locale:g}=(0,Xu.PE)(),v=(0,id.Z)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,Yu.I)(od,e,g,"en",t)})),{installed:b,optComponents:y,installStatus:x,definedInBlockletYML:w}=pd({did:i,onInstalled:o,onError:s}),P=(0,c.useContext)(Gu.B3),S=()=>{null===p||void 0===p||p(!1)};return m?r:(0,a.jsx)(Zu.Z,{session:null===P||void 0===P?void 0:P.session,roles:f,children:e=>{let{hasPermission:o}=e;return b?r:n&&!o?u||null:"function"===typeof r?(0,a.jsxs)(a.Fragment,{children:[u,r({hasPermission:o,optComponents:y,installStatus:x})]}):(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsx)($u.d,{onClickAway:e=>{e.preventDefault(),e.stopPropagation(),l&&S()},children:(0,a.jsx)(ed.Z,{in:!0,timeout:350,children:(0,a.jsx)(td.Z,{variant:"outlined",sx:{position:"fixed",top:20,right:20,zIndex:3e3,borderRadius:3,width:400,maxWidth:"90vw",borderColor:Ku.E.lineStep,border:"0 !important",fontSize:"14px",textAlign:"left",boxShadow:"0px 8px 16px 0px ".concat(Ku.E.gray6,", 0px 0px 0px 1px ").concat(Ku.E.gray6)},children:w?(0,a.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,a.jsxs)(h.Z,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[t||(0,a.jsx)(Ju.JO,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),(0,a.jsx)(h.Z,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:v("componentInstallerTitle")}),(0,a.jsx)(h.Z,{sx:{flex:1}}),p?(0,a.jsx)(d.Z,{variant:"outlined",className:"button",onClick:S,children:(0,a.jsx)(Qu.default,{})}):null]}),(0,a.jsx)(h.Z,{sx:{width:"100%",height:"1px",backgroundColor:Ku.E.gray6}}),(0,a.jsx)(h.Z,{sx:{maxHeight:"70vh",overflowY:"auto"},children:y.map(((e,t)=>{var i,n;return(0,a.jsx)(ad,{t:v,hasPermission:o,index:t,optionalComponent:e,installStatus:x[null===(i=e.meta)||void 0===i?void 0:i.did]},(null===(n=e.meta)||void 0===n?void 0:n.did)||t)}))}),o?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Z,{sx:{width:"100%",height:"1px",backgroundColor:Ku.E.gray6}}),(0,a.jsx)(h.Z,{sx:{padding:"20px 24px"},children:(0,a.jsx)(h.Z,{sx:{opacity:1},children:v("componentInstallerSuggestions")})})]})]}):(0,a.jsxs)(h.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,a.jsxs)(h.Z,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:[t||(0,a.jsx)(Ju.JO,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),(0,a.jsx)(h.Z,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:v("componentInstallerTitle")}),(0,a.jsx)(h.Z,{sx:{flex:1}}),p?(0,a.jsx)(d.Z,{variant:"outlined",className:"button",onClick:S,children:(0,a.jsx)(Qu.default,{})}):null]}),(0,a.jsx)(h.Z,{sx:{width:"100%",height:"1px",backgroundColor:Ku.E.gray6}}),(0,a.jsxs)(h.Z,{sx:{padding:"20px 24px",marginTop:0},children:[v("componentInstallerNoDefinedInBlockletYML"),": ",i]})]})})})})]})}})}function dd(e){return window.blocklet?(0,a.jsx)(ud,{...e}):e.children}ud.propTypes={disabled:ml().bool,warnIcon:ml().node,did:ml().oneOfType([ml().string,ml().arrayOf(ml().string)]).isRequired,noPermissionMute:ml().bool,onInstalled:ml().func,onError:ml().func,children:ml().any.isRequired,closeByOutSize:ml().bool,onClose:ml().func,fallback:ml().node,roles:ml().array},ud.defaultProps={disabled:!1,warnIcon:null,noPermissionMute:!1,onInstalled:null,onError:null,closeByOutSize:!1,onClose:null,fallback:null,roles:["owner","admin"]},dd.propTypes={...ud.propTypes,children:ml().any.isRequired},dd.defaultProps={...ud.defaultProps};i(28018),i(94464),i(25710),i(28726),i(13128),i(71569),i(25842);i(23939);i(49384);i(60251);i(95712),i(47685),i(96731),i(92706);i(94457);var hd=i(26538),md=i.n(hd),fd=i(87806);function gd(e){let{passport:t,user:i,color:n,width:o,icon:s,children:r,createPassportSvg:l,...c}=e;const{t:p}=(0,Xu.PE)();return(0,a.jsxs)(h.Z,{...c,sx:{display:"flex",alignItems:"center",...null===c||void 0===c?void 0:c.sx},children:[(0,a.jsx)(h.Z,{className:"passport-item__display",dangerouslySetInnerHTML:{__html:l({title:t.title||t.name,issuer:t.issuer&&t.issuer.name,issuerDid:t.issuer&&t.issuer.id,ownerName:i.fullName,ownerDid:i.did,ownerAvatarUrl:i.avatar,revoked:t.revoked,preferredColor:n,width:o})}}),(0,a.jsxs)(h.Z,{className:"passport-item__body",sx:{p:0,ml:3,mt:0},children:[(0,a.jsxs)(h.Z,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:[md()(t.title),(0,a.jsxs)(h.Z,{className:"passport-item__status-icon",sx:{svg:{fill:"#bfbfbf",height:"1.2em",marginLeft:"0.4em"}},children:[s,t.revoked&&(0,a.jsx)(fd.Z,{})]})]}),t.expirationDate&&(0,a.jsx)(h.Z,{className:"passport-item__title",sx:{display:"flex",alignItems:"center",fontWeight:400,fontSize:"16px",lineHeight:1.1875,color:"#222222"},children:p("team.passport.validUntil",{date:t.expirationDate})}),r]})]})}gd.propTypes={passport:ml().any.isRequired,user:ml().any.isRequired,color:ml().string.isRequired,createPassportSvg:ml().func.isRequired,icon:ml().any,children:ml().any,width:ml().number},gd.defaultProps={icon:null,children:null,width:150};i(35432);var vd=i(30278),bd=i.n(vd);i(76818);const yd=(0,c.createContext)({}),{Provider:xd,Consumer:wd}=yd;i(82790),i(86229),i(82434),i(14506),i(16967);new(i(99132).x);var Pd=i(71171),Sd=(i(35966),i(33518)),kd=(i(22425),i(75506),i(10458)),_d=i.n(kd);_d().defaults.timeout=1e4;_d().create();i.p;i(22256);i.p;var Cd;(0,Sd.Z)(h.Z)(Cd||(Cd=(0,Pd.Z)(["\n .selected-container {\n position: absolute;\n right: 0px;\n bottom: 0px;\n display: flex;\n -webkit-box-pack: end;\n justify-content: flex-end;\n align-items: flex-end;\n width: 32px;\n height: 32px;\n border-radius: 0px 0px 8px;\n color: rgb(255, 255, 255);\n overflow: hidden;\n transition: all 0.4s ease 0s;\n\n &::after {\n position: absolute;\n z-index: 0;\n left: 60px;\n top: 60px;\n display: block;\n width: 0px;\n height: 0px;\n border-width: 16px;\n border-style: solid;\n border-color: transparent #1dc1c7 #1dc1c7 transparent;\n transition: all 0.1s ease 0s;\n content: '';\n }\n\n .selected-icon {\n visibility: hidden;\n width: 60%;\n height: 60%;\n position: relative;\n z-index: 2;\n margin: 0px 1px 1px 0px;\n font-size: 16px;\n transition: all 0.2s ease 0s;\n }\n }\n\n .selected-container.selected {\n &::after {\n left: 0px;\n top: 0px;\n }\n\n .selected-icon {\n visibility: visible;\n }\n }\n"])));var Fd;(0,Sd.Z)(h.Z)(Fd||(Fd=(0,Pd.Z)(["\n height: 100%;\n overflow-y: auto;\n"])));var Td=i(98722),Od=i(56666);var Ed=0;Array.isArray;function Dd(e,t,i,n,a,o){var s,r,l={};for(r in t)"ref"==r?s=t[r]:l[r]=t[r];var c={type:e,props:l,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ed,__i:-1,__u:0,__source:a,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(r in s)void 0===l[r]&&(l[r]=s[r]);return Le.YM.vnode&&Le.YM.vnode(c),c}var Rd=i(93197);var Ud,Id=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};Ud=new WeakMap;const jd=class{constructor(){Ud.set(this,[])}enqueue(e,t){const i={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&Id(this,Ud,"f")[this.size-1].priority>=t.priority)return void Id(this,Ud,"f").push(i);const n=function(e,t,i){let n=0,a=e.length;for(;a>0;){const o=Math.trunc(a/2);let s=n+o;i(e[s],t)<=0?(n=++s,a-=o+1):a=o}return n}(Id(this,Ud,"f"),i,((e,t)=>t.priority-e.priority));Id(this,Ud,"f").splice(n,0,i)}dequeue(){const e=Id(this,Ud,"f").shift();return null===e||void 0===e?void 0:e.run}filter(e){return Id(this,Ud,"f").filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return Id(this,Ud,"f").length}};var Ad,Nd,Bd,Md,Ld,zd,qd,Hd,Wd,Vd,Gd,Kd,Xd,Yd,Zd,Jd,Qd,$d,eh,th,ih,nh,ah,oh,sh,rh,lh=function(e,t,i,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,i):a?a.value=i:t.set(e,i),i},ch=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)};class ph extends Error{}Nd=new WeakMap,Bd=new WeakMap,Md=new WeakMap,Ld=new WeakMap,zd=new WeakMap,qd=new WeakMap,Hd=new WeakMap,Wd=new WeakMap,Vd=new WeakMap,Gd=new WeakMap,Kd=new WeakMap,Xd=new WeakMap,Yd=new WeakMap,Zd=new WeakMap,Ad=new WeakSet,Jd=function(){return ch(this,Bd,"f")||ch(this,Md,"f")<ch(this,Ld,"f")},Qd=function(){return ch(this,Kd,"f")<ch(this,Xd,"f")},$d=function(){var e;lh(this,Kd,(e=ch(this,Kd,"f"),--e),"f"),ch(this,Ad,"m",ih).call(this),this.emit("next")},eh=function(){ch(this,Ad,"m",ah).call(this),ch(this,Ad,"m",nh).call(this),lh(this,Wd,void 0,"f")},th=function(){const e=Date.now();if(void 0===ch(this,Hd,"f")){const t=ch(this,qd,"f")-e;if(!(t<0))return void 0===ch(this,Wd,"f")&&lh(this,Wd,setTimeout((()=>{ch(this,Ad,"m",eh).call(this)}),t),"f"),!0;lh(this,Md,ch(this,Nd,"f")?ch(this,Kd,"f"):0,"f")}return!1},ih=function(){if(0===ch(this,Vd,"f").size)return ch(this,Hd,"f")&&clearInterval(ch(this,Hd,"f")),lh(this,Hd,void 0,"f"),this.emit("empty"),0===ch(this,Kd,"f")&&this.emit("idle"),!1;if(!ch(this,Yd,"f")){const e=!ch(this,Ad,"a",th);if(ch(this,Ad,"a",Jd)&&ch(this,Ad,"a",Qd)){const t=ch(this,Vd,"f").dequeue();return!!t&&(this.emit("active"),t(),e&&ch(this,Ad,"m",nh).call(this),!0)}}return!1},nh=function(){ch(this,Bd,"f")||void 0!==ch(this,Hd,"f")||(lh(this,Hd,setInterval((()=>{ch(this,Ad,"m",ah).call(this)}),ch(this,zd,"f")),"f"),lh(this,qd,Date.now()+ch(this,zd,"f"),"f"))},ah=function(){0===ch(this,Md,"f")&&0===ch(this,Kd,"f")&&ch(this,Hd,"f")&&(clearInterval(ch(this,Hd,"f")),lh(this,Hd,void 0,"f")),lh(this,Md,ch(this,Nd,"f")?ch(this,Kd,"f"):0,"f"),ch(this,Ad,"m",oh).call(this)},oh=function(){for(;ch(this,Ad,"m",ih).call(this););},sh=async function(e){return new Promise(((t,i)=>{e.addEventListener("abort",(()=>{i(new ph("The task was aborted."))}),{once:!0})}))},rh=async function(e,t){return new Promise((i=>{const n=()=>{t&&!t()||(this.off(e,n),i())};this.on(e,n)}))};const uh=class extends Rd{constructor(e){var t,i,n,a;if(super(),Ad.add(this),Nd.set(this,void 0),Bd.set(this,void 0),Md.set(this,0),Ld.set(this,void 0),zd.set(this,void 0),qd.set(this,0),Hd.set(this,void 0),Wd.set(this,void 0),Vd.set(this,void 0),Gd.set(this,void 0),Kd.set(this,0),Xd.set(this,void 0),Yd.set(this,void 0),Zd.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"===typeof(e={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:jd,...e}).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(i=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==i?i:"","` (").concat(typeof e.intervalCap,")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(a=null===(n=e.interval)||void 0===n?void 0:n.toString())&&void 0!==a?a:"","` (").concat(typeof e.interval,")"));lh(this,Nd,e.carryoverConcurrencyCount,"f"),lh(this,Bd,e.intervalCap===Number.POSITIVE_INFINITY||0===e.interval,"f"),lh(this,Ld,e.intervalCap,"f"),lh(this,zd,e.interval,"f"),lh(this,Vd,new e.queueClass,"f"),lh(this,Gd,e.queueClass,"f"),this.concurrency=e.concurrency,this.timeout=e.timeout,lh(this,Zd,!0===e.throwOnTimeout,"f"),lh(this,Yd,!1===e.autoStart,"f")}get concurrency(){return ch(this,Xd,"f")}set concurrency(e){if(!("number"===typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(typeof e,")"));lh(this,Xd,e,"f"),ch(this,Ad,"m",oh).call(this)}async add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t={timeout:this.timeout,throwOnTimeout:ch(this,Zd,"f"),...t},new Promise(((i,n)=>{ch(this,Vd,"f").enqueue((async()=>{var a,o,s;lh(this,Kd,(o=ch(this,Kd,"f"),++o),"f"),lh(this,Md,(s=ch(this,Md,"f"),++s),"f");try{if(null===(a=t.signal)||void 0===a?void 0:a.aborted)throw new ph("The task was aborted.");let n=e({signal:t.signal});t.timeout&&(n=Ci(Promise.resolve(n),t.timeout)),t.signal&&(n=Promise.race([n,ch(this,Ad,"m",sh).call(this,t.signal)]));const o=await n;i(o),this.emit("completed",o)}catch(_c){if(_c instanceof Ci.TimeoutError&&!t.throwOnTimeout)return void i();n(_c),this.emit("error",_c)}finally{ch(this,Ad,"m",$d).call(this)}}),t),this.emit("add"),ch(this,Ad,"m",ih).call(this)}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){return ch(this,Yd,"f")?(lh(this,Yd,!1,"f"),ch(this,Ad,"m",oh).call(this),this):this}pause(){lh(this,Yd,!0,"f")}clear(){lh(this,Vd,new(ch(this,Gd,"f")),"f")}async onEmpty(){0!==ch(this,Vd,"f").size&&await ch(this,Ad,"m",rh).call(this,"empty")}async onSizeLessThan(e){ch(this,Vd,"f").size<e||await ch(this,Ad,"m",rh).call(this,"next",(()=>ch(this,Vd,"f").size<e))}async onIdle(){0===ch(this,Kd,"f")&&0===ch(this,Vd,"f").size||await ch(this,Ad,"m",rh).call(this,"idle")}get size(){return ch(this,Vd,"f").size}sizeBy(e){return ch(this,Vd,"f").filter(e).length}get pending(){return ch(this,Kd,"f")}get isPaused(){return ch(this,Yd,"f")}};function dh(){return(0,Le.h)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg"},(0,Le.h)("g",{fill:"none","fill-rule":"evenodd"},(0,Le.h)("circle",{fill:"#FFF",cx:"13",cy:"13",r:"13"}),(0,Le.h)("path",{d:"M21.64 13.205c0-.639-.057-1.252-.164-1.841H13v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z",fill:"#4285F4","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M13 22c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H4.957v2.332A8.997 8.997 0 0013 22z",fill:"#34A853","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M7.964 14.71A5.41 5.41 0 017.682 13c0-.593.102-1.17.282-1.71V8.958H4.957A8.996 8.996 0 004 13c0 1.452.348 2.827.957 4.042l3.007-2.332z",fill:"#FBBC05","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M13 7.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C17.463 4.891 15.426 4 13 4a8.997 8.997 0 00-8.043 4.958l3.007 2.332C8.672 9.163 10.656 7.58 13 7.58z",fill:"#EA4335","fill-rule":"nonzero"}),(0,Le.h)("path",{d:"M4 4h18v18H4z"})))}const hh=function(e){const{pluginName:t,pluginIcon:i,i18nArray:n,handleAuth:a}=e,o="Google Drive"===t,s=(0,Le.h)("span",{className:"uppy-Provider-authTitleName"},t,(0,Le.h)("br",null));return(0,Le.h)("div",{className:"uppy-Provider-auth"},(0,Le.h)("div",{className:"uppy-Provider-authIcon"},i()),(0,Le.h)("div",{className:"uppy-Provider-authTitle"},n("authenticateWithTitle",{pluginName:s})),o?(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn uppy-Provider-btn-google",onClick:a,"data-uppy-super-focusable":!0},(0,Le.h)(dh,null),n("signInWithGoogle")):(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Provider-authBtn",onClick:a,"data-uppy-super-focusable":!0},n("authenticateWith",{pluginName:t})))},mh=e=>{const{getFolder:t,title:i,isLast:n}=e;return(0,Le.h)(Le.HY,null,(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn",onClick:t},i),n?"":" / ")},fh=e=>{const t=[];return e.showBreadcrumbs&&t.push((e=>{const{getFolder:t,title:i,breadcrumbsIcon:n,breadcrumbs:a}=e;return(0,Le.h)("div",{className:"uppy-Provider-breadcrumbs"},(0,Le.h)("div",{className:"uppy-Provider-breadcrumbsIcon"},n),a.map(((e,n)=>(0,Le.h)(mh,{key:e.id,getFolder:()=>t(e.requestPath),title:0===n?i:e.name,isLast:n+1===a.length}))))})({getFolder:e.getFolder,breadcrumbs:e.breadcrumbs,breadcrumbsIcon:e.pluginIcon&&e.pluginIcon(),title:e.title})),t.push((e=>{let{i18n:t,logout:i,username:n}=e;return[(0,Le.h)("span",{className:"uppy-ProviderBrowser-user",key:"username"},n),(0,Le.h)("button",{type:"button",onClick:i,className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowser-userLogout",key:"logout"},t("logOut"))]})({logout:e.logout,username:e.username,i18n:e.i18n})),t};function gh(e){const{search:t,searchOnInput:i,searchTerm:n,showButton:a,inputLabel:o,clearSearchLabel:s,buttonLabel:r,clearSearch:l,inputClassName:c,buttonCSSClassName:p}=e,[u,d]=Pn(null!=n?n:""),h=_n((e=>{e.preventDefault(),t(u)}),[t,u]),m=_n((e=>{const n=e.target.value;d(n),i&&t(n)}),[d,i,t]),[f]=Pn((()=>{const e=document.createElement("form");return e.setAttribute("tabindex","-1"),e.id=F(),e}));return Sn((()=>(document.body.appendChild(f),f.addEventListener("submit",h),()=>{f.removeEventListener("submit",h),document.body.removeChild(f)})),[f,h]),(0,Le.h)(Le.HY,null,(0,Le.h)("input",{className:"uppy-u-reset ".concat(c),type:"search","aria-label":o,placeholder:o,value:u,onInput:m,form:f.id,"data-uppy-super-focusable":!0}),!a&&(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",class:"uppy-c-icon uppy-ProviderBrowser-searchFilterIcon",width:"12",height:"12",viewBox:"0 0 12 12"},(0,Le.h)("path",{d:"M8.638 7.99l3.172 3.172a.492.492 0 1 1-.697.697L7.91 8.656a4.977 4.977 0 0 1-2.983.983C2.206 9.639 0 7.481 0 4.819 0 2.158 2.206 0 4.927 0c2.721 0 4.927 2.158 4.927 4.82a4.74 4.74 0 0 1-1.216 3.17zm-3.71.685c2.176 0 3.94-1.726 3.94-3.856 0-2.129-1.764-3.855-3.94-3.855C2.75.964.984 2.69.984 4.819c0 2.13 1.765 3.856 3.942 3.856z"})),!a&&u&&(0,Le.h)("button",{className:"uppy-u-reset uppy-ProviderBrowser-searchFilterReset",type:"button","aria-label":s,title:s,onClick:()=>{d(""),l&&l()}},(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",viewBox:"0 0 19 19"},(0,Le.h)("path",{d:"M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"}))),a&&(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary ".concat(p),type:"submit",form:f.id},r))}const vh=e=>{let{cancel:t,done:i,i18n:n,selected:a}=e;return(0,Le.h)("div",{className:"uppy-ProviderBrowser-footer"},(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary",onClick:i,type:"button"},n("selectX",{smart_count:a})),(0,Le.h)("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link",onClick:t,type:"button"},n("cancel")))};function bh(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:11,height:14.5,viewBox:"0 0 44 58"},(0,Le.h)("path",{d:"M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"}))}function yh(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",style:{minWidth:16,marginRight:3},viewBox:"0 0 276.157 276.157"},(0,Le.h)("path",{d:"M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"}))}function xh(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",style:{width:16,marginRight:4},viewBox:"0 0 58 58"},(0,Le.h)("path",{d:"M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z"}),(0,Le.h)("path",{d:"M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"}))}const wh=e=>{const{itemIconString:t}=e;if(null!==t)switch(t){case"file":return(0,Le.h)(bh,null);case"folder":return(0,Le.h)(yh,null);case"video":return(0,Le.h)(xh,null);default:{const{alt:i}=e;return(0,Le.h)("img",{src:t,alt:i,loading:"lazy",width:16,height:16})}}};const Ph=function(e){const{className:t,isDisabled:i,restrictionError:n,isChecked:a,title:o,itemIconEl:s,showTitles:r,toggleCheckbox:l,recordShiftKeyPress:c,id:p,children:u}=e,d=zn("uppy-u-reset","uppy-ProviderBrowserItem-checkbox","uppy-ProviderBrowserItem-checkbox--grid",{"uppy-ProviderBrowserItem-checkbox--is-checked":a});return(0,Le.h)("li",{className:t,title:i?null==n?void 0:n.message:null},(0,Le.h)("input",{type:"checkbox",className:d,onChange:l,onKeyDown:c,onMouseDown:c,name:"listitem",id:p,checked:a,disabled:i,"data-uppy-super-focusable":!0}),(0,Le.h)("label",{htmlFor:p,"aria-label":o,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},s,r&&o,u))};const Sh=function(e){const{className:t,isDisabled:i,restrictionError:n,isCheckboxDisabled:a,isChecked:o,toggleCheckbox:s,recordShiftKeyPress:r,type:l,id:c,itemIconEl:p,title:u,handleFolderClick:d,showTitles:h,i18n:m}=e;return(0,Le.h)("li",{className:t,title:i?null==n?void 0:n.message:null},a?null:(0,Le.h)("input",{type:"checkbox",className:"uppy-u-reset uppy-ProviderBrowserItem-checkbox ".concat(o?"uppy-ProviderBrowserItem-checkbox--is-checked":""),onChange:s,onKeyDown:r,onMouseDown:r,name:"listitem",id:c,checked:o,"aria-label":"file"===l?null:m("allFilesFromFolderNamed",{name:u}),disabled:i,"data-uppy-super-focusable":!0}),"file"===l?(0,Le.h)("label",{htmlFor:c,className:"uppy-u-reset uppy-ProviderBrowserItem-inner"},(0,Le.h)("div",{className:"uppy-ProviderBrowserItem-iconWrap"},p),h&&u):(0,Le.h)("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-ProviderBrowserItem-inner",onClick:d,"aria-label":m("openFolderNamed",{name:u})},(0,Le.h)("div",{className:"uppy-ProviderBrowserItem-iconWrap"},p),h&&(0,Le.h)("span",null,u)))};function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},kh.apply(this,arguments)}const _h=e=>{const{author:t,getItemIcon:i,isChecked:n,isDisabled:a,viewType:o}=e,s=i(),r=zn("uppy-ProviderBrowserItem",{"uppy-ProviderBrowserItem--selected":n},{"uppy-ProviderBrowserItem--disabled":a},{"uppy-ProviderBrowserItem--noPreview":"video"===s}),l=(0,Le.h)(wh,{itemIconString:s});switch(o){case"grid":return(0,Le.h)(Ph,kh({},e,{className:r,itemIconEl:l}));case"list":return(0,Le.h)(Sh,kh({},e,{className:r,itemIconEl:l}));case"unsplash":return(0,Le.h)(Ph,kh({},e,{className:r,itemIconEl:l}),(0,Le.h)("a",{href:"".concat(t.url,"?utm_source=Companion&utm_medium=referral"),target:"_blank",rel:"noopener noreferrer",className:"uppy-ProviderBrowserItem-author",tabIndex:"-1"},t.name));default:throw new Error("There is no such type ".concat(o))}},Ch="shared-with-me";function Fh(e){const{currentSelection:t,uppyFiles:i,viewType:n,isChecked:a,toggleCheckbox:o,recordShiftKeyPress:s,showTitles:r,i18n:l,validateRestrictions:c,getNextFolder:p,columns:u,f:d}=e;var h;if(d.isFolder)return _h({columns:u,showTitles:r,viewType:n,i18n:l,id:d.id,title:d.name,getItemIcon:()=>d.icon,isChecked:a(d),toggleCheckbox:e=>o(e,d),recordShiftKeyPress:s,type:"folder",isDisabled:null==(h=a(d))?void 0:h.loading,isCheckboxDisabled:d.id===Ch,handleFolderClick:()=>p(d)});const m=c(qn(d),[...i,...t]);return _h({id:d.id,title:d.name,author:d.author,getItemIcon:()=>d.icon,isChecked:a(d),toggleCheckbox:e=>o(e,d),recordShiftKeyPress:s,columns:u,showTitles:r,viewType:n,i18n:l,type:"file",isDisabled:m&&!a(d),restrictionError:m})}const Th=function(e){const{currentSelection:t,folders:i,files:n,uppyFiles:a,viewType:o,headerComponent:s,showBreadcrumbs:r,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,handleScroll:u,showTitles:d,i18n:h,validateRestrictions:m,isLoading:f,showSearchFilter:g,search:v,searchTerm:b,clearSearch:y,searchOnInput:x,searchInputLabel:w,clearSearchLabel:P,getNextFolder:S,cancel:k,done:_,columns:C,noResultsLabel:F,loadAllFiles:T}=e,O=t.length,E=kn((()=>[...i,...n]),[i,n]);return(0,Le.h)("div",{className:zn("uppy-ProviderBrowser","uppy-ProviderBrowser-viewType--".concat(o))},s&&(0,Le.h)("div",{className:"uppy-ProviderBrowser-header"},(0,Le.h)("div",{className:zn("uppy-ProviderBrowser-headerBar",!r&&"uppy-ProviderBrowser-headerBar--simple")},s)),g&&(0,Le.h)("div",{class:"uppy-ProviderBrowser-searchFilter"},(0,Le.h)(gh,{search:v,searchTerm:b,clearSearch:y,inputLabel:w,clearSearchLabel:P,inputClassName:"uppy-ProviderBrowser-searchFilterInput",searchOnInput:x})),f?(0,Le.h)("div",{className:"uppy-Provider-loading"},(0,Le.h)("span",null,h("loading"))):i.length||n.length?T?(0,Le.h)("div",{className:"uppy-ProviderBrowser-body"},(0,Le.h)("ul",{className:"uppy-ProviderBrowser-list"},(0,Le.h)(Kn,{data:E,renderRow:e=>(0,Le.h)(Fh,{currentSelection:t,uppyFiles:a,viewType:o,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,showTitles:d,i18n:h,validateRestrictions:m,getNextFolder:S,columns:C,f:e}),rowHeight:31}))):(0,Le.h)("div",{className:"uppy-ProviderBrowser-body"},(0,Le.h)("ul",{className:"uppy-ProviderBrowser-list",onScroll:u,role:"listbox",tabIndex:"-1"},E.map((e=>(0,Le.h)(Fh,{currentSelection:t,uppyFiles:a,viewType:o,isChecked:l,toggleCheckbox:c,recordShiftKeyPress:p,showTitles:d,i18n:h,validateRestrictions:m,getNextFolder:S,columns:C,f:e}))))):(0,Le.h)("div",{className:"uppy-Provider-empty"},F),O>0&&(0,Le.h)(vh,{selected:O,done:_,cancel:k,i18n:h}))},Oh=e=>{let{i18n:t,loading:i}=e;return(0,Le.h)("div",{className:"uppy-Provider-loading"},(0,Le.h)("span",null,t("loading")),"string"===typeof i&&(0,Le.h)("span",{style:{marginTop:".7em"}},i))};class Eh extends Le.wA{componentWillUnmount(){const{onUnmount:e}=this.props;e()}render(){const{children:e}=this.props;return(0,Le.bR)(e)[0]}}class Dh{constructor(e,t){this.filterItems=e=>{const t=this.plugin.getPluginState();return t.filterInput&&""!==t.filterInput?e.filter((e=>-1!==e.name.toLowerCase().indexOf(t.filterInput.toLowerCase()))):e},this.recordShiftKeyPress=e=>{this.isShiftKeyPressed=e.shiftKey},this.toggleCheckbox=(e,t)=>{e.stopPropagation(),e.preventDefault(),e.currentTarget.focus();const{folders:i,files:n}=this.plugin.getPluginState(),a=this.filterItems(i.concat(n));if(this.lastCheckbox&&this.isShiftKeyPressed){const{currentSelection:e}=this.plugin.getPluginState(),i=a.indexOf(this.lastCheckbox),n=a.indexOf(t),o=i<n?a.slice(i,n+1):a.slice(n,i+1),s=[];for(const t of o){const{uppy:e}=this.plugin,i=e.validateRestrictions(qn(t),[...e.getFiles(),...s]);i?e.info({message:i.message},"error",e.opts.infoTimeout):s.push(t)}return void this.plugin.setPluginState({currentSelection:[...new Set([...e,...s])]})}this.lastCheckbox=t;const{currentSelection:o}=this.plugin.getPluginState();this.isChecked(t)?this.plugin.setPluginState({currentSelection:o.filter((e=>e.id!==t.id))}):this.plugin.setPluginState({currentSelection:o.concat([t])})},this.isChecked=e=>{const{currentSelection:t}=this.plugin.getPluginState();return t.some((t=>t.id===e.id))},this.plugin=e,this.provider=t.provider,this.isHandlingScroll=!1,this.preFirstRender=this.preFirstRender.bind(this),this.handleError=this.handleError.bind(this),this.clearSelection=this.clearSelection.bind(this),this.cancelPicking=this.cancelPicking.bind(this)}preFirstRender(){this.plugin.setPluginState({didFirstRender:!0}),this.plugin.onFirstRender()}shouldHandleScroll(e){const{scrollHeight:t,scrollTop:i,offsetHeight:n}=e.target;return t-(i+n)<50&&!this.isHandlingScroll}clearSelection(){this.plugin.setPluginState({currentSelection:[],filterInput:""})}cancelPicking(){this.clearSelection();const e=this.plugin.uppy.getPlugin("Dashboard");e&&e.hideAllPanels()}handleError(e){var t;const{uppy:i}=this.plugin,n=i.i18n("companionError");i.log(e.toString()),e.isAuthError||"AbortError"===(null==(t=e.cause)?void 0:t.name)||i.info({message:n,details:e.toString()},"error",5e3)}getTagFile(e){const t={id:e.id,source:this.plugin.id,data:e,name:e.name||e.id,type:e.mimeType,isRemote:!0,meta:{},body:{fileId:e.id},remote:{companionUrl:this.plugin.opts.companionUrl,url:"".concat(this.provider.fileUrl(e.requestPath)),body:{fileId:e.id},providerOptions:this.provider.opts,providerName:this.provider.name,provider:this.provider.provider}},i=M(t);return i&&la(i)&&(t.preview=e.thumbnail),e.author&&(null!=e.author.name&&(t.meta.authorName=String(e.author.name)),e.author.url&&(t.meta.authorUrl=e.author.url)),null!=e.relDirPath&&(t.meta.relativePath=e.relDirPath?"".concat(e.relDirPath,"/").concat(t.name):null),null!=e.absDirPath&&(t.meta.absolutePath=e.absDirPath?"/".concat(e.absDirPath,"/").concat(t.name):"/".concat(t.name)),t}setLoading(e){this.plugin.setPluginState({loading:e})}}function Rh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Uh=0;function Ih(e){return"__private_"+Uh+++"_"+e}function jh(e,t){return e?"".concat(e,"/").concat(t):t}function Ah(){return(0,Le.h)("svg",{"aria-hidden":"true",focusable:"false",width:"30",height:"30",viewBox:"0 0 30 30"},(0,Le.h)("path",{d:"M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"}))}var Nh=Ih("abortController"),Bh=Ih("withAbort"),Mh=Ih("list"),Lh=Ih("listFilesAndFolders"),zh=Ih("recursivelyListAllFiles");class qh extends Dh{constructor(e,t){super(e,t),Object.defineProperty(this,zh,{value:Gh}),Object.defineProperty(this,Lh,{value:Vh}),Object.defineProperty(this,Mh,{value:Wh}),Object.defineProperty(this,Bh,{value:Hh}),Object.defineProperty(this,Nh,{writable:!0,value:void 0});this.opts={viewType:"list",showTitles:!0,showFilter:!0,showBreadcrumbs:!0,loadAllFiles:!1,...t},this.filterQuery=this.filterQuery.bind(this),this.clearFilter=this.clearFilter.bind(this),this.getFolder=this.getFolder.bind(this),this.getNextFolder=this.getNextFolder.bind(this),this.logout=this.logout.bind(this),this.handleAuth=this.handleAuth.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.render=this.render.bind(this),this.plugin.setPluginState({authenticated:!1,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[]})}tearDown(){}async getFolder(e,t){this.setLoading(!0);try{await Rh(this,Bh)[Bh]((async i=>{this.lastCheckbox=void 0;let{breadcrumbs:n}=this.plugin.getPluginState();const a=n.findIndex((t=>e===t.requestPath));n=-1!==a?n.slice(0,a+1):[...n,{requestPath:e,name:t}],this.nextPagePath=e;let o=[],s=[];do{const{files:e,folders:t}=await Rh(this,Lh)[Lh]({breadcrumbs:n,signal:i});o=o.concat(e),s=s.concat(t),this.setLoading(this.plugin.uppy.i18n("loadedXFiles",{numFiles:o.length+s.length}))}while(this.opts.loadAllFiles&&this.nextPagePath);this.plugin.setPluginState({folders:s,files:o,breadcrumbs:n,filterInput:""})}))}catch(i){this.handleError(i)}finally{this.setLoading(!1)}}getNextFolder(e){this.getFolder(e.requestPath,e.name),this.lastCheckbox=void 0}async logout(){try{await Rh(this,Bh)[Bh]((async e=>{const t=await this.provider.logout({signal:e});if(t.ok){if(!t.revoked){const e=this.plugin.uppy.i18n("companionUnauthorizeHint",{provider:this.plugin.title,url:t.manual_revoke_url});this.plugin.uppy.info(e,"info",7e3)}const e={authenticated:!1,files:[],folders:[],breadcrumbs:[],filterInput:""};this.plugin.setPluginState(e)}}))}catch(e){this.handleError(e)}}filterQuery(e){this.plugin.setPluginState({filterInput:e})}clearFilter(){this.plugin.setPluginState({filterInput:""})}async handleAuth(){const e="@uppy/provider-views=".concat(qh.VERSION);try{await this.provider.login({uppyVersions:e}),this.plugin.setPluginState({authenticated:!0}),this.preFirstRender()}catch(bm){this.plugin.uppy.log("login failed: ".concat(bm.message))}}async handleScroll(e){if(this.shouldHandleScroll(e)&&this.nextPagePath){this.isHandlingScroll=!0;try{await Rh(this,Bh)[Bh]((async e=>{const{files:t,folders:i,breadcrumbs:n}=this.plugin.getPluginState(),{files:a,folders:o}=await Rh(this,Lh)[Lh]({breadcrumbs:n,signal:e}),s=t.concat(a),r=i.concat(o);this.plugin.setPluginState({folders:r,files:s})}))}catch(_c){this.handleError(_c)}finally{this.isHandlingScroll=!1}}}async donePicking(){this.setLoading(!0);try{await Rh(this,Bh)[Bh]((async e=>{const{currentSelection:t}=this.plugin.getPluginState(),i=[],n=[];for(const a of t){const{requestPath:t}=a,o=e=>({...e,relDirPath:e.absDirPath.replace(a.absDirPath,"").replace(/^\//,"")});if(a.isFolder){let s=!0,r=0;const l=new uh({concurrency:6}),c=e=>{for(const t of e){const e=z(this.getTagFile(t));this.plugin.uppy.checkIfFileAlreadyExists(e)||(n.push(o(t)),r++,this.setLoading(this.plugin.uppy.i18n("addedNumFiles",{numFiles:r}))),s=!1}};let p;await Rh(this,zh)[zh]({requestPath:t,absDirPath:jh(a.absDirPath,a.name),relDirPath:a.name,queue:l,onFiles:c,signal:e}),await l.onIdle(),p=s?this.plugin.uppy.i18n("emptyFolderAdded"):0===r?this.plugin.uppy.i18n("folderAlreadyAdded",{folder:a.name}):this.plugin.uppy.i18n("folderAdded",{smart_count:r,folder:a.name}),i.push(p)}else n.push(o(a))}this.plugin.uppy.log("Adding files from a remote provider"),this.plugin.uppy.addFiles(n.map((e=>this.getTagFile(e)))),this.plugin.setPluginState({filterInput:""}),i.forEach((e=>this.plugin.uppy.info(e))),this.clearSelection()}))}catch(e){this.handleError(e)}finally{this.setLoading(!1)}}render(e,t){var i=this;void 0===t&&(t={});const{authenticated:n,didFirstRender:a}=this.plugin.getPluginState(),{i18n:o}=this.plugin.uppy;a||this.preFirstRender();const s={...this.opts,...t},{files:r,folders:l,filterInput:c,loading:p,currentSelection:u}=this.plugin.getPluginState(),{isChecked:d,toggleCheckbox:h,recordShiftKeyPress:m,filterItems:f}=this,g=""!==c,v=this.plugin.icon||Ah,b={showBreadcrumbs:s.showBreadcrumbs,getFolder:this.getFolder,breadcrumbs:this.plugin.getPluginState().breadcrumbs,pluginIcon:v,title:this.plugin.title,logout:this.logout,username:this.username,i18n:o},y={isChecked:d,toggleCheckbox:h,recordShiftKeyPress:m,currentSelection:u,files:g?f(r):r,folders:g?f(l):l,username:this.username,getNextFolder:this.getNextFolder,getFolder:this.getFolder,loadAllFiles:this.opts.loadAllFiles,showSearchFilter:s.showFilter,search:this.filterQuery,clearSearch:this.clearFilter,searchTerm:c,searchOnInput:!0,searchInputLabel:o("filter"),clearSearchLabel:o("resetFilter"),noResultsLabel:o("noFilesFound"),logout:this.logout,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,headerComponent:fh(b),title:this.plugin.title,viewType:s.viewType,showTitles:s.showTitles,showBreadcrumbs:s.showBreadcrumbs,pluginIcon:v,i18n:this.plugin.uppy.i18n,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){return i.plugin.uppy.validateRestrictions(...arguments)}};return p?(0,Le.h)(Eh,{onUnmount:this.clearSelection},(0,Le.h)(Oh,{i18n:this.plugin.uppy.i18n,loading:p})):n?(0,Le.h)(Eh,{onUnmount:this.clearSelection},(0,Le.h)(Th,y)):(0,Le.h)(Eh,{onUnmount:this.clearSelection},(0,Le.h)(hh,{pluginName:this.plugin.title,pluginIcon:v,handleAuth:this.handleAuth,i18n:this.plugin.uppy.i18n,i18nArray:this.plugin.uppy.i18nArray}))}}async function Hh(e){var t;null==(t=Rh(this,Nh)[Nh])||t.abort();const i=new AbortController;Rh(this,Nh)[Nh]=i;const n=()=>{i.abort(),this.clearSelection()};try{this.plugin.uppy.on("dashboard:close-panel",n),this.plugin.uppy.on("cancel-all",n),await e(i.signal)}finally{this.plugin.uppy.off("dashboard:close-panel",n),this.plugin.uppy.off("cancel-all",n),Rh(this,Nh)[Nh]=void 0}}async function Wh(e){let{requestPath:t,absDirPath:i,signal:n}=e;const{username:a,nextPagePath:o,items:s}=await this.provider.list(t,{signal:n});return this.username=a||this.username,{items:s.map((e=>({...e,absDirPath:i}))),nextPagePath:o}}async function Vh(e){let{breadcrumbs:t,signal:i}=e;const n=function(e){return e.slice(1).map((e=>e.name)).join("/")}(t),{items:a,nextPagePath:o}=await Rh(this,Mh)[Mh]({requestPath:this.nextPagePath,absDirPath:n,signal:i});this.nextPagePath=o;const s=[],r=[];return a.forEach((e=>{e.isFolder?r.push(e):s.push(e)})),{files:s,folders:r}}async function Gh(e){let{requestPath:t,absDirPath:i,relDirPath:n,queue:a,onFiles:o,signal:s}=e,r=t;for(;r;){const e=await Rh(this,Mh)[Mh]({requestPath:r,absDirPath:i,signal:s});r=e.nextPagePath;const t=e.items.filter((e=>!e.isFolder)),l=e.items.filter((e=>e.isFolder));o(t);const c=l.map((async e=>a.add((async()=>Rh(this,zh)[zh]({requestPath:e.requestPath,absDirPath:jh(i,e.name),relDirPath:jh(n,e.name),queue:a,onFiles:o,signal:s})))));await Promise.all(c)}}function Kh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}qh.VERSION="3.6.0";var Xh=0;function Yh(e){return"__private_"+Xh+++"_"+e}var Zh=Yh("updateFilesAndInputMode");function Jh(e,t){this.nextPageQuery=e.nextPageQuery,e.items.forEach((e=>{t.push(e)})),this.plugin.setPluginState({currentSelection:[],isInputMode:!1,files:t,searchTerm:e.searchedFor})}(class extends Dh{constructor(e,t){super(e,t),Object.defineProperty(this,Zh,{value:Jh});this.opts={viewType:"grid",showTitles:!1,showFilter:!1,showBreadcrumbs:!1,...t},this.search=this.search.bind(this),this.clearSearch=this.clearSearch.bind(this),this.resetPluginState=this.resetPluginState.bind(this),this.handleScroll=this.handleScroll.bind(this),this.donePicking=this.donePicking.bind(this),this.render=this.render.bind(this),this.defaultState={isInputMode:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",currentSelection:[],searchTerm:null},this.plugin.setPluginState(this.defaultState)}tearDown(){}resetPluginState(){this.plugin.setPluginState(this.defaultState)}async search(e){const{searchTerm:t}=this.plugin.getPluginState();if(!e||e!==t){this.setLoading(!0);try{const t=await this.provider.search(e);Kh(this,Zh)[Zh](t,[])}catch(i){this.handleError(i)}finally{this.setLoading(!1)}}}clearSearch(){this.plugin.setPluginState({currentSelection:[],files:[],searchTerm:null})}async handleScroll(e){const t=this.nextPageQuery||null;if(this.shouldHandleScroll(e)&&t){this.isHandlingScroll=!0;try{const{files:e,searchTerm:i}=this.plugin.getPluginState(),n=await this.provider.search(i,t);Kh(this,Zh)[Zh](n,e)}catch(_c){this.handleError(_c)}finally{this.isHandlingScroll=!1}}}donePicking(){const{currentSelection:e}=this.plugin.getPluginState();this.plugin.uppy.log("Adding remote search provider files"),this.plugin.uppy.addFiles(e.map((e=>this.getTagFile(e)))),this.resetPluginState()}render(e,t){var i=this;void 0===t&&(t={});const{didFirstRender:n,isInputMode:a,searchTerm:o}=this.plugin.getPluginState(),{i18n:s}=this.plugin.uppy;n||this.preFirstRender();const r={...this.opts,...t},{files:l,folders:c,filterInput:p,loading:u,currentSelection:d}=this.plugin.getPluginState(),{isChecked:h,toggleCheckbox:m,filterItems:f,recordShiftKeyPress:g}=this,v=""!==p,b={isChecked:h,toggleCheckbox:m,recordShiftKeyPress:g,currentSelection:d,files:v?f(l):l,folders:v?f(c):c,handleScroll:this.handleScroll,done:this.donePicking,cancel:this.cancelPicking,showSearchFilter:r.showFilter,search:this.search,clearSearch:this.clearSearch,searchTerm:o,searchOnInput:!1,searchInputLabel:s("search"),clearSearchLabel:s("resetSearch"),noResultsLabel:s("noSearchResults"),title:this.plugin.title,viewType:r.viewType,showTitles:r.showTitles,showFilter:r.showFilter,isLoading:u,showBreadcrumbs:r.showBreadcrumbs,pluginIcon:this.plugin.icon,i18n:s,uppyFiles:this.plugin.uppy.getFiles(),validateRestrictions:function(){return i.plugin.uppy.validateRestrictions(...arguments)}};return a?(0,Le.h)(Eh,{onUnmount:this.resetPluginState},(0,Le.h)("div",{className:"uppy-SearchProvider"},(0,Le.h)(gh,{search:this.search,clearSelection:this.clearSelection,inputLabel:s("enterTextToSearch"),buttonLabel:s("searchImages"),inputClassName:"uppy-c-textInput uppy-SearchProvider-input",buttonCSSClassName:"uppy-SearchProvider-searchButton",showButton:!0}))):(0,Le.h)(Eh,{onUnmount:this.resetPluginState},(0,Le.h)(Th,b))}}).VERSION="3.6.0";const Qh={data:[],files:[],pageSize:16,page:1,loading:!1,hasMore:!0,folderId:""},$h={authenticated:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[],loading:!0,loadAllFiles:!0};const em=class extends Ze{constructor(e,t){super(e,t),(0,Od.Z)(this,"queryUploadedFromMediaKit",(async()=>{const{pageSize:e,page:t,files:i,hasMore:n,loading:a}=this.uploadedAPIData;if(n&&!a){var o,s;this.uploadedAPIData.loading=!0,this.uploadedAPIData.page+=1;const n=window.uploaderComponentId||((null===(o=window)||void 0===o||null===(s=o.blocklet)||void 0===s?void 0:s.componentId)||"").split("/").pop(),{data:a}=await Td.hi.get("/api/uploads",{params:{page:t,pageSize:e,folderId:n,...this.params},headers:{"x-component-did":n}});this.uploadedAPIData.loading=!1,this.uploadedAPIData.hasMore=this.uploadedAPIData.page<=a.pageCount,this.uploadedAPIData.files=bd()([...i,...a.uploads.map((e=>{let t="file";const{filename:i,_id:n,originalname:a}=e,o=(0,Td.oQ)(i);return t=(0,Td.oQ)(i,400),{...e,id:n,name:a,icon:t,previewUrl:t,fileUrl:o}}))],"_id"),this.uploaded.setPluginState({files:this.uploadedAPIData.files,loading:!1}),this.canConvertImgToObject=!0}})),(0,Od.Z)(this,"addUploadItem",cr()((()=>{if(this.addUploadItemFlag){const e=document.querySelector("#uploaded .uppy-ProviderBrowser-list");if(e){const t=document.createElement("li");t.className="uppy-ProviderBrowserItem",t.innerHTML='\n <div class="uppy-ProviderBrowserItem-inner uploaded-add-item">\n <svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/></svg>\n </div>\n ',t.addEventListener("click",(async()=>{await this.uppy.openPlugin("My Device")})),e.insertBefore(t,e.firstChild),this.addUploadItemFlag=!1}}}),{wait:200})),(0,Od.Z)(this,"convertImgToObject",cr()((()=>{if(this.canConvertImgToObject){document.querySelectorAll("#uploaded img").forEach((e=>{if([".mp4",".webm"].find((t=>{var i;return(null===(i=e.src)||void 0===i?void 0:i.indexOf(t))>-1}))){const t=document.createElement("video");t.src=e.src,t.width=e.width,t.height=e.height,t.autoplay=!0,t.muted=!0,t.loop=!0,t.style="pointer-events: none;",e.parentNode.replaceChild(t,e)}})),this.canConvertImgToObject=!1}}),{wait:200})),(0,Od.Z)(this,"resetState",(()=>{this.uploadedAPIData={...Qh},this.uploaded.setPluginState({...$h}),this.addUploadItemFlag=!0})),this.id=this.opts.id||"Uploaded",this.title=this.opts.title||"Uploaded",this.params=this.opts.params||{},this.type="acquirer",this.uppy=e,this.uploadedAPIData={...Qh},this.addUploadItemFlag=!0,this.icon=()=>Dd("svg",{"aria-hidden":"true",focusable:"false",width:"18",height:"18",viewBox:"0 0 1024 1024",children:[Dd("path",{d:"M145.6 0c-44.8 0-80 36.8-80 81.6V944c0 44.8 35.2 80 80 80h732.8c44.8 0 81.6-35.2 81.6-80V326.4L657.6 0h-512z",fill:"#49C9A7"}),Dd("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-108.8c0 0 4.8 92.8 97.6 92.8H960z",fill:"#49C9A7"}),Dd("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#37BB91"}),Dd("path",{d:"M225.6 859.2V524.8H560v334.4H225.6z m300.8-300.8H259.2v201.6h267.2V558.4z m-153.6 134.4l62.4-84.8 20.8 33.6 20.8-6.4 16 89.6H283.2l56-52.8 33.6 20.8z m-60.8-59.2c-14.4 0-27.2-9.6-27.2-24 0-12.8 12.8-24 27.2-24 14.4 0 25.6 11.2 25.6 24 0 14.4-11.2 24-25.6 24z",fill:"#FFFFFF"})]})}render(e){var t;return this.uploadedAPIData.loading||0!==(null===(t=this.uploadedAPIData.files)||void 0===t?void 0:t.length)||this.queryUploadedFromMediaKit(),Dd("div",{id:"uploaded",className:"uploaded",children:this.view.render(e)})}update(){this.convertImgToObject(),this.addUploadItem()}onFirstRender(){}install(){this.view=new qh(this,{viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.uploaded=this.view.plugin,this.uploaded.setPluginState({...$h}),this.uploaded.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(e,t)=>{const{currentSelection:i}=this.uploaded.getPluginState(),n=this.uploaded.uppy.opts.restrictions.maxNumberOfFiles,a=!n||i.length<n;i.find((e=>e._id===t._id))?this.uploaded.setPluginState({currentSelection:[...i.filter((e=>e._id!==t._id))]}):(a||i.pop(),this.uploaded.setPluginState({currentSelection:[...i,t]}))},this.view.donePicking=()=>{const{currentSelection:e}=this.uploaded.getPluginState();this.uppy.emit("uploaded:selected",e),this.uploaded.parent.hideAllPanels()},this.uploaded.uppy.validateRestrictions=()=>!1,this.view.handleScroll=e=>{const{scrollHeight:t,scrollTop:i,offsetHeight:n}=e.target;t-(i+n)<30&&this.queryUploadedFromMediaKit()};const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount(),this.uploaded.uppy.off("dashboard:show-panel",this.resetState)}};var tm=i(2078),im=i.n(tm);const nm={initialized:!1,data:[],files:[],pageSize:16,page:1,loading:!1,hasMore:!0,folderId:"",componentDid:"",components:[]},am={authenticated:!0,files:[],folders:[],breadcrumbs:[],filterInput:"",isSearchVisible:!1,currentSelection:[],loading:!0,loadAllFiles:!0},om={padding:"5px 15px",marginRight:"8px",marginTop:"8px",borderRadius:"4px",cursor:"pointer",border:"1px solid rgb(29, 193, 199)",color:"rgb(29, 193, 199)",backgroundColor:"transparent",fontSize:"14px",lineHeight:"24.5px",fontWeight:"bold"},sm={...om,color:"#fff",backgroundColor:"rgb(29, 193, 199)"};const rm=class extends Ze{constructor(e,t){super(e,t),(0,Od.Z)(this,"queryResources",(async()=>{if(!this.apiData.loading){this.apiData.loading=!0;const{data:e}=await Td.hi.get("/api/resources",{params:{componentDid:this.apiData.componentDid}});this.apiData.loading=!1,this.apiData.initialized=!0,this.apiData.components=e.components||[],this.apiData.componentDid=e.componentDid||"",this.apiData.files=bd()([...e.resources.map((e=>{let t="file";const{filename:i}=e,n=(0,Td.oQ)(i);return t=(0,Td.oQ)(i,400),{filename:i,_id:i,id:i,name:i,icon:t,previewUrl:t,fileUrl:n}}))],"id"),this.resources.setPluginState({files:this.apiData.files,loading:!1})}})),(0,Od.Z)(this,"resetState",(()=>{this.apiData={...nm},this.resources.setPluginState({...am})})),this.id=this.opts.id||"Resources",this.title=this.opts.title||"Resources",this.params=this.opts.params||{},this.type="acquirer",this.uppy=e,this.componentDid="",this.apiData={...nm},this.icon=()=>Dd("svg",{t:"1700146012231",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15673",width:"200",height:"200",children:[Dd("path",{d:"M403.2 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-187.733333c0-49.066667-38.4-85.333333-85.333333-85.333334zM426.666667 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-21.333333 0-38.4-17.066667-38.4-36.266667v-162.133333c0-19.2 17.066667-36.266667 36.266667-36.266667h160c19.2 0 36.266667 17.066667 36.266666 36.266667v162.133333z",fill:"#0171F1","p-id":"15674"}),Dd("path",{d:"M808.533333 130.133333h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333334v187.733333c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-187.733333c0-49.066667-36.266667-85.333333-85.333334-85.333334zM832 390.4c0 19.2-17.066667 36.266667-36.266667 36.266667h-160c-19.2 0-36.266667-17.066667-36.266666-36.266667v-162.133333c-2.133333-19.2 14.933333-36.266667 34.133333-36.266667h160c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333zM403.2 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333334 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333334 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333333-85.333333v-189.866667c0-46.933333-38.4-85.333333-85.333333-85.333333zM426.666667 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-21.333333 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c19.2 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#55ABE5","p-id":"15675"}),Dd("path",{d:"M808.533333 535.466667h-187.733333c-46.933333 0-85.333333 38.4-85.333333 85.333333V810.666667c0 46.933333 38.4 85.333333 85.333333 85.333333h187.733333c46.933333 0 85.333333-38.4 85.333334-85.333333v-189.866667c0-46.933333-36.266667-85.333333-85.333334-85.333333zM832 795.733333c0 21.333333-17.066667 36.266667-36.266667 36.266667h-162.133333c-19.2 0-36.266667-17.066667-36.266667-36.266667v-162.133333c0-21.333333 17.066667-36.266667 36.266667-36.266667h162.133333c21.333333 0 36.266667 17.066667 36.266667 36.266667v162.133333z",fill:"#0171F1","p-id":"15676"})]})}render(e){return this.apiData.loading||this.apiData.initialized||this.queryResources(),Dd("div",{id:"resources",className:"uploaded",children:[Dd("div",{style:{padding:this.apiData.components.length?"12px":"0",backgroundColor:"#fff",display:"flex",flexWrap:"wrap",marginTop:"-8px"},children:this.apiData.components.map((e=>Dd("button",{style:this.apiData.componentDid===e.did?sm:om,id:e.componentDid,onClick:()=>{this.apiData.componentDid!==e.did&&(this.apiData.componentDid=e.did,this.queryResources())},children:im()(e.name)})))}),this.view.render(e)]})}update(){}onFirstRender(){}install(){this.view=new qh(this,{viewType:"grid",showBreadcrumbs:!1,showFilter:!1}),this.resources=this.view.plugin,this.resources.setPluginState({...am}),this.resources.uppy.on("dashboard:show-panel",this.resetState),this.view.toggleCheckbox=(e,t)=>{const{currentSelection:i}=this.resources.getPluginState(),n=this.resources.uppy.opts.restrictions.maxNumberOfFiles,a=!n||i.length<n;i.find((e=>e.id===t.id))?this.resources.setPluginState({currentSelection:[...i.filter((e=>e.id!==t.id))]}):(a||i.pop(),this.resources.setPluginState({currentSelection:[...i,t]}))},this.resources.uppy.validateRestrictions=()=>!1,this.view.donePicking=()=>{const{currentSelection:e}=this.resources.getPluginState();this.uppy.emit("uploaded:selected",e),this.resources.parent.hideAllPanels()};const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount(),this.resources.uppy.off("dashboard:show-panel",this.resetState)}};var lm=i(59340);const cm=class extends Ze{constructor(e,t){super(e,{...t}),(0,Od.Z)(this,"setHashFileName",(async e=>{const{id:t}=e,i=this.uppy.getFile(t);if(i){const{data:e}=i,n=5242880,a=e.slice(0,n),o=lm.createHash("md5").update(await a.text()).digest("hex"),s=(0,Td.r6)(i),r="".concat(o).concat(s?".".concat(s):"");this.uppy.setFileState(t,{hashFileName:r})}})),(0,Od.Z)(this,"setMetaData",(async e=>{const{id:t}=e,i=this.uppy.getFile(t);if(i){const{data:{relativePath:e,name:n},hashFileName:a}=i,o=e||n||a;this.uppy.setFileMeta(t,{relativePath:o,name:o})}})),(0,Od.Z)(this,"prepareUploadWrapper",(async e=>{await this.tryDownloadRemoteFile(e),await this.getPreviewFromData(e),await this.setHashFileName(e),await this.setMetaData(e)})),(0,Od.Z)(this,"tryDownloadRemoteFile",(async e=>{var t;const{type:i,name:n,preview:a,source:o,isRemote:s,isDownloading:r,id:l,isLoading:c,remote:p,meta:u,errorCount:d=0}=e,h=!c&&s,m="uploader:".concat(l,":downloaded"),f=(0,Td.r6)(e),g=null===n||void 0===n||null===(t=n.split("?"))||void 0===t?void 0:t[0],v=(()=>{const e=["jpg","jpeg"];return!(!e.includes(f)||!e.some((e=>null===g||void 0===g?void 0:g.endsWith(e))))||(null===g||void 0===g?void 0:g.endsWith(f))})()?g:"".concat(g).concat(f?".".concat(f):"");if(h){var b;const e=(0,Td.km)(a||(null===p||void 0===p||null===(b=p.body)||void 0===b?void 0:b.url));if(d>=3)throw new Error("Download remote file failure");this.uppy.setFileState(l,{isLoading:!0,isDownloading:!0,size:null,meta:{...u,name:this.i18n("loading")}}),await Td.hi.get("".concat(this.opts.companionUrl,"/proxy"),{responseType:"blob",params:{url:e}}).then((e=>null===e||void 0===e?void 0:e.data)).then((async e=>{const t=(0,Td.hl)(e,v);this.uppy.setFileState(l,{name:v,extension:f,type:i,data:t,preview:a||(0,Td.Uu)(t),source:o,size:t.size,isDownloading:!1,isRemote:!1,meta:{...u,name:v,filename:v}});this.uppy.getFile(l);this.uppy.emit(m,l)})).catch((async e=>{console.error("Axios download remote file error: ",e),this.uppy.setFileState(l,{isRemote:!0,isLoading:!1,errorCount:d+1}),await this.tryDownloadRemoteFile(this.uppy.getFile(l))}))}else if(r){const e=async()=>new Promise((e=>{this.uppy.once(m,(async()=>{e()}))}));await e()}})),(0,Od.Z)(this,"getPreviewFromData",(e=>{const{id:t}=e,i=this.uppy.getFile(t);if(i){const{data:e,type:n,preview:a}=i;(n.indexOf("gif")>-1||!a)&&e&&n.indexOf("image")>-1&&setTimeout((()=>{this.uppy.setFileState(t,{preview:(0,Td.Uu)(e)})}),n.indexOf("gif")>-1?1e3:0)}})),(0,Od.Z)(this,"prepareUpload",(e=>{const t=e.map((async e=>{const t=this.uppy.getFile(e);t.isDownloading&&this.uppy.emit("preprocess-progress",t,{mode:"indeterminate",message:this.i18n("loading")}),await this.prepareUploadWrapper(t)}));return Promise.all(t).then((()=>{e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("preprocess-complete",t)}))}))})),this.id=this.opts.id||"DownloadRemoteFiles",this.type="modifier",this.i18nInit()}install(){this.uppy.addPreProcessor(this.prepareUpload),this.uppy.on("file-added",(async e=>{setTimeout((()=>{this.prepareUploadWrapper(e)}),200)})),this.uppy.on("file-editor:complete",(e=>{this.getPreviewFromData(e)}))}uninstall(){this.uppy.removePreProcessor(this.prepareUpload)}};const pm=class extends Ze{constructor(e,t){super(e,t),this.id=this.opts.id||"AIImage",this.title=this.opts.title||"AI Image",this.type="acquirer",this.uppy=e,this.i18nInit(),this.icon=()=>Dd("svg",{width:"20",height:"20",viewBox:"0 0 24 24",children:Dd("g",{fill:"none",stroke:"#a482fe","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",children:[Dd("path",{d:"M15 8h.01M10 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5"}),Dd("path",{d:"m3 16l5-5c.928-.893 2.072-.893 3 0l1 1m2 9v-4a2 2 0 1 1 4 0v4m-4-2h4m3-4v6"})]})})}render(){return Dd("div",{id:"ai-image",className:"ai-image",children:Dd("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:this.i18n("loading")})})}update(){}onFirstRender(){}install(){const{target:e}=this.opts;e&&this.mount(e,this)}uninstall(){this.unmount()}},um=(0,c.lazy)((()=>Promise.all([i.e(2362),i.e(4930)]).then(i.bind(i,64930)))),dm="uploader-container",hm="uploader-dashboard",mm=localStorage.getItem("uppy_debug");function fm(e){const{id:t,plugins:i,locale:n,onAfterResponse:a,onUploadFinish:o,coreProps:r,apiPathProps:l,tusProps:c,dropTargetProps:p,pluginList:u}=e,d=s()(u,"id"),h=(0,Td.iB)(null===l||void 0===l?void 0:l.uploader);let m=new Me({id:t,meta:{uploaderId:t},debug:["true",!0].includes(mm||""),locale:Vu[n||"en"],...r}).use(ju,{chunkSize:10485760,removeFingerprintOnSuccess:!0,withCredentials:!0,endpoint:h,async onBeforeRequest(e,t){var i,n,a;const{hashFileName:o,id:s,meta:r}=t,l=(0,Td.r6)(t);e.setHeader("x-uploader-file-name","".concat(o)),e.setHeader("x-uploader-file-id","".concat(s)),e.setHeader("x-uploader-file-ext","".concat(l)),e.setHeader("x-uploader-base-url",new URL(e.getURL()).pathname),e.setHeader("x-uploader-endpoint-url",h),e.setHeader("x-uploader-metadata",JSON.stringify(r,((e,t)=>"string"===typeof t?encodeURIComponent(t):t)));const c=(null===(i=window)||void 0===i?void 0:i.uploaderComponentId)||(null===(n=window)||void 0===n||null===(a=n.blocklet)||void 0===a?void 0:a.componentId);c&&e.setHeader("x-component-did",(c||"").split("/").pop())},onAfterResponse:async(e,t)=>{const i={},n=e.getUnderlyingObject();try{n.response&&(i.data=JSON.parse(n.response))}catch(_c){i.data={}}i.method=e.getMethod().toUpperCase(),i.url=e.getURL(),i.status=n.status,i.headers={...e._headers};const s=n.getAllResponseHeaders();if(s){s.split("\r\n").forEach((e=>{const[t,n]=e.split(": ");t&&n&&(i.headers[t]=n)}))}if(["PATCH","POST"].includes(i.method)&&[200,500].includes(i.status)){const e=[!0,"true"].includes(i.headers["x-uploader-file-exist"]),t=(0,Td.Gr)(i.url,i.headers["x-uploader-file-name"]),n=m.getFile(i.headers["x-uploader-file-id"]);i.file=n,i.uploadURL=t,e&&n&&("POST"===i.method&&m.pauseResume(n.id),m.emit("upload-success",n,{uploadURL:t}),m.calculateTotalProgress()),200===i.status&&(await(null===o||void 0===o?void 0:o(i)),m.emitUploadSuccess(n,i))}a&&await(null===a||void 0===a?void 0:a(n));const r=100===m.getState().totalProgress,l=m.getFiles().every((e=>"DropTarget"===e.source));r&&l&&m.close()},...c});return p&&m.use(Ll,{target:document.body,onDrop:e=>{var t;null===m||void 0===m||null===(t=m.open)||void 0===t||t.call(m)},...p}),null===i||void 0===i||i.forEach((e=>{if(e){const{plugin:t,options:i}=d[e]||{};t&&m.use(t,i)}})),(0,Td.vi)(m),m}const gm=(0,c.forwardRef)(((e,t)=>{const i={uploader:"/api/uploads",companion:"/api/companion",disableMediaKitPrefix:!1,...null===e||void 0===e?void 0:e.apiPathProps},n=(0,r.Z)({open:!1,uppy:null,availablePluginMap:{}}),o=(e=>{var t,i,n;const{apiPathProps:o,availablePluginMap:s={},uploadedProps:r}=e,c=(0,Td.iB)(null===o||void 0===o?void 0:o.companion),p=async e=>(await Td.hi.post("/api/image/generations",e)).data,u={maxFileSize:1/0,...null===e||void 0===e||null===(t=e.coreProps)||void 0===t?void 0:t.restrictions};return[{id:"ImageEditor",plugin:Jl,options:{quality:1},alwayUse:!0},(mm||(0,Td.oE)()&&!(0,Td.bp)())&&{id:"Uploaded",plugin:em,options:{params:null===r||void 0===r?void 0:r.params}},(mm||(0,Td.oE)()&&!(0,Td.bp)())&&{id:"Resources",plugin:rm,options:{params:null===r||void 0===r?void 0:r.params}},(0,Td.oE)()&&(0,Td.lz)()&&s.AIImage&&{id:"AIImage",plugin:pm,options:{companionUrl:c},onShowPanel:e=>{!function t(){setTimeout((()=>{const i=document.getElementById("ai-image");var n,o;i?(0,l.s)(i).render((0,a.jsx)(um,{api:p,restrictions:u,i18n:null===(n=e.current)||void 0===n||null===(o=n.getUploader())||void 0===o?void 0:o.i18n,onSelect:t=>{const i=e.current.getUploader();null===i||void 0===i||i.emit("ai-image:selected",t),t.forEach(((e,t)=>{const n="AI Image [".concat(t+1,"].png"),a={name:n,type:"image/png",data:(0,Td.Ll)(e,n),source:"AIImage",isRemote:!1};null===i||void 0===i||i.addFile(a)}))}})):t()}),100)}()}},{id:"Url",plugin:ki,options:{companionUrl:c}},{id:"Webcam",plugin:wt,options:{}},!(null===(i=window)||void 0===i||null===(n=i.blocklet)||void 0===n||!n.UNSPLASH_KEY)&&s.Unsplash&&{id:"Unsplash",plugin:Ua,options:{companionUrl:c,companionHeaders:{},companionCookiesRule:"same-origin"}},{id:"PrepareUpload",plugin:cm,options:{companionUrl:c},alwayUse:!0},{id:"ThumbnailGeneratorNext",plugin:Js,options:{thumbnailType:"image/png",thumbnailWidth:800},alwayUse:!0}].filter(Boolean)})({...e,apiPathProps:i,availablePluginMap:n.availablePluginMap}),{plugins:g=o.map((e=>e.id)),id:v="Uploader",popup:b=!1,uploadedProps:y,onOpen:x,onClose:w,locale:P,installerProps:S}=e,k=s()(o,"id"),_=(0,m.Z)((e=>{var t;return null===e||void 0===e||null===(t=e.breakpoints)||void 0===t?void 0:t.down("md")})),C=ja()([...g,...o.filter((e=>e.alwayUse)).map((e=>e.id))]);function F(e){if(e=e.replace(/\s/g,""),["MyDevice",...C].map((e=>e.toLowerCase())).includes(e.toLowerCase())){var t,i,n,a;let o='div[data-uppy-acquirer-id="'.concat(e,'"] > button');null===(t=document)||void 0===t||null===(i=t.getElementById(hm))||void 0===i||null===(n=i.querySelector(o))||void 0===n||null===(a=n.click)||void 0===a||a.call(n)}}function T(e){var t,i,a,o;n.open=!0,e&&setTimeout((()=>{F(e)}),200),n.uppy.emitOpen(),null===x||void 0===x||x(),null===(t=document.activeElement)||void 0===t||null===(i=t.blur)||void 0===i||i.call(t);const s=n.uppy.getPlugin(hm).el;null===s||void 0===s||null===(a=s.focus)||void 0===a||a.call(s),null===s||void 0===s||null===(o=s.click)||void 0===o||o.call(s)}function O(){var e;null===(e=n.uppy.getPlugin(hm))||void 0===e||e.hideAllPanels(),n.open=!1,n.uppy.emitClose(),null===w||void 0===w||w(),setTimeout((()=>{100===n.uppy.getState().totalProgress&&(n.uppy.setState({files:{},currentUploads:{}}),n.uppy.calculateTotalProgress())}),500)}(0,c.useLayoutEffect)((()=>{(0,Td.oE)()&&!i.disableMediaKitPrefix&&Td.hi.get("/api/uploader/status").then((e=>{let{data:t}=e;n.availablePluginMap=t.availablePluginMap}))}),[]),(0,Aa.Z)("esc",(e=>{n.open&&(e.stopPropagation(),e.preventDefault(),O())}),{useCapture:!0}),(0,c.useEffect)((()=>{n.uppy=fm({...e,id:v,plugins:C,apiPathProps:i,pluginList:o}),n.uppy.open=T,n.uppy.close=O,n.uppy.openPlugin=F,n.uppy.on("dashboard:show-panel",(e=>{const{onShowPanel:i}=k[e];null===i||void 0===i||i(t)})),(C.includes("Uploaded")||C.includes("Resources"))&&(n.uppy.off("uploaded:selected"),n.uppy.on("uploaded:selected",(e=>{var t;e.forEach((e=>{n.uppy.emitUploadSuccess({id:e._id},{data:e,isMock:!0})})),null===y||void 0===y||null===(t=y.onSelectedFiles)||void 0===t||t.call(y,e),O()})))}),[JSON.stringify({id:v,plugins:C,apiPathProps:i,locale:P})]),(0,c.useImperativeHandle)(t,(()=>({getUploader:()=>n.uppy,open:T,close:O}))),(0,c.useEffect)((()=>{(0,Td.ac)(i.disableMediaKitPrefix)}),[i.disableMediaKitPrefix]);const E=b?p.Z:c.Fragment,D=b?{sx:{zIndex:99999999999,background:"rgba(0,0,0,0.5)","& > *":{display:n.open?"block":"none"}},invisible:!0,open:n.open,onClick:e=>{document.activeElement===document.body&&(e.stopPropagation(),O())},...e.wrapperProps}:{...e.wrapperProps},R=_?"42px":"40px";return(0,a.jsx)(E,{...D,children:(0,a.jsxs)(dd,{onClose:O,did:"z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9",...S,children:[(0,a.jsx)(u.Z,{styles:()=>({".uppy-is-drag-over":{"&::after":{transition:"all 0.3s ease-in-out",border:"2px dashed #bbb !important",borderRadius:4,background:"rgba(234, 234, 234, 0.5)"}}})}),(0,a.jsxs)(h.Z,{id:dm,onClick:e=>e.stopPropagation(),sx:{position:"relative",width:_?"90vw":720,".uppy-Dashboard-Item-previewInnerWrap, .uppy-ProviderBrowserItem-inner img":{background:"repeating-conic-gradient(#bdbdbd33 0 25%,#fff 0 50%) 50%/16px 16px !important"},".uploaded-add-item":{background:"rgba(0,0,0,0.1)",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s ease-in-out","&:hover":{background:"rgba(0,0,0,0.13)"}},".uppy-StatusBar-actions, .uppy-ProviderBrowser-footer":{justifyContent:"flex-end"},".uppy-ProviderBrowser-footer":{button:{marginRight:"0 !important","&:last-child":{display:"none"}}},".uppy-Dashboard-AddFiles-title":{whiteSpace:"normal"},".uppy-ProviderBrowser-body":{background:"#fff",height:"100%"},".uppy-ProviderBrowser-list":{height:"fit-content",maxHeight:"100%"},".uploaded, .ai-image":{width:"100%",height:"100%",display:"flex",alignItems:"center",flexDirection:"column","& > div":{width:"100%"},"& .uppy-ProviderBrowser-header":{display:"none"}},"& .uppy-Url":{width:"100% !important",display:"flex",justifyContent:"center","& input":{width:"70%"}}},children:[(0,a.jsx)(d.Z,{"aria-label":"close",onClick:O,sx:{color:"#fafafa",position:"absolute",..._?{bottom:"calc(0px - ".concat(R," - 16px)"),left:"calc(50vw - ".concat(R," - 8px)")}:{right:"calc(0px - ".concat(R," - 16px)"),top:-12}},children:(0,a.jsx)(f,{sx:{fontSize:R}})}),n.uppy&&(0,a.jsx)(Fl,{inline:!0,target:"#".concat(dm),id:hm,uppy:n.uppy,plugins:C,fileManagerSelectionType:"both",proudlyDisplayPoweredByUppy:!1,showProgressDetails:!0,disableThumbnailGenerator:!0,note:"",doneButtonHandler:O,...e.dashboardProps})]},"uploader-container")]})},"uploader-wrapper")})),vm=gm},98722:(e,t,i)=>{"use strict";i.d(t,{hi:()=>dt,Ll:()=>at,hl:()=>nt,oQ:()=>ft,lz:()=>st,km:()=>ot,r6:()=>it,oE:()=>rt,Uu:()=>tt,iB:()=>ht,Gr:()=>mt,vi:()=>yt,bp:()=>lt,ac:()=>ut});var n={};function a(e,t){return function(){return e.apply(t,arguments)}}i.r(n),i.d(n,{hasBrowserEnv:()=>ae,hasStandardBrowserEnv:()=>oe,hasStandardBrowserWebWorkerEnv:()=>re});const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,r=(l=Object.create(null),e=>{const t=o.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const c=e=>(e=e.toLowerCase(),t=>r(t)===e),p=e=>t=>typeof t===e,{isArray:u}=Array,d=p("undefined");const h=c("ArrayBuffer");const m=p("string"),f=p("function"),g=p("number"),v=e=>null!==e&&"object"===typeof e,b=e=>{if("object"!==r(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},y=c("Date"),x=c("File"),w=c("Blob"),P=c("FileList"),S=c("URLSearchParams");function k(e,t){let i,n,{allOwnKeys:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),u(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{const n=a?Object.getOwnPropertyNames(e):Object.keys(e),o=n.length;let s;for(i=0;i<o;i++)s=n[i],t.call(null,e[s],s,e)}}function _(e,t){t=t.toLowerCase();const i=Object.keys(e);let n,a=i.length;for(;a-- >0;)if(n=i[a],t===n.toLowerCase())return n;return null}const C="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,F=e=>!d(e)&&e!==C;const T=(O="undefined"!==typeof Uint8Array&&s(Uint8Array),e=>O&&e instanceof O);var O;const E=c("HTMLFormElement"),D=(e=>{let{hasOwnProperty:t}=e;return(e,i)=>t.call(e,i)})(Object.prototype),R=c("RegExp"),U=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),n={};k(i,((i,a)=>{let o;!1!==(o=t(i,a,e))&&(n[a]=o||i)})),Object.defineProperties(e,n)},I="abcdefghijklmnopqrstuvwxyz",j="0123456789",A={DIGIT:j,ALPHA:I,ALPHA_DIGIT:I+I.toUpperCase()+j};const N=c("AsyncFunction"),B={isArray:u,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=r(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:v,isPlainObject:b,isUndefined:d,isDate:y,isFile:x,isBlob:w,isRegExp:R,isFunction:f,isStream:e=>v(e)&&f(e.pipe),isURLSearchParams:S,isTypedArray:T,isFileList:P,forEach:k,merge:function e(){const{caseless:t}=F(this)&&this||{},i={},n=(n,a)=>{const o=t&&_(i,a)||a;b(i[o])&&b(n)?i[o]=e(i[o],n):b(n)?i[o]=e({},n):u(n)?i[o]=n.slice():i[o]=n};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&k(arguments[a],n);return i},extend:function(e,t,i){let{allOwnKeys:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return k(t,((t,n)=>{i&&f(t)?e[n]=a(t,i):e[n]=t}),{allOwnKeys:n}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,n)=>{let a,o,r;const l={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)r=a[o],n&&!n(r,e,t)||l[r]||(t[r]=e[r],l[r]=!0);e=!1!==i&&s(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:c,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;const n=e.indexOf(t,i);return-1!==n&&n===i},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!g(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=i.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let i;const n=[];for(;null!==(i=e.exec(t));)n.push(i);return n},isHTMLForm:E,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:U,freezeMethods:e=>{U(e,((t,i)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=e[i];f(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},toObjectSet:(e,t)=>{const i={},n=e=>{e.forEach((e=>{i[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,i){return t.toUpperCase()+i})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:_,global:C,isContextDefined:F,ALPHABET:A,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.ALPHA_DIGIT,i="";const{length:n}=t;for(;e--;)i+=t[Math.random()*n|0];return i},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),i=(e,n)=>{if(v(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const a=u(e)?[]:{};return k(e,((e,t)=>{const o=i(e,n+1);!d(o)&&(a[t]=o)})),t[n]=void 0,a}}return e};return i(e,0)},isAsyncFn:N,isThenable:e=>e&&(v(e)||f(e))&&f(e.then)&&f(e.catch)};function M(e,t,i,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),a&&(this.response=a)}B.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const L=M.prototype,z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{z[e]={value:e}})),Object.defineProperties(M,z),Object.defineProperty(L,"isAxiosError",{value:!0}),M.from=(e,t,i,n,a,o)=>{const s=Object.create(L);return B.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),M.call(s,e.message,t,i,n,a),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const q=M;var H=i(55227).Buffer;function W(e){return B.isPlainObject(e)||B.isArray(e)}function V(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,i){return e?e.concat(t).map((function(e,t){return e=V(e),!i&&t?"["+e+"]":e})).join(i?".":""):t}const K=B.toFlatObject(B,{},null,(function(e){return/^is[A-Z]/.test(e)}));const X=function(e,t,i){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(i=B.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!B.isUndefined(t[e])}))).metaTokens,a=i.visitor||c,o=i.dots,s=i.indexes,r=(i.Blob||"undefined"!==typeof Blob&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(a))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(B.isDate(e))return e.toISOString();if(!r&&B.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(e)||B.isTypedArray(e)?r&&"function"===typeof Blob?new Blob([e]):H.from(e):e}function c(e,i,a){let r=e;if(e&&!a&&"object"===typeof e)if(B.endsWith(i,"{}"))i=n?i:i.slice(0,-2),e=JSON.stringify(e);else if(B.isArray(e)&&function(e){return B.isArray(e)&&!e.some(W)}(e)||(B.isFileList(e)||B.endsWith(i,"[]"))&&(r=B.toArray(e)))return i=V(i),r.forEach((function(e,n){!B.isUndefined(e)&&null!==e&&t.append(!0===s?G([i],n,o):null===s?i:i+"[]",l(e))})),!1;return!!W(e)||(t.append(G(a,i,o),l(e)),!1)}const p=[],u=Object.assign(K,{defaultVisitor:c,convertValue:l,isVisitable:W});if(!B.isObject(e))throw new TypeError("data must be an object");return function e(i,n){if(!B.isUndefined(i)){if(-1!==p.indexOf(i))throw Error("Circular reference detected in "+n.join("."));p.push(i),B.forEach(i,(function(i,o){!0===(!(B.isUndefined(i)||null===i)&&a.call(t,i,B.isString(o)?o.trim():o,n,u))&&e(i,n?n.concat(o):[o])})),p.pop()}}(e),t};function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Z(e,t){this._pairs=[],e&&X(e,this,t)}const J=Z.prototype;J.append=function(e,t){this._pairs.push([e,t])},J.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Q=Z;function $(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ee(e,t,i){if(!t)return e;const n=i&&i.encode||$,a=i&&i.serialize;let o;if(o=a?a(t,i):B.isURLSearchParams(t)?t.toString():new Q(t,i).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const te=class{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){B.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ae="undefined"!==typeof window&&"undefined"!==typeof document,oe=(se="undefined"!==typeof navigator&&navigator.product,ae&&["ReactNative","NativeScript","NS"].indexOf(se)<0);var se;const re="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,le={...n,...ne};const ce=function(e){function t(e,i,n,a){let o=e[a++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),r=a>=e.length;if(o=!o&&B.isArray(n)?n.length:o,r)return B.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!s;n[o]&&B.isObject(n[o])||(n[o]=[]);return t(e,i,n[o],a)&&B.isArray(n[o])&&(n[o]=function(e){const t={},i=Object.keys(e);let n;const a=i.length;let o;for(n=0;n<a;n++)o=i[n],t[o]=e[o];return t}(n[o])),!s}if(B.isFormData(e)&&B.isFunction(e.entries)){const i={};return B.forEachEntry(e,((e,n)=>{t(function(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,i,0)})),i}return null};const pe={transitional:ie,adapter:["xhr","http"],transformRequest:[function(e,t){const i=t.getContentType()||"",n=i.indexOf("application/json")>-1,a=B.isObject(e);a&&B.isHTMLForm(e)&&(e=new FormData(e));if(B.isFormData(e))return n?JSON.stringify(ce(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return X(e,new le.classes.URLSearchParams,Object.assign({visitor:function(e,t,i,n){return le.isNode&&B.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=B.isFileList(e))||i.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return X(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||n?(t.setContentType("application/json",!1),function(e,t,i){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(i||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pe.transitional,i=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&B.isString(e)&&(i&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(a){if(i){if("SyntaxError"===a.name)throw q.from(a,q.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],(e=>{pe.headers[e]={}}));const ue=pe,de=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),he=Symbol("internals");function me(e){return e&&String(e).trim().toLowerCase()}function fe(e){return!1===e||null==e?e:B.isArray(e)?e.map(fe):String(e)}function ge(e,t,i,n,a){return B.isFunction(n)?n.call(this,t,i):(a&&(t=i),B.isString(t)?B.isString(n)?-1!==t.indexOf(n):B.isRegExp(n)?n.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,i){const n=this;function a(e,t,i){const a=me(t);if(!a)throw new Error("header name must be a non-empty string");const o=B.findKey(n,a);(!o||void 0===n[o]||!0===i||void 0===i&&!1!==n[o])&&(n[o||t]=fe(e))}const o=(e,t)=>B.forEach(e,((e,i)=>a(e,i,t)));return B.isPlainObject(e)||e instanceof this.constructor?o(e,t):B.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let i,n,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),i=e.substring(0,a).trim().toLowerCase(),n=e.substring(a+1).trim(),!i||t[i]&&de[i]||("set-cookie"===i?t[i]?t[i].push(n):t[i]=[n]:t[i]=t[i]?t[i]+", "+n:n)})),t})(e),t):null!=e&&a(t,e,i),this}get(e,t){if(e=me(e)){const i=B.findKey(this,e);if(i){const e=this[i];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(e);)t[n[1]]=n[2];return t}(e);if(B.isFunction(t))return t.call(this,e,i);if(B.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=me(e)){const i=B.findKey(this,e);return!(!i||void 0===this[i]||t&&!ge(0,this[i],i,t))}return!1}delete(e,t){const i=this;let n=!1;function a(e){if(e=me(e)){const a=B.findKey(i,e);!a||t&&!ge(0,i[a],a,t)||(delete i[a],n=!0)}}return B.isArray(e)?e.forEach(a):a(e),n}clear(e){const t=Object.keys(this);let i=t.length,n=!1;for(;i--;){const a=t[i];e&&!ge(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}normalize(e){const t=this,i={};return B.forEach(this,((n,a)=>{const o=B.findKey(i,a);if(o)return t[o]=fe(n),void delete t[a];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,i)=>t.toUpperCase()+i))}(a):String(a).trim();s!==a&&delete t[a],t[s]=fe(n),i[s]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return B.forEach(this,((i,n)=>{null!=i&&!1!==i&&(t[n]=e&&B.isArray(i)?i.join(", "):i)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,i]=e;return t+": "+i})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[he]=this[he]={accessors:{}}).accessors,i=this.prototype;function n(e){const n=me(e);t[n]||(!function(e,t){const i=B.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+i,{value:function(e,i,a){return this[n].call(this,t,e,i,a)},configurable:!0})}))}(i,e),t[n]=!0)}return B.isArray(e)?e.forEach(n):n(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(ve.prototype,((e,t)=>{let{value:i}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>i,set(e){this[n]=e}}})),B.freezeMethods(ve);const be=ve;function ye(e,t){const i=this||ue,n=t||i,a=be.from(n.headers);let o=n.data;return B.forEach(e,(function(e){o=e.call(i,o,a.normalize(),t?t.status:void 0)})),a.normalize(),o}function xe(e){return!(!e||!e.__CANCEL__)}function we(e,t,i){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,i),this.name="CanceledError"}B.inherits(we,q,{__CANCEL__:!0});const Pe=we;const Se=le.hasStandardBrowserEnv?{write(e,t,i,n,a,o){const s=[e+"="+encodeURIComponent(t)];B.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),B.isString(n)&&s.push("path="+n),B.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ke(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _e=le.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let i;function n(i){let n=i;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return i=n(window.location.href),function(e){const t=B.isString(e)?n(e):e;return t.protocol===i.protocol&&t.host===i.host}}():function(){return!0};const Ce=function(e,t){e=e||10;const i=new Array(e),n=new Array(e);let a,o=0,s=0;return t=void 0!==t?t:1e3,function(r){const l=Date.now(),c=n[s];a||(a=l),i[o]=r,n[o]=l;let p=s,u=0;for(;p!==o;)u+=i[p++],p%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-a<t)return;const d=c&&l-c;return d?Math.round(1e3*u/d):void 0}};function Fe(e,t){let i=0;const n=Ce(50,250);return a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,r=o-i,l=n(r);i=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:r,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const Te={http:null,xhr:"undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,i){let n=e.data;const a=be.from(e.headers).normalize();let o,s,{responseType:r,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(B.isFormData(n))if(le.hasStandardBrowserEnv||le.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if(!1!==(s=a.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}let p=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",i=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+i))}const u=ke(e.baseURL,e.url);function d(){if(!p)return;const n=be.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());!function(e,t,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?t(new q("Request failed with status code "+i.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}((function(e){t(e),c()}),(function(e){i(e),c()}),{data:r&&"text"!==r&&"json"!==r?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}if(p.open(e.method.toUpperCase(),ee(u,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=d:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(d)},p.onabort=function(){p&&(i(new q("Request aborted",q.ECONNABORTED,e,p)),p=null)},p.onerror=function(){i(new q("Network Error",q.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||ie;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new q(t,n.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,p)),p=null},le.hasStandardBrowserEnv&&(l&&B.isFunction(l)&&(l=l(e)),l||!1!==l&&_e(u))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Se.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===n&&a.setContentType(null),"setRequestHeader"in p&&B.forEach(a.toJSON(),(function(e,t){p.setRequestHeader(t,e)})),B.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),r&&"json"!==r&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",Fe(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",Fe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{p&&(i(!t||t.type?new Pe(null,e,p):t),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);h&&-1===le.protocols.indexOf(h)?i(new q("Unsupported protocol "+h+":",q.ERR_BAD_REQUEST,e)):p.send(n||null)}))}};B.forEach(Te,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(i){}Object.defineProperty(e,"adapterName",{value:t})}}));const Oe=e=>"- ".concat(e),Ee=e=>B.isFunction(e)||null===e||!1===e,De=e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let i,n;const a={};for(let o=0;o<t;o++){let t;if(i=e[o],n=i,!Ee(i)&&(n=Te[(t=String(i)).toLowerCase()],void 0===n))throw new q("Unknown adapter '".concat(t,"'"));if(n)break;a[t||"#"+o]=n}if(!n){const e=Object.entries(a).map((e=>{let[t,i]=e;return"adapter ".concat(t," ")+(!1===i?"is not supported by the environment":"is not available in the build")}));let i=t?e.length>1?"since :\n"+e.map(Oe).join("\n"):" "+Oe(e[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n};function Re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function Ue(e){Re(e),e.headers=be.from(e.headers),e.data=ye.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return De(e.adapter||ue.adapter)(e).then((function(t){return Re(e),t.data=ye.call(e,e.transformResponse,t),t.headers=be.from(t.headers),t}),(function(t){return xe(t)||(Re(e),t&&t.response&&(t.response.data=ye.call(e,e.transformResponse,t.response),t.response.headers=be.from(t.response.headers))),Promise.reject(t)}))}const Ie=e=>e instanceof be?e.toJSON():e;function je(e,t){t=t||{};const i={};function n(e,t,i){return B.isPlainObject(e)&&B.isPlainObject(t)?B.merge.call({caseless:i},e,t):B.isPlainObject(t)?B.merge({},t):B.isArray(t)?t.slice():t}function a(e,t,i){return B.isUndefined(t)?B.isUndefined(e)?void 0:n(void 0,e,i):n(e,t,i)}function o(e,t){if(!B.isUndefined(t))return n(void 0,t)}function s(e,t){return B.isUndefined(t)?B.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function r(i,a,o){return o in t?n(i,a):o in e?n(void 0,i):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(e,t)=>a(Ie(e),Ie(t),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=l[n]||a,s=o(e[n],t[n],n);B.isUndefined(s)&&o!==r||(i[n]=s)})),i}const Ae="1.6.7",Ne={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ne[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));const Be={};Ne.transitional=function(e,t,i){function n(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(i?". "+i:"")}return(i,a,o)=>{if(!1===e)throw new q(n(a," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!Be[a]&&(Be[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,a,o)}};const Me={assertOptions:function(e,t,i){if("object"!==typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const o=n[a],s=t[o];if(s){const t=e[o],i=void 0===t||s(t,o,e);if(!0!==i)throw new q("option "+o+" must be "+i,q.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new q("Unknown option "+o,q.ERR_BAD_OPTION)}},validators:Ne},Le=Me.validators;class ze{constructor(e){this.defaults=e,this.interceptors={request:new te,response:new te}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";i.stack?t&&!String(i.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(i.stack+="\n"+t):i.stack=t}throw i}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=je(this.defaults,t);const{transitional:i,paramsSerializer:n,headers:a}=t;void 0!==i&&Me.assertOptions(i,{silentJSONParsing:Le.transitional(Le.boolean),forcedJSONParsing:Le.transitional(Le.boolean),clarifyTimeoutError:Le.transitional(Le.boolean)},!1),null!=n&&(B.isFunction(n)?t.paramsSerializer={serialize:n}:Me.assertOptions(n,{encode:Le.function,serialize:Le.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&B.merge(a.common,a[t.method]);a&&B.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=be.concat(o,a);const s=[];let r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let p,u=0;if(!r){const e=[Ue.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),p=e.length,c=Promise.resolve(t);u<p;)c=c.then(e[u++],e[u++]);return c}p=s.length;let d=t;for(u=0;u<p;){const e=s[u++],t=s[u++];try{d=e(d)}catch(h){t.call(this,h);break}}try{c=Ue.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,p=l.length;u<p;)c=c.then(l[u++],l[u++]);return c}getUri(e){return ee(ke((e=je(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}B.forEach(["delete","get","head","options"],(function(e){ze.prototype[e]=function(t,i){return this.request(je(i||{},{method:e,url:t,data:(i||{}).data}))}})),B.forEach(["post","put","patch"],(function(e){function t(t){return function(i,n,a){return this.request(je(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}ze.prototype[e]=t(),ze.prototype[e+"Form"]=t(!0)}));const qe=ze;class He{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const i=this;this.promise.then((e=>{if(!i._listeners)return;let t=i._listeners.length;for(;t-- >0;)i._listeners[t](e);i._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e((function(e,n,a){i.reason||(i.reason=new Pe(e,n,a),t(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new He((function(t){e=t})),cancel:e}}}const We=He;const Ve={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ve).forEach((e=>{let[t,i]=e;Ve[i]=t}));const Ge=Ve;const Ke=function e(t){const i=new qe(t),n=a(qe.prototype.request,i);return B.extend(n,qe.prototype,i,{allOwnKeys:!0}),B.extend(n,i,null,{allOwnKeys:!0}),n.create=function(i){return e(je(t,i))},n}(ue);Ke.Axios=qe,Ke.CanceledError=Pe,Ke.CancelToken=We,Ke.isCancel=xe,Ke.VERSION=Ae,Ke.toFormData=X,Ke.AxiosError=q,Ke.Cancel=Ke.CanceledError,Ke.all=function(e){return Promise.all(e)},Ke.spread=function(e){return function(t){return e.apply(null,t)}},Ke.isAxiosError=function(e){return B.isObject(e)&&!0===e.isAxiosError},Ke.mergeConfig=je,Ke.AxiosHeaders=be,Ke.formToJSON=e=>ce(B.isHTMLForm(e)?new FormData(e):e),Ke.getAdapter=De,Ke.HttpStatusCode=Ge,Ke.default=Ke;const Xe=Ke;var Ye,Ze,Je,Qe=i(6352),$e=i.n(Qe),et=i(80068);const tt=e=>{var t,i,n,a,o;let s=null;return e&&e instanceof Blob?(null!==(t=window)&&void 0!==t&&t.createObjectURL?s=window.createObjectURL(e):null!==(i=window)&&void 0!==i&&null!==(n=i.URL)&&void 0!==n&&n.createObjectURL?s=window.URL.createObjectURL(e):null!==(a=window)&&void 0!==a&&null!==(o=a.webkitURL)&&void 0!==o&&o.createObjectURL&&(s=window.webkitURL.createObjectURL(e)),s):null},it=e=>{const{type:t,name:i}=e;if(i.startsWith(".")&&!et.lookup(i))return!1;const n=et.lookup(i);return n?et.extension(n)||"":et.extension(t)};function nt(e,t){return new File([e],t,{type:e.type})}function at(e,t){var i;let n=e.split(","),a=null===(i=n[0].match(/:(.*?);/))||void 0===i?void 0:i[1],o=atob(n[1]),s=o.length,r=new Uint8Array(s);for(;s--;)r[s]=o.charCodeAt(s);return new File([r],t,{type:a})}function ot(e){const t=new URL(e);return t.searchParams.delete("w"),t.searchParams.delete("h"),t.searchParams.delete("q"),t.href}const st=()=>{var e,t,i;return null===(e=window)||void 0===e||null===(t=e.blocklet)||void 0===t||null===(i=t.componentMountPoints)||void 0===i?void 0:i.find((e=>"z8ia3xzq2tMq8CRHfaXj1BTYJyYnEcHbqP8cJ"===e.did))},rt=()=>{var e,t,i;return null===(e=window)||void 0===e||null===(t=e.blocklet)||void 0===t||null===(i=t.componentMountPoints)||void 0===i?void 0:i.find((e=>"z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9"===e.did))},lt=()=>{var e,t;return(null===(e=window)||void 0===e||null===(t=e.blocklet)||void 0===t?void 0:t.componentId.indexOf("z8ia1mAXo8ZE7ytGF36L5uBf9kD2kenhqFGp9"))>-1},ct=null===(Ye=rt())||void 0===Ye?void 0:Ye.mountPoint;let pt=ct||(null===(Ze=window)||void 0===Ze||null===(Je=Ze.blocklet)||void 0===Je?void 0:Je.prefix)||"/";const ut=e=>{var t,i;pt=(e?"":ct)||(null===(t=window)||void 0===t||null===(i=t.blocklet)||void 0===i?void 0:i.prefix)||"/"},dt=Xe.create();function ht(e){return $e()(window.location.origin,"/"===pt?"":pt,e||"")}function mt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];const n=t.filter(Boolean).map((e=>"/"===e?"":e));return $e()(...n)}function ft(e){var t;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{CDN_HOST:a=""}=(null===(t=window)||void 0===t?void 0:t.blocklet)||{},o=new URL(a||window.location.origin);o.pathname=$e()("/"===pt?"":pt,"/uploads/",e);const s=e.split(".").pop()||"";return["png","jpg","jpeg","webp"].includes(s)&&(i&&(o.searchParams.set("imageFilter","resize"),o.searchParams.set("w",i.toString())),n&&(o.searchParams.set("imageFilter","resize"),o.searchParams.set("h",n.toString()))),o.href}dt.interceptors.request.use((e=>(e.baseURL=pt||"/",e.timeout=2e5,e)),(e=>Promise.reject(e)));const gt="uploader-upload-success",vt="uploader-open",bt="uploader-close";function yt(e){return e.getUploadSuccessKey=e=>null!==e&&void 0!==e&&e.id?"".concat(gt,":").concat(e.id):gt,e.offUploadSuccess=t=>{e.off(e.getUploadSuccessKey(t))},e.uploadSuccessHandler=(t,i,n)=>{"function"===typeof t&&(i=t,t={});const a=e.getUploadSuccessKey(t);e.offUploadSuccess(t),n?e.once(a,((e,t)=>{i({file:e,response:t})})):e.on(a,((e,t)=>{i({file:e,response:t})}))},e.onceUploadSuccess=(t,i)=>{e.uploadSuccessHandler(t,i,!0)},e.onUploadSuccess=(t,i)=>{e.uploadSuccessHandler(t,i,!1)},e.emitUploadSuccess=(t,i)=>{const n=e.getUploadSuccessKey(t);e.emit(n,t,i)},e.uploadFile=async t=>new Promise(((i,n)=>{const{name:a,type:o}=t,s=e.addFile({name:a,type:o,data:t,source:"function-upload-file",isRemote:!1}),r=e.getFile(s);e.onceUploadSuccess(r,(t=>{e.removeFiles([s]),i(t)})),e.once("error",(t=>{e.offUploadSuccess(r),e.removeFiles([s]),n(t)})),e.upload()})),e.removeFiles=t=>{const{files:i,currentUploads:n}=e.getState(),a={...i},o={...n},s=Object.create(null);function r(e){return void 0===s[e]}t.forEach((e=>{i[e]&&(s[e]=i[e],delete a[e])})),Object.keys(o).forEach((t=>{const i=n[t].fileIDs.filter(r);if(0===i.length)return void delete o[t];const{capabilities:a}=e.getState();if(i.length!==n[t].fileIDs.length&&!a.individualCancellation)throw new Error("individualCancellation is disabled");o[t]={...n[t],fileIDs:i}}));const l={currentUploads:o,files:a};0===Object.keys(a).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),e.setState(l),e.calculateTotalProgress();const c=Object.keys(s);c.length>5?e.log("Removed ".concat(c.length," files")):e.log("Removed files: ".concat(c.join(", ")))},e.emitOpen=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];e.emit(vt,...i)},e.onOpen=t=>{e.off(vt),e.once(vt,t)},e.emitClose=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];e.emit(bt,...i)},e.onClose=t=>{e.off(bt),e.once(bt,t)},e.calculateTotalProgress=()=>{const t=e.getFiles(),i=t.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===i.length)return e.emit("progress",0),void e.setState({totalProgress:0});const n=i.filter((e=>null!=e.progress.bytesTotal)),a=i.filter((e=>null==e.progress.bytesTotal));if(0===n.length){const t=100*i.length,n=a.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/t*100);return void e.setState({totalProgress:o})}let o=n.reduce(((e,t)=>e+t.progress.bytesTotal),0);const s=o/n.length;o+=s*a.length;let r=0;n.forEach((e=>{r+=e.progress.bytesUploaded})),a.forEach((e=>{r+=s*(e.progress.percentage||0)/100}));const l=t.filter((e=>e.progress.uploadComplete)).length===t.length;let c=0===o?l?100:0:Math.round(r/o*100);c>100&&(c=100),e.setState({totalProgress:c}),e.emit("progress",c)},e}},93197:e=>{"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function a(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var r=new a(n,o||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],r]:e._events[l].push(r):(e._events[l]=r,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function r(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),r.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},r.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,o=n.length,s=new Array(o);a<o;a++)s[a]=n[a].fn;return s},r.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},r.prototype.emit=function(e,t,n,a,o,s){var r=i?i+e:e;if(!this._events[r])return!1;var l,c,p=this._events[r],u=arguments.length;if(p.fn){switch(p.once&&this.removeListener(e,p.fn,void 0,!0),u){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,t),!0;case 3:return p.fn.call(p.context,t,n),!0;case 4:return p.fn.call(p.context,t,n,a),!0;case 5:return p.fn.call(p.context,t,n,a,o),!0;case 6:return p.fn.call(p.context,t,n,a,o,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];p.fn.apply(p.context,l)}else{var d,h=p.length;for(c=0;c<h;c++)switch(p[c].once&&this.removeListener(e,p[c].fn,void 0,!0),u){case 1:p[c].fn.call(p[c].context);break;case 2:p[c].fn.call(p[c].context,t);break;case 3:p[c].fn.call(p[c].context,t,n);break;case 4:p[c].fn.call(p[c].context,t,n,a);break;default:if(!l)for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];p[c].fn.apply(p[c].context,l)}}return!0},r.prototype.on=function(e,t,i){return o(this,e,t,i,!1)},r.prototype.once=function(e,t,i){return o(this,e,t,i,!0)},r.prototype.removeListener=function(e,t,n,a){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var r=this._events[o];if(r.fn)r.fn!==t||a&&!r.once||n&&r.context!==n||s(this,o);else{for(var l=0,c=[],p=r.length;l<p;l++)(r[l].fn!==t||a&&!r[l].once||n&&r[l].context!==n)&&c.push(r[l]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},r.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=i,r.EventEmitter=r,e.exports=r},80422:e=>{"use strict";e.exports=function(e){if("number"!==typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got ".concat(typeof e));const t=e<0,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return"".concat((t?"-":"")+e," B");const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),i.length-1);e=Number(e/1024**n);const a=i[n];return e>=10||e%1===0?"".concat((t?"-":"")+e.toFixed(0)," ").concat(a):"".concat((t?"-":"")+e.toFixed(1)," ").concat(a)}},91428:e=>{"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function a(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var r=new a(n,o||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],r]:e._events[l].push(r):(e._events[l]=r,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function r(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),r.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},r.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,o=n.length,s=new Array(o);a<o;a++)s[a]=n[a].fn;return s},r.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},r.prototype.emit=function(e,t,n,a,o,s){var r=i?i+e:e;if(!this._events[r])return!1;var l,c,p=this._events[r],u=arguments.length;if(p.fn){switch(p.once&&this.removeListener(e,p.fn,void 0,!0),u){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,t),!0;case 3:return p.fn.call(p.context,t,n),!0;case 4:return p.fn.call(p.context,t,n,a),!0;case 5:return p.fn.call(p.context,t,n,a,o),!0;case 6:return p.fn.call(p.context,t,n,a,o,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];p.fn.apply(p.context,l)}else{var d,h=p.length;for(c=0;c<h;c++)switch(p[c].once&&this.removeListener(e,p[c].fn,void 0,!0),u){case 1:p[c].fn.call(p[c].context);break;case 2:p[c].fn.call(p[c].context,t);break;case 3:p[c].fn.call(p[c].context,t,n);break;case 4:p[c].fn.call(p[c].context,t,n,a);break;default:if(!l)for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];p[c].fn.apply(p[c].context,l)}}return!0},r.prototype.on=function(e,t,i){return o(this,e,t,i,!1)},r.prototype.once=function(e,t,i){return o(this,e,t,i,!0)},r.prototype.removeListener=function(e,t,n,a){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var r=this._events[o];if(r.fn)r.fn!==t||a&&!r.once||n&&r.context!==n||s(this,o);else{for(var l=0,c=[],p=r.length;l<p;l++)(r[l].fn!==t||a&&!r[l].once||n&&r[l].context!==n)&&c.push(r[l]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},r.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=i,r.EventEmitter=r,e.exports=r},76631:function(e){e.exports=function(){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e){return l(e)||c(e)||p(e)||d()}function l(e){if(Array.isArray(e))return u(e)}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e,t){if(e){if("string"===typeof e)return u(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h="undefined"!==typeof window&&"undefined"!==typeof window.document,m=h?window:{},f=!(!h||!m.document.documentElement)&&"ontouchstart"in m.document.documentElement,g=!!h&&"PointerEvent"in m,v="cropper",b="all",y="crop",x="move",w="zoom",P="e",S="w",k="s",_="n",C="ne",F="nw",T="se",O="sw",E="".concat(v,"-crop"),D="".concat(v,"-disabled"),R="".concat(v,"-hidden"),U="".concat(v,"-hide"),I="".concat(v,"-invisible"),j="".concat(v,"-modal"),A="".concat(v,"-move"),N="".concat(v,"Action"),B="".concat(v,"Preview"),M="crop",L="move",z="none",q="crop",H="cropend",W="cropmove",V="cropstart",G="dblclick",K=f?"touchstart":"mousedown",X=f?"touchmove":"mousemove",Y=f?"touchend touchcancel":"mouseup",Z=g?"pointerdown":K,J=g?"pointermove":X,Q=g?"pointerup pointercancel":Y,$="ready",ee="resize",te="wheel",ie="zoom",ne="image/jpeg",ae=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,oe=/^data:/,se=/^data:image\/jpeg;base64,/,re=/^img|canvas$/i,le={viewMode:0,dragMode:M,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},ce='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',pe=Number.isNaN||m.isNaN;function ue(e){return"number"===typeof e&&!pe(e)}var de=function(e){return e>0&&e<1/0};function he(e){return"undefined"===typeof e}function me(t){return"object"===e(t)&&null!==t}var fe=Object.prototype.hasOwnProperty;function ge(e){if(!me(e))return!1;try{var t=e.constructor,i=t.prototype;return t&&i&&fe.call(i,"isPrototypeOf")}catch(n){return!1}}function ve(e){return"function"===typeof e}var be=Array.prototype.slice;function ye(e){return Array.from?Array.from(e):be.call(e)}function xe(e,t){return e&&ve(t)&&(Array.isArray(e)||ue(e.length)?ye(e).forEach((function(i,n){t.call(e,i,n,e)})):me(e)&&Object.keys(e).forEach((function(i){t.call(e,e[i],i,e)}))),e}var we=Object.assign||function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return me(e)&&i.length>0&&i.forEach((function(t){me(t)&&Object.keys(t).forEach((function(i){e[i]=t[i]}))})),e},Pe=/\.\d*(?:0|9){12}\d*$/;function Se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return Pe.test(e)?Math.round(e*t)/t:e}var ke=/^width|height|left|top|marginLeft|marginTop$/;function _e(e,t){var i=e.style;xe(t,(function(e,t){ke.test(t)&&ue(e)&&(e="".concat(e,"px")),i[t]=e}))}function Ce(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function Fe(e,t){if(t)if(ue(e.length))xe(e,(function(e){Fe(e,t)}));else if(e.classList)e.classList.add(t);else{var i=e.className.trim();i?i.indexOf(t)<0&&(e.className="".concat(i," ").concat(t)):e.className=t}}function Te(e,t){t&&(ue(e.length)?xe(e,(function(e){Te(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Oe(e,t,i){t&&(ue(e.length)?xe(e,(function(e){Oe(e,t,i)})):i?Fe(e,t):Te(e,t))}var Ee=/([a-z\d])([A-Z])/g;function De(e){return e.replace(Ee,"$1-$2").toLowerCase()}function Re(e,t){return me(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(De(t)))}function Ue(e,t,i){me(i)?e[t]=i:e.dataset?e.dataset[t]=i:e.setAttribute("data-".concat(De(t)),i)}function Ie(e,t){if(me(e[t]))try{delete e[t]}catch(i){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(i){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(De(t)))}var je=/\s\s*/,Ae=function(){var e=!1;if(h){var t=!1,i=function(){},n=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});m.addEventListener("test",i,n),m.removeEventListener("test",i,n)}return e}();function Ne(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;t.trim().split(je).forEach((function(t){if(!Ae){var o=e.listeners;o&&o[t]&&o[t][i]&&(a=o[t][i],delete o[t][i],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,a,n)}))}function Be(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;t.trim().split(je).forEach((function(t){if(n.once&&!Ae){var o=e.listeners,s=void 0===o?{}:o;a=function(){delete s[t][i],e.removeEventListener(t,a,n);for(var o=arguments.length,r=new Array(o),l=0;l<o;l++)r[l]=arguments[l];i.apply(e,r)},s[t]||(s[t]={}),s[t][i]&&e.removeEventListener(t,s[t][i],n),s[t][i]=a,e.listeners=s}e.addEventListener(t,a,n)}))}function Me(e,t,i){var n;return ve(Event)&&ve(CustomEvent)?n=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,i),e.dispatchEvent(n)}function Le(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ze=m.location,qe=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function He(e){var t=e.match(qe);return null!==t&&(t[1]!==ze.protocol||t[2]!==ze.hostname||t[3]!==ze.port)}function We(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function Ve(e){var t=e.rotate,i=e.scaleX,n=e.scaleY,a=e.translateX,o=e.translateY,s=[];ue(a)&&0!==a&&s.push("translateX(".concat(a,"px)")),ue(o)&&0!==o&&s.push("translateY(".concat(o,"px)")),ue(t)&&0!==t&&s.push("rotate(".concat(t,"deg)")),ue(i)&&1!==i&&s.push("scaleX(".concat(i,")")),ue(n)&&1!==n&&s.push("scaleY(".concat(n,")"));var r=s.length?s.join(" "):"none";return{WebkitTransform:r,msTransform:r,transform:r}}function Ge(e){var t=s({},e),i=[];return xe(e,(function(e,n){delete t[n],xe(t,(function(t){var n=Math.abs(e.startX-t.startX),a=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),s=Math.abs(e.endY-t.endY),r=Math.sqrt(n*n+a*a),l=(Math.sqrt(o*o+s*s)-r)/r;i.push(l)}))})),i.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),i[0]}function Ke(e,t){var i=e.pageX,n=e.pageY,a={endX:i,endY:n};return t?a:s({startX:i,startY:n},a)}function Xe(e){var t=0,i=0,n=0;return xe(e,(function(e){var a=e.startX,o=e.startY;t+=a,i+=o,n+=1})),{pageX:t/=n,pageY:i/=n}}function Ye(e){var t=e.aspectRatio,i=e.height,n=e.width,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=de(n),s=de(i);if(o&&s){var r=i*t;"contain"===a&&r>n||"cover"===a&&r<n?i=n/t:n=i*t}else o?i=n/t:s&&(n=i*t);return{width:n,height:i}}function Ze(e){var t=e.width,i=e.height,n=e.degree;if(90===(n=Math.abs(n)%180))return{width:i,height:t};var a=n%90*Math.PI/180,o=Math.sin(a),s=Math.cos(a),r=t*s+i*o,l=t*o+i*s;return n>90?{width:l,height:r}:{width:r,height:l}}function Je(e,t,i,n){var a=t.aspectRatio,o=t.naturalWidth,s=t.naturalHeight,l=t.rotate,c=void 0===l?0:l,p=t.scaleX,u=void 0===p?1:p,d=t.scaleY,h=void 0===d?1:d,m=i.aspectRatio,f=i.naturalWidth,g=i.naturalHeight,v=n.fillColor,b=void 0===v?"transparent":v,y=n.imageSmoothingEnabled,x=void 0===y||y,w=n.imageSmoothingQuality,P=void 0===w?"low":w,S=n.maxWidth,k=void 0===S?1/0:S,_=n.maxHeight,C=void 0===_?1/0:_,F=n.minWidth,T=void 0===F?0:F,O=n.minHeight,E=void 0===O?0:O,D=document.createElement("canvas"),R=D.getContext("2d"),U=Ye({aspectRatio:m,width:k,height:C}),I=Ye({aspectRatio:m,width:T,height:E},"cover"),j=Math.min(U.width,Math.max(I.width,f)),A=Math.min(U.height,Math.max(I.height,g)),N=Ye({aspectRatio:a,width:k,height:C}),B=Ye({aspectRatio:a,width:T,height:E},"cover"),M=Math.min(N.width,Math.max(B.width,o)),L=Math.min(N.height,Math.max(B.height,s)),z=[-M/2,-L/2,M,L];return D.width=Se(j),D.height=Se(A),R.fillStyle=b,R.fillRect(0,0,j,A),R.save(),R.translate(j/2,A/2),R.rotate(c*Math.PI/180),R.scale(u,h),R.imageSmoothingEnabled=x,R.imageSmoothingQuality=P,R.drawImage.apply(R,[e].concat(r(z.map((function(e){return Math.floor(Se(e))}))))),R.restore(),D}var Qe=String.fromCharCode;function $e(e,t,i){var n="";i+=t;for(var a=t;a<i;a+=1)n+=Qe(e.getUint8(a));return n}var et=/^data:.*,/;function tt(e){var t=e.replace(et,""),i=atob(t),n=new ArrayBuffer(i.length),a=new Uint8Array(n);return xe(a,(function(e,t){a[t]=i.charCodeAt(t)})),n}function it(e,t){for(var i=[],n=8192,a=new Uint8Array(e);a.length>0;)i.push(Qe.apply(null,ye(a.subarray(0,n)))),a=a.subarray(n);return"data:".concat(t,";base64,").concat(btoa(i.join("")))}function nt(e){var t,i=new DataView(e);try{var n,a,o;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var s=i.byteLength,r=2;r+1<s;){if(255===i.getUint8(r)&&225===i.getUint8(r+1)){a=r;break}r+=1}if(a){var l=a+10;if("Exif"===$e(i,a+4,4)){var c=i.getUint16(l);if(((n=18761===c)||19789===c)&&42===i.getUint16(l+2,n)){var p=i.getUint32(l+4,n);p>=8&&(o=l+p)}}}if(o){var u,d,h=i.getUint16(o,n);for(d=0;d<h;d+=1)if(u=o+12*d+2,274===i.getUint16(u,n)){u+=8,t=i.getUint16(u,n),i.setUint16(u,1,n);break}}}catch(m){t=1}return t}function at(e){var t=0,i=1,n=1;switch(e){case 2:i=-1;break;case 3:t=-180;break;case 4:n=-1;break;case 5:t=90,n=-1;break;case 6:t=90;break;case 7:t=90,i=-1;break;case 8:t=-90}return{rotate:t,scaleX:i,scaleY:n}}var ot={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,i=this.container,n=this.cropper;Fe(n,R),Te(e,R);var a={width:Math.max(i.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=a,_e(n,{width:a.width,height:a.height}),Fe(e,R),Te(n,R)},initCanvas:function(){var e=this.containerData,t=this.imageData,i=this.options.viewMode,n=Math.abs(t.rotate)%180===90,a=n?t.naturalHeight:t.naturalWidth,o=n?t.naturalWidth:t.naturalHeight,s=a/o,r=e.width,l=e.height;e.height*s>e.width?3===i?r=e.height*s:l=e.width/s:3===i?l=e.width/s:r=e.height*s;var c={aspectRatio:s,naturalWidth:a,naturalHeight:o,width:r,height:l};c.left=(e.width-r)/2,c.top=(e.height-l)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=we({},t),this.initialCanvasData=we({},c)},limitCanvas:function(e,t){var i=this.options,n=this.containerData,a=this.canvasData,o=this.cropBoxData,s=i.viewMode,r=a.aspectRatio,l=this.cropped&&o;if(e){var c=Number(i.minCanvasWidth)||0,p=Number(i.minCanvasHeight)||0;s>1?(c=Math.max(c,n.width),p=Math.max(p,n.height),3===s&&(p*r>c?c=p*r:p=c/r)):s>0&&(c?c=Math.max(c,l?o.width:0):p?p=Math.max(p,l?o.height:0):l&&(c=o.width,(p=o.height)*r>c?c=p*r:p=c/r));var u=Ye({aspectRatio:r,width:c,height:p});c=u.width,p=u.height,a.minWidth=c,a.minHeight=p,a.maxWidth=1/0,a.maxHeight=1/0}if(t)if(s>(l?0:1)){var d=n.width-a.width,h=n.height-a.height;a.minLeft=Math.min(0,d),a.minTop=Math.min(0,h),a.maxLeft=Math.max(0,d),a.maxTop=Math.max(0,h),l&&this.limited&&(a.minLeft=Math.min(o.left,o.left+(o.width-a.width)),a.minTop=Math.min(o.top,o.top+(o.height-a.height)),a.maxLeft=o.left,a.maxTop=o.top,2===s&&(a.width>=n.width&&(a.minLeft=Math.min(0,d),a.maxLeft=Math.max(0,d)),a.height>=n.height&&(a.minTop=Math.min(0,h),a.maxTop=Math.max(0,h))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=n.width,a.maxTop=n.height},renderCanvas:function(e,t){var i=this.canvasData,n=this.imageData;if(t){var a=Ze({width:n.naturalWidth*Math.abs(n.scaleX||1),height:n.naturalHeight*Math.abs(n.scaleY||1),degree:n.rotate||0}),o=a.width,s=a.height,r=i.width*(o/i.naturalWidth),l=i.height*(s/i.naturalHeight);i.left-=(r-i.width)/2,i.top-=(l-i.height)/2,i.width=r,i.height=l,i.aspectRatio=o/s,i.naturalWidth=o,i.naturalHeight=s,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,_e(this.canvas,we({width:i.width,height:i.height},Ve({translateX:i.left,translateY:i.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,i=this.imageData,n=i.naturalWidth*(t.width/t.naturalWidth),a=i.naturalHeight*(t.height/t.naturalHeight);we(i,{width:n,height:a,left:(t.width-n)/2,top:(t.height-a)/2}),_e(this.image,we({width:i.width,height:i.height},Ve(we({translateX:i.left,translateY:i.top},i)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,i=e.aspectRatio||e.initialAspectRatio,n=Number(e.autoCropArea)||.8,a={width:t.width,height:t.height};i&&(t.height*i>t.width?a.height=a.width/i:a.width=a.height*i),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*n),a.height=Math.max(a.minHeight,a.height*n),a.left=t.left+(t.width-a.width)/2,a.top=t.top+(t.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=we({},a)},limitCropBox:function(e,t){var i=this.options,n=this.containerData,a=this.canvasData,o=this.cropBoxData,s=this.limited,r=i.aspectRatio;if(e){var l=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,p=s?Math.min(n.width,a.width,a.width+a.left,n.width-a.left):n.width,u=s?Math.min(n.height,a.height,a.height+a.top,n.height-a.top):n.height;l=Math.min(l,n.width),c=Math.min(c,n.height),r&&(l&&c?c*r>l?c=l/r:l=c*r:l?c=l/r:c&&(l=c*r),u*r>p?u=p/r:p=u*r),o.minWidth=Math.min(l,p),o.minHeight=Math.min(c,u),o.maxWidth=p,o.maxHeight=u}t&&(s?(o.minLeft=Math.max(0,a.left),o.minTop=Math.max(0,a.top),o.maxLeft=Math.min(n.width,a.left+a.width)-o.width,o.maxTop=Math.min(n.height,a.top+a.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=n.width-o.width,o.maxTop=n.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,e.movable&&e.cropBoxMovable&&Ue(this.face,N,i.width>=t.width&&i.height>=t.height?x:b),_e(this.cropBox,we({width:i.width,height:i.height},Ve({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Me(this.element,q,this.getData())}},st={initPreview:function(){var e=this.element,t=this.crossOrigin,i=this.options.preview,n=t?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=n,o.alt=a,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var s=i;"string"===typeof i?s=e.ownerDocument.querySelectorAll(i):i.querySelector&&(s=[i]),this.previews=s,xe(s,(function(e){var i=document.createElement("img");Ue(e,B,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(i.crossOrigin=t),i.src=n,i.alt=a,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(i)}))}},resetPreview:function(){xe(this.previews,(function(e){var t=Re(e,B);_e(e,{width:t.width,height:t.height}),e.innerHTML=t.html,Ie(e,B)}))},preview:function(){var e=this.imageData,t=this.canvasData,i=this.cropBoxData,n=i.width,a=i.height,o=e.width,s=e.height,r=i.left-t.left-e.left,l=i.top-t.top-e.top;this.cropped&&!this.disabled&&(_e(this.viewBoxImage,we({width:o,height:s},Ve(we({translateX:-r,translateY:-l},e)))),xe(this.previews,(function(t){var i=Re(t,B),c=i.width,p=i.height,u=c,d=p,h=1;n&&(d=a*(h=c/n)),a&&d>p&&(u=n*(h=p/a),d=p),_e(t,{width:u,height:d}),_e(t.getElementsByTagName("img")[0],we({width:o*h,height:s*h},Ve(we({translateX:-r*h,translateY:-l*h},e))))})))}},rt={bind:function(){var e=this.element,t=this.options,i=this.cropper;ve(t.cropstart)&&Be(e,V,t.cropstart),ve(t.cropmove)&&Be(e,W,t.cropmove),ve(t.cropend)&&Be(e,H,t.cropend),ve(t.crop)&&Be(e,q,t.crop),ve(t.zoom)&&Be(e,ie,t.zoom),Be(i,Z,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&Be(i,te,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Be(i,G,this.onDblclick=this.dblclick.bind(this)),Be(e.ownerDocument,J,this.onCropMove=this.cropMove.bind(this)),Be(e.ownerDocument,Q,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&Be(window,ee,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,i=this.cropper;ve(t.cropstart)&&Ne(e,V,t.cropstart),ve(t.cropmove)&&Ne(e,W,t.cropmove),ve(t.cropend)&&Ne(e,H,t.cropend),ve(t.crop)&&Ne(e,q,t.crop),ve(t.zoom)&&Ne(e,ie,t.zoom),Ne(i,Z,this.onCropStart),t.zoomable&&t.zoomOnWheel&&Ne(i,te,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Ne(i,G,this.onDblclick),Ne(e.ownerDocument,J,this.onCropMove),Ne(e.ownerDocument,Q,this.onCropEnd),t.responsive&&Ne(window,ee,this.onResize)}},lt={resize:function(){if(!this.disabled){var e,t,i=this.options,n=this.container,a=this.containerData,o=n.offsetWidth/a.width;1===o&&n.offsetHeight===a.height||(i.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(xe(e,(function(t,i){e[i]=t*o}))),this.setCropBoxData(xe(t,(function(e,i){t[i]=e*o})))))}},dblclick:function(){this.disabled||this.options.dragMode===z||this.setDragMode(Ce(this.dragBox,E)?L:M)},wheel:function(e){var t=this,i=Number(this.options.wheelZoomRatio)||.1,n=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?n=e.deltaY>0?1:-1:e.wheelDelta?n=-e.wheelDelta/120:e.detail&&(n=e.detail>0?1:-1),this.zoom(-n*i,e)))},cropStart:function(e){var t=e.buttons,i=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(ue(t)&&1!==t||ue(i)&&0!==i||e.ctrlKey))){var n,a=this.options,o=this.pointers;e.changedTouches?xe(e.changedTouches,(function(e){o[e.identifier]=Ke(e)})):o[e.pointerId||0]=Ke(e),n=Object.keys(o).length>1&&a.zoomable&&a.zoomOnTouch?w:Re(e.target,N),ae.test(n)&&!1!==Me(this.element,V,{originalEvent:e,action:n})&&(e.preventDefault(),this.action=n,this.cropping=!1,n===y&&(this.cropping=!0,Fe(this.dragBox,j)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var i=this.pointers;e.preventDefault(),!1!==Me(this.element,W,{originalEvent:e,action:t})&&(e.changedTouches?xe(e.changedTouches,(function(e){we(i[e.identifier]||{},Ke(e,!0))})):we(i[e.pointerId||0]||{},Ke(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,i=this.pointers;e.changedTouches?xe(e.changedTouches,(function(e){delete i[e.identifier]})):delete i[e.pointerId||0],t&&(e.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,Oe(this.dragBox,j,this.cropped&&this.options.modal)),Me(this.element,H,{originalEvent:e,action:t}))}}},ct={change:function(e){var t,i=this.options,n=this.canvasData,a=this.containerData,o=this.cropBoxData,s=this.pointers,r=this.action,l=i.aspectRatio,c=o.left,p=o.top,u=o.width,d=o.height,h=c+u,m=p+d,f=0,g=0,v=a.width,E=a.height,D=!0;!l&&e.shiftKey&&(l=u&&d?u/d:1),this.limited&&(f=o.minLeft,g=o.minTop,v=f+Math.min(a.width,n.width,n.left+n.width),E=g+Math.min(a.height,n.height,n.top+n.height));var U=s[Object.keys(s)[0]],I={x:U.endX-U.startX,y:U.endY-U.startY},j=function(e){switch(e){case P:h+I.x>v&&(I.x=v-h);break;case S:c+I.x<f&&(I.x=f-c);break;case _:p+I.y<g&&(I.y=g-p);break;case k:m+I.y>E&&(I.y=E-m)}};switch(r){case b:c+=I.x,p+=I.y;break;case P:if(I.x>=0&&(h>=v||l&&(p<=g||m>=E))){D=!1;break}j(P),(u+=I.x)<0&&(r=S,c-=u=-u),l&&(d=u/l,p+=(o.height-d)/2);break;case _:if(I.y<=0&&(p<=g||l&&(c<=f||h>=v))){D=!1;break}j(_),d-=I.y,p+=I.y,d<0&&(r=k,p-=d=-d),l&&(u=d*l,c+=(o.width-u)/2);break;case S:if(I.x<=0&&(c<=f||l&&(p<=g||m>=E))){D=!1;break}j(S),u-=I.x,c+=I.x,u<0&&(r=P,c-=u=-u),l&&(d=u/l,p+=(o.height-d)/2);break;case k:if(I.y>=0&&(m>=E||l&&(c<=f||h>=v))){D=!1;break}j(k),(d+=I.y)<0&&(r=_,p-=d=-d),l&&(u=d*l,c+=(o.width-u)/2);break;case C:if(l){if(I.y<=0&&(p<=g||h>=v)){D=!1;break}j(_),d-=I.y,p+=I.y,u=d*l}else j(_),j(P),I.x>=0?h<v?u+=I.x:I.y<=0&&p<=g&&(D=!1):u+=I.x,I.y<=0?p>g&&(d-=I.y,p+=I.y):(d-=I.y,p+=I.y);u<0&&d<0?(r=O,p-=d=-d,c-=u=-u):u<0?(r=F,c-=u=-u):d<0&&(r=T,p-=d=-d);break;case F:if(l){if(I.y<=0&&(p<=g||c<=f)){D=!1;break}j(_),d-=I.y,p+=I.y,u=d*l,c+=o.width-u}else j(_),j(S),I.x<=0?c>f?(u-=I.x,c+=I.x):I.y<=0&&p<=g&&(D=!1):(u-=I.x,c+=I.x),I.y<=0?p>g&&(d-=I.y,p+=I.y):(d-=I.y,p+=I.y);u<0&&d<0?(r=T,p-=d=-d,c-=u=-u):u<0?(r=C,c-=u=-u):d<0&&(r=O,p-=d=-d);break;case O:if(l){if(I.x<=0&&(c<=f||m>=E)){D=!1;break}j(S),u-=I.x,c+=I.x,d=u/l}else j(k),j(S),I.x<=0?c>f?(u-=I.x,c+=I.x):I.y>=0&&m>=E&&(D=!1):(u-=I.x,c+=I.x),I.y>=0?m<E&&(d+=I.y):d+=I.y;u<0&&d<0?(r=C,p-=d=-d,c-=u=-u):u<0?(r=T,c-=u=-u):d<0&&(r=F,p-=d=-d);break;case T:if(l){if(I.x>=0&&(h>=v||m>=E)){D=!1;break}j(P),d=(u+=I.x)/l}else j(k),j(P),I.x>=0?h<v?u+=I.x:I.y>=0&&m>=E&&(D=!1):u+=I.x,I.y>=0?m<E&&(d+=I.y):d+=I.y;u<0&&d<0?(r=F,p-=d=-d,c-=u=-u):u<0?(r=O,c-=u=-u):d<0&&(r=C,p-=d=-d);break;case x:this.move(I.x,I.y),D=!1;break;case w:this.zoom(Ge(s),e),D=!1;break;case y:if(!I.x||!I.y){D=!1;break}t=Le(this.cropper),c=U.startX-t.left,p=U.startY-t.top,u=o.minWidth,d=o.minHeight,I.x>0?r=I.y>0?T:C:I.x<0&&(c-=u,r=I.y>0?O:F),I.y<0&&(p-=d),this.cropped||(Te(this.cropBox,R),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}D&&(o.width=u,o.height=d,o.left=c,o.top=p,this.action=r,this.renderCropBox()),xe(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},pt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Fe(this.dragBox,j),Te(this.cropBox,R),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=we({},this.initialImageData),this.canvasData=we({},this.initialCanvasData),this.cropBoxData=we({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(we(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Te(this.dragBox,j),Fe(this.cropBox,R)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,xe(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Te(this.cropper,D)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Fe(this.cropper,D)),this},destroy:function(){var e=this.element;return e[v]?(e[v]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.canvasData,n=i.left,a=i.top;return this.moveTo(he(e)?e:n+Number(e),he(t)?t:a+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.canvasData,n=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(ue(e)&&(i.left=e,n=!0),ue(t)&&(i.top=t,n=!0),n&&this.renderCanvas(!0)),this},zoom:function(e,t){var i=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,null,t)},zoomTo:function(e,t,i){var n=this.options,a=this.canvasData,o=a.width,s=a.height,r=a.naturalWidth,l=a.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&n.zoomable){var c=r*e,p=l*e;if(!1===Me(this.element,ie,{ratio:e,oldRatio:o/r,originalEvent:i}))return this;if(i){var u=this.pointers,d=Le(this.cropper),h=u&&Object.keys(u).length?Xe(u):{pageX:i.pageX,pageY:i.pageY};a.left-=(c-o)*((h.pageX-d.left-a.left)/o),a.top-=(p-s)*((h.pageY-d.top-a.top)/s)}else ge(t)&&ue(t.x)&&ue(t.y)?(a.left-=(c-o)*((t.x-a.left)/o),a.top-=(p-s)*((t.y-a.top)/s)):(a.left-=(c-o)/2,a.top-=(p-s)/2);a.width=c,a.height=p,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return ue(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,ue(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(ue(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=this.imageData,n=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(ue(e)&&(i.scaleX=e,n=!0),ue(t)&&(i.scaleY=t,n=!0),n&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,n=this.imageData,a=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-a.left,y:o.top-a.top,width:o.width,height:o.height};var s=n.width/n.naturalWidth;if(xe(e,(function(t,i){e[i]=t/s})),t){var r=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=r-e.y}}else e={x:0,y:0,width:0,height:0};return i.rotatable&&(e.rotate=n.rotate||0),i.scalable&&(e.scaleX=n.scaleX||1,e.scaleY=n.scaleY||1),e},setData:function(e){var t=this.options,i=this.imageData,n=this.canvasData,a={};if(this.ready&&!this.disabled&&ge(e)){var o=!1;t.rotatable&&ue(e.rotate)&&e.rotate!==i.rotate&&(i.rotate=e.rotate,o=!0),t.scalable&&(ue(e.scaleX)&&e.scaleX!==i.scaleX&&(i.scaleX=e.scaleX,o=!0),ue(e.scaleY)&&e.scaleY!==i.scaleY&&(i.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var s=i.width/i.naturalWidth;ue(e.x)&&(a.left=e.x*s+n.left),ue(e.y)&&(a.top=e.y*s+n.top),ue(e.width)&&(a.width=e.width*s),ue(e.height)&&(a.height=e.height*s),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?we({},this.containerData):{}},getImageData:function(){return this.sized?we({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&xe(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){t[i]=e[i]})),t},setCanvasData:function(e){var t=this.canvasData,i=t.aspectRatio;return this.ready&&!this.disabled&&ge(e)&&(ue(e.left)&&(t.left=e.left),ue(e.top)&&(t.top=e.top),ue(e.width)?(t.width=e.width,t.height=e.width/i):ue(e.height)&&(t.height=e.height,t.width=e.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,i,n=this.cropBoxData,a=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ge(e)&&(ue(e.left)&&(n.left=e.left),ue(e.top)&&(n.top=e.top),ue(e.width)&&e.width!==n.width&&(t=!0,n.width=e.width),ue(e.height)&&e.height!==n.height&&(i=!0,n.height=e.height),a&&(t?n.height=n.width/a:i&&(n.width=n.height*a)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,i=Je(this.image,this.imageData,t,e);if(!this.cropped)return i;var n=this.getData(),a=n.x,o=n.y,s=n.width,l=n.height,c=i.width/Math.floor(t.naturalWidth);1!==c&&(a*=c,o*=c,s*=c,l*=c);var p=s/l,u=Ye({aspectRatio:p,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),d=Ye({aspectRatio:p,width:e.minWidth||0,height:e.minHeight||0},"cover"),h=Ye({aspectRatio:p,width:e.width||(1!==c?i.width:s),height:e.height||(1!==c?i.height:l)}),m=h.width,f=h.height;m=Math.min(u.width,Math.max(d.width,m)),f=Math.min(u.height,Math.max(d.height,f));var g=document.createElement("canvas"),v=g.getContext("2d");g.width=Se(m),g.height=Se(f),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,m,f);var b=e.imageSmoothingEnabled,y=void 0===b||b,x=e.imageSmoothingQuality;v.imageSmoothingEnabled=y,x&&(v.imageSmoothingQuality=x);var w,P,S,k,_,C,F=i.width,T=i.height,O=a,E=o;O<=-s||O>F?(O=0,w=0,S=0,_=0):O<=0?(S=-O,O=0,_=w=Math.min(F,s+O)):O<=F&&(S=0,_=w=Math.min(s,F-O)),w<=0||E<=-l||E>T?(E=0,P=0,k=0,C=0):E<=0?(k=-E,E=0,C=P=Math.min(T,l+E)):E<=T&&(k=0,C=P=Math.min(l,T-E));var D=[O,E,w,P];if(_>0&&C>0){var R=m/s;D.push(S*R,k*R,_*R,C*R)}return v.drawImage.apply(v,[i].concat(r(D.map((function(e){return Math.floor(Se(e))}))))),g},setAspectRatio:function(e){var t=this.options;return this.disabled||he(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,i=this.dragBox,n=this.face;if(this.ready&&!this.disabled){var a=e===M,o=t.movable&&e===L;e=a||o?e:z,t.dragMode=e,Ue(i,N,e),Oe(i,E,a),Oe(i,A,o),t.cropBoxMovable||(Ue(n,N,e),Oe(n,E,a),Oe(n,A,o))}return this}},ut=m.Cropper,dt=function(){function e(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!i||!re.test(i.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=i,this.options=we({},le,ge(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return n(e,[{key:"init",value:function(){var e,t=this.element,i=t.tagName.toLowerCase();if(!t[v]){if(t[v]=this,"img"===i){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===i&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var i=this.element,n=this.options;if(n.rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer)if(oe.test(e))se.test(e)?this.read(tt(e)):this.clone();else{var a=new XMLHttpRequest,o=this.clone.bind(this);this.reloading=!0,this.xhr=a,a.onabort=o,a.onerror=o,a.ontimeout=o,a.onprogress=function(){a.getResponseHeader("content-type")!==ne&&a.abort()},a.onload=function(){t.read(a.response)},a.onloadend=function(){t.reloading=!1,t.xhr=null},n.checkCrossOrigin&&He(e)&&i.crossOrigin&&(e=We(e)),a.open("GET",e),a.responseType="arraybuffer",a.withCredentials="use-credentials"===i.crossOrigin,a.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,i=this.imageData,n=nt(e),a=0,o=1,s=1;if(n>1){this.url=it(e,ne);var r=at(n);a=r.rotate,o=r.scaleX,s=r.scaleY}t.rotatable&&(i.rotate=a),t.scalable&&(i.scaleX=o,i.scaleY=s),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,i=e.crossOrigin,n=t;this.options.checkCrossOrigin&&He(t)&&(i||(i="anonymous"),n=We(t)),this.crossOrigin=i,this.crossOriginUrl=n;var a=document.createElement("img");i&&(a.crossOrigin=i),a.src=n||t,a.alt=e.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),Fe(a,U),e.parentNode.insertBefore(a,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var i=m.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(m.navigator.userAgent),n=function(t,i){we(e.imageData,{naturalWidth:t,naturalHeight:i,aspectRatio:t/i}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||i){var a=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){n(a.width,a.height),i||o.removeChild(a)},a.src=t.src,i||(a.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(a))}else n(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,i=this.image,n=e.parentNode,a=document.createElement("div");a.innerHTML=ce;var o=a.querySelector(".".concat(v,"-container")),s=o.querySelector(".".concat(v,"-canvas")),r=o.querySelector(".".concat(v,"-drag-box")),l=o.querySelector(".".concat(v,"-crop-box")),c=l.querySelector(".".concat(v,"-face"));this.container=n,this.cropper=o,this.canvas=s,this.dragBox=r,this.cropBox=l,this.viewBox=o.querySelector(".".concat(v,"-view-box")),this.face=c,s.appendChild(i),Fe(e,R),n.insertBefore(o,e.nextSibling),this.isImg||Te(i,U),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Fe(l,R),t.guides||Fe(l.getElementsByClassName("".concat(v,"-dashed")),R),t.center||Fe(l.getElementsByClassName("".concat(v,"-center")),R),t.background&&Fe(o,"".concat(v,"-bg")),t.highlight||Fe(c,I),t.cropBoxMovable&&(Fe(c,A),Ue(c,N,b)),t.cropBoxResizable||(Fe(l.getElementsByClassName("".concat(v,"-line")),R),Fe(l.getElementsByClassName("".concat(v,"-point")),R)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),ve(t.ready)&&Be(e,$,t.ready,{once:!0}),Me(e,$)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Te(this.element,R))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=ut,e}},{key:"setDefaults",value:function(e){we(le,ge(e)&&e)}}]),e}();return we(dt.prototype,ot,st,rt,lt,ct,pt),dt}()},90318:e=>{"use strict";e.exports=a,e.exports.isMobile=a,e.exports.default=a;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,n=/android|ipad|playbook|silk/i;function a(e){e||(e={});let a=e.ua;if(a||"undefined"===typeof navigator||(a=navigator.userAgent),a&&a.headers&&"string"===typeof a.headers["user-agent"]&&(a=a.headers["user-agent"]),"string"!==typeof a)return!1;let o=t.test(a)&&!i.test(a)||!!e.tablet&&n.test(a);return!o&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==a.indexOf("Macintosh")&&-1!==a.indexOf("Safari")&&(o=!0),o}},21379:e=>{e.exports=function(e,t){if(e===t)return!0;for(var i in e)if(!(i in t))return!1;for(var i in t)if(e[i]!==t[i])return!1;return!0}},34690:e=>{e.exports=function(e,t,i,n){for(var a=-1,o=null==e?0:e.length;++a<o;){var s=e[a];t(n,s,i(s),e)}return n}},74023:(e,t,i)=>{var n=i(50377);e.exports=function(e,t,i,a){return n(e,(function(e,n,o){t(a,e,i(e),o)})),a}},60022:(e,t,i)=>{var n=i(34690),a=i(74023),o=i(31104),s=i(44028);e.exports=function(e,t){return function(i,r){var l=s(i)?n:a,c=t?t():{};return l(i,e,o(r,2),c)}}},96056:(e,t,i)=>{var n=i(23447),a=i(60022)((function(e,t,i){n(e,i,t)}));e.exports=a},2078:(e,t,i)=>{var n=i(26849);e.exports=function(e){return n(e).toUpperCase()}},30278:(e,t,i)=>{var n=i(31104),a=i(43676);e.exports=function(e,t){return e&&e.length?a(e,n(t,2)):[]}},776:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function a(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(a=e[i],o=t[i],!(a===o||n(a)&&n(o)))return!1;var a,o;return!0}function o(e,t){void 0===t&&(t=a);var i=null;function n(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(i&&i.lastThis===this&&t(n,i.lastArgs))return i.lastResult;var o=e.apply(this,n);return i={lastResult:o,lastArgs:n,lastThis:this},o}return n.clear=function(){i=null},n}},77203:(e,t,i)=>{e.exports=i(57104)},2763:(e,t,i)=>{var n=i(77367),a=/[\/\+\.]/;e.exports=function(e,t){function i(t){var i=n(t,e,a);return i&&i.length>=2}return t?i(t.split(";")[0]):i}},77367:e=>{"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,i,n=!0,a=this.parts,o=a.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(i=(e||"").split(this.separator),t=0;n&&t<o;t++)"*"!==a[t]&&(n=t<i.length&&a[t]===i[t]);n=n&&i}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var s in n={},e)this.match(s)&&(n[s]=e[s]);return n},e.exports=function(e,i,n){var a=new t(e,n||/[\/\.]/);return"undefined"!=typeof i?a.match(i):a}},80068:(e,t,i)=>{"use strict";var n=i(77203),a=i(56977).extname,o=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function r(e){if(!e||"string"!==typeof e)return!1;var t=o.exec(e),i=t&&n[t[1].toLowerCase()];return i&&i.charset?i.charset:!(!t||!s.test(t[1]))&&"UTF-8"}t.charset=r,t.charsets={lookup:r},t.contentType=function(e){if(!e||"string"!==typeof e)return!1;var i=-1===e.indexOf("/")?t.lookup(e):e;if(!i)return!1;if(-1===i.indexOf("charset")){var n=t.charset(i);n&&(i+="; charset="+n.toLowerCase())}return i},t.extension=function(e){if(!e||"string"!==typeof e)return!1;var i=o.exec(e),n=i&&t.extensions[i[1].toLowerCase()];if(!n||!n.length)return!1;return n[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!==typeof e)return!1;var i=a("x."+e).toLowerCase().substr(1);if(!i)return!1;return t.types[i]||!1},t.types=Object.create(null),function(e,t){var i=["nginx","apache",void 0,"iana"];Object.keys(n).forEach((function(a){var o=n[a],s=o.extensions;if(s&&s.length){e[a]=s;for(var r=0;r<s.length;r++){var l=s[r];if(t[l]){var c=i.indexOf(n[t[l]].source),p=i.indexOf(o.source);if("application/octet-stream"!==t[l]&&(c>p||c===p&&"application/"===t[l].substr(0,12)))continue}t[l]=a}}}))}(t.extensions,t.types)},29480:e=>{e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,i,n,a,o,s,r){var l=function(e){var i=t[e]?t[e]:[],n=e.indexOf(":"),a=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],o=Object.keys(t),s=0,r=o.length;for(;s<r;s++){var l=o[s];if("*"===l&&(i=i.concat(t[l])),2===a.length&&a[0]===l){i=i.concat(t[l]);break}}return i}(e);l.length&&function(e,t,i){var n=0,a=t.length;for(;n<a&&t[n];n++)t[n].event=e,t[n].apply(t[n],i)}(e,l,[i,n,a,o,s,r])},e.on=function(e,i){t[e]||(t[e]=[]),t[e].push(i)},e.once=function(t,i){this.on(t,(function n(){i.apply(this,arguments),e.off(t,n)}))},e.off=function(e,t){var i=[];if(e&&t)for(var n=this._fns[e],a=0,o=n?n.length:0;a<o;a++)n[a]!==t&&i.push(n[a]);i.length?this._fns[e]=i:delete this._fns[e]},e}},5698:(e,t,i)=>{"use strict";i.d(t,{HY:()=>y,Tm:()=>q,Vf:()=>b,YM:()=>a,az:()=>g,bR:()=>O,h:()=>g,sY:()=>z,wA:()=>x});var n,a,o,s,r,l,c,p={},u=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function m(e,t){for(var i in t)e[i]=t[i];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,i){var a,o,s,r={};for(s in t)"key"==s?a=t[s]:"ref"==s?o=t[s]:r[s]=t[s];if(arguments.length>2&&(r.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===r[s]&&(r[s]=e.defaultProps[s]);return v(e,r,a,o,null)}function v(e,t,i,n,s){var r={type:e,props:t,key:i,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++o:s,__i:-1,__u:0};return null==s&&null!=a.vnode&&a.vnode(r),r}function b(){return{current:null}}function y(e){return e.children}function x(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var i;t<e.__k.length;t++)if(null!=(i=e.__k[t])&&null!=i.__e)return i.__e;return"function"==typeof e.type?w(e):null}function P(e,t,i){var n,o=e.__v,s=o.__e,r=e.__P;if(r)return(n=m({},o)).__v=o.__v+1,a.vnode&&a.vnode(n),j(r,n,o,e.__n,void 0!==r.ownerSVGElement,32&o.__u?[s]:null,t,null==s?w(o):s,!!(32&o.__u),i),n.__v=o.__v,n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=s&&S(n),n}function S(e){var t,i;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(i=e.__k[t])&&null!=i.__e){e.__e=e.__c.base=i.__e;break}return S(e)}}function k(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!_.__r++||r!==a.debounceRendering)&&((r=a.debounceRendering)||l)(_)}function _(){var e,t,i,n=[],o=[];for(s.sort(c);e=s.shift();)e.__d&&(i=s.length,t=P(e,n,o)||t,0===i||s.length>i?(A(n,t,o),o.length=n.length=0,t=void 0,s.sort(c)):t&&a.__c&&a.__c(t,u));t&&A(n,t,o),_.__r=0}function C(e,t,i,n,a,o,s,r,l,c,d){var h,m,f,g,v,b=n&&n.__k||u,y=t.length;for(i.__d=l,F(i,t,b),l=i.__d,h=0;h<y;h++)null!=(f=i.__k[h])&&"boolean"!=typeof f&&"function"!=typeof f&&(m=-1===f.__i?p:b[f.__i]||p,f.__i=h,j(e,f,m,a,o,s,r,l,c,d),g=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&B(m.ref,null,f),d.push(f.ref,f.__c||g,f)),null==v&&null!=g&&(v=g),65536&f.__u||m.__k===f.__k?l=T(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:g&&(l=g.nextSibling),f.__d=void 0,f.__u&=-196609);i.__d=l,i.__e=v}function F(e,t,i){var n,a,o,s,r,l=t.length,c=i.length,p=c,u=0;for(e.__k=[],n=0;n<l;n++)s=n+u,null!=(a=e.__k[n]=null==(a=t[n])||"boolean"==typeof a||"function"==typeof a?null:"string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?v(null,a,null,null,null):h(a)?v(y,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?v(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)?(a.__=e,a.__b=e.__b+1,r=E(a,i,s,p),a.__i=r,o=null,-1!==r&&(p--,(o=i[r])&&(o.__u|=131072)),null==o||null===o.__v?(-1==r&&u--,"function"!=typeof a.type&&(a.__u|=65536)):r!==s&&(r===s+1?u++:r>s?p>l-s?u+=r-s:u--:r<s?r==s-1&&(u=r-s):u=0,r!==n+u&&(a.__u|=65536))):(o=i[s])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=w(o)),M(o,o,!1),i[s]=null,p--);if(p)for(n=0;n<c;n++)null!=(o=i[n])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=w(o)),M(o,o))}function T(e,t,i){var n,a;if("function"==typeof e.type){for(n=e.__k,a=0;n&&a<n.length;a++)n[a]&&(n[a].__=e,t=T(n[a],t,i));return t}e.__e!=t&&(i.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function O(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){O(e,t)})):t.push(e)),t}function E(e,t,i,n){var a=e.key,o=e.type,s=i-1,r=i+1,l=t[i];if(null===l||l&&a==l.key&&o===l.type&&0==(131072&l.__u))return i;if(n>(null!=l&&0==(131072&l.__u)?1:0))for(;s>=0||r<t.length;){if(s>=0){if((l=t[s])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return s;s--}if(r<t.length){if((l=t[r])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return r;r++}}return-1}function D(e,t,i){"-"===t[0]?e.setProperty(t,null==i?"":i):e[t]=null==i?"":"number"!=typeof i||d.test(t)?i:i+"px"}function R(e,t,i,n,a){var o;e:if("style"===t)if("string"==typeof i)e.style.cssText=i;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)i&&t in i||D(e.style,t,"");if(i)for(t in i)n&&i[t]===n[t]||D(e.style,t,i[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=i,i?n?i.u=n.u:(i.u=Date.now(),e.addEventListener(t,o?I:U,o)):e.removeEventListener(t,o?I:U,o);else{if(a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==i?"":i;break e}catch(e){}"function"==typeof i||(null==i||!1===i&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,i))}}function U(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(a.event?a.event(e):e)}}function I(e){if(this.l)return this.l[e.type+!0](a.event?a.event(e):e)}function j(e,t,i,n,o,s,r,l,c,p){var u,d,f,g,v,b,w,P,S,k,_,F,T,O,E,D=t.type;if(void 0!==t.constructor)return null;128&i.__u&&(c=!!(32&i.__u),s=[l=t.__e=i.__e]),(u=a.__b)&&u(t);e:if("function"==typeof D)try{if(P=t.props,S=(u=D.contextType)&&n[u.__c],k=u?S?S.props.value:u.__:n,i.__c?w=(d=t.__c=i.__c).__=d.__E:("prototype"in D&&D.prototype.render?t.__c=d=new D(P,k):(t.__c=d=new x(P,k),d.constructor=D,d.render=L),S&&S.sub(d),d.props=P,d.state||(d.state={}),d.context=k,d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=D.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,D.getDerivedStateFromProps(P,d.__s))),g=d.props,v=d.state,d.__v=t,f)null==D.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==D.getDerivedStateFromProps&&P!==g&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(P,k),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(P,d.__s,k)||t.__v===i.__v)){for(t.__v!==i.__v&&(d.props=P,d.state=d.__s,d.__d=!1),t.__e=i.__e,t.__k=i.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&r.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(P,d.__s,k),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(g,v,b)}))}if(d.context=k,d.props=P,d.__P=e,d.__e=!1,F=a.__r,T=0,"prototype"in D&&D.prototype.render){for(d.state=d.__s,d.__d=!1,F&&F(t),u=d.render(d.props,d.state,d.context),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[]}else do{d.__d=!1,F&&F(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++T<25);d.state=d.__s,null!=d.getChildContext&&(n=m(m({},n),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(b=d.getSnapshotBeforeUpdate(g,v)),C(e,h(E=null!=u&&u.type===y&&null==u.key?u.props.children:u)?E:[E],t,i,n,o,s,r,l,c,p),d.base=t.__e,t.__u&=-161,d.__h.length&&r.push(d),w&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=s?(t.__e=l,t.__u|=c?160:32,s[s.indexOf(l)]=null):(t.__e=i.__e,t.__k=i.__k),a.__e(e,t,i)}else null==s&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=N(i.__e,t,i,n,o,s,r,c,p);(u=a.diffed)&&u(t)}function A(e,t,i){for(var n=0;n<i.length;n++)B(i[n],i[++n],i[++n]);a.__c&&a.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){a.__e(e,t.__v)}}))}function N(e,t,i,a,o,s,r,l,c){var u,d,m,g,v,b,y,x=i.props,P=t.props,S=t.type;if("svg"===S&&(o=!0),null!=s)for(u=0;u<s.length;u++)if((v=s[u])&&"setAttribute"in v==!!S&&(S?v.localName===S:3===v.nodeType)){e=v,s[u]=null;break}if(null==e){if(null===S)return document.createTextNode(P);e=o?document.createElementNS("http://www.w3.org/2000/svg",S):document.createElement(S,P.is&&P),s=null,l=!1}if(null===S)x===P||l&&e.data===P||(e.data=P);else{if(s=s&&n.call(e.childNodes),x=i.props||p,!l&&null!=s)for(x={},u=0;u<e.attributes.length;u++)x[(v=e.attributes[u]).name]=v.value;for(u in x)v=x[u],"children"==u||("dangerouslySetInnerHTML"==u?m=v:"key"===u||u in P||R(e,u,null,v,o));for(u in P)v=P[u],"children"==u?g=v:"dangerouslySetInnerHTML"==u?d=v:"value"==u?b=v:"checked"==u?y=v:"key"===u||l&&"function"!=typeof v||x[u]===v||R(e,u,v,x[u],o);if(d)l||m&&(d.__html===m.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(m&&(e.innerHTML=""),C(e,h(g)?g:[g],t,i,a,o&&"foreignObject"!==S,s,r,s?s[0]:i.__k&&w(i,0),l,c),null!=s)for(u=s.length;u--;)null!=s[u]&&f(s[u]);l||(u="value",void 0!==b&&(b!==e[u]||"progress"===S&&!b||"option"===S&&b!==x[u])&&R(e,u,b,x[u],!1),u="checked",void 0!==y&&y!==e[u]&&R(e,u,y,x[u],!1))}return e}function B(e,t,i){try{"function"==typeof e?e(t):e.current=t}catch(e){a.__e(e,i)}}function M(e,t,i){var n,o;if(a.unmount&&a.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||B(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){a.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&M(n[o],t,i||"function"!=typeof e.type);i||null==e.__e||f(e.__e),e.__=e.__e=e.__d=void 0}function L(e,t,i){return this.constructor(e,i)}function z(e,t,i){var o,s,r,l;a.__&&a.__(e,t),s=(o="function"==typeof i)?null:i&&i.__k||t.__k,r=[],l=[],j(t,e=(!o&&i||t).__k=g(y,null,[e]),s||p,p,void 0!==t.ownerSVGElement,!o&&i?[i]:s?null:t.firstChild?n.call(t.childNodes):null,r,!o&&i?i:s?s.__e:t.firstChild,o,l),e.__d=void 0,A(r,e,l)}function q(e,t,i){var a,o,s,r,l=m({},e.props);for(s in e.type&&e.type.defaultProps&&(r=e.type.defaultProps),t)"key"==s?a=t[s]:"ref"==s?o=t[s]:l[s]=void 0===t[s]&&void 0!==r?r[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):i),v(e.type,l,a||e.key,o||e.ref,null)}n=u.slice,a={__e:function(e,t,i,n){for(var a,o,s;t=t.__;)if((a=t.__c)&&!a.__)try{if((o=a.constructor)&&null!=o.getDerivedStateFromError&&(a.setState(o.getDerivedStateFromError(e)),s=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,n||{}),s=a.__d),s)return a.__E=a}catch(t){e=t}throw e}},o=0,x.prototype.setState=function(e,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},i),this.props)),e&&m(i,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},x.prototype.render=y,s=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},_.__r=0},62536:(e,t)=>{"use strict";var i=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function a(e){try{return encodeURIComponent(e)}catch(t){return null}}t.stringify=function(e,t){t=t||"";var n,o,s=[];for(o in"string"!==typeof t&&(t="?"),e)if(i.call(e,o)){if((n=e[o])||null!==n&&undefined!==n&&!isNaN(n)||(n=""),o=a(o),n=a(n),null===o||null===n)continue;s.push(o+"="+n)}return s.length?t+s.join("&"):""},t.parse=function(e){for(var t,i=/([^=?#&]+)=?([^&]*)/g,a={};t=i.exec(e);){var o=n(t[1]),s=n(t[2]);null===o||null===s||o in a||(a[o]=s)}return a}},94166:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)},a=this&&this.__rest||function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(i[n[a]]=e[n[a]])}return i};t.__esModule=!0;var o=i(5057),s=i(18294),r=i(49266);t.default=function(e){var t=e.delay,i=void 0===t?0:t,l=e.type,c=void 0===l?"text":l,p=e.color,u=void 0===p?"#CDCDCD":p,d=e.rows,h=void 0===d?3:d,m=e.ready,f=e.firstLaunchOnly,g=e.children,v=e.className,b=e.showLoadingAnimation,y=e.customPlaceholder,x=a(e,["delay","type","color","rows","ready","firstLaunchOnly","children","className","showLoadingAnimation","customPlaceholder"]),w=o.useState(m),P=w[0],S=w[1],k=o.useRef(null);return o.useEffect((function(){f||!P||m?m&&(k.current&&window.clearTimeout(k.current),P||S(!0)):i&&i>0?k.current=window.setTimeout((function(){S(!1)}),i):S(!1)}),[f,P,m,i]),o.useEffect((function(){return function(){k.current&&window.clearTimeout(k.current)}}),[]),P?g:function(){var e=b?r.joinClassNames("show-loading-animation",v):v;if(y&&o.isValidElement(y)){var t=r.joinClassNames(y.props.className,e);return o.cloneElement(y,{className:t})}if(y)return y;var i=s[c];return o.createElement(i,n({},x,{color:u,rows:h,className:e}))}()}},22256:(e,t,i)=>{"use strict";var n=i(94166);t.Z=n.default},98392:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(49354),s=i(12208),r=i(49266),l={display:"flex"};t.default=function(e){var t=e.className,i=e.style,c=e.color,p=e.rows;return a.createElement("div",{className:r.joinClassNames("media-block",t),style:n(n({},l),i)},a.createElement(s.default,{color:c,style:{minHeight:55,width:55,minWidth:55,marginRight:10}}),a.createElement(o.default,{color:c,rows:p}))}},16102:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(49266);t.default=function(e){var t=e.className,i=e.style,s={backgroundColor:e.color,width:"100%",height:"100%",marginRight:10};return a.createElement("div",{className:o.joinClassNames("rect-shape",t),style:n(n({},s),i)})}},12208:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(49266);t.default=function(e){var t=e.className,i=e.style,s={backgroundColor:e.color,borderRadius:"500rem",width:"100%",height:"100%"};return a.createElement("div",{className:o.joinClassNames("round-shape",t),style:n(n({},s),i)})}},49354:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(13672),s=i(49266),r={width:"100%"},l=[97,100,94,90,98,95,98,40];t.default=function(e){var t=e.rows,i=e.lineSpacing,c=e.color,p=e.style,u=e.className,d=e.widths,h=void 0===d?l:d,m=function(e){return{maxHeight:100/(2*t-1)+"%",width:h[(e+h.length)%h.length]+"%"}};return a.createElement("div",{className:s.joinClassNames("text-block",u),style:n(n({},r),p)},Array.apply(null,Array(t)).map((function(e,t){return a.createElement(o.default,{color:c,style:m(t),lineSpacing:0!==t?i:0,key:t})})))}},13672:function(e,t,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};t.__esModule=!0;var a=i(5057),o=i(49266);t.default=function(e){var t=e.className,i=e.maxHeight,s=e.color,r=e.lineSpacing,l=void 0===r?"0.7em":r,c=e.style,p={maxHeight:i,width:"100%",height:"1em",backgroundColor:s,marginTop:l};return a.createElement("div",{className:o.joinClassNames("text-row",t),style:n(n({},p),c)})}},18294:(e,t,i)=>{"use strict";t.__esModule=!0,t.media=t.text=t.rect=t.round=t.textRow=t.MediaBlock=t.TextBlock=t.RectShape=t.RoundShape=t.TextRow=void 0;var n=i(13672);t.TextRow=n.default;var a=i(12208);t.RoundShape=a.default;var o=i(16102);t.RectShape=o.default;var s=i(49354);t.TextBlock=s.default;var r=i(98392);t.MediaBlock=r.default,t.textRow=n.default,t.round=a.default,t.rect=o.default,t.text=s.default,t.media=r.default},49266:(e,t)=>{"use strict";t.__esModule=!0,t.joinClassNames=void 0,t.joinClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return e})).join(" ")}},6118:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},35499:(e,t,i)=>{e.exports=i(64016)},64016:(e,t,i)=>{var n=i(42349);t.operation=function(e){var i=t.timeouts(e);return new n(i,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in e)t[i]=e[i];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],a=0;a<t.retries;a++)n.push(this.createTimeout(a,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(a,t)),n.sort((function(e,t){return e-t})),n},t.createTimeout=function(e,t){var i=t.randomize?Math.random()+1:1,n=Math.round(i*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout)},t.wrap=function(e,i,n){if(i instanceof Array&&(n=i,i=null),!n)for(var a in n=[],e)"function"===typeof e[a]&&n.push(a);for(var o=0;o<n.length;o++){var s=n[o],r=e[s];e[s]=function(n){var a=t.operation(i),o=Array.prototype.slice.call(arguments,1),s=o.pop();o.push((function(e){a.retry(e)||(e&&(arguments[0]=a.mainError()),s.apply(this,arguments))})),a.attempt((function(){n.apply(e,o)}))}.bind(e,r),e[s].options=i}}},42349:e=>{function t(e,t){"boolean"===typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var i=this._timeouts.shift();if(void 0===i){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1)}var n=this;return this._timer=setTimeout((function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)}),i),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){i._operationTimeoutCb()}),i._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,i=0,n=0;n<this._errors.length;n++){var a=this._errors[n],o=a.message,s=(e[o]||0)+1;e[o]=s,s>=i&&(t=a,i=s)}return t}},44189:(e,t,i)=>{"use strict";var n=i(6118),a=i(62536),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,r=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function u(e){return(e||"").toString().replace(o,"")}var d=[["#","hash"],["?","query"],function(e,t){return f(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function m(e){var t,n=("undefined"!==typeof window?window:"undefined"!==typeof i.g?i.g:"undefined"!==typeof self?self:{}).location||{},a={},o=typeof(e=e||n);if("blob:"===e.protocol)a=new v(unescape(e.pathname),{});else if("string"===o)for(t in a=new v(e,{}),h)delete a[t];else if("object"===o){for(t in e)t in h||(a[t]=e[t]);void 0===a.slashes&&(a.slashes=r.test(e.href))}return a}function f(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=u(e)).replace(s,""),t=t||{};var i,n=c.exec(e),a=n[1]?n[1].toLowerCase():"",o=!!n[2],r=!!n[3],l=0;return o?r?(i=n[2]+n[3]+n[4],l=n[2].length+n[3].length):(i=n[2]+n[4],l=n[2].length):r?(i=n[3]+n[4],l=n[3].length):i=n[4],"file:"===a?l>=2&&(i=i.slice(2)):f(a)?i=n[4]:a?o&&(i=i.slice(2)):l>=2&&f(t.protocol)&&(i=n[4]),{protocol:a,slashes:o||f(a),slashesCount:l,rest:i}}function v(e,t,i){if(e=(e=u(e)).replace(s,""),!(this instanceof v))return new v(e,t,i);var o,r,l,c,h,b,y=d.slice(),x=typeof t,w=this,P=0;for("object"!==x&&"string"!==x&&(i=t,t=null),i&&"function"!==typeof i&&(i=a.parse),o=!(r=g(e||"",t=m(t))).protocol&&!r.slashes,w.slashes=r.slashes||o&&t.slashes,w.protocol=r.protocol||t.protocol||"",e=r.rest,("file:"===r.protocol&&(2!==r.slashesCount||p.test(e))||!r.slashes&&(r.protocol||r.slashesCount<2||!f(w.protocol)))&&(y[3]=[/(.*)/,"pathname"]);P<y.length;P++)"function"!==typeof(c=y[P])?(l=c[0],b=c[1],l!==l?w[b]=e:"string"===typeof l?~(h="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"===typeof c[2]?(w[b]=e.slice(0,h),e=e.slice(h+c[2])):(w[b]=e.slice(h),e=e.slice(0,h))):(h=l.exec(e))&&(w[b]=h[1],e=e.slice(0,h.index)),w[b]=w[b]||o&&c[3]&&t[b]||"",c[4]&&(w[b]=w[b].toLowerCase())):e=c(e,w);i&&(w.query=i(w.query)),o&&t.slashes&&"/"!==w.pathname.charAt(0)&&(""!==w.pathname||""!==t.pathname)&&(w.pathname=function(e,t){if(""===e)return t;for(var i=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=i.length,a=i[n-1],o=!1,s=0;n--;)"."===i[n]?i.splice(n,1):".."===i[n]?(i.splice(n,1),s++):s&&(0===n&&(o=!0),i.splice(n,1),s--);return o&&i.unshift(""),"."!==a&&".."!==a||i.push(""),i.join("/")}(w.pathname,t.pathname)),"/"!==w.pathname.charAt(0)&&f(w.protocol)&&(w.pathname="/"+w.pathname),n(w.port,w.protocol)||(w.host=w.hostname,w.port=""),w.username=w.password="",w.auth&&(~(h=w.auth.indexOf(":"))?(w.username=w.auth.slice(0,h),w.username=encodeURIComponent(decodeURIComponent(w.username)),w.password=w.auth.slice(h+1),w.password=encodeURIComponent(decodeURIComponent(w.password))):w.username=encodeURIComponent(decodeURIComponent(w.auth)),w.auth=w.password?w.username+":"+w.password:w.username),w.origin="file:"!==w.protocol&&f(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString()}v.prototype={set:function(e,t,i){var o=this;switch(e){case"query":"string"===typeof t&&t.length&&(t=(i||a.parse)(t)),o[e]=t;break;case"port":o[e]=t,n(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,l.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!i;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";o[e]=t.charAt(0)!==s?s+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var r=t.indexOf(":");~r?(o.username=t.slice(0,r),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(r+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<d.length;c++){var p=d[c];p[4]&&(o[p[1]]=o[p[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&f(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"===typeof e||(e=a.stringify);var t,i=this,n=i.host,o=i.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var s=o+(i.protocol&&i.slashes||f(i.protocol)?"//":"");return i.username?(s+=i.username,i.password&&(s+=":"+i.password),s+="@"):i.password?(s+=":"+i.password,s+="@"):"file:"!==i.protocol&&f(i.protocol)&&!n&&"/"!==i.pathname&&(s+="@"),(":"===n[n.length-1]||l.test(i.hostname)&&!i.port)&&(n+=":"),s+=n+i.pathname,(t="object"===typeof i.query?e(i.query):i.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),i.hash&&(s+=i.hash),s}},v.extractProtocol=g,v.location=m,v.trimLeft=u,v.qs=a,e.exports=v},81534:(e,t,i)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}i.d(t,{Z:()=>a});var a=function e(t,i){function a(e,a,o){if("undefined"!==typeof document){"number"===typeof(o=n({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var r in o)o[r]&&(s+="; "+r,!0!==o[r]&&(s+="="+o[r].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+s}}return Object.create({set:a,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],n={},a=0;a<i.length;a++){var o=i[a].split("="),s=o.slice(1).join("=");try{var r=decodeURIComponent(o[0]);if(n[r]=t.read(s,r),e===r)break}catch(l){}}return e?n[e]:n}},remove:function(e,t){a(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},57104:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}}]);