"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=_default;var _chalk=_interopRequireDefault(require("chalk"));

const colors=[
"red",
"green",
"yellow",
"blue",
"magenta",
"cyan",
"gray",
"redBright",
"greenBright",
"yellowBright",
"blueBright",
"magentaBright",
"cyanBright"];


let index=0;
const cache={};

function _default(string){
if(!cache[string]){
const color=colors[index];
let str=_chalk.default[color].bold(string);
cache[string]=str;
if(index===colors.length-1){
index=0;
}else{
index+=1;
}
}
return cache[string].replace(",","");
}