@nsshunt/stsrunnerframework 1.0.30 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
58
58
  function getDefaultExportFromCjs(x) {
59
59
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
60
60
  }
61
- var ansiStyles$1 = { exports: {} };
61
+ var ansiStyles = { exports: {} };
62
62
  var colorName;
63
63
  var hasRequiredColorName;
64
64
  function requireColorName() {
@@ -421,8 +421,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
421
421
  }
422
422
  const t1 = 2 * l - t2;
423
423
  const rgb = [0, 0, 0];
424
- for (let i2 = 0; i2 < 3; i2++) {
425
- t3 = h + 1 / 3 * -(i2 - 1);
424
+ for (let i = 0; i < 3; i++) {
425
+ t3 = h + 1 / 3 * -(i - 1);
426
426
  if (t3 < 0) {
427
427
  t3++;
428
428
  }
@@ -438,7 +438,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
438
438
  } else {
439
439
  val = t1;
440
440
  }
441
- rgb[i2] = val * 255;
441
+ rgb[i] = val * 255;
442
442
  }
443
443
  return rgb;
444
444
  };
@@ -505,17 +505,17 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
505
505
  wh /= ratio;
506
506
  bl /= ratio;
507
507
  }
508
- const i2 = Math.floor(6 * h);
508
+ const i = Math.floor(6 * h);
509
509
  const v = 1 - bl;
510
- f = 6 * h - i2;
511
- if ((i2 & 1) !== 0) {
510
+ f = 6 * h - i;
511
+ if ((i & 1) !== 0) {
512
512
  f = 1 - f;
513
513
  }
514
514
  const n = wh + f * (v - wh);
515
515
  let r;
516
516
  let g;
517
517
  let b;
518
- switch (i2) {
518
+ switch (i) {
519
519
  default:
520
520
  case 6:
521
521
  case 0:
@@ -897,8 +897,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
897
897
  function buildGraph() {
898
898
  const graph = {};
899
899
  const models = Object.keys(conversions2);
900
- for (let len = models.length, i2 = 0; i2 < len; i2++) {
901
- graph[models[i2]] = {
900
+ for (let len = models.length, i = 0; i < len; i++) {
901
+ graph[models[i]] = {
902
902
  // http://jsperf.com/1-vs-infinity
903
903
  // micro-opt, but this is simple.
904
904
  distance: -1,
@@ -914,8 +914,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
914
914
  while (queue.length) {
915
915
  const current = queue.pop();
916
916
  const adjacents = Object.keys(conversions2[current]);
917
- for (let len = adjacents.length, i2 = 0; i2 < len; i2++) {
918
- const adjacent = adjacents[i2];
917
+ for (let len = adjacents.length, i = 0; i < len; i++) {
918
+ const adjacent = adjacents[i];
919
919
  const node = graph[adjacent];
920
920
  if (node.distance === -1) {
921
921
  node.distance = graph[current].distance + 1;
@@ -947,8 +947,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
947
947
  const graph = deriveBFS(fromModel);
948
948
  const conversion = {};
949
949
  const models = Object.keys(graph);
950
- for (let len = models.length, i2 = 0; i2 < len; i2++) {
951
- const toModel = models[i2];
950
+ for (let len = models.length, i = 0; i < len; i++) {
951
+ const toModel = models[i];
952
952
  const node = graph[toModel];
953
953
  if (node.parent === null) {
954
954
  continue;
@@ -995,8 +995,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
995
995
  }
996
996
  const result = fn(args);
997
997
  if (typeof result === "object") {
998
- for (let len = result.length, i2 = 0; i2 < len; i2++) {
999
- result[i2] = Math.round(result[i2]);
998
+ for (let len = result.length, i = 0; i < len; i++) {
999
+ result[i] = Math.round(result[i]);
1000
1000
  }
1001
1001
  }
1002
1002
  return result;
@@ -1021,181 +1021,200 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1021
1021
  colorConvert = convert;
1022
1022
  return colorConvert;
1023
1023
  }
1024
- ansiStyles$1.exports;
1025
- (function(module2) {
1026
- const wrapAnsi16 = (fn, offset) => (...args) => {
1027
- const code = fn(...args);
1028
- return `\x1B[${code + offset}m`;
1029
- };
1030
- const wrapAnsi256 = (fn, offset) => (...args) => {
1031
- const code = fn(...args);
1032
- return `\x1B[${38 + offset};5;${code}m`;
1033
- };
1034
- const wrapAnsi16m = (fn, offset) => (...args) => {
1035
- const rgb = fn(...args);
1036
- return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1037
- };
1038
- const ansi2ansi = (n) => n;
1039
- const rgb2rgb = (r, g, b) => [r, g, b];
1040
- const setLazyProperty = (object, property, get) => {
1041
- Object.defineProperty(object, property, {
1042
- get: () => {
1043
- const value = get();
1044
- Object.defineProperty(object, property, {
1045
- value,
1046
- enumerable: true,
1047
- configurable: true
1048
- });
1049
- return value;
1050
- },
1051
- enumerable: true,
1052
- configurable: true
1053
- });
1054
- };
1055
- let colorConvert2;
1056
- const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
1057
- if (colorConvert2 === void 0) {
1058
- colorConvert2 = requireColorConvert();
1059
- }
1060
- const offset = isBackground ? 10 : 0;
1061
- const styles2 = {};
1062
- for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
1063
- const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1064
- if (sourceSpace === targetSpace) {
1065
- styles2[name] = wrap(identity, offset);
1066
- } else if (typeof suite === "object") {
1067
- styles2[name] = wrap(suite[targetSpace], offset);
1024
+ ansiStyles.exports;
1025
+ var hasRequiredAnsiStyles;
1026
+ function requireAnsiStyles() {
1027
+ if (hasRequiredAnsiStyles) return ansiStyles.exports;
1028
+ hasRequiredAnsiStyles = 1;
1029
+ (function(module2) {
1030
+ const wrapAnsi16 = (fn, offset) => (...args) => {
1031
+ const code = fn(...args);
1032
+ return `\x1B[${code + offset}m`;
1033
+ };
1034
+ const wrapAnsi256 = (fn, offset) => (...args) => {
1035
+ const code = fn(...args);
1036
+ return `\x1B[${38 + offset};5;${code}m`;
1037
+ };
1038
+ const wrapAnsi16m = (fn, offset) => (...args) => {
1039
+ const rgb = fn(...args);
1040
+ return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1041
+ };
1042
+ const ansi2ansi = (n) => n;
1043
+ const rgb2rgb = (r, g, b) => [r, g, b];
1044
+ const setLazyProperty = (object, property, get) => {
1045
+ Object.defineProperty(object, property, {
1046
+ get: () => {
1047
+ const value = get();
1048
+ Object.defineProperty(object, property, {
1049
+ value,
1050
+ enumerable: true,
1051
+ configurable: true
1052
+ });
1053
+ return value;
1054
+ },
1055
+ enumerable: true,
1056
+ configurable: true
1057
+ });
1058
+ };
1059
+ let colorConvert2;
1060
+ const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
1061
+ if (colorConvert2 === void 0) {
1062
+ colorConvert2 = requireColorConvert();
1068
1063
  }
1069
- }
1070
- return styles2;
1071
- };
1072
- function assembleStyles() {
1073
- const codes = /* @__PURE__ */ new Map();
1074
- const styles2 = {
1075
- modifier: {
1076
- reset: [0, 0],
1077
- // 21 isn't widely supported and 22 does the same thing
1078
- bold: [1, 22],
1079
- dim: [2, 22],
1080
- italic: [3, 23],
1081
- underline: [4, 24],
1082
- inverse: [7, 27],
1083
- hidden: [8, 28],
1084
- strikethrough: [9, 29]
1085
- },
1086
- color: {
1087
- black: [30, 39],
1088
- red: [31, 39],
1089
- green: [32, 39],
1090
- yellow: [33, 39],
1091
- blue: [34, 39],
1092
- magenta: [35, 39],
1093
- cyan: [36, 39],
1094
- white: [37, 39],
1095
- // Bright color
1096
- blackBright: [90, 39],
1097
- redBright: [91, 39],
1098
- greenBright: [92, 39],
1099
- yellowBright: [93, 39],
1100
- blueBright: [94, 39],
1101
- magentaBright: [95, 39],
1102
- cyanBright: [96, 39],
1103
- whiteBright: [97, 39]
1104
- },
1105
- bgColor: {
1106
- bgBlack: [40, 49],
1107
- bgRed: [41, 49],
1108
- bgGreen: [42, 49],
1109
- bgYellow: [43, 49],
1110
- bgBlue: [44, 49],
1111
- bgMagenta: [45, 49],
1112
- bgCyan: [46, 49],
1113
- bgWhite: [47, 49],
1114
- // Bright color
1115
- bgBlackBright: [100, 49],
1116
- bgRedBright: [101, 49],
1117
- bgGreenBright: [102, 49],
1118
- bgYellowBright: [103, 49],
1119
- bgBlueBright: [104, 49],
1120
- bgMagentaBright: [105, 49],
1121
- bgCyanBright: [106, 49],
1122
- bgWhiteBright: [107, 49]
1064
+ const offset = isBackground ? 10 : 0;
1065
+ const styles = {};
1066
+ for (const [sourceSpace, suite] of Object.entries(colorConvert2)) {
1067
+ const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1068
+ if (sourceSpace === targetSpace) {
1069
+ styles[name] = wrap(identity, offset);
1070
+ } else if (typeof suite === "object") {
1071
+ styles[name] = wrap(suite[targetSpace], offset);
1072
+ }
1123
1073
  }
1074
+ return styles;
1124
1075
  };
1125
- styles2.color.gray = styles2.color.blackBright;
1126
- styles2.bgColor.bgGray = styles2.bgColor.bgBlackBright;
1127
- styles2.color.grey = styles2.color.blackBright;
1128
- styles2.bgColor.bgGrey = styles2.bgColor.bgBlackBright;
1129
- for (const [groupName, group] of Object.entries(styles2)) {
1130
- for (const [styleName, style] of Object.entries(group)) {
1131
- styles2[styleName] = {
1132
- open: `\x1B[${style[0]}m`,
1133
- close: `\x1B[${style[1]}m`
1134
- };
1135
- group[styleName] = styles2[styleName];
1136
- codes.set(style[0], style[1]);
1076
+ function assembleStyles() {
1077
+ const codes = /* @__PURE__ */ new Map();
1078
+ const styles = {
1079
+ modifier: {
1080
+ reset: [0, 0],
1081
+ // 21 isn't widely supported and 22 does the same thing
1082
+ bold: [1, 22],
1083
+ dim: [2, 22],
1084
+ italic: [3, 23],
1085
+ underline: [4, 24],
1086
+ inverse: [7, 27],
1087
+ hidden: [8, 28],
1088
+ strikethrough: [9, 29]
1089
+ },
1090
+ color: {
1091
+ black: [30, 39],
1092
+ red: [31, 39],
1093
+ green: [32, 39],
1094
+ yellow: [33, 39],
1095
+ blue: [34, 39],
1096
+ magenta: [35, 39],
1097
+ cyan: [36, 39],
1098
+ white: [37, 39],
1099
+ // Bright color
1100
+ blackBright: [90, 39],
1101
+ redBright: [91, 39],
1102
+ greenBright: [92, 39],
1103
+ yellowBright: [93, 39],
1104
+ blueBright: [94, 39],
1105
+ magentaBright: [95, 39],
1106
+ cyanBright: [96, 39],
1107
+ whiteBright: [97, 39]
1108
+ },
1109
+ bgColor: {
1110
+ bgBlack: [40, 49],
1111
+ bgRed: [41, 49],
1112
+ bgGreen: [42, 49],
1113
+ bgYellow: [43, 49],
1114
+ bgBlue: [44, 49],
1115
+ bgMagenta: [45, 49],
1116
+ bgCyan: [46, 49],
1117
+ bgWhite: [47, 49],
1118
+ // Bright color
1119
+ bgBlackBright: [100, 49],
1120
+ bgRedBright: [101, 49],
1121
+ bgGreenBright: [102, 49],
1122
+ bgYellowBright: [103, 49],
1123
+ bgBlueBright: [104, 49],
1124
+ bgMagentaBright: [105, 49],
1125
+ bgCyanBright: [106, 49],
1126
+ bgWhiteBright: [107, 49]
1127
+ }
1128
+ };
1129
+ styles.color.gray = styles.color.blackBright;
1130
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
1131
+ styles.color.grey = styles.color.blackBright;
1132
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
1133
+ for (const [groupName, group] of Object.entries(styles)) {
1134
+ for (const [styleName, style] of Object.entries(group)) {
1135
+ styles[styleName] = {
1136
+ open: `\x1B[${style[0]}m`,
1137
+ close: `\x1B[${style[1]}m`
1138
+ };
1139
+ group[styleName] = styles[styleName];
1140
+ codes.set(style[0], style[1]);
1141
+ }
1142
+ Object.defineProperty(styles, groupName, {
1143
+ value: group,
1144
+ enumerable: false
1145
+ });
1137
1146
  }
1138
- Object.defineProperty(styles2, groupName, {
1139
- value: group,
1147
+ Object.defineProperty(styles, "codes", {
1148
+ value: codes,
1140
1149
  enumerable: false
1141
1150
  });
1151
+ styles.color.close = "\x1B[39m";
1152
+ styles.bgColor.close = "\x1B[49m";
1153
+ setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
1154
+ setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
1155
+ setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
1156
+ setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
1157
+ setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
1158
+ setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
1159
+ return styles;
1142
1160
  }
1143
- Object.defineProperty(styles2, "codes", {
1144
- value: codes,
1145
- enumerable: false
1161
+ Object.defineProperty(module2, "exports", {
1162
+ enumerable: true,
1163
+ get: assembleStyles
1146
1164
  });
1147
- styles2.color.close = "\x1B[39m";
1148
- styles2.bgColor.close = "\x1B[49m";
1149
- setLazyProperty(styles2.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
1150
- setLazyProperty(styles2.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
1151
- setLazyProperty(styles2.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
1152
- setLazyProperty(styles2.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
1153
- setLazyProperty(styles2.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
1154
- setLazyProperty(styles2.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
1155
- return styles2;
1156
- }
1157
- Object.defineProperty(module2, "exports", {
1158
- enumerable: true,
1159
- get: assembleStyles
1160
- });
1161
- })(ansiStyles$1);
1162
- var ansiStylesExports = ansiStyles$1.exports;
1163
- var browser = {
1164
- stdout: false,
1165
- stderr: false
1166
- };
1167
- const stringReplaceAll$1 = (string, substring, replacer) => {
1168
- let index = string.indexOf(substring);
1169
- if (index === -1) {
1170
- return string;
1171
- }
1172
- const substringLength = substring.length;
1173
- let endIndex = 0;
1174
- let returnValue = "";
1175
- do {
1176
- returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
1177
- endIndex = index + substringLength;
1178
- index = string.indexOf(substring, endIndex);
1179
- } while (index !== -1);
1180
- returnValue += string.substr(endIndex);
1181
- return returnValue;
1182
- };
1183
- const stringEncaseCRLFWithFirstIndex$1 = (string, prefix, postfix, index) => {
1184
- let endIndex = 0;
1185
- let returnValue = "";
1186
- do {
1187
- const gotCR = string[index - 1] === "\r";
1188
- returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1189
- endIndex = index + 1;
1190
- index = string.indexOf("\n", endIndex);
1191
- } while (index !== -1);
1192
- returnValue += string.substr(endIndex);
1193
- return returnValue;
1194
- };
1195
- var util = {
1196
- stringReplaceAll: stringReplaceAll$1,
1197
- stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex$1
1198
- };
1165
+ })(ansiStyles);
1166
+ return ansiStyles.exports;
1167
+ }
1168
+ var browser;
1169
+ var hasRequiredBrowser;
1170
+ function requireBrowser() {
1171
+ if (hasRequiredBrowser) return browser;
1172
+ hasRequiredBrowser = 1;
1173
+ browser = {
1174
+ stdout: false,
1175
+ stderr: false
1176
+ };
1177
+ return browser;
1178
+ }
1179
+ var util;
1180
+ var hasRequiredUtil;
1181
+ function requireUtil() {
1182
+ if (hasRequiredUtil) return util;
1183
+ hasRequiredUtil = 1;
1184
+ const stringReplaceAll = (string, substring, replacer) => {
1185
+ let index = string.indexOf(substring);
1186
+ if (index === -1) {
1187
+ return string;
1188
+ }
1189
+ const substringLength = substring.length;
1190
+ let endIndex = 0;
1191
+ let returnValue = "";
1192
+ do {
1193
+ returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
1194
+ endIndex = index + substringLength;
1195
+ index = string.indexOf(substring, endIndex);
1196
+ } while (index !== -1);
1197
+ returnValue += string.substr(endIndex);
1198
+ return returnValue;
1199
+ };
1200
+ const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
1201
+ let endIndex = 0;
1202
+ let returnValue = "";
1203
+ do {
1204
+ const gotCR = string[index - 1] === "\r";
1205
+ returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1206
+ endIndex = index + 1;
1207
+ index = string.indexOf("\n", endIndex);
1208
+ } while (index !== -1);
1209
+ returnValue += string.substr(endIndex);
1210
+ return returnValue;
1211
+ };
1212
+ util = {
1213
+ stringReplaceAll,
1214
+ stringEncaseCRLFWithFirstIndex
1215
+ };
1216
+ return util;
1217
+ }
1199
1218
  var templates;
1200
1219
  var hasRequiredTemplates;
1201
1220
  function requireTemplates() {
@@ -1259,27 +1278,27 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1259
1278
  }
1260
1279
  return results;
1261
1280
  }
1262
- function buildStyle(chalk2, styles2) {
1281
+ function buildStyle(chalk2, styles) {
1263
1282
  const enabled = {};
1264
- for (const layer of styles2) {
1283
+ for (const layer of styles) {
1265
1284
  for (const style of layer.styles) {
1266
1285
  enabled[style[0]] = layer.inverse ? null : style.slice(1);
1267
1286
  }
1268
1287
  }
1269
1288
  let current = chalk2;
1270
- for (const [styleName, styles3] of Object.entries(enabled)) {
1271
- if (!Array.isArray(styles3)) {
1289
+ for (const [styleName, styles2] of Object.entries(enabled)) {
1290
+ if (!Array.isArray(styles2)) {
1272
1291
  continue;
1273
1292
  }
1274
1293
  if (!(styleName in current)) {
1275
1294
  throw new Error(`Unknown Chalk style: ${styleName}`);
1276
1295
  }
1277
- current = styles3.length > 0 ? current[styleName](...styles3) : current[styleName];
1296
+ current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
1278
1297
  }
1279
1298
  return current;
1280
1299
  }
1281
1300
  templates = (chalk2, temporary) => {
1282
- const styles2 = [];
1301
+ const styles = [];
1283
1302
  const chunks = [];
1284
1303
  let chunk = [];
1285
1304
  temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
@@ -1288,201 +1307,209 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1288
1307
  } else if (style) {
1289
1308
  const string = chunk.join("");
1290
1309
  chunk = [];
1291
- chunks.push(styles2.length === 0 ? string : buildStyle(chalk2, styles2)(string));
1292
- styles2.push({ inverse, styles: parseStyle(style) });
1310
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
1311
+ styles.push({ inverse, styles: parseStyle(style) });
1293
1312
  } else if (close) {
1294
- if (styles2.length === 0) {
1313
+ if (styles.length === 0) {
1295
1314
  throw new Error("Found extraneous } in Chalk template literal");
1296
1315
  }
1297
- chunks.push(buildStyle(chalk2, styles2)(chunk.join("")));
1316
+ chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
1298
1317
  chunk = [];
1299
- styles2.pop();
1318
+ styles.pop();
1300
1319
  } else {
1301
1320
  chunk.push(character);
1302
1321
  }
1303
1322
  });
1304
1323
  chunks.push(chunk.join(""));
1305
- if (styles2.length > 0) {
1306
- const errMessage = `Chalk template literal is missing ${styles2.length} closing bracket${styles2.length === 1 ? "" : "s"} (\`}\`)`;
1324
+ if (styles.length > 0) {
1325
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
1307
1326
  throw new Error(errMessage);
1308
1327
  }
1309
1328
  return chunks.join("");
1310
1329
  };
1311
1330
  return templates;
1312
1331
  }
1313
- const ansiStyles = ansiStylesExports;
1314
- const { stdout: stdoutColor, stderr: stderrColor } = browser;
1315
- const {
1316
- stringReplaceAll,
1317
- stringEncaseCRLFWithFirstIndex
1318
- } = util;
1319
- const { isArray } = Array;
1320
- const levelMapping = [
1321
- "ansi",
1322
- "ansi",
1323
- "ansi256",
1324
- "ansi16m"
1325
- ];
1326
- const styles = /* @__PURE__ */ Object.create(null);
1327
- const applyOptions = (object, options = {}) => {
1328
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1329
- throw new Error("The `level` option should be an integer from 0 to 3");
1332
+ var source;
1333
+ var hasRequiredSource;
1334
+ function requireSource() {
1335
+ if (hasRequiredSource) return source;
1336
+ hasRequiredSource = 1;
1337
+ const ansiStyles2 = requireAnsiStyles();
1338
+ const { stdout: stdoutColor, stderr: stderrColor } = requireBrowser();
1339
+ const {
1340
+ stringReplaceAll,
1341
+ stringEncaseCRLFWithFirstIndex
1342
+ } = requireUtil();
1343
+ const { isArray } = Array;
1344
+ const levelMapping = [
1345
+ "ansi",
1346
+ "ansi",
1347
+ "ansi256",
1348
+ "ansi16m"
1349
+ ];
1350
+ const styles = /* @__PURE__ */ Object.create(null);
1351
+ const applyOptions = (object, options = {}) => {
1352
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1353
+ throw new Error("The `level` option should be an integer from 0 to 3");
1354
+ }
1355
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
1356
+ object.level = options.level === void 0 ? colorLevel : options.level;
1357
+ };
1358
+ class ChalkClass {
1359
+ constructor(options) {
1360
+ return chalkFactory(options);
1361
+ }
1330
1362
  }
1331
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
1332
- object.level = options.level === void 0 ? colorLevel : options.level;
1333
- };
1334
- class ChalkClass {
1335
- constructor(options) {
1363
+ const chalkFactory = (options) => {
1364
+ const chalk3 = {};
1365
+ applyOptions(chalk3, options);
1366
+ chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
1367
+ Object.setPrototypeOf(chalk3, Chalk.prototype);
1368
+ Object.setPrototypeOf(chalk3.template, chalk3);
1369
+ chalk3.template.constructor = () => {
1370
+ throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
1371
+ };
1372
+ chalk3.template.Instance = ChalkClass;
1373
+ return chalk3.template;
1374
+ };
1375
+ function Chalk(options) {
1336
1376
  return chalkFactory(options);
1337
1377
  }
1338
- }
1339
- const chalkFactory = (options) => {
1340
- const chalk2 = {};
1341
- applyOptions(chalk2, options);
1342
- chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
1343
- Object.setPrototypeOf(chalk2, Chalk.prototype);
1344
- Object.setPrototypeOf(chalk2.template, chalk2);
1345
- chalk2.template.constructor = () => {
1346
- throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
1347
- };
1348
- chalk2.template.Instance = ChalkClass;
1349
- return chalk2.template;
1350
- };
1351
- function Chalk(options) {
1352
- return chalkFactory(options);
1353
- }
1354
- for (const [styleName, style] of Object.entries(ansiStyles)) {
1355
- styles[styleName] = {
1378
+ for (const [styleName, style] of Object.entries(ansiStyles2)) {
1379
+ styles[styleName] = {
1380
+ get() {
1381
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
1382
+ Object.defineProperty(this, styleName, { value: builder });
1383
+ return builder;
1384
+ }
1385
+ };
1386
+ }
1387
+ styles.visible = {
1356
1388
  get() {
1357
- const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
1358
- Object.defineProperty(this, styleName, { value: builder });
1389
+ const builder = createBuilder(this, this._styler, true);
1390
+ Object.defineProperty(this, "visible", { value: builder });
1359
1391
  return builder;
1360
1392
  }
1361
1393
  };
1362
- }
1363
- styles.visible = {
1364
- get() {
1365
- const builder = createBuilder(this, this._styler, true);
1366
- Object.defineProperty(this, "visible", { value: builder });
1367
- return builder;
1394
+ const usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
1395
+ for (const model of usedModels) {
1396
+ styles[model] = {
1397
+ get() {
1398
+ const { level } = this;
1399
+ return function(...arguments_) {
1400
+ const styler = createStyler(ansiStyles2.color[levelMapping[level]][model](...arguments_), ansiStyles2.color.close, this._styler);
1401
+ return createBuilder(this, styler, this._isEmpty);
1402
+ };
1403
+ }
1404
+ };
1368
1405
  }
1369
- };
1370
- const usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
1371
- for (const model of usedModels) {
1372
- styles[model] = {
1373
- get() {
1374
- const { level } = this;
1375
- return function(...arguments_) {
1376
- const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
1377
- return createBuilder(this, styler, this._isEmpty);
1378
- };
1406
+ for (const model of usedModels) {
1407
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1408
+ styles[bgModel] = {
1409
+ get() {
1410
+ const { level } = this;
1411
+ return function(...arguments_) {
1412
+ const styler = createStyler(ansiStyles2.bgColor[levelMapping[level]][model](...arguments_), ansiStyles2.bgColor.close, this._styler);
1413
+ return createBuilder(this, styler, this._isEmpty);
1414
+ };
1415
+ }
1416
+ };
1417
+ }
1418
+ const proto = Object.defineProperties(() => {
1419
+ }, {
1420
+ ...styles,
1421
+ level: {
1422
+ enumerable: true,
1423
+ get() {
1424
+ return this._generator.level;
1425
+ },
1426
+ set(level) {
1427
+ this._generator.level = level;
1428
+ }
1379
1429
  }
1380
- };
1381
- }
1382
- for (const model of usedModels) {
1383
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1384
- styles[bgModel] = {
1385
- get() {
1386
- const { level } = this;
1387
- return function(...arguments_) {
1388
- const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
1389
- return createBuilder(this, styler, this._isEmpty);
1390
- };
1430
+ });
1431
+ const createStyler = (open, close, parent) => {
1432
+ let openAll;
1433
+ let closeAll;
1434
+ if (parent === void 0) {
1435
+ openAll = open;
1436
+ closeAll = close;
1437
+ } else {
1438
+ openAll = parent.openAll + open;
1439
+ closeAll = close + parent.closeAll;
1391
1440
  }
1441
+ return {
1442
+ open,
1443
+ close,
1444
+ openAll,
1445
+ closeAll,
1446
+ parent
1447
+ };
1392
1448
  };
1393
- }
1394
- const proto = Object.defineProperties(() => {
1395
- }, {
1396
- ...styles,
1397
- level: {
1398
- enumerable: true,
1399
- get() {
1400
- return this._generator.level;
1401
- },
1402
- set(level) {
1403
- this._generator.level = level;
1404
- }
1405
- }
1406
- });
1407
- const createStyler = (open, close, parent) => {
1408
- let openAll;
1409
- let closeAll;
1410
- if (parent === void 0) {
1411
- openAll = open;
1412
- closeAll = close;
1413
- } else {
1414
- openAll = parent.openAll + open;
1415
- closeAll = close + parent.closeAll;
1416
- }
1417
- return {
1418
- open,
1419
- close,
1420
- openAll,
1421
- closeAll,
1422
- parent
1449
+ const createBuilder = (self2, _styler, _isEmpty) => {
1450
+ const builder = (...arguments_) => {
1451
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
1452
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
1453
+ }
1454
+ return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1455
+ };
1456
+ Object.setPrototypeOf(builder, proto);
1457
+ builder._generator = self2;
1458
+ builder._styler = _styler;
1459
+ builder._isEmpty = _isEmpty;
1460
+ return builder;
1423
1461
  };
1424
- };
1425
- const createBuilder = (self2, _styler, _isEmpty) => {
1426
- const builder = (...arguments_) => {
1427
- if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
1428
- return applyStyle(builder, chalkTag(builder, ...arguments_));
1462
+ const applyStyle = (self2, string) => {
1463
+ if (self2.level <= 0 || !string) {
1464
+ return self2._isEmpty ? "" : string;
1465
+ }
1466
+ let styler = self2._styler;
1467
+ if (styler === void 0) {
1468
+ return string;
1469
+ }
1470
+ const { openAll, closeAll } = styler;
1471
+ if (string.indexOf("\x1B") !== -1) {
1472
+ while (styler !== void 0) {
1473
+ string = stringReplaceAll(string, styler.close, styler.open);
1474
+ styler = styler.parent;
1475
+ }
1429
1476
  }
1430
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1477
+ const lfIndex = string.indexOf("\n");
1478
+ if (lfIndex !== -1) {
1479
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1480
+ }
1481
+ return openAll + string + closeAll;
1431
1482
  };
1432
- Object.setPrototypeOf(builder, proto);
1433
- builder._generator = self2;
1434
- builder._styler = _styler;
1435
- builder._isEmpty = _isEmpty;
1436
- return builder;
1437
- };
1438
- const applyStyle = (self2, string) => {
1439
- if (self2.level <= 0 || !string) {
1440
- return self2._isEmpty ? "" : string;
1441
- }
1442
- let styler = self2._styler;
1443
- if (styler === void 0) {
1444
- return string;
1445
- }
1446
- const { openAll, closeAll } = styler;
1447
- if (string.indexOf("\x1B") !== -1) {
1448
- while (styler !== void 0) {
1449
- string = stringReplaceAll(string, styler.close, styler.open);
1450
- styler = styler.parent;
1483
+ let template;
1484
+ const chalkTag = (chalk3, ...strings) => {
1485
+ const [firstString] = strings;
1486
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
1487
+ return strings.join(" ");
1451
1488
  }
1452
- }
1453
- const lfIndex = string.indexOf("\n");
1454
- if (lfIndex !== -1) {
1455
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1456
- }
1457
- return openAll + string + closeAll;
1458
- };
1459
- let template;
1460
- const chalkTag = (chalk2, ...strings) => {
1461
- const [firstString] = strings;
1462
- if (!isArray(firstString) || !isArray(firstString.raw)) {
1463
- return strings.join(" ");
1464
- }
1465
- const arguments_ = strings.slice(1);
1466
- const parts = [firstString.raw[0]];
1467
- for (let i2 = 1; i2 < firstString.length; i2++) {
1468
- parts.push(
1469
- String(arguments_[i2 - 1]).replace(/[{}\\]/g, "\\$&"),
1470
- String(firstString.raw[i2])
1471
- );
1472
- }
1473
- if (template === void 0) {
1474
- template = requireTemplates();
1475
- }
1476
- return template(chalk2, parts.join(""));
1477
- };
1478
- Object.defineProperties(Chalk.prototype, styles);
1479
- const chalk = Chalk();
1480
- chalk.supportsColor = stdoutColor;
1481
- chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
1482
- chalk.stderr.supportsColor = stderrColor;
1483
- var source = chalk;
1484
- const chalk$1 = /* @__PURE__ */ getDefaultExportFromCjs(source);
1485
- chalk$1.level = 3;
1489
+ const arguments_ = strings.slice(1);
1490
+ const parts = [firstString.raw[0]];
1491
+ for (let i = 1; i < firstString.length; i++) {
1492
+ parts.push(
1493
+ String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
1494
+ String(firstString.raw[i])
1495
+ );
1496
+ }
1497
+ if (template === void 0) {
1498
+ template = requireTemplates();
1499
+ }
1500
+ return template(chalk3, parts.join(""));
1501
+ };
1502
+ Object.defineProperties(Chalk.prototype, styles);
1503
+ const chalk2 = Chalk();
1504
+ chalk2.supportsColor = stdoutColor;
1505
+ chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
1506
+ chalk2.stderr.supportsColor = stderrColor;
1507
+ source = chalk2;
1508
+ return source;
1509
+ }
1510
+ var sourceExports = requireSource();
1511
+ const chalk = /* @__PURE__ */ getDefaultExportFromCjs(sourceExports);
1512
+ chalk.level = 3;
1486
1513
  class WorkerInstance {
1487
1514
  constructor() {
1488
1515
  __privateAdd(this, _WorkerInstance_instances);
@@ -1491,9 +1518,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1491
1518
  __privateAdd(this, _options, null);
1492
1519
  __privateAdd(this, _debug, (message) => {
1493
1520
  if (__privateGet(this, _options)) {
1494
- console.log(chalk$1.green(`pid: [${process.pid}] ${__privateGet(this, _options).id} WorkerInstance::${message}`));
1521
+ console.log(chalk.green(`pid: [${process.pid}] ${__privateGet(this, _options).id} WorkerInstance::${message}`));
1495
1522
  } else {
1496
- console.log(chalk$1.green(`pid: [${process.pid}] WorkerInstance::${message}`));
1523
+ console.log(chalk.green(`pid: [${process.pid}] WorkerInstance::${message}`));
1497
1524
  }
1498
1525
  });
1499
1526
  __publicField(this, "GetRandomInt", (max) => {
@@ -1553,7 +1580,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1553
1580
  });
1554
1581
  __privateAdd(this, _StartRunner, async (testRunnerTelemetryPayload) => {
1555
1582
  const { runner } = testRunnerTelemetryPayload;
1556
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} StartRunner`);
1583
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} StartRunner`);
1557
1584
  __privateGet(this, _runners)[runner.id].terminate = false;
1558
1585
  __privateGet(this, _runners)[runner.id].paused = false;
1559
1586
  await __privateGet(this, _runners)[runner.id].runnerInstance.StartRunner();
@@ -1594,7 +1621,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1594
1621
  __privateAdd(this, _StopAllRunners, async (testRunnerTelemetryPayload) => {
1595
1622
  __privateGet(this, _debug).call(this, `StopAllRunners`);
1596
1623
  for (const [, runner] of Object.entries(__privateGet(this, _runners))) {
1597
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.runner.id}]`)} StopAllRunners`);
1624
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.runner.id}]`)} StopAllRunners`);
1598
1625
  runner.terminate = true;
1599
1626
  await runner.runnerInstance.StopRunner();
1600
1627
  }
@@ -1602,36 +1629,36 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1602
1629
  });
1603
1630
  __privateAdd(this, _StopRunner, async (testRunnerTelemetryPayload) => {
1604
1631
  const { runner } = testRunnerTelemetryPayload;
1605
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} StopRunner`);
1632
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} StopRunner`);
1606
1633
  __privateGet(this, _runners)[runner.id].terminate = true;
1607
1634
  await __privateGet(this, _runners)[runner.id].runnerInstance.StopRunner();
1608
1635
  await stsutils.Sleep(0);
1609
1636
  });
1610
1637
  __privateAdd(this, _TerminateRunner, async (testRunnerTelemetryPayload) => {
1611
1638
  const { runner } = testRunnerTelemetryPayload;
1612
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} TerminateRunner`);
1639
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} TerminateRunner`);
1613
1640
  __privateGet(this, _runners)[runner.id].terminate = true;
1614
1641
  const retVal = await __privateGet(this, _runners)[runner.id].runnerInstance.TerminateRunner();
1615
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} TerminateRunner Result = [${retVal}]`);
1642
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} TerminateRunner Result = [${retVal}]`);
1616
1643
  await stsutils.Sleep(0);
1617
1644
  });
1618
1645
  __privateAdd(this, _PauseRunner, async (testRunnerTelemetryPayload) => {
1619
1646
  const { runner } = testRunnerTelemetryPayload;
1620
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} PauseRunner`);
1647
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} PauseRunner`);
1621
1648
  __privateGet(this, _runners)[runner.id].paused = true;
1622
1649
  await __privateGet(this, _runners)[runner.id].runnerInstance.PauseRunner();
1623
1650
  await stsutils.Sleep(0);
1624
1651
  });
1625
1652
  __privateAdd(this, _ResumeRunner, async (testRunnerTelemetryPayload) => {
1626
1653
  const { runner } = testRunnerTelemetryPayload;
1627
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} ResumeRunner`);
1654
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} ResumeRunner`);
1628
1655
  __privateGet(this, _runners)[runner.id].paused = false;
1629
1656
  await __privateGet(this, _runners)[runner.id].runnerInstance.ResumeRunner();
1630
1657
  await stsutils.Sleep(0);
1631
1658
  });
1632
1659
  __privateAdd(this, _ResetRunner, async (testRunnerTelemetryPayload) => {
1633
1660
  const { runner } = testRunnerTelemetryPayload;
1634
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} ResetRunner`);
1661
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} ResetRunner`);
1635
1662
  __privateGet(this, _runners)[runner.id].terminate = true;
1636
1663
  __privateGet(this, _runners)[runner.id].iteration = 0;
1637
1664
  await __privateGet(this, _runners)[runner.id].runnerInstance.ResetRunner();
@@ -1640,17 +1667,17 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1640
1667
  // Execute a single iteration of this runners work item
1641
1668
  __privateAdd(this, _ExecuteRunner, async (testRunnerTelemetryPayload) => {
1642
1669
  const { runner } = testRunnerTelemetryPayload;
1643
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} ExecuteRunner`);
1670
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} ExecuteRunner`);
1644
1671
  await __privateGet(this, _runners)[runner.id].runnerInstance.Execute(__privateGet(this, _runners)[runner.id].iteration);
1645
1672
  __privateGet(this, _runners)[runner.id].iteration++;
1646
1673
  await stsutils.Sleep(0);
1647
1674
  });
1648
1675
  __privateAdd(this, _UpdateOptions, async (testRunnerTelemetryPayload) => {
1649
1676
  const { runner } = testRunnerTelemetryPayload;
1650
- __privateGet(this, _debug).call(this, `${chalk$1.magenta(`runner: [${runner.id}]`)} UpdateOptions`);
1651
- console.log(chalk$1.cyan(`before: [${JSON.stringify(__privateGet(this, _runners)[runner.id].runner.options)}]`));
1677
+ __privateGet(this, _debug).call(this, `${chalk.magenta(`runner: [${runner.id}]`)} UpdateOptions`);
1678
+ console.log(chalk.cyan(`before: [${JSON.stringify(__privateGet(this, _runners)[runner.id].runner.options)}]`));
1652
1679
  __privateGet(this, _runners)[runner.id].runner.options = { ...runner.options };
1653
- console.log(chalk$1.cyan(`after: [${JSON.stringify(__privateGet(this, _runners)[runner.id].runner.options)}]`));
1680
+ console.log(chalk.cyan(`after: [${JSON.stringify(__privateGet(this, _runners)[runner.id].runner.options)}]`));
1654
1681
  await __privateGet(this, _runners)[runner.id].runnerInstance.UpdateOptions();
1655
1682
  await stsutils.Sleep(0);
1656
1683
  });
@@ -1850,39 +1877,37 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1850
1877
  });
1851
1878
  }
1852
1879
  }
1853
- var byteToHex = [];
1854
- for (var i = 0; i < 256; ++i) {
1880
+ const byteToHex = [];
1881
+ for (let i = 0; i < 256; ++i) {
1855
1882
  byteToHex.push((i + 256).toString(16).slice(1));
1856
1883
  }
1857
1884
  function unsafeStringify(arr, offset = 0) {
1858
1885
  return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
1859
1886
  }
1860
- var getRandomValues;
1861
- var rnds8 = new Uint8Array(16);
1887
+ let getRandomValues;
1888
+ const rnds8 = new Uint8Array(16);
1862
1889
  function rng() {
1863
1890
  if (!getRandomValues) {
1864
- getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
1865
- if (!getRandomValues) {
1891
+ if (typeof crypto === "undefined" || !crypto.getRandomValues) {
1866
1892
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1867
1893
  }
1894
+ getRandomValues = crypto.getRandomValues.bind(crypto);
1868
1895
  }
1869
1896
  return getRandomValues(rnds8);
1870
1897
  }
1871
- var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1872
- const native = {
1873
- randomUUID
1874
- };
1898
+ const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1899
+ const native = { randomUUID };
1875
1900
  function v4(options, buf, offset) {
1876
1901
  if (native.randomUUID && !buf && !options) {
1877
1902
  return native.randomUUID();
1878
1903
  }
1879
1904
  options = options || {};
1880
- var rnds = options.random || (options.rng || rng)();
1905
+ const rnds = options.random || (options.rng || rng)();
1881
1906
  rnds[6] = rnds[6] & 15 | 64;
1882
1907
  rnds[8] = rnds[8] & 63 | 128;
1883
1908
  return unsafeStringify(rnds);
1884
1909
  }
1885
- chalk$1.level = 3;
1910
+ chalk.level = 3;
1886
1911
  class STSWorkerManager {
1887
1912
  constructor(options) {
1888
1913
  __privateAdd(this, _STSWorkerManager_instances);
@@ -1892,7 +1917,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1892
1917
  __privateAdd(this, _STSInstrumentController);
1893
1918
  __privateAdd(this, _telemetryProcessor);
1894
1919
  __privateAdd(this, _debug2, (message) => {
1895
- console.log(chalk$1.cyan(`pid: [${process.pid}] STSWorkerManager::${message}`));
1920
+ console.log(chalk.cyan(`pid: [${process.pid}] STSWorkerManager::${message}`));
1896
1921
  });
1897
1922
  __publicField(this, "AddWorker", async (useWorkerFactory) => {
1898
1923
  let workerFactory;
@@ -1930,7 +1955,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1930
1955
  Execute: async () => __privateGet(this, _ExecuteWorker).call(this, stsWorkerEx),
1931
1956
  UpdateOptions: async (options) => __privateGet(this, _UpdateOptionsWorker).call(this, stsWorkerEx, options)
1932
1957
  };
1933
- __privateGet(this, _STSInstrumentController).LogEx(chalk$1.yellow(`pid: [${process.pid}] Creating new worker: [${stsWorkerEx.id}]`));
1958
+ __privateGet(this, _STSInstrumentController).LogEx(chalk.yellow(`pid: [${process.pid}] Creating new worker: [${stsWorkerEx.id}]`));
1934
1959
  __privateGet(this, _debug2).call(this, `Adding worker: [${stsWorkerEx.id}]`);
1935
1960
  const {
1936
1961
  port1,
@@ -1949,17 +1974,17 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1949
1974
  }, port2);
1950
1975
  if (isNode) {
1951
1976
  stsWorkerEx.worker.on("exit", (code) => {
1952
- console.log(chalk$1.magenta(`STSWorkerManager:stsWorkerEx.worker.on(exit): Worker exited with code: ${code}`));
1977
+ console.log(chalk.magenta(`STSWorkerManager:stsWorkerEx.worker.on(exit): Worker exited with code: ${code}`));
1953
1978
  });
1954
1979
  stsWorkerEx.worker.on("error", (error) => {
1955
- console.error(chalk$1.red(`STSWorkerManager:stsWorkerEx.worker.on(error): Worker error: ${error}`));
1980
+ console.error(chalk.red(`STSWorkerManager:stsWorkerEx.worker.on(error): Worker error: ${error}`));
1956
1981
  });
1957
1982
  } else {
1958
1983
  stsWorkerEx.worker.onerror = (error) => {
1959
- console.error(chalk$1.red("STSWorkerManager:stsWorkerEx.worker.onerror(): Error in worker:", error));
1984
+ console.error(chalk.red("STSWorkerManager:stsWorkerEx.worker.onerror(): Error in worker:", error));
1960
1985
  };
1961
1986
  stsWorkerEx.worker.onmessageerror = (error) => {
1962
- console.error(chalk$1.red("STSWorkerManager:stsWorkerEx.worker.onmessageerror(): Message error in worker:", error));
1987
+ console.error(chalk.red("STSWorkerManager:stsWorkerEx.worker.onmessageerror(): Message error in worker:", error));
1963
1988
  };
1964
1989
  }
1965
1990
  const processMessage = (data) => {
@@ -1998,7 +2023,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
1998
2023
  const runnerEx = __privateGet(this, _CreateAsyncRunner).call(this, stsWorkerEx, runnerOptions);
1999
2024
  stsWorkerEx.runnersEx[runnerEx.id] = runnerEx;
2000
2025
  __privateGet(this, _SetRunnerIntoWorker).call(this, stsWorkerEx, runnerEx);
2001
- runnerEx.publishInstrumentController.LogEx(chalk$1.green(`Added runner: [${runnerEx.id}] into worker: [${stsWorkerEx.id}]`));
2026
+ runnerEx.publishInstrumentController.LogEx(chalk.green(`Added runner: [${runnerEx.id}] into worker: [${stsWorkerEx.id}]`));
2002
2027
  return runnerEx;
2003
2028
  });
2004
2029
  __privateAdd(this, _SetRunnerIntoWorker, (workerEx, runnerEx) => {
@@ -2038,10 +2063,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2038
2063
  }
2039
2064
  });
2040
2065
  }
2041
- console.log(chalk$1.green(`ProcessCompleted: [${JSON.stringify(runner)}]`));
2066
+ console.log(chalk.green(`ProcessCompleted: [${JSON.stringify(runner)}]`));
2042
2067
  });
2043
2068
  __privateAdd(this, _CreateAsyncRunner, (workerEx, runnerOptions) => {
2044
- __privateGet(this, _STSInstrumentController).LogEx(chalk$1.yellow(`Creating new async runner: [${runnerOptions.id}]`));
2069
+ __privateGet(this, _STSInstrumentController).LogEx(chalk.yellow(`Creating new async runner: [${runnerOptions.id}]`));
2045
2070
  const asyncRunnerContext = {
2046
2071
  nid: `${workerEx.workerThreadWorkerOptions.hostName}${stsutils.ModelDelimeter.COMPONENT_SEPERATOR}${workerEx.workerThreadWorkerOptions.agentId}-${workerEx.workerThreadWorkerOptions.userAgent}${stsutils.ModelDelimeter.NID_SEPERATOR}${workerEx.id}${stsutils.ModelDelimeter.SEPERATOR}${runnerOptions.id}`,
2047
2072
  id: runnerOptions.id,
@@ -2138,21 +2163,21 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2138
2163
  }
2139
2164
  if (runnerEx !== null) {
2140
2165
  (async () => {
2141
- console.log(chalk$1.magenta(`Sending message to terminate runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2166
+ console.log(chalk.magenta(`Sending message to terminate runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2142
2167
  __privateGet(this, _PostMessageToWorker).call(this, workerEx, eIWMessageCommands.TerminateRunner, {
2143
2168
  runner: __privateMethod(this, _STSWorkerManager_instances, CreateRunnerCopy_fn).call(this, runnerEx)
2144
2169
  });
2145
2170
  runnerEx.publishInstrumentController.LogEx(`Terminating runner: [${runnerEx.id}]`);
2146
2171
  await stsutils.Sleep(250);
2147
- console.log(chalk$1.magenta(`Ending publish for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2172
+ console.log(chalk.magenta(`Ending publish for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2148
2173
  await runnerEx.publishInstrumentController.EndPublish();
2149
2174
  await stsutils.Sleep(250);
2150
2175
  delete workerEx.runnersEx[runnerEx.id];
2151
- console.log(chalk$1.magenta(`Completed Terminate for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2176
+ console.log(chalk.magenta(`Completed Terminate for runner: [${JSON.stringify(runnerEx.asyncRunnerContext)}]`));
2152
2177
  resolve(true);
2153
2178
  })();
2154
2179
  } else {
2155
- console.log(chalk$1.magenta(`No runner to terminate.`));
2180
+ console.log(chalk.magenta(`No runner to terminate.`));
2156
2181
  resolve(false);
2157
2182
  }
2158
2183
  });