import{c as t,V as e}from"./p-dcc98162.js";class s extends e{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,c=(t.type||"").toLowerCase(),r=c.replace(/\/.*$/,"");return e.some((t=>(t=t.trim().toLowerCase()).startsWith(".")?s.toLowerCase().endsWith(t):t.endsWith("/*")?r===t.replace(/\/.*$/,""):c===t))}}!function(t,e,s,c){var r,i=arguments.length,o=i<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,s):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,c);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(i<3?r(o):i>3?r(e,s,o):r(e,s))||o);i>3&&o&&Object.defineProperty(e,s,o)}([t()],s.prototype,"accept",void 0);export{s as D}