function c(a,s){const l=a.createReader();let i=[];function e(){l.readEntries(r=>{const t=Array.prototype.slice.apply(r);i=i.concat(t),!t.length?s(i):e()})}e()}const o=(a,s,l)=>{const i=(e,r)=>{e.path=r||"",e.isFile?e.file(t=>{l(t)&&(e.fullPath&&!t.webkitRelativePath&&(Object.defineProperties(t,{webkitRelativePath:{writable:!0}}),t.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(t,{webkitRelativePath:{writable:!1}})),s([t]))}):e.isDirectory&&c(e,t=>{t.forEach(n=>{i(n,`${r}${e.name}/`)})})};a.forEach(e=>{i(e.webkitGetAsEntry())})};export{o as default};
