(function () { ColorsIterator.DEFAULT_COLORS = ["#1ad5de", "#a0ff03", "#e90b3a", '#ff9500', '#007aff', '#ffcc00', '#5856d6', '#8e8e93']; function ColorsIterator() { this.index = 0; } ColorsIterator.prototype.next = function () { if (this.index === ColorsIterator.DEFAULT_COLORS.length) { this.index = 0; } return ColorsIterator.DEFAULT_COLORS[this.index++]; }; return ColorsIterator; })()