import{aD as t,aF as e}from"./p-BTBbFFOR.js";class s extends e{constructor(){super()}process(t){const e=Array.from(t||[]);if(t&&this.accept&&"*"!==this.accept&&"/*"!==this.accept&&"*/*"!==this.accept){const t=this.accept.split(",");return e.filter((e=>this.validateFileType(e,t)))}return e}validateFileType(t,e){const s=t.name,r=(t.type||"").toLowerCase(),c=r.replace(/\/.*$/,"");return e.some((t=>(t=t.trim().toLowerCase()).startsWith(".")?s.toLowerCase().endsWith(t):t.endsWith("/*")?c===t.replace(/\/.*$/,""):r===t))}}!function(t,e,s,r){var c,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,r);else for(var n=t.length-1;n>=0;n--)(c=t[n])&&(i=(o<3?c(i):o>3?c(e,s,i):c(e,s))||i);o>3&&i&&Object.defineProperty(e,s,i)}([t()],s.prototype,"accept",void 0);export{s as D}