var r,t;function n(){if(t)return r;function n(r,t){if(!Array.isArray(t))return e(r,t);for(const n of t){const t=e(r,n);if(t)return t}return!1}function e(r,t){if(t instanceof RegExp){const n=r.match(t);return!!n&&{match:r,pattern:t,substring:n[0]||""}}const n=t[0],e=t[t.length-1],i=t[t.length-2],c="/"===n&&("/"===e||"/"===i&&"i"===e);if(c){const n=c&&"i"===e?r.match(new RegExp(t.slice(1,-2),"i")):r.match(new RegExp(t.slice(1,-1)));return!!n&&{match:r,pattern:t,substring:n[0]||""}}return r===t&&{match:r,pattern:t,substring:r}}return t=1,r=function(r,t){if(!Array.isArray(r))return n(r,t);for(const e of r){const r=n(e,t);if(r)return r}return!1}}export{n as __require};