import{n as m,t as h}from"./paths-BKO-pHK6.js";function g({path:t,delimiter:e,initialPath:n,restrictNavigation:s}){let r=t.match(/^[\dA-Za-z]+:\/\//),u=/^[A-Za-z]:\\/.test(t),c=r?r[0]:u?t.slice(0,3):"/",a=(u||r?t.slice(c.length):t).split(e).filter(Boolean),l=[];if(u)for(let i=a.length;i>=0;i--){let o=c+a.slice(0,i).join(e);l.push(o)}else{let i=c;for(let o=0;o<=a.length;o++){let p=i+a.slice(0,o).join(e);l.push(p),o<a.length&&!i.endsWith(e)&&(i+=e)}l.reverse()}return s&&(l=l.filter(i=>i.startsWith(n))),{protocol:c,parentDirectories:l}}function d(t){let e=t.lastIndexOf(".");return[e>0?t.slice(0,e):t,e>0?t.slice(e):""]}function j(t){let[e,n]=d(t);return`${e}_copy${n}`}function f(t,e){return m.isAbsolute(t)?t:h.guessDeliminator(e).join(e,t)}function A({path:t,name:e,root:n}){let s=f(t,n),r=h.guessDeliminator(n||s);return{path:s,newPath:r.join(r.dirname(s),e)}}export{f as i,j as n,A as r,g as t};
