@ng-atomic/schematics 20.76.1 → 20.78.0
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.
- package/index.js +252 -124
- package/lib/_utilities/index.js +252 -124
- package/lib/atomic-component/index.js +138 -78
- package/lib/ng-add/index.js +252 -124
- package/lib/page/index.js +252 -124
- package/lib/pages/index.js +113 -71
- package/lib/setup/index.js +252 -124
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -362,9 +362,11 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
362
362
|
decode: () => decode,
|
|
363
363
|
decodeGeneratedRanges: () => decodeGeneratedRanges,
|
|
364
364
|
decodeOriginalScopes: () => decodeOriginalScopes,
|
|
365
|
+
decodeRangeMappings: () => decodeRangeMappings,
|
|
365
366
|
encode: () => encode,
|
|
366
367
|
encodeGeneratedRanges: () => encodeGeneratedRanges,
|
|
367
|
-
encodeOriginalScopes: () => encodeOriginalScopes
|
|
368
|
+
encodeOriginalScopes: () => encodeOriginalScopes,
|
|
369
|
+
encodeRangeMappings: () => encodeRangeMappings
|
|
368
370
|
});
|
|
369
371
|
module3.exports = __toCommonJS2(sourcemap_codec_exports);
|
|
370
372
|
var comma = ",".charCodeAt(0);
|
|
@@ -377,7 +379,7 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
377
379
|
intToChar[i] = c;
|
|
378
380
|
charToInt[c] = i;
|
|
379
381
|
}
|
|
380
|
-
function decodeInteger(reader
|
|
382
|
+
function decodeInteger(reader) {
|
|
381
383
|
let value = 0;
|
|
382
384
|
let shift = 0;
|
|
383
385
|
let integer = 0;
|
|
@@ -387,23 +389,21 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
387
389
|
value |= (integer & 31) << shift;
|
|
388
390
|
shift += 5;
|
|
389
391
|
} while (integer & 32);
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
return relative + value;
|
|
392
|
+
return value;
|
|
393
|
+
}
|
|
394
|
+
function decodeSign(num) {
|
|
395
|
+
return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
|
|
396
396
|
}
|
|
397
|
-
function encodeInteger(builder, num
|
|
398
|
-
let delta = num - relative;
|
|
399
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
397
|
+
function encodeInteger(builder, num) {
|
|
400
398
|
do {
|
|
401
|
-
let clamped =
|
|
402
|
-
|
|
403
|
-
if (
|
|
399
|
+
let clamped = num & 31;
|
|
400
|
+
num >>>= 5;
|
|
401
|
+
if (num > 0) clamped |= 32;
|
|
404
402
|
builder.write(intToChar[clamped]);
|
|
405
|
-
} while (
|
|
406
|
-
|
|
403
|
+
} while (num > 0);
|
|
404
|
+
}
|
|
405
|
+
function encodeSign(num) {
|
|
406
|
+
return num < 0 ? -num << 1 | 1 : num << 1;
|
|
407
407
|
}
|
|
408
408
|
function hasMoreVlq(reader, max) {
|
|
409
409
|
if (reader.pos >= max) return false;
|
|
@@ -468,23 +468,23 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
468
468
|
const stack = [];
|
|
469
469
|
let line = 0;
|
|
470
470
|
for (; reader.pos < length; reader.pos++) {
|
|
471
|
-
line
|
|
472
|
-
const column = decodeInteger(reader
|
|
471
|
+
line += decodeSign(decodeInteger(reader));
|
|
472
|
+
const column = decodeSign(decodeInteger(reader));
|
|
473
473
|
if (!hasMoreVlq(reader, length)) {
|
|
474
474
|
const last = stack.pop();
|
|
475
475
|
last[2] = line;
|
|
476
476
|
last[3] = column;
|
|
477
477
|
continue;
|
|
478
478
|
}
|
|
479
|
-
const kind = decodeInteger(reader
|
|
480
|
-
const fields = decodeInteger(reader
|
|
479
|
+
const kind = decodeSign(decodeInteger(reader));
|
|
480
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
481
481
|
const hasName = fields & 1;
|
|
482
|
-
const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader
|
|
482
|
+
const scope = hasName ? [line, column, 0, 0, kind, decodeSign(decodeInteger(reader))] : [line, column, 0, 0, kind];
|
|
483
483
|
let vars = EMPTY;
|
|
484
484
|
if (hasMoreVlq(reader, length)) {
|
|
485
485
|
vars = [];
|
|
486
486
|
do {
|
|
487
|
-
const varsIndex = decodeInteger(reader
|
|
487
|
+
const varsIndex = decodeSign(decodeInteger(reader));
|
|
488
488
|
vars.push(varsIndex);
|
|
489
489
|
} while (hasMoreVlq(reader, length));
|
|
490
490
|
}
|
|
@@ -505,14 +505,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
505
505
|
const scope = scopes[index];
|
|
506
506
|
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
|
|
507
507
|
if (index > 0) writer.write(comma);
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
encodeInteger(writer,
|
|
508
|
+
encodeInteger(writer, encodeSign(startLine - state[0]));
|
|
509
|
+
state[0] = startLine;
|
|
510
|
+
encodeInteger(writer, encodeSign(startColumn));
|
|
511
|
+
encodeInteger(writer, encodeSign(kind));
|
|
511
512
|
const fields = scope.length === 6 ? 1 : 0;
|
|
512
|
-
encodeInteger(writer, fields
|
|
513
|
-
if (scope.length === 6) encodeInteger(writer, scope[5]
|
|
513
|
+
encodeInteger(writer, encodeSign(fields));
|
|
514
|
+
if (scope.length === 6) encodeInteger(writer, encodeSign(scope[5]));
|
|
514
515
|
for (const v of vars) {
|
|
515
|
-
encodeInteger(writer, v
|
|
516
|
+
encodeInteger(writer, encodeSign(v));
|
|
516
517
|
}
|
|
517
518
|
for (index++; index < scopes.length; ) {
|
|
518
519
|
const next = scopes[index];
|
|
@@ -523,8 +524,9 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
523
524
|
index = _encodeOriginalScopes(scopes, index, writer, state);
|
|
524
525
|
}
|
|
525
526
|
writer.write(comma);
|
|
526
|
-
|
|
527
|
-
|
|
527
|
+
encodeInteger(writer, encodeSign(endLine - state[0]));
|
|
528
|
+
state[0] = endLine;
|
|
529
|
+
encodeInteger(writer, encodeSign(endColumn));
|
|
528
530
|
return index;
|
|
529
531
|
}
|
|
530
532
|
function decodeGeneratedRanges(input) {
|
|
@@ -544,14 +546,14 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
544
546
|
const semi = reader.indexOf(";");
|
|
545
547
|
let genColumn = 0;
|
|
546
548
|
for (; reader.pos < semi; reader.pos++) {
|
|
547
|
-
genColumn
|
|
549
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
548
550
|
if (!hasMoreVlq(reader, semi)) {
|
|
549
551
|
const last = stack.pop();
|
|
550
552
|
last[2] = genLine;
|
|
551
553
|
last[3] = genColumn;
|
|
552
554
|
continue;
|
|
553
555
|
}
|
|
554
|
-
const fields = decodeInteger(reader
|
|
556
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
555
557
|
const hasDefinition = fields & 1;
|
|
556
558
|
const hasCallsite = fields & 2;
|
|
557
559
|
const hasScope = fields & 4;
|
|
@@ -559,11 +561,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
559
561
|
let bindings = EMPTY;
|
|
560
562
|
let range;
|
|
561
563
|
if (hasDefinition) {
|
|
562
|
-
const defSourcesIndex = decodeInteger(reader
|
|
563
|
-
definitionScopeIndex = decodeInteger(
|
|
564
|
-
reader,
|
|
565
|
-
definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0
|
|
566
|
-
);
|
|
564
|
+
const defSourcesIndex = definitionSourcesIndex + decodeSign(decodeInteger(reader));
|
|
565
|
+
definitionScopeIndex = decodeSign(decodeInteger(reader)) + (definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);
|
|
567
566
|
definitionSourcesIndex = defSourcesIndex;
|
|
568
567
|
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
|
|
569
568
|
} else {
|
|
@@ -573,13 +572,10 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
573
572
|
if (hasCallsite) {
|
|
574
573
|
const prevCsi = callsiteSourcesIndex;
|
|
575
574
|
const prevLine = callsiteLine;
|
|
576
|
-
callsiteSourcesIndex
|
|
575
|
+
callsiteSourcesIndex += decodeSign(decodeInteger(reader));
|
|
577
576
|
const sameSource = prevCsi === callsiteSourcesIndex;
|
|
578
|
-
callsiteLine =
|
|
579
|
-
callsiteColumn = decodeInteger(
|
|
580
|
-
reader,
|
|
581
|
-
sameSource && prevLine === callsiteLine ? callsiteColumn : 0
|
|
582
|
-
);
|
|
577
|
+
callsiteLine = (sameSource ? callsiteLine : 0) + decodeSign(decodeInteger(reader));
|
|
578
|
+
callsiteColumn = (sameSource && prevLine === callsiteLine ? callsiteColumn : 0) + decodeSign(decodeInteger(reader));
|
|
583
579
|
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
|
584
580
|
}
|
|
585
581
|
range.callsite = callsite;
|
|
@@ -588,15 +584,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
588
584
|
do {
|
|
589
585
|
bindingLine = genLine;
|
|
590
586
|
bindingColumn = genColumn;
|
|
591
|
-
const expressionsCount = decodeInteger(reader
|
|
587
|
+
const expressionsCount = decodeSign(decodeInteger(reader));
|
|
592
588
|
let expressionRanges;
|
|
593
589
|
if (expressionsCount < -1) {
|
|
594
|
-
expressionRanges = [[decodeInteger(reader
|
|
590
|
+
expressionRanges = [[decodeSign(decodeInteger(reader))]];
|
|
595
591
|
for (let i = -1; i > expressionsCount; i--) {
|
|
596
592
|
const prevBl = bindingLine;
|
|
597
|
-
bindingLine
|
|
598
|
-
bindingColumn =
|
|
599
|
-
const expression = decodeInteger(reader
|
|
593
|
+
bindingLine += decodeSign(decodeInteger(reader));
|
|
594
|
+
bindingColumn = (bindingLine === prevBl ? bindingColumn : 0) + decodeSign(decodeInteger(reader));
|
|
595
|
+
const expression = decodeSign(decodeInteger(reader));
|
|
600
596
|
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
|
601
597
|
}
|
|
602
598
|
} else {
|
|
@@ -640,16 +636,19 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
640
636
|
} else if (index > 0) {
|
|
641
637
|
writer.write(comma);
|
|
642
638
|
}
|
|
643
|
-
|
|
639
|
+
encodeInteger(writer, encodeSign(range[1] - state[1]));
|
|
640
|
+
state[1] = range[1];
|
|
644
641
|
const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
|
|
645
|
-
encodeInteger(writer, fields
|
|
642
|
+
encodeInteger(writer, encodeSign(fields));
|
|
646
643
|
if (range.length === 6) {
|
|
647
644
|
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
|
648
645
|
if (sourcesIndex !== state[2]) {
|
|
649
646
|
state[3] = 0;
|
|
650
647
|
}
|
|
651
|
-
|
|
652
|
-
state[
|
|
648
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[2]));
|
|
649
|
+
state[2] = sourcesIndex;
|
|
650
|
+
encodeInteger(writer, encodeSign(scopesIndex - state[3]));
|
|
651
|
+
state[3] = scopesIndex;
|
|
653
652
|
}
|
|
654
653
|
if (callsite) {
|
|
655
654
|
const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
|
|
@@ -659,22 +658,27 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
659
658
|
} else if (callLine !== state[5]) {
|
|
660
659
|
state[6] = 0;
|
|
661
660
|
}
|
|
662
|
-
|
|
663
|
-
state[
|
|
664
|
-
|
|
661
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[4]));
|
|
662
|
+
state[4] = sourcesIndex;
|
|
663
|
+
encodeInteger(writer, encodeSign(callLine - state[5]));
|
|
664
|
+
state[5] = callLine;
|
|
665
|
+
encodeInteger(writer, encodeSign(callColumn - state[6]));
|
|
666
|
+
state[6] = callColumn;
|
|
665
667
|
}
|
|
666
668
|
if (bindings) {
|
|
667
669
|
for (const binding of bindings) {
|
|
668
|
-
if (binding.length > 1) encodeInteger(writer, -binding.length
|
|
670
|
+
if (binding.length > 1) encodeInteger(writer, encodeSign(-binding.length));
|
|
669
671
|
const expression = binding[0][0];
|
|
670
|
-
encodeInteger(writer, expression
|
|
672
|
+
encodeInteger(writer, encodeSign(expression));
|
|
671
673
|
let bindingStartLine = startLine;
|
|
672
674
|
let bindingStartColumn = startColumn;
|
|
673
675
|
for (let i = 1; i < binding.length; i++) {
|
|
674
676
|
const expRange = binding[i];
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
encodeInteger(writer, expRange[
|
|
677
|
+
encodeInteger(writer, encodeSign(expRange[1] - bindingStartLine));
|
|
678
|
+
bindingStartLine = expRange[1];
|
|
679
|
+
encodeInteger(writer, encodeSign(expRange[2] - bindingStartColumn));
|
|
680
|
+
bindingStartColumn = expRange[2];
|
|
681
|
+
encodeInteger(writer, encodeSign(expRange[0]));
|
|
678
682
|
}
|
|
679
683
|
}
|
|
680
684
|
}
|
|
@@ -693,7 +697,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
693
697
|
} else {
|
|
694
698
|
writer.write(comma);
|
|
695
699
|
}
|
|
696
|
-
|
|
700
|
+
encodeInteger(writer, encodeSign(endColumn - state[1]));
|
|
701
|
+
state[1] = endColumn;
|
|
697
702
|
return index;
|
|
698
703
|
}
|
|
699
704
|
function catchupLine(writer, lastLine, line) {
|
|
@@ -701,6 +706,38 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
701
706
|
writer.write(semicolon);
|
|
702
707
|
} while (++lastLine < line);
|
|
703
708
|
}
|
|
709
|
+
function decodeRangeMappings(input) {
|
|
710
|
+
const { length } = input;
|
|
711
|
+
const reader = new StringReader(input);
|
|
712
|
+
const rangeMappings = [];
|
|
713
|
+
do {
|
|
714
|
+
const semi = reader.indexOf(";");
|
|
715
|
+
const indices = [];
|
|
716
|
+
let index = 0;
|
|
717
|
+
while (reader.pos < semi) {
|
|
718
|
+
index += decodeInteger(reader);
|
|
719
|
+
indices.push(index);
|
|
720
|
+
}
|
|
721
|
+
rangeMappings.push(indices);
|
|
722
|
+
reader.pos = semi + 1;
|
|
723
|
+
} while (reader.pos <= length);
|
|
724
|
+
return rangeMappings;
|
|
725
|
+
}
|
|
726
|
+
function encodeRangeMappings(decoded) {
|
|
727
|
+
if (decoded.length === 0) return "";
|
|
728
|
+
const writer = new StringWriter();
|
|
729
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
730
|
+
const indices = decoded[i];
|
|
731
|
+
if (i > 0) writer.write(semicolon);
|
|
732
|
+
let index = 0;
|
|
733
|
+
for (let j = 0; j < indices.length; j++) {
|
|
734
|
+
const offset = indices[j];
|
|
735
|
+
encodeInteger(writer, offset - index);
|
|
736
|
+
index = offset;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return writer.flush();
|
|
740
|
+
}
|
|
704
741
|
function decode(mappings) {
|
|
705
742
|
const { length } = mappings;
|
|
706
743
|
const reader = new StringReader(mappings);
|
|
@@ -718,15 +755,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
718
755
|
genColumn = 0;
|
|
719
756
|
while (reader.pos < semi) {
|
|
720
757
|
let seg;
|
|
721
|
-
genColumn
|
|
758
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
722
759
|
if (genColumn < lastCol) sorted = false;
|
|
723
760
|
lastCol = genColumn;
|
|
724
761
|
if (hasMoreVlq(reader, semi)) {
|
|
725
|
-
sourcesIndex
|
|
726
|
-
sourceLine
|
|
727
|
-
sourceColumn
|
|
762
|
+
sourcesIndex += decodeSign(decodeInteger(reader));
|
|
763
|
+
sourceLine += decodeSign(decodeInteger(reader));
|
|
764
|
+
sourceColumn += decodeSign(decodeInteger(reader));
|
|
728
765
|
if (hasMoreVlq(reader, semi)) {
|
|
729
|
-
namesIndex
|
|
766
|
+
namesIndex += decodeSign(decodeInteger(reader));
|
|
730
767
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
731
768
|
} else {
|
|
732
769
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
@@ -763,13 +800,18 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
763
800
|
for (let j = 0; j < line.length; j++) {
|
|
764
801
|
const segment = line[j];
|
|
765
802
|
if (j > 0) writer.write(comma);
|
|
766
|
-
|
|
803
|
+
encodeInteger(writer, encodeSign(segment[0] - genColumn));
|
|
804
|
+
genColumn = segment[0];
|
|
767
805
|
if (segment.length === 1) continue;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
806
|
+
encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
|
|
807
|
+
encodeInteger(writer, encodeSign(segment[2] - sourceLine));
|
|
808
|
+
encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
|
|
809
|
+
sourcesIndex = segment[1];
|
|
810
|
+
sourceLine = segment[2];
|
|
811
|
+
sourceColumn = segment[3];
|
|
771
812
|
if (segment.length === 4) continue;
|
|
772
|
-
|
|
813
|
+
encodeInteger(writer, encodeSign(segment[4] - namesIndex));
|
|
814
|
+
namesIndex = segment[4];
|
|
773
815
|
}
|
|
774
816
|
}
|
|
775
817
|
return writer.flush();
|
|
@@ -13903,9 +13945,9 @@ var require_lodash = __commonJS({
|
|
|
13903
13945
|
"use strict";
|
|
13904
13946
|
(function() {
|
|
13905
13947
|
var undefined2;
|
|
13906
|
-
var VERSION = "4.
|
|
13948
|
+
var VERSION = "4.18.1";
|
|
13907
13949
|
var LARGE_ARRAY_SIZE = 200;
|
|
13908
|
-
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT2 = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
13950
|
+
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT2 = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
|
|
13909
13951
|
var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
|
|
13910
13952
|
var MAX_MEMOIZE_SIZE2 = 500;
|
|
13911
13953
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
@@ -15831,8 +15873,21 @@ var require_lodash = __commonJS({
|
|
|
15831
15873
|
}
|
|
15832
15874
|
function baseUnset(object, path) {
|
|
15833
15875
|
path = castPath2(path, object);
|
|
15834
|
-
|
|
15835
|
-
|
|
15876
|
+
var index = -1, length = path.length;
|
|
15877
|
+
if (!length) {
|
|
15878
|
+
return true;
|
|
15879
|
+
}
|
|
15880
|
+
while (++index < length) {
|
|
15881
|
+
var key = toKey2(path[index]);
|
|
15882
|
+
if (key === "__proto__" && !hasOwnProperty6.call(object, "__proto__")) {
|
|
15883
|
+
return false;
|
|
15884
|
+
}
|
|
15885
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
15886
|
+
return false;
|
|
15887
|
+
}
|
|
15888
|
+
}
|
|
15889
|
+
var obj = parent(object, path);
|
|
15890
|
+
return obj == null || delete obj[toKey2(last(path))];
|
|
15836
15891
|
}
|
|
15837
15892
|
function baseUpdate(object, path, updater, customizer) {
|
|
15838
15893
|
return baseSet2(object, path, updater(baseGet(object, path)), customizer);
|
|
@@ -17159,7 +17214,7 @@ var require_lodash = __commonJS({
|
|
|
17159
17214
|
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
17160
17215
|
while (++index < length) {
|
|
17161
17216
|
var pair = pairs[index];
|
|
17162
|
-
result2
|
|
17217
|
+
baseAssignValue2(result2, pair[0], pair[1]);
|
|
17163
17218
|
}
|
|
17164
17219
|
return result2;
|
|
17165
17220
|
}
|
|
@@ -18543,8 +18598,13 @@ var require_lodash = __commonJS({
|
|
|
18543
18598
|
options = undefined2;
|
|
18544
18599
|
}
|
|
18545
18600
|
string = toString2(string);
|
|
18546
|
-
options =
|
|
18547
|
-
var imports =
|
|
18601
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
18602
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
18603
|
+
arrayEach(importsKeys, function(key) {
|
|
18604
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
18605
|
+
throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
18606
|
+
}
|
|
18607
|
+
});
|
|
18548
18608
|
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
18549
18609
|
var reDelimiters = RegExp2(
|
|
18550
18610
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
@@ -454563,7 +454623,7 @@ var init_cli_spinners = __esm({
|
|
|
454563
454623
|
});
|
|
454564
454624
|
|
|
454565
454625
|
// node_modules/yoctocolors/base.js
|
|
454566
|
-
var import_node_tty2, hasColors, format, reset, bold, dim, italic, underline, overline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright;
|
|
454626
|
+
var import_node_tty2, hasColors, format, reset, bold, dim, italic, underline, underlineDouble, underlineCurly, underlineDotted, underlineDashed, overline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright, underlineBlack, underlineRed, underlineGreen, underlineYellow, underlineBlue, underlineMagenta, underlineCyan, underlineWhite, underlineGray, underlineRedBright, underlineGreenBright, underlineYellowBright, underlineBlueBright, underlineMagentaBright, underlineCyanBright, underlineWhiteBright;
|
|
454567
454627
|
var init_base = __esm({
|
|
454568
454628
|
"node_modules/yoctocolors/base.js"() {
|
|
454569
454629
|
"use strict";
|
|
@@ -454599,6 +454659,10 @@ var init_base = __esm({
|
|
|
454599
454659
|
dim = format(2, 22);
|
|
454600
454660
|
italic = format(3, 23);
|
|
454601
454661
|
underline = format(4, 24);
|
|
454662
|
+
underlineDouble = format("4:2", 24);
|
|
454663
|
+
underlineCurly = format("4:3", 24);
|
|
454664
|
+
underlineDotted = format("4:4", 24);
|
|
454665
|
+
underlineDashed = format("4:5", 24);
|
|
454602
454666
|
overline = format(53, 55);
|
|
454603
454667
|
inverse = format(7, 27);
|
|
454604
454668
|
hidden = format(8, 28);
|
|
@@ -454635,6 +454699,22 @@ var init_base = __esm({
|
|
|
454635
454699
|
bgMagentaBright = format(105, 49);
|
|
454636
454700
|
bgCyanBright = format(106, 49);
|
|
454637
454701
|
bgWhiteBright = format(107, 49);
|
|
454702
|
+
underlineBlack = format("58;5;0", 59);
|
|
454703
|
+
underlineRed = format("58;5;1", 59);
|
|
454704
|
+
underlineGreen = format("58;5;2", 59);
|
|
454705
|
+
underlineYellow = format("58;5;3", 59);
|
|
454706
|
+
underlineBlue = format("58;5;4", 59);
|
|
454707
|
+
underlineMagenta = format("58;5;5", 59);
|
|
454708
|
+
underlineCyan = format("58;5;6", 59);
|
|
454709
|
+
underlineWhite = format("58;5;7", 59);
|
|
454710
|
+
underlineGray = format("58;5;8", 59);
|
|
454711
|
+
underlineRedBright = format("58;5;9", 59);
|
|
454712
|
+
underlineGreenBright = format("58;5;10", 59);
|
|
454713
|
+
underlineYellowBright = format("58;5;11", 59);
|
|
454714
|
+
underlineBlueBright = format("58;5;12", 59);
|
|
454715
|
+
underlineMagentaBright = format("58;5;13", 59);
|
|
454716
|
+
underlineCyanBright = format("58;5;14", 59);
|
|
454717
|
+
underlineWhiteBright = format("58;5;15", 59);
|
|
454638
454718
|
}
|
|
454639
454719
|
});
|
|
454640
454720
|
|
|
@@ -454697,7 +454777,7 @@ var init_log_symbols = __esm({
|
|
|
454697
454777
|
// node_modules/ora/node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
454698
454778
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
454699
454779
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
454700
|
-
const osc = `(?:\\u001B\\][\\
|
|
454780
|
+
const osc = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${ST})`;
|
|
454701
454781
|
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
454702
454782
|
const pattern = `${osc}|${csi}`;
|
|
454703
454783
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
@@ -454713,6 +454793,9 @@ function stripAnsi(string) {
|
|
|
454713
454793
|
if (typeof string !== "string") {
|
|
454714
454794
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
454715
454795
|
}
|
|
454796
|
+
if (!string.includes("\x1B") && !string.includes("\x9B")) {
|
|
454797
|
+
return string;
|
|
454798
|
+
}
|
|
454716
454799
|
return string.replace(regex, "");
|
|
454717
454800
|
}
|
|
454718
454801
|
var regex;
|
|
@@ -454724,23 +454807,27 @@ var init_strip_ansi = __esm({
|
|
|
454724
454807
|
}
|
|
454725
454808
|
});
|
|
454726
454809
|
|
|
454727
|
-
// node_modules/
|
|
454728
|
-
var ambiguousRanges, fullwidthRanges,
|
|
454810
|
+
// node_modules/get-east-asian-width/lookup-data.js
|
|
454811
|
+
var ambiguousMinimalCodePoint, ambiguousMaximumCodePoint, ambiguousRanges, fullwidthMinimalCodePoint, fullwidthMaximumCodePoint, fullwidthRanges, wideMinimalCodePoint, wideMaximumCodePoint, wideRanges;
|
|
454729
454812
|
var init_lookup_data = __esm({
|
|
454730
|
-
"node_modules/
|
|
454813
|
+
"node_modules/get-east-asian-width/lookup-data.js"() {
|
|
454731
454814
|
"use strict";
|
|
454815
|
+
ambiguousMinimalCodePoint = 161;
|
|
454816
|
+
ambiguousMaximumCodePoint = 1114109;
|
|
454732
454817
|
ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
454818
|
+
fullwidthMinimalCodePoint = 12288;
|
|
454819
|
+
fullwidthMaximumCodePoint = 65510;
|
|
454733
454820
|
fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
454734
|
-
|
|
454735
|
-
|
|
454736
|
-
wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208,
|
|
454821
|
+
wideMinimalCodePoint = 4352;
|
|
454822
|
+
wideMaximumCodePoint = 262141;
|
|
454823
|
+
wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101594, 101631, 101664, 101760, 101874, 101888, 102801, 102816, 102866, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110888, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110952, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127406, 127406, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128729, 128732, 128735, 128747, 128748, 128756, 128764, 128986, 128986, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129734, 129736, 129736, 129740, 129757, 129759, 129771, 129775, 129786, 131072, 196605, 196608, 262141];
|
|
454737
454824
|
}
|
|
454738
454825
|
});
|
|
454739
454826
|
|
|
454740
|
-
// node_modules/
|
|
454827
|
+
// node_modules/get-east-asian-width/utilities.js
|
|
454741
454828
|
var isInRange;
|
|
454742
454829
|
var init_utilities2 = __esm({
|
|
454743
|
-
"node_modules/
|
|
454830
|
+
"node_modules/get-east-asian-width/utilities.js"() {
|
|
454744
454831
|
"use strict";
|
|
454745
454832
|
isInRange = (ranges, codePoint) => {
|
|
454746
454833
|
let low = 0;
|
|
@@ -454761,7 +454848,7 @@ var init_utilities2 = __esm({
|
|
|
454761
454848
|
}
|
|
454762
454849
|
});
|
|
454763
454850
|
|
|
454764
|
-
// node_modules/
|
|
454851
|
+
// node_modules/get-east-asian-width/lookup.js
|
|
454765
454852
|
function findWideFastPathRange(ranges) {
|
|
454766
454853
|
let fastPathStart = ranges[0];
|
|
454767
454854
|
let fastPathEnd = ranges[1];
|
|
@@ -454778,32 +454865,22 @@ function findWideFastPathRange(ranges) {
|
|
|
454778
454865
|
}
|
|
454779
454866
|
return [fastPathStart, fastPathEnd];
|
|
454780
454867
|
}
|
|
454781
|
-
var
|
|
454868
|
+
var commonCjkCodePoint, wideFastPathStart, wideFastPathEnd, isAmbiguous, isFullwidth, isWide;
|
|
454782
454869
|
var init_lookup = __esm({
|
|
454783
|
-
"node_modules/
|
|
454870
|
+
"node_modules/get-east-asian-width/lookup.js"() {
|
|
454784
454871
|
"use strict";
|
|
454785
454872
|
init_lookup_data();
|
|
454786
454873
|
init_utilities2();
|
|
454787
|
-
minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
454788
|
-
maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
454789
|
-
minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
454790
|
-
maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
454791
|
-
minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
454792
|
-
maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
454793
|
-
minimumNarrowCodePoint = narrowRanges[0];
|
|
454794
|
-
maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
454795
|
-
minimumWideCodePoint = wideRanges[0];
|
|
454796
|
-
maximumWideCodePoint = wideRanges.at(-1);
|
|
454797
454874
|
commonCjkCodePoint = 19968;
|
|
454798
|
-
[wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
454875
|
+
[wideFastPathStart, wideFastPathEnd] = /* @__PURE__ */ findWideFastPathRange(wideRanges);
|
|
454799
454876
|
isAmbiguous = (codePoint) => {
|
|
454800
|
-
if (codePoint <
|
|
454877
|
+
if (codePoint < ambiguousMinimalCodePoint || codePoint > ambiguousMaximumCodePoint) {
|
|
454801
454878
|
return false;
|
|
454802
454879
|
}
|
|
454803
454880
|
return isInRange(ambiguousRanges, codePoint);
|
|
454804
454881
|
};
|
|
454805
|
-
|
|
454806
|
-
if (codePoint <
|
|
454882
|
+
isFullwidth = (codePoint) => {
|
|
454883
|
+
if (codePoint < fullwidthMinimalCodePoint || codePoint > fullwidthMaximumCodePoint) {
|
|
454807
454884
|
return false;
|
|
454808
454885
|
}
|
|
454809
454886
|
return isInRange(fullwidthRanges, codePoint);
|
|
@@ -454812,7 +454889,7 @@ var init_lookup = __esm({
|
|
|
454812
454889
|
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
454813
454890
|
return true;
|
|
454814
454891
|
}
|
|
454815
|
-
if (codePoint <
|
|
454892
|
+
if (codePoint < wideMinimalCodePoint || codePoint > wideMaximumCodePoint) {
|
|
454816
454893
|
return false;
|
|
454817
454894
|
}
|
|
454818
454895
|
return isInRange(wideRanges, codePoint);
|
|
@@ -454820,7 +454897,7 @@ var init_lookup = __esm({
|
|
|
454820
454897
|
}
|
|
454821
454898
|
});
|
|
454822
454899
|
|
|
454823
|
-
// node_modules/
|
|
454900
|
+
// node_modules/get-east-asian-width/index.js
|
|
454824
454901
|
function validate(codePoint) {
|
|
454825
454902
|
if (!Number.isSafeInteger(codePoint)) {
|
|
454826
454903
|
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
@@ -454828,13 +454905,13 @@ function validate(codePoint) {
|
|
|
454828
454905
|
}
|
|
454829
454906
|
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
454830
454907
|
validate(codePoint);
|
|
454831
|
-
if (
|
|
454908
|
+
if (isFullwidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
454832
454909
|
return 2;
|
|
454833
454910
|
}
|
|
454834
454911
|
return 1;
|
|
454835
454912
|
}
|
|
454836
454913
|
var init_get_east_asian_width = __esm({
|
|
454837
|
-
"node_modules/
|
|
454914
|
+
"node_modules/get-east-asian-width/index.js"() {
|
|
454838
454915
|
"use strict";
|
|
454839
454916
|
init_lookup();
|
|
454840
454917
|
}
|
|
@@ -454855,18 +454932,63 @@ function isDoubleWidthNonRgiEmojiSequence(segment) {
|
|
|
454855
454932
|
return false;
|
|
454856
454933
|
}
|
|
454857
454934
|
function baseVisible(segment) {
|
|
454858
|
-
|
|
454935
|
+
const index = segment.search(visibleCharacterRegex);
|
|
454936
|
+
return index === -1 ? void 0 : segment.slice(index);
|
|
454859
454937
|
}
|
|
454860
|
-
function
|
|
454861
|
-
return
|
|
454938
|
+
function isHangulLeadingJamo(codePoint) {
|
|
454939
|
+
return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
|
|
454862
454940
|
}
|
|
454863
|
-
function
|
|
454864
|
-
|
|
454865
|
-
|
|
454866
|
-
|
|
454867
|
-
|
|
454868
|
-
|
|
454941
|
+
function isHangulVowelJamo(codePoint) {
|
|
454942
|
+
return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
|
|
454943
|
+
}
|
|
454944
|
+
function isHangulTrailingJamo(codePoint) {
|
|
454945
|
+
return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
|
|
454946
|
+
}
|
|
454947
|
+
function isHangulJamo(codePoint) {
|
|
454948
|
+
return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
|
|
454949
|
+
}
|
|
454950
|
+
function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
|
|
454951
|
+
const codePoints = [];
|
|
454952
|
+
for (const character of visibleSegment) {
|
|
454953
|
+
if (!visibleCharacterRegex.test(character)) {
|
|
454954
|
+
continue;
|
|
454955
|
+
}
|
|
454956
|
+
codePoints.push(character.codePointAt(0));
|
|
454957
|
+
}
|
|
454958
|
+
if (codePoints.length === 0) {
|
|
454959
|
+
return void 0;
|
|
454960
|
+
}
|
|
454961
|
+
let width = 0;
|
|
454962
|
+
for (let index = 0; index < codePoints.length; index++) {
|
|
454963
|
+
const codePoint = codePoints[index];
|
|
454964
|
+
if (!isHangulJamo(codePoint)) {
|
|
454965
|
+
if (width === 0) {
|
|
454966
|
+
return void 0;
|
|
454967
|
+
}
|
|
454968
|
+
for (let remaining = index; remaining < codePoints.length; remaining++) {
|
|
454969
|
+
width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
|
|
454869
454970
|
}
|
|
454971
|
+
return width;
|
|
454972
|
+
}
|
|
454973
|
+
if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
|
|
454974
|
+
width += 2;
|
|
454975
|
+
index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
|
|
454976
|
+
continue;
|
|
454977
|
+
}
|
|
454978
|
+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
454979
|
+
}
|
|
454980
|
+
return width;
|
|
454981
|
+
}
|
|
454982
|
+
function trailingWidth(visibleSegment, eastAsianWidthOptions) {
|
|
454983
|
+
let extra = 0;
|
|
454984
|
+
let first = true;
|
|
454985
|
+
for (const character of visibleSegment) {
|
|
454986
|
+
if (first) {
|
|
454987
|
+
first = false;
|
|
454988
|
+
continue;
|
|
454989
|
+
}
|
|
454990
|
+
if (spacingMarkRegex.test(character) || character >= "\uFF00" && character <= "\uFFEF") {
|
|
454991
|
+
extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
|
|
454870
454992
|
}
|
|
454871
454993
|
}
|
|
454872
454994
|
return extra;
|
|
@@ -454892,28 +455014,34 @@ function stringWidth(input, options = {}) {
|
|
|
454892
455014
|
let width = 0;
|
|
454893
455015
|
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
454894
455016
|
for (const { segment } of segmenter.segment(string)) {
|
|
454895
|
-
|
|
455017
|
+
const visibleSegment = baseVisible(segment);
|
|
455018
|
+
if (visibleSegment === void 0) {
|
|
454896
455019
|
continue;
|
|
454897
455020
|
}
|
|
454898
455021
|
if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
|
|
454899
455022
|
width += 2;
|
|
454900
455023
|
continue;
|
|
454901
455024
|
}
|
|
454902
|
-
const
|
|
455025
|
+
const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
|
|
455026
|
+
if (hangulWidth !== void 0) {
|
|
455027
|
+
width += hangulWidth;
|
|
455028
|
+
continue;
|
|
455029
|
+
}
|
|
455030
|
+
const codePoint = visibleSegment.codePointAt(0);
|
|
454903
455031
|
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
454904
|
-
width +=
|
|
455032
|
+
width += trailingWidth(visibleSegment, eastAsianWidthOptions);
|
|
454905
455033
|
}
|
|
454906
455034
|
return width;
|
|
454907
455035
|
}
|
|
454908
|
-
var segmenter,
|
|
455036
|
+
var segmenter, visibleCharacterRegex, spacingMarkRegex, rgiEmojiRegex, unqualifiedKeycapRegex, extendedPictographicRegex;
|
|
454909
455037
|
var init_string_width = __esm({
|
|
454910
455038
|
"node_modules/ora/node_modules/string-width/index.js"() {
|
|
454911
455039
|
"use strict";
|
|
454912
455040
|
init_strip_ansi();
|
|
454913
455041
|
init_get_east_asian_width();
|
|
454914
455042
|
segmenter = new Intl.Segmenter();
|
|
454915
|
-
|
|
454916
|
-
|
|
455043
|
+
visibleCharacterRegex = /[^\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Nonspacing_Mark}\p{Enclosing_Mark}\p{Surrogate}]/v;
|
|
455044
|
+
spacingMarkRegex = /\p{Spacing_Mark}/v;
|
|
454917
455045
|
rgiEmojiRegex = /^\p{RGI_Emoji}$/v;
|
|
454918
455046
|
unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
|
|
454919
455047
|
extendedPictographicRegex = /\p{Extended_Pictographic}/gu;
|