var e=[{match:`raspberry pi os`,icon:`mdi-raspberry-pi`,color:`red-7`},{match:`raspbian`,icon:`mdi-raspberry-pi`,color:`red-7`},{match:`linux mint`,icon:`mdi-linux-mint`,color:`green-7`},{match:`ubuntu`,icon:`mdi-ubuntu`,color:`deep-orange-7`},{match:`debian`,icon:`mdi-debian`,color:`red-8`},{match:`fedora`,icon:`mdi-fedora`,color:`blue-7`},{match:`red hat`,icon:`mdi-redhat`,color:`red-7`},{match:`rhel`,icon:`mdi-redhat`,color:`red-7`},{match:`centos`,icon:`mdi-centos`,color:`purple-7`},{match:`manjaro`,icon:`mdi-manjaro`,color:`green-8`},{match:`gentoo`,icon:`mdi-gentoo`,color:`purple-8`},{match:`freebsd`,icon:`mdi-freebsd`,color:`red-9`}];function t(t){let n=t.os??`linux`,r=t.osInfo??``;if(n===`windows`)return{icon:`mdi-microsoft-windows`,color:`blue-7`};if(n===`macos`)return{icon:`mdi-apple`,color:`grey-8`};let i=r.toLowerCase();for(let t of e)if(i.includes(t.match))return{icon:t.icon,color:t.color};return{icon:`mdi-linux`,color:`orange-8`}}function n(e){return t(e).icon}function r(e){return t(e).color}function i(e){return e===`windows`?`Windows`:e===`macos`?`macOS`:`Linux`}export{t as i,n,i as r,r as t};