@@ -32333,7 +32333,10 @@ function envForceColor() {
3233332333 if (env2.FORCE_COLOR.length === 0) {
3233432334 return 1;
3233532335 }
32336- const level = Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
32336+ if (!new RegExp("^\\d+$", "v").test(env2.FORCE_COLOR)) {
32337+ return;
32338+ }
32339+ const level = Math.min(Number(env2.FORCE_COLOR), 3);
3233732340 if (![0, 1, 2, 3].includes(level)) {
3233832341 return;
3233932342 }
@@ -32367,6 +32370,9 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
3236732370 return 2;
3236832371 }
3236932372 }
32373+ if (forceColor !== void 0 && new RegExp("^\\d+$", "v").test(env2.FORCE_COLOR)) {
32374+ return forceColor;
32375+ }
3237032376 if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
3237132377 return 1;
3237232378 }
@@ -32385,16 +32391,16 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
3238532391 return 1;
3238632392 }
3238732393 if ("CI" in env2) {
32388- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env2)) {
32394+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => Object.hasOwn( env2, key) )) {
3238932395 return 3;
3239032396 }
32391- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
32397+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => Object.hasOwn( env2, sign) ) || env2.CI_NAME === "codeship") {
3239232398 return 1;
3239332399 }
3239432400 return min;
3239532401 }
3239632402 if ("TEAMCITY_VERSION" in env2) {
32397- return /^(9\.( 0*[1-9]\d*)\ .|\d{2,}\.)/ .test(env2.TEAMCITY_VERSION) ? 1 : 0;
32403+ return new RegExp("^(?:9\\. 0*[1-9]\\d*\\ .|\\ d{2,}\\.)", "v") .test(env2.TEAMCITY_VERSION) ? 1 : 0;
3239832404 }
3239932405 if (env2.COLORTERM === "truecolor") {
3240032406 return 3;
@@ -32409,7 +32415,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
3240932415 return 3;
3241032416 }
3241132417 if ("TERM_PROGRAM" in env2) {
32412- const version = Number.parseInt ((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10 );
32418+ const version = Number((env2.TERM_PROGRAM_VERSION || "").split(".", 1 )[0]);
3241332419 switch (env2.TERM_PROGRAM) {
3241432420 case "iTerm.app": {
3241532421 return version >= 3 ? 3 : 2;
@@ -32419,10 +32425,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
3241932425 }
3242032426 }
3242132427 }
32422- if (/ -256(color)?$/i .test(env2.TERM)) {
32428+ if (new RegExp(" -256(?: color)?$", "iv") .test(env2.TERM)) {
3242332429 return 2;
3242432430 }
32425- if (/ ^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i .test(env2.TERM)) {
32431+ if (new RegExp(" ^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux", "iv") .test(env2.TERM)) {
3242632432 return 1;
3242732433 }
3242832434 if ("COLORTERM" in env2) {
@@ -34194,6 +34200,130 @@ function isElectronApp() {
3419434200function getProcessArgvBin() {
3419534201 return process.argv[getProcessArgvBinIndex()];
3419634202}
34203+ var segmenter2 = new Intl.Segmenter();
34204+ var zeroWidthClusterRegex = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Nonspacing_Mark}|\\p{Enclosing_Mark}|\\p{Surrogate})+$", "v");
34205+ var leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]+", "v");
34206+ var spacingMarkRegex = new RegExp("\\p{Spacing_Mark}", "v");
34207+ var rgiEmojiRegex = new RegExp("^\\p{RGI_Emoji}$", "v");
34208+ var unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
34209+ var extendedPictographicRegex = new RegExp("\\p{Extended_Pictographic}", "gu");
34210+ function isDoubleWidthNonRgiEmojiSequence(segment) {
34211+ if (segment.length > 50) {
34212+ return false;
34213+ }
34214+ if (unqualifiedKeycapRegex.test(segment)) {
34215+ return true;
34216+ }
34217+ if (segment.includes("\u200D")) {
34218+ const pictographics = segment.match(extendedPictographicRegex);
34219+ return pictographics !== null && pictographics.length >= 2;
34220+ }
34221+ return false;
34222+ }
34223+ function baseVisible(segment) {
34224+ return segment.replace(leadingNonPrintingRegex, "");
34225+ }
34226+ function isZeroWidthCluster(segment) {
34227+ return zeroWidthClusterRegex.test(segment);
34228+ }
34229+ function isHangulLeadingJamo(codePoint) {
34230+ return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
34231+ }
34232+ function isHangulVowelJamo(codePoint) {
34233+ return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
34234+ }
34235+ function isHangulTrailingJamo(codePoint) {
34236+ return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
34237+ }
34238+ function isHangulJamo(codePoint) {
34239+ return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
34240+ }
34241+ function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
34242+ const codePoints = [];
34243+ for (const character of visibleSegment) {
34244+ if (zeroWidthClusterRegex.test(character)) {
34245+ continue;
34246+ }
34247+ codePoints.push(character.codePointAt(0));
34248+ }
34249+ if (codePoints.length === 0) {
34250+ return void 0;
34251+ }
34252+ let width = 0;
34253+ for (let index = 0; index < codePoints.length; index++) {
34254+ const codePoint = codePoints[index];
34255+ if (!isHangulJamo(codePoint)) {
34256+ if (width === 0) {
34257+ return void 0;
34258+ }
34259+ for (let remaining = index; remaining < codePoints.length; remaining++) {
34260+ width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
34261+ }
34262+ return width;
34263+ }
34264+ if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
34265+ width += 2;
34266+ index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
34267+ continue;
34268+ }
34269+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
34270+ }
34271+ return width;
34272+ }
34273+ function trailingWidth(visibleSegment, eastAsianWidthOptions) {
34274+ let extra = 0;
34275+ let first = true;
34276+ for (const character of visibleSegment) {
34277+ if (first) {
34278+ first = false;
34279+ continue;
34280+ }
34281+ if (spacingMarkRegex.test(character) || character >= "\uFF00" && character <= "\uFFEF") {
34282+ extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
34283+ }
34284+ }
34285+ return extra;
34286+ }
34287+ function stringWidth2(input, options = {}) {
34288+ if (typeof input !== "string" || input.length === 0) {
34289+ return 0;
34290+ }
34291+ const {
34292+ ambiguousIsNarrow = true,
34293+ countAnsiEscapeCodes = false
34294+ } = options;
34295+ let string = input;
34296+ if (!countAnsiEscapeCodes && (string.includes("\x1B") || string.includes("\x9B"))) {
34297+ string = stripAnsi(string);
34298+ }
34299+ if (string.length === 0) {
34300+ return 0;
34301+ }
34302+ if (/^[\u0020-\u007E]*$/.test(string)) {
34303+ return string.length;
34304+ }
34305+ let width = 0;
34306+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
34307+ for (const { segment } of segmenter2.segment(string)) {
34308+ if (isZeroWidthCluster(segment)) {
34309+ continue;
34310+ }
34311+ if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
34312+ width += 2;
34313+ continue;
34314+ }
34315+ const visibleSegment = baseVisible(segment);
34316+ const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
34317+ if (hangulWidth !== void 0) {
34318+ width += hangulWidth;
34319+ continue;
34320+ }
34321+ const codePoint = visibleSegment.codePointAt(0);
34322+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
34323+ width += trailingWidth(visibleSegment, eastAsianWidthOptions);
34324+ }
34325+ return width;
34326+ }
3419734327var node_default = {
3419834328 fs: {
3419934329 readFileSync: readFileSync22,
@@ -34416,7 +34546,7 @@ var esm_default = {
3441634546 const callerFile = (0, import_get_caller_file.default)(3);
3441734547 return callerFile.match(/^file:\/\//) ? fileURLToPath(callerFile) : callerFile;
3441834548 },
34419- stringWidth,
34549+ stringWidth: stringWidth2 ,
3442034550 y18n: y18n_default({
3442134551 directory: resolve4(__dirname2, "../../../locales"),
3442234552 updateFiles: false
@@ -36193,6 +36323,8 @@ function mergeDeep2(config1, config2) {
3619336323 }
3619436324 Object.assign(target, config1);
3619536325 for (const key of Object.keys(config2)) {
36326+ if (key === "__proto__")
36327+ continue;
3619636328 if (isObject(config2[key]) && isObject(target[key])) {
3619736329 target[key] = mergeDeep2(config1[key], config2[key]);
3619836330 } else {
@@ -37241,7 +37373,7 @@ var YargsInstance = class {
3724137373 [kGetDollarZero]() {
3724237374 let $0 = "";
3724337375 let default$0;
37244- if (/\b(node|iojs|electron)(\.exe)?$/.test(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv()[0])) {
37376+ if (/\b(node|iojs|electron|bun )(\.exe)?$/.test(__classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv()[0])) {
3724537377 default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(1, 2);
3724637378 } else {
3724737379 default$0 = __classPrivateFieldGet(this, _YargsInstance_shim, "f").process.argv().slice(0, 1);
@@ -65184,7 +65316,7 @@ content-type/dist/index.js:
6518465316 (* v8 ignore next -- @preserve *)
6518565317 (* v8 ignore else -- @preserve *)
6518665318
65187- @angular/ng-dev/bundles/chunk-GE5YLAX7 .mjs:
65319+ @angular/ng-dev/bundles/chunk-QM7BPMX4 .mjs:
6518865320 (*! Bundled license information:
6518965321
6519065322 yargs-parser/build/lib/string-utils.js:
@@ -65225,7 +65357,7 @@ content-type/dist/index.js:
6522565357 *)
6522665358 *)
6522765359
65228- @angular/ng-dev/bundles/chunk-M7XMYTYE .mjs:
65360+ @angular/ng-dev/bundles/chunk-D7SBR34O .mjs:
6522965361 (*! Bundled license information:
6523065362
6523165363 content-type/dist/index.js:
0 commit comments