import{__exports as r}from"../../../../../_virtual/async3.mjs";import{__require as t}from"../readers/async.mjs";var e;function s(){if(e)return r;e=1,Object.defineProperty(r,"__esModule",{value:!0});const s=t();return r.default=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new s.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(t=>{!function(r,t){r(t)}(r,t)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{!function(r,t){r(null,t)}(r,this._storage)}),this._reader.read()}},r}export{s as __require};