function e(e,t){let n=encodeURIComponent(e);return t?`/workspace/folder/${n}/${t.split(`/`).map(encodeURIComponent).join(`/`)}`:`/workspace/folder/${n}`}function t(e,t){if(!t)return e;let n=t.split(`/`),r=e;for(let e of n){let t=r.find(t=>t.name===e);if(!t)return[];r=t.children}return r}export{e as n,t};