@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/lib/ng-add/index.js
CHANGED
|
@@ -213271,9 +213271,9 @@ var require_lodash = __commonJS({
|
|
|
213271
213271
|
"use strict";
|
|
213272
213272
|
(function() {
|
|
213273
213273
|
var undefined2;
|
|
213274
|
-
var VERSION = "4.
|
|
213274
|
+
var VERSION = "4.18.1";
|
|
213275
213275
|
var LARGE_ARRAY_SIZE = 200;
|
|
213276
|
-
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
213276
|
+
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "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`";
|
|
213277
213277
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
213278
213278
|
var MAX_MEMOIZE_SIZE = 500;
|
|
213279
213279
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
@@ -215199,8 +215199,21 @@ var require_lodash = __commonJS({
|
|
|
215199
215199
|
}
|
|
215200
215200
|
function baseUnset(object, path) {
|
|
215201
215201
|
path = castPath(path, object);
|
|
215202
|
-
|
|
215203
|
-
|
|
215202
|
+
var index = -1, length = path.length;
|
|
215203
|
+
if (!length) {
|
|
215204
|
+
return true;
|
|
215205
|
+
}
|
|
215206
|
+
while (++index < length) {
|
|
215207
|
+
var key = toKey(path[index]);
|
|
215208
|
+
if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
|
|
215209
|
+
return false;
|
|
215210
|
+
}
|
|
215211
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
215212
|
+
return false;
|
|
215213
|
+
}
|
|
215214
|
+
}
|
|
215215
|
+
var obj = parent(object, path);
|
|
215216
|
+
return obj == null || delete obj[toKey(last(path))];
|
|
215204
215217
|
}
|
|
215205
215218
|
function baseUpdate(object, path, updater, customizer) {
|
|
215206
215219
|
return baseSet(object, path, updater(baseGet(object, path)), customizer);
|
|
@@ -216527,7 +216540,7 @@ var require_lodash = __commonJS({
|
|
|
216527
216540
|
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
216528
216541
|
while (++index < length) {
|
|
216529
216542
|
var pair = pairs[index];
|
|
216530
|
-
result2
|
|
216543
|
+
baseAssignValue(result2, pair[0], pair[1]);
|
|
216531
216544
|
}
|
|
216532
216545
|
return result2;
|
|
216533
216546
|
}
|
|
@@ -217911,8 +217924,13 @@ var require_lodash = __commonJS({
|
|
|
217911
217924
|
options = undefined2;
|
|
217912
217925
|
}
|
|
217913
217926
|
string = toString(string);
|
|
217914
|
-
options =
|
|
217915
|
-
var imports =
|
|
217927
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
217928
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
217929
|
+
arrayEach(importsKeys, function(key) {
|
|
217930
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
217931
|
+
throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
217932
|
+
}
|
|
217933
|
+
});
|
|
217916
217934
|
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
217917
217935
|
var reDelimiters = RegExp2(
|
|
217918
217936
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
@@ -447772,9 +447790,11 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447772
447790
|
decode: () => decode,
|
|
447773
447791
|
decodeGeneratedRanges: () => decodeGeneratedRanges,
|
|
447774
447792
|
decodeOriginalScopes: () => decodeOriginalScopes,
|
|
447793
|
+
decodeRangeMappings: () => decodeRangeMappings,
|
|
447775
447794
|
encode: () => encode,
|
|
447776
447795
|
encodeGeneratedRanges: () => encodeGeneratedRanges,
|
|
447777
|
-
encodeOriginalScopes: () => encodeOriginalScopes
|
|
447796
|
+
encodeOriginalScopes: () => encodeOriginalScopes,
|
|
447797
|
+
encodeRangeMappings: () => encodeRangeMappings
|
|
447778
447798
|
});
|
|
447779
447799
|
module3.exports = __toCommonJS2(sourcemap_codec_exports);
|
|
447780
447800
|
var comma = ",".charCodeAt(0);
|
|
@@ -447787,7 +447807,7 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447787
447807
|
intToChar[i] = c;
|
|
447788
447808
|
charToInt[c] = i;
|
|
447789
447809
|
}
|
|
447790
|
-
function decodeInteger(reader
|
|
447810
|
+
function decodeInteger(reader) {
|
|
447791
447811
|
let value = 0;
|
|
447792
447812
|
let shift = 0;
|
|
447793
447813
|
let integer = 0;
|
|
@@ -447797,23 +447817,21 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447797
447817
|
value |= (integer & 31) << shift;
|
|
447798
447818
|
shift += 5;
|
|
447799
447819
|
} while (integer & 32);
|
|
447800
|
-
|
|
447801
|
-
|
|
447802
|
-
|
|
447803
|
-
|
|
447804
|
-
}
|
|
447805
|
-
return relative + value;
|
|
447820
|
+
return value;
|
|
447821
|
+
}
|
|
447822
|
+
function decodeSign(num) {
|
|
447823
|
+
return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
|
|
447806
447824
|
}
|
|
447807
|
-
function encodeInteger(builder, num
|
|
447808
|
-
let delta = num - relative;
|
|
447809
|
-
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
447825
|
+
function encodeInteger(builder, num) {
|
|
447810
447826
|
do {
|
|
447811
|
-
let clamped =
|
|
447812
|
-
|
|
447813
|
-
if (
|
|
447827
|
+
let clamped = num & 31;
|
|
447828
|
+
num >>>= 5;
|
|
447829
|
+
if (num > 0) clamped |= 32;
|
|
447814
447830
|
builder.write(intToChar[clamped]);
|
|
447815
|
-
} while (
|
|
447816
|
-
|
|
447831
|
+
} while (num > 0);
|
|
447832
|
+
}
|
|
447833
|
+
function encodeSign(num) {
|
|
447834
|
+
return num < 0 ? -num << 1 | 1 : num << 1;
|
|
447817
447835
|
}
|
|
447818
447836
|
function hasMoreVlq(reader, max) {
|
|
447819
447837
|
if (reader.pos >= max) return false;
|
|
@@ -447878,23 +447896,23 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447878
447896
|
const stack = [];
|
|
447879
447897
|
let line = 0;
|
|
447880
447898
|
for (; reader.pos < length; reader.pos++) {
|
|
447881
|
-
line
|
|
447882
|
-
const column = decodeInteger(reader
|
|
447899
|
+
line += decodeSign(decodeInteger(reader));
|
|
447900
|
+
const column = decodeSign(decodeInteger(reader));
|
|
447883
447901
|
if (!hasMoreVlq(reader, length)) {
|
|
447884
447902
|
const last = stack.pop();
|
|
447885
447903
|
last[2] = line;
|
|
447886
447904
|
last[3] = column;
|
|
447887
447905
|
continue;
|
|
447888
447906
|
}
|
|
447889
|
-
const kind = decodeInteger(reader
|
|
447890
|
-
const fields = decodeInteger(reader
|
|
447907
|
+
const kind = decodeSign(decodeInteger(reader));
|
|
447908
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
447891
447909
|
const hasName = fields & 1;
|
|
447892
|
-
const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader
|
|
447910
|
+
const scope = hasName ? [line, column, 0, 0, kind, decodeSign(decodeInteger(reader))] : [line, column, 0, 0, kind];
|
|
447893
447911
|
let vars = EMPTY;
|
|
447894
447912
|
if (hasMoreVlq(reader, length)) {
|
|
447895
447913
|
vars = [];
|
|
447896
447914
|
do {
|
|
447897
|
-
const varsIndex = decodeInteger(reader
|
|
447915
|
+
const varsIndex = decodeSign(decodeInteger(reader));
|
|
447898
447916
|
vars.push(varsIndex);
|
|
447899
447917
|
} while (hasMoreVlq(reader, length));
|
|
447900
447918
|
}
|
|
@@ -447915,14 +447933,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447915
447933
|
const scope = scopes[index];
|
|
447916
447934
|
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
|
|
447917
447935
|
if (index > 0) writer.write(comma);
|
|
447918
|
-
|
|
447919
|
-
|
|
447920
|
-
encodeInteger(writer,
|
|
447936
|
+
encodeInteger(writer, encodeSign(startLine - state[0]));
|
|
447937
|
+
state[0] = startLine;
|
|
447938
|
+
encodeInteger(writer, encodeSign(startColumn));
|
|
447939
|
+
encodeInteger(writer, encodeSign(kind));
|
|
447921
447940
|
const fields = scope.length === 6 ? 1 : 0;
|
|
447922
|
-
encodeInteger(writer, fields
|
|
447923
|
-
if (scope.length === 6) encodeInteger(writer, scope[5]
|
|
447941
|
+
encodeInteger(writer, encodeSign(fields));
|
|
447942
|
+
if (scope.length === 6) encodeInteger(writer, encodeSign(scope[5]));
|
|
447924
447943
|
for (const v of vars) {
|
|
447925
|
-
encodeInteger(writer, v
|
|
447944
|
+
encodeInteger(writer, encodeSign(v));
|
|
447926
447945
|
}
|
|
447927
447946
|
for (index++; index < scopes.length; ) {
|
|
447928
447947
|
const next = scopes[index];
|
|
@@ -447933,8 +447952,9 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447933
447952
|
index = _encodeOriginalScopes(scopes, index, writer, state);
|
|
447934
447953
|
}
|
|
447935
447954
|
writer.write(comma);
|
|
447936
|
-
|
|
447937
|
-
|
|
447955
|
+
encodeInteger(writer, encodeSign(endLine - state[0]));
|
|
447956
|
+
state[0] = endLine;
|
|
447957
|
+
encodeInteger(writer, encodeSign(endColumn));
|
|
447938
447958
|
return index;
|
|
447939
447959
|
}
|
|
447940
447960
|
function decodeGeneratedRanges(input) {
|
|
@@ -447954,14 +447974,14 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447954
447974
|
const semi = reader.indexOf(";");
|
|
447955
447975
|
let genColumn = 0;
|
|
447956
447976
|
for (; reader.pos < semi; reader.pos++) {
|
|
447957
|
-
genColumn
|
|
447977
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
447958
447978
|
if (!hasMoreVlq(reader, semi)) {
|
|
447959
447979
|
const last = stack.pop();
|
|
447960
447980
|
last[2] = genLine;
|
|
447961
447981
|
last[3] = genColumn;
|
|
447962
447982
|
continue;
|
|
447963
447983
|
}
|
|
447964
|
-
const fields = decodeInteger(reader
|
|
447984
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
447965
447985
|
const hasDefinition = fields & 1;
|
|
447966
447986
|
const hasCallsite = fields & 2;
|
|
447967
447987
|
const hasScope = fields & 4;
|
|
@@ -447969,11 +447989,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447969
447989
|
let bindings = EMPTY;
|
|
447970
447990
|
let range;
|
|
447971
447991
|
if (hasDefinition) {
|
|
447972
|
-
const defSourcesIndex = decodeInteger(reader
|
|
447973
|
-
definitionScopeIndex = decodeInteger(
|
|
447974
|
-
reader,
|
|
447975
|
-
definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0
|
|
447976
|
-
);
|
|
447992
|
+
const defSourcesIndex = definitionSourcesIndex + decodeSign(decodeInteger(reader));
|
|
447993
|
+
definitionScopeIndex = decodeSign(decodeInteger(reader)) + (definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);
|
|
447977
447994
|
definitionSourcesIndex = defSourcesIndex;
|
|
447978
447995
|
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
|
|
447979
447996
|
} else {
|
|
@@ -447983,13 +448000,10 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447983
448000
|
if (hasCallsite) {
|
|
447984
448001
|
const prevCsi = callsiteSourcesIndex;
|
|
447985
448002
|
const prevLine = callsiteLine;
|
|
447986
|
-
callsiteSourcesIndex
|
|
448003
|
+
callsiteSourcesIndex += decodeSign(decodeInteger(reader));
|
|
447987
448004
|
const sameSource = prevCsi === callsiteSourcesIndex;
|
|
447988
|
-
callsiteLine =
|
|
447989
|
-
callsiteColumn = decodeInteger(
|
|
447990
|
-
reader,
|
|
447991
|
-
sameSource && prevLine === callsiteLine ? callsiteColumn : 0
|
|
447992
|
-
);
|
|
448005
|
+
callsiteLine = (sameSource ? callsiteLine : 0) + decodeSign(decodeInteger(reader));
|
|
448006
|
+
callsiteColumn = (sameSource && prevLine === callsiteLine ? callsiteColumn : 0) + decodeSign(decodeInteger(reader));
|
|
447993
448007
|
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
|
447994
448008
|
}
|
|
447995
448009
|
range.callsite = callsite;
|
|
@@ -447998,15 +448012,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
447998
448012
|
do {
|
|
447999
448013
|
bindingLine = genLine;
|
|
448000
448014
|
bindingColumn = genColumn;
|
|
448001
|
-
const expressionsCount = decodeInteger(reader
|
|
448015
|
+
const expressionsCount = decodeSign(decodeInteger(reader));
|
|
448002
448016
|
let expressionRanges;
|
|
448003
448017
|
if (expressionsCount < -1) {
|
|
448004
|
-
expressionRanges = [[decodeInteger(reader
|
|
448018
|
+
expressionRanges = [[decodeSign(decodeInteger(reader))]];
|
|
448005
448019
|
for (let i = -1; i > expressionsCount; i--) {
|
|
448006
448020
|
const prevBl = bindingLine;
|
|
448007
|
-
bindingLine
|
|
448008
|
-
bindingColumn =
|
|
448009
|
-
const expression = decodeInteger(reader
|
|
448021
|
+
bindingLine += decodeSign(decodeInteger(reader));
|
|
448022
|
+
bindingColumn = (bindingLine === prevBl ? bindingColumn : 0) + decodeSign(decodeInteger(reader));
|
|
448023
|
+
const expression = decodeSign(decodeInteger(reader));
|
|
448010
448024
|
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
|
448011
448025
|
}
|
|
448012
448026
|
} else {
|
|
@@ -448050,16 +448064,19 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
448050
448064
|
} else if (index > 0) {
|
|
448051
448065
|
writer.write(comma);
|
|
448052
448066
|
}
|
|
448053
|
-
|
|
448067
|
+
encodeInteger(writer, encodeSign(range[1] - state[1]));
|
|
448068
|
+
state[1] = range[1];
|
|
448054
448069
|
const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
|
|
448055
|
-
encodeInteger(writer, fields
|
|
448070
|
+
encodeInteger(writer, encodeSign(fields));
|
|
448056
448071
|
if (range.length === 6) {
|
|
448057
448072
|
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
|
448058
448073
|
if (sourcesIndex !== state[2]) {
|
|
448059
448074
|
state[3] = 0;
|
|
448060
448075
|
}
|
|
448061
|
-
|
|
448062
|
-
state[
|
|
448076
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[2]));
|
|
448077
|
+
state[2] = sourcesIndex;
|
|
448078
|
+
encodeInteger(writer, encodeSign(scopesIndex - state[3]));
|
|
448079
|
+
state[3] = scopesIndex;
|
|
448063
448080
|
}
|
|
448064
448081
|
if (callsite) {
|
|
448065
448082
|
const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
|
|
@@ -448069,22 +448086,27 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
448069
448086
|
} else if (callLine !== state[5]) {
|
|
448070
448087
|
state[6] = 0;
|
|
448071
448088
|
}
|
|
448072
|
-
|
|
448073
|
-
state[
|
|
448074
|
-
|
|
448089
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[4]));
|
|
448090
|
+
state[4] = sourcesIndex;
|
|
448091
|
+
encodeInteger(writer, encodeSign(callLine - state[5]));
|
|
448092
|
+
state[5] = callLine;
|
|
448093
|
+
encodeInteger(writer, encodeSign(callColumn - state[6]));
|
|
448094
|
+
state[6] = callColumn;
|
|
448075
448095
|
}
|
|
448076
448096
|
if (bindings) {
|
|
448077
448097
|
for (const binding of bindings) {
|
|
448078
|
-
if (binding.length > 1) encodeInteger(writer, -binding.length
|
|
448098
|
+
if (binding.length > 1) encodeInteger(writer, encodeSign(-binding.length));
|
|
448079
448099
|
const expression = binding[0][0];
|
|
448080
|
-
encodeInteger(writer, expression
|
|
448100
|
+
encodeInteger(writer, encodeSign(expression));
|
|
448081
448101
|
let bindingStartLine = startLine;
|
|
448082
448102
|
let bindingStartColumn = startColumn;
|
|
448083
448103
|
for (let i = 1; i < binding.length; i++) {
|
|
448084
448104
|
const expRange = binding[i];
|
|
448085
|
-
|
|
448086
|
-
|
|
448087
|
-
encodeInteger(writer, expRange[
|
|
448105
|
+
encodeInteger(writer, encodeSign(expRange[1] - bindingStartLine));
|
|
448106
|
+
bindingStartLine = expRange[1];
|
|
448107
|
+
encodeInteger(writer, encodeSign(expRange[2] - bindingStartColumn));
|
|
448108
|
+
bindingStartColumn = expRange[2];
|
|
448109
|
+
encodeInteger(writer, encodeSign(expRange[0]));
|
|
448088
448110
|
}
|
|
448089
448111
|
}
|
|
448090
448112
|
}
|
|
@@ -448103,7 +448125,8 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
448103
448125
|
} else {
|
|
448104
448126
|
writer.write(comma);
|
|
448105
448127
|
}
|
|
448106
|
-
|
|
448128
|
+
encodeInteger(writer, encodeSign(endColumn - state[1]));
|
|
448129
|
+
state[1] = endColumn;
|
|
448107
448130
|
return index;
|
|
448108
448131
|
}
|
|
448109
448132
|
function catchupLine(writer, lastLine, line) {
|
|
@@ -448111,6 +448134,38 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
448111
448134
|
writer.write(semicolon);
|
|
448112
448135
|
} while (++lastLine < line);
|
|
448113
448136
|
}
|
|
448137
|
+
function decodeRangeMappings(input) {
|
|
448138
|
+
const { length } = input;
|
|
448139
|
+
const reader = new StringReader(input);
|
|
448140
|
+
const rangeMappings = [];
|
|
448141
|
+
do {
|
|
448142
|
+
const semi = reader.indexOf(";");
|
|
448143
|
+
const indices = [];
|
|
448144
|
+
let index = 0;
|
|
448145
|
+
while (reader.pos < semi) {
|
|
448146
|
+
index += decodeInteger(reader);
|
|
448147
|
+
indices.push(index);
|
|
448148
|
+
}
|
|
448149
|
+
rangeMappings.push(indices);
|
|
448150
|
+
reader.pos = semi + 1;
|
|
448151
|
+
} while (reader.pos <= length);
|
|
448152
|
+
return rangeMappings;
|
|
448153
|
+
}
|
|
448154
|
+
function encodeRangeMappings(decoded) {
|
|
448155
|
+
if (decoded.length === 0) return "";
|
|
448156
|
+
const writer = new StringWriter();
|
|
448157
|
+
for (let i = 0; i < decoded.length; i++) {
|
|
448158
|
+
const indices = decoded[i];
|
|
448159
|
+
if (i > 0) writer.write(semicolon);
|
|
448160
|
+
let index = 0;
|
|
448161
|
+
for (let j = 0; j < indices.length; j++) {
|
|
448162
|
+
const offset = indices[j];
|
|
448163
|
+
encodeInteger(writer, offset - index);
|
|
448164
|
+
index = offset;
|
|
448165
|
+
}
|
|
448166
|
+
}
|
|
448167
|
+
return writer.flush();
|
|
448168
|
+
}
|
|
448114
448169
|
function decode(mappings) {
|
|
448115
448170
|
const { length } = mappings;
|
|
448116
448171
|
const reader = new StringReader(mappings);
|
|
@@ -448128,15 +448183,15 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
448128
448183
|
genColumn = 0;
|
|
448129
448184
|
while (reader.pos < semi) {
|
|
448130
448185
|
let seg;
|
|
448131
|
-
genColumn
|
|
448186
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
448132
448187
|
if (genColumn < lastCol) sorted = false;
|
|
448133
448188
|
lastCol = genColumn;
|
|
448134
448189
|
if (hasMoreVlq(reader, semi)) {
|
|
448135
|
-
sourcesIndex
|
|
448136
|
-
sourceLine
|
|
448137
|
-
sourceColumn
|
|
448190
|
+
sourcesIndex += decodeSign(decodeInteger(reader));
|
|
448191
|
+
sourceLine += decodeSign(decodeInteger(reader));
|
|
448192
|
+
sourceColumn += decodeSign(decodeInteger(reader));
|
|
448138
448193
|
if (hasMoreVlq(reader, semi)) {
|
|
448139
|
-
namesIndex
|
|
448194
|
+
namesIndex += decodeSign(decodeInteger(reader));
|
|
448140
448195
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
448141
448196
|
} else {
|
|
448142
448197
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
@@ -448173,13 +448228,18 @@ var require_sourcemap_codec_umd = __commonJS({
|
|
|
448173
448228
|
for (let j = 0; j < line.length; j++) {
|
|
448174
448229
|
const segment = line[j];
|
|
448175
448230
|
if (j > 0) writer.write(comma);
|
|
448176
|
-
|
|
448231
|
+
encodeInteger(writer, encodeSign(segment[0] - genColumn));
|
|
448232
|
+
genColumn = segment[0];
|
|
448177
448233
|
if (segment.length === 1) continue;
|
|
448178
|
-
|
|
448179
|
-
|
|
448180
|
-
|
|
448234
|
+
encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
|
|
448235
|
+
encodeInteger(writer, encodeSign(segment[2] - sourceLine));
|
|
448236
|
+
encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
|
|
448237
|
+
sourcesIndex = segment[1];
|
|
448238
|
+
sourceLine = segment[2];
|
|
448239
|
+
sourceColumn = segment[3];
|
|
448181
448240
|
if (segment.length === 4) continue;
|
|
448182
|
-
|
|
448241
|
+
encodeInteger(writer, encodeSign(segment[4] - namesIndex));
|
|
448242
|
+
namesIndex = segment[4];
|
|
448183
448243
|
}
|
|
448184
448244
|
}
|
|
448185
448245
|
return writer.flush();
|
|
@@ -454416,7 +454476,7 @@ var init_cli_spinners = __esm({
|
|
|
454416
454476
|
});
|
|
454417
454477
|
|
|
454418
454478
|
// node_modules/yoctocolors/base.js
|
|
454419
|
-
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;
|
|
454479
|
+
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;
|
|
454420
454480
|
var init_base = __esm({
|
|
454421
454481
|
"node_modules/yoctocolors/base.js"() {
|
|
454422
454482
|
"use strict";
|
|
@@ -454452,6 +454512,10 @@ var init_base = __esm({
|
|
|
454452
454512
|
dim = format(2, 22);
|
|
454453
454513
|
italic = format(3, 23);
|
|
454454
454514
|
underline = format(4, 24);
|
|
454515
|
+
underlineDouble = format("4:2", 24);
|
|
454516
|
+
underlineCurly = format("4:3", 24);
|
|
454517
|
+
underlineDotted = format("4:4", 24);
|
|
454518
|
+
underlineDashed = format("4:5", 24);
|
|
454455
454519
|
overline = format(53, 55);
|
|
454456
454520
|
inverse = format(7, 27);
|
|
454457
454521
|
hidden = format(8, 28);
|
|
@@ -454488,6 +454552,22 @@ var init_base = __esm({
|
|
|
454488
454552
|
bgMagentaBright = format(105, 49);
|
|
454489
454553
|
bgCyanBright = format(106, 49);
|
|
454490
454554
|
bgWhiteBright = format(107, 49);
|
|
454555
|
+
underlineBlack = format("58;5;0", 59);
|
|
454556
|
+
underlineRed = format("58;5;1", 59);
|
|
454557
|
+
underlineGreen = format("58;5;2", 59);
|
|
454558
|
+
underlineYellow = format("58;5;3", 59);
|
|
454559
|
+
underlineBlue = format("58;5;4", 59);
|
|
454560
|
+
underlineMagenta = format("58;5;5", 59);
|
|
454561
|
+
underlineCyan = format("58;5;6", 59);
|
|
454562
|
+
underlineWhite = format("58;5;7", 59);
|
|
454563
|
+
underlineGray = format("58;5;8", 59);
|
|
454564
|
+
underlineRedBright = format("58;5;9", 59);
|
|
454565
|
+
underlineGreenBright = format("58;5;10", 59);
|
|
454566
|
+
underlineYellowBright = format("58;5;11", 59);
|
|
454567
|
+
underlineBlueBright = format("58;5;12", 59);
|
|
454568
|
+
underlineMagentaBright = format("58;5;13", 59);
|
|
454569
|
+
underlineCyanBright = format("58;5;14", 59);
|
|
454570
|
+
underlineWhiteBright = format("58;5;15", 59);
|
|
454491
454571
|
}
|
|
454492
454572
|
});
|
|
454493
454573
|
|
|
@@ -454550,7 +454630,7 @@ var init_log_symbols = __esm({
|
|
|
454550
454630
|
// node_modules/ora/node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
454551
454631
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
454552
454632
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
454553
|
-
const osc = `(?:\\u001B\\][\\
|
|
454633
|
+
const osc = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${ST})`;
|
|
454554
454634
|
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
454555
454635
|
const pattern = `${osc}|${csi}`;
|
|
454556
454636
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
@@ -454566,6 +454646,9 @@ function stripAnsi(string) {
|
|
|
454566
454646
|
if (typeof string !== "string") {
|
|
454567
454647
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
454568
454648
|
}
|
|
454649
|
+
if (!string.includes("\x1B") && !string.includes("\x9B")) {
|
|
454650
|
+
return string;
|
|
454651
|
+
}
|
|
454569
454652
|
return string.replace(regex, "");
|
|
454570
454653
|
}
|
|
454571
454654
|
var regex;
|
|
@@ -454577,23 +454660,27 @@ var init_strip_ansi = __esm({
|
|
|
454577
454660
|
}
|
|
454578
454661
|
});
|
|
454579
454662
|
|
|
454580
|
-
// node_modules/
|
|
454581
|
-
var ambiguousRanges, fullwidthRanges,
|
|
454663
|
+
// node_modules/get-east-asian-width/lookup-data.js
|
|
454664
|
+
var ambiguousMinimalCodePoint, ambiguousMaximumCodePoint, ambiguousRanges, fullwidthMinimalCodePoint, fullwidthMaximumCodePoint, fullwidthRanges, wideMinimalCodePoint, wideMaximumCodePoint, wideRanges;
|
|
454582
454665
|
var init_lookup_data = __esm({
|
|
454583
|
-
"node_modules/
|
|
454666
|
+
"node_modules/get-east-asian-width/lookup-data.js"() {
|
|
454584
454667
|
"use strict";
|
|
454668
|
+
ambiguousMinimalCodePoint = 161;
|
|
454669
|
+
ambiguousMaximumCodePoint = 1114109;
|
|
454585
454670
|
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];
|
|
454671
|
+
fullwidthMinimalCodePoint = 12288;
|
|
454672
|
+
fullwidthMaximumCodePoint = 65510;
|
|
454586
454673
|
fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
454587
|
-
|
|
454588
|
-
|
|
454589
|
-
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,
|
|
454674
|
+
wideMinimalCodePoint = 4352;
|
|
454675
|
+
wideMaximumCodePoint = 262141;
|
|
454676
|
+
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];
|
|
454590
454677
|
}
|
|
454591
454678
|
});
|
|
454592
454679
|
|
|
454593
|
-
// node_modules/
|
|
454680
|
+
// node_modules/get-east-asian-width/utilities.js
|
|
454594
454681
|
var isInRange;
|
|
454595
454682
|
var init_utilities2 = __esm({
|
|
454596
|
-
"node_modules/
|
|
454683
|
+
"node_modules/get-east-asian-width/utilities.js"() {
|
|
454597
454684
|
"use strict";
|
|
454598
454685
|
isInRange = (ranges, codePoint) => {
|
|
454599
454686
|
let low = 0;
|
|
@@ -454614,7 +454701,7 @@ var init_utilities2 = __esm({
|
|
|
454614
454701
|
}
|
|
454615
454702
|
});
|
|
454616
454703
|
|
|
454617
|
-
// node_modules/
|
|
454704
|
+
// node_modules/get-east-asian-width/lookup.js
|
|
454618
454705
|
function findWideFastPathRange(ranges) {
|
|
454619
454706
|
let fastPathStart = ranges[0];
|
|
454620
454707
|
let fastPathEnd = ranges[1];
|
|
@@ -454631,32 +454718,22 @@ function findWideFastPathRange(ranges) {
|
|
|
454631
454718
|
}
|
|
454632
454719
|
return [fastPathStart, fastPathEnd];
|
|
454633
454720
|
}
|
|
454634
|
-
var
|
|
454721
|
+
var commonCjkCodePoint, wideFastPathStart, wideFastPathEnd, isAmbiguous, isFullwidth, isWide;
|
|
454635
454722
|
var init_lookup = __esm({
|
|
454636
|
-
"node_modules/
|
|
454723
|
+
"node_modules/get-east-asian-width/lookup.js"() {
|
|
454637
454724
|
"use strict";
|
|
454638
454725
|
init_lookup_data();
|
|
454639
454726
|
init_utilities2();
|
|
454640
|
-
minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
454641
|
-
maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
454642
|
-
minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
454643
|
-
maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
454644
|
-
minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
454645
|
-
maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
454646
|
-
minimumNarrowCodePoint = narrowRanges[0];
|
|
454647
|
-
maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
454648
|
-
minimumWideCodePoint = wideRanges[0];
|
|
454649
|
-
maximumWideCodePoint = wideRanges.at(-1);
|
|
454650
454727
|
commonCjkCodePoint = 19968;
|
|
454651
|
-
[wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
454728
|
+
[wideFastPathStart, wideFastPathEnd] = /* @__PURE__ */ findWideFastPathRange(wideRanges);
|
|
454652
454729
|
isAmbiguous = (codePoint) => {
|
|
454653
|
-
if (codePoint <
|
|
454730
|
+
if (codePoint < ambiguousMinimalCodePoint || codePoint > ambiguousMaximumCodePoint) {
|
|
454654
454731
|
return false;
|
|
454655
454732
|
}
|
|
454656
454733
|
return isInRange(ambiguousRanges, codePoint);
|
|
454657
454734
|
};
|
|
454658
|
-
|
|
454659
|
-
if (codePoint <
|
|
454735
|
+
isFullwidth = (codePoint) => {
|
|
454736
|
+
if (codePoint < fullwidthMinimalCodePoint || codePoint > fullwidthMaximumCodePoint) {
|
|
454660
454737
|
return false;
|
|
454661
454738
|
}
|
|
454662
454739
|
return isInRange(fullwidthRanges, codePoint);
|
|
@@ -454665,7 +454742,7 @@ var init_lookup = __esm({
|
|
|
454665
454742
|
if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
|
|
454666
454743
|
return true;
|
|
454667
454744
|
}
|
|
454668
|
-
if (codePoint <
|
|
454745
|
+
if (codePoint < wideMinimalCodePoint || codePoint > wideMaximumCodePoint) {
|
|
454669
454746
|
return false;
|
|
454670
454747
|
}
|
|
454671
454748
|
return isInRange(wideRanges, codePoint);
|
|
@@ -454673,7 +454750,7 @@ var init_lookup = __esm({
|
|
|
454673
454750
|
}
|
|
454674
454751
|
});
|
|
454675
454752
|
|
|
454676
|
-
// node_modules/
|
|
454753
|
+
// node_modules/get-east-asian-width/index.js
|
|
454677
454754
|
function validate(codePoint) {
|
|
454678
454755
|
if (!Number.isSafeInteger(codePoint)) {
|
|
454679
454756
|
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
@@ -454681,13 +454758,13 @@ function validate(codePoint) {
|
|
|
454681
454758
|
}
|
|
454682
454759
|
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
454683
454760
|
validate(codePoint);
|
|
454684
|
-
if (
|
|
454761
|
+
if (isFullwidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
454685
454762
|
return 2;
|
|
454686
454763
|
}
|
|
454687
454764
|
return 1;
|
|
454688
454765
|
}
|
|
454689
454766
|
var init_get_east_asian_width = __esm({
|
|
454690
|
-
"node_modules/
|
|
454767
|
+
"node_modules/get-east-asian-width/index.js"() {
|
|
454691
454768
|
"use strict";
|
|
454692
454769
|
init_lookup();
|
|
454693
454770
|
}
|
|
@@ -454708,18 +454785,63 @@ function isDoubleWidthNonRgiEmojiSequence(segment) {
|
|
|
454708
454785
|
return false;
|
|
454709
454786
|
}
|
|
454710
454787
|
function baseVisible(segment) {
|
|
454711
|
-
|
|
454788
|
+
const index = segment.search(visibleCharacterRegex);
|
|
454789
|
+
return index === -1 ? void 0 : segment.slice(index);
|
|
454712
454790
|
}
|
|
454713
|
-
function
|
|
454714
|
-
return
|
|
454791
|
+
function isHangulLeadingJamo(codePoint) {
|
|
454792
|
+
return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
|
|
454715
454793
|
}
|
|
454716
|
-
function
|
|
454717
|
-
|
|
454718
|
-
|
|
454719
|
-
|
|
454720
|
-
|
|
454721
|
-
|
|
454794
|
+
function isHangulVowelJamo(codePoint) {
|
|
454795
|
+
return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
|
|
454796
|
+
}
|
|
454797
|
+
function isHangulTrailingJamo(codePoint) {
|
|
454798
|
+
return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
|
|
454799
|
+
}
|
|
454800
|
+
function isHangulJamo(codePoint) {
|
|
454801
|
+
return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
|
|
454802
|
+
}
|
|
454803
|
+
function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
|
|
454804
|
+
const codePoints = [];
|
|
454805
|
+
for (const character of visibleSegment) {
|
|
454806
|
+
if (!visibleCharacterRegex.test(character)) {
|
|
454807
|
+
continue;
|
|
454808
|
+
}
|
|
454809
|
+
codePoints.push(character.codePointAt(0));
|
|
454810
|
+
}
|
|
454811
|
+
if (codePoints.length === 0) {
|
|
454812
|
+
return void 0;
|
|
454813
|
+
}
|
|
454814
|
+
let width = 0;
|
|
454815
|
+
for (let index = 0; index < codePoints.length; index++) {
|
|
454816
|
+
const codePoint = codePoints[index];
|
|
454817
|
+
if (!isHangulJamo(codePoint)) {
|
|
454818
|
+
if (width === 0) {
|
|
454819
|
+
return void 0;
|
|
454820
|
+
}
|
|
454821
|
+
for (let remaining = index; remaining < codePoints.length; remaining++) {
|
|
454822
|
+
width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
|
|
454722
454823
|
}
|
|
454824
|
+
return width;
|
|
454825
|
+
}
|
|
454826
|
+
if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
|
|
454827
|
+
width += 2;
|
|
454828
|
+
index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
|
|
454829
|
+
continue;
|
|
454830
|
+
}
|
|
454831
|
+
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
454832
|
+
}
|
|
454833
|
+
return width;
|
|
454834
|
+
}
|
|
454835
|
+
function trailingWidth(visibleSegment, eastAsianWidthOptions) {
|
|
454836
|
+
let extra = 0;
|
|
454837
|
+
let first = true;
|
|
454838
|
+
for (const character of visibleSegment) {
|
|
454839
|
+
if (first) {
|
|
454840
|
+
first = false;
|
|
454841
|
+
continue;
|
|
454842
|
+
}
|
|
454843
|
+
if (spacingMarkRegex.test(character) || character >= "\uFF00" && character <= "\uFFEF") {
|
|
454844
|
+
extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
|
|
454723
454845
|
}
|
|
454724
454846
|
}
|
|
454725
454847
|
return extra;
|
|
@@ -454745,28 +454867,34 @@ function stringWidth(input, options = {}) {
|
|
|
454745
454867
|
let width = 0;
|
|
454746
454868
|
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
454747
454869
|
for (const { segment } of segmenter.segment(string)) {
|
|
454748
|
-
|
|
454870
|
+
const visibleSegment = baseVisible(segment);
|
|
454871
|
+
if (visibleSegment === void 0) {
|
|
454749
454872
|
continue;
|
|
454750
454873
|
}
|
|
454751
454874
|
if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
|
|
454752
454875
|
width += 2;
|
|
454753
454876
|
continue;
|
|
454754
454877
|
}
|
|
454755
|
-
const
|
|
454878
|
+
const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
|
|
454879
|
+
if (hangulWidth !== void 0) {
|
|
454880
|
+
width += hangulWidth;
|
|
454881
|
+
continue;
|
|
454882
|
+
}
|
|
454883
|
+
const codePoint = visibleSegment.codePointAt(0);
|
|
454756
454884
|
width += eastAsianWidth(codePoint, eastAsianWidthOptions);
|
|
454757
|
-
width +=
|
|
454885
|
+
width += trailingWidth(visibleSegment, eastAsianWidthOptions);
|
|
454758
454886
|
}
|
|
454759
454887
|
return width;
|
|
454760
454888
|
}
|
|
454761
|
-
var segmenter,
|
|
454889
|
+
var segmenter, visibleCharacterRegex, spacingMarkRegex, rgiEmojiRegex, unqualifiedKeycapRegex, extendedPictographicRegex;
|
|
454762
454890
|
var init_string_width = __esm({
|
|
454763
454891
|
"node_modules/ora/node_modules/string-width/index.js"() {
|
|
454764
454892
|
"use strict";
|
|
454765
454893
|
init_strip_ansi();
|
|
454766
454894
|
init_get_east_asian_width();
|
|
454767
454895
|
segmenter = new Intl.Segmenter();
|
|
454768
|
-
|
|
454769
|
-
|
|
454896
|
+
visibleCharacterRegex = /[^\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Nonspacing_Mark}\p{Enclosing_Mark}\p{Surrogate}]/v;
|
|
454897
|
+
spacingMarkRegex = /\p{Spacing_Mark}/v;
|
|
454770
454898
|
rgiEmojiRegex = /^\p{RGI_Emoji}$/v;
|
|
454771
454899
|
unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
|
|
454772
454900
|
extendedPictographicRegex = /\p{Extended_Pictographic}/gu;
|