import{__module as o}from"../../_virtual/index54.mjs";import n from"../../_virtual/_node_path.mjs";import i from"../../_virtual/_node_os.mjs";var r;function e(){if(r)return o.exports;r=1;const e=n,t=i,a=t.homedir(),s=t.tmpdir(),{env:p}=process,c=(o,n)=>{if("string"!=typeof o)throw new TypeError("Expected string, got "+typeof o);return(n=Object.assign({suffix:"nodejs"},n)).suffix&&(o+=`-${n.suffix}`),"darwin"===process.platform?(o=>{const n=e.join(a,"Library");return{data:e.join(n,"Application Support",o),config:e.join(n,"Preferences",o),cache:e.join(n,"Caches",o),log:e.join(n,"Logs",o),temp:e.join(s,o)}})(o):"win32"===process.platform?(o=>{const n=p.APPDATA||e.join(a,"AppData","Roaming"),i=p.LOCALAPPDATA||e.join(a,"AppData","Local");return{data:e.join(i,o,"Data"),config:e.join(n,o,"Config"),cache:e.join(i,o,"Cache"),log:e.join(i,o,"Log"),temp:e.join(s,o)}})(o):(o=>{const n=e.basename(a);return{data:e.join(p.XDG_DATA_HOME||e.join(a,".local","share"),o),config:e.join(p.XDG_CONFIG_HOME||e.join(a,".config"),o),cache:e.join(p.XDG_CACHE_HOME||e.join(a,".cache"),o),log:e.join(p.XDG_STATE_HOME||e.join(a,".local","state"),o),temp:e.join(s,n,o)}})(o)};return o.exports=c,o.exports.default=c,o.exports}export{e as __require};