const tty=require("tty"),isDisabled="NO_COLOR"in process.env||process.argv.includes("--no-color"),isForced="FORCE_COLOR"in process.env||process.argv.includes("--color"),isWindows="win32"===process.platform,isCompatibleTerminal=tty&&tty.isatty(1)&&process.env.TERM&&"dumb"!==process.env.TERM,isCI="CI"in process.env&&("GITHUB_ACTIONS"in process.env||"GITLAB_CI"in process.env||"CIRCLECI"in process.env),isColorSupported=!isDisabled&&(isForced||isWindows||isCompatibleTerminal||isCI),nope=e=>""+e;function color(e,o,r,l=e){return function(n){return n&&n.length?e+(~n.indexOf(o,4)?n.replace(r,l):n)+o:""===n?"":e+n+o}}const close22="",close39="",close49="",regexp22=/\x1b\[22m/g,regexp39=/\x1b\[39m/g,regexp49=/\x1b\[49m/g;function createColors(e=isColorSupported){return e?{isColorSupported:!0,reset:e=>`${e}`,bold:color("",close22,regexp22,""),dim:color("",close22,regexp22,""),italic:color("","",/\x1b\[23m/g),underline:color("","",/\x1b\[24m/g),inverse:color("","",/\x1b\[27m/g),hidden:color("","",/\x1b\[28m/g),strikethrough:color("","",/\x1b\[29m/g),black:color("",close39,regexp39),red:color("",close39,regexp39),green:color("",close39,regexp39),yellow:color("",close39,regexp39),blue:color("",close39,regexp39),magenta:color("",close39,regexp39),cyan:color("",close39,regexp39),white:color("",close39,regexp39),gray:color("",close39,regexp39),bgBlack:color("",close49,regexp49),bgRed:color("",close49,regexp49),bgGreen:color("",close49,regexp49),bgYellow:color("",close49,regexp49),bgBlue:color("",close49,regexp49),bgMagenta:color("",close49,regexp49),bgCyan:color("",close49,regexp49),bgWhite:color("",close49,regexp49)}:{isColorSupported:!1,reset:nope,bold:nope,dim:nope,italic:nope,underline:nope,inverse:nope,hidden:nope,strikethrough:nope,black:nope,red:nope,green:nope,yellow:nope,blue:nope,magenta:nope,cyan:nope,white:nope,gray:nope,bgBlack:nope,bgRed:nope,bgGreen:nope,bgYellow:nope,bgBlue:nope,bgMagenta:nope,bgCyan:nope,bgWhite:nope}}const{reset:reset,bold:bold,dim:dim,italic:italic,underline:underline,inverse:inverse,hidden:hidden,strikethrough:strikethrough,black:black,red:red,green:green,yellow:yellow,blue:blue,magenta:magenta,cyan:cyan,white:white,gray:gray,bgBlack:bgBlack,bgRed:bgRed,bgGreen:bgGreen,bgYellow:bgYellow,bgBlue:bgBlue,bgMagenta:bgMagenta,bgCyan:bgCyan,bgWhite:bgWhite}=createColors(isColorSupported);module.exports={isColorSupported:isColorSupported,createColors:createColors,reset:reset,bold:bold,dim:dim,italic:italic,underline:underline,inverse:inverse,hidden:hidden,strikethrough:strikethrough,black:black,red:red,green:green,yellow:yellow,blue:blue,magenta:magenta,cyan:cyan,white:white,gray:gray,bgBlack:bgBlack,bgRed:bgRed,bgGreen:bgGreen,bgYellow:bgYellow,bgBlue:bgBlue,bgMagenta:bgMagenta,bgCyan:bgCyan,bgWhite:bgWhite};