var u=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var P=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},g=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let f of o(e))!w.call(r,f)&&f!==t&&i(r,f,{get:()=>e[f],enumerable:!(n=h(e,f))||n.enumerable});return r};var l=(r,e,t)=>(t=r!=null?u(p(r)):{},g(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),F=r=>g(i({},"__esModule",{value:!0}),r);var y={};P(y,{default:()=>m,readFiles:()=>x});module.exports=F(y);var c=l(require("fs-extra")),a=l(require("upath")),d=l(require("fast-glob")),s=l(require("to-extend"));function m(r,e){if(!r?.length)return;e=(0,s.default)({cwd:process.cwd()},e);let t=d.default.sync(r,e)[0],n=a.default.resolve(e.cwd,t);return c.default.readFileSync(n,e)}function x(r,e){return r?.length?(e=(0,s.default)({cwd:process.cwd()},e),d.default.sync(r,e).map(n=>c.default.readFileSync(a.default.resolve(e.cwd,n),e)).filter(n=>n)):[]}0&&(module.exports={readFiles});