"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=(r,t)=>{if(r&&t){const a=Array.isArray(t)?t:t.split(","),i=r.name||"",o=r.type||"",l=o.replace(/\/.*$/,"");return a.some(n=>{const e=n.trim();if(/^\*(\/\*)?$/.test(n))return!0;if(e.charAt(0)==="."){const c=i.toLowerCase(),s=e.toLowerCase();let u=[s];return(s===".jpg"||s===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(f=>c.endsWith(f))}return/\/\*$/.test(e)?l===e.replace(/\/.*$/,""):!!(o===e||/^\w+$/.test(e))})}return!0};exports.default=p;
