@rotki/eslint-config 3.3.0 → 3.5.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/dist/index.cjs +942 -643
- package/dist/index.d.cts +315 -202
- package/dist/index.d.ts +315 -202
- package/dist/index.js +942 -643
- package/package.json +27 -27
package/dist/index.js
CHANGED
|
@@ -33,12 +33,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/tsup@8.3.
|
|
36
|
+
// node_modules/.pnpm/tsup@8.3.5_jiti@1.21.6_postcss@8.4.39_tsx@4.19.1_typescript@5.6.3_yaml@2.5.0/node_modules/tsup/assets/esm_shims.js
|
|
37
37
|
import { fileURLToPath } from "url";
|
|
38
38
|
import path from "path";
|
|
39
39
|
var getFilename, getDirname, __dirname, __filename;
|
|
40
40
|
var init_esm_shims = __esm({
|
|
41
|
-
"node_modules/.pnpm/tsup@8.3.
|
|
41
|
+
"node_modules/.pnpm/tsup@8.3.5_jiti@1.21.6_postcss@8.4.39_tsx@4.19.1_typescript@5.6.3_yaml@2.5.0/node_modules/tsup/assets/esm_shims.js"() {
|
|
42
42
|
"use strict";
|
|
43
43
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
44
44
|
getDirname = () => path.dirname(getFilename());
|
|
@@ -11655,17 +11655,17 @@ var require_regexp_ast_analysis = __commonJS({
|
|
|
11655
11655
|
}
|
|
11656
11656
|
});
|
|
11657
11657
|
|
|
11658
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11658
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/replacements-utils.js
|
|
11659
11659
|
var require_replacements_utils = __commonJS({
|
|
11660
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11660
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/replacements-utils.js"(exports) {
|
|
11661
11661
|
"use strict";
|
|
11662
11662
|
init_esm_shims();
|
|
11663
11663
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11664
|
-
exports.
|
|
11664
|
+
exports.parseReplacementsForString = parseReplacementsForString;
|
|
11665
|
+
exports.baseParseReplacements = baseParseReplacements;
|
|
11665
11666
|
function parseReplacementsForString(text) {
|
|
11666
11667
|
return baseParseReplacements([...text].map((s) => ({ value: s })), () => ({}));
|
|
11667
11668
|
}
|
|
11668
|
-
exports.parseReplacementsForString = parseReplacementsForString;
|
|
11669
11669
|
function baseParseReplacements(chars, getData) {
|
|
11670
11670
|
const elements = [];
|
|
11671
11671
|
let token;
|
|
@@ -11675,7 +11675,11 @@ var require_replacements_utils = __commonJS({
|
|
|
11675
11675
|
const next = chars[index++];
|
|
11676
11676
|
if (next) {
|
|
11677
11677
|
if (next.value === "$" || next.value === "&" || next.value === "`" || next.value === "'") {
|
|
11678
|
-
elements.push(
|
|
11678
|
+
elements.push({
|
|
11679
|
+
type: "DollarElement",
|
|
11680
|
+
kind: next.value,
|
|
11681
|
+
...getData(token, next)
|
|
11682
|
+
});
|
|
11679
11683
|
continue;
|
|
11680
11684
|
}
|
|
11681
11685
|
if (parseNumberRef(token, next)) {
|
|
@@ -11687,7 +11691,11 @@ var require_replacements_utils = __commonJS({
|
|
|
11687
11691
|
index--;
|
|
11688
11692
|
}
|
|
11689
11693
|
}
|
|
11690
|
-
elements.push(
|
|
11694
|
+
elements.push({
|
|
11695
|
+
type: "CharacterElement",
|
|
11696
|
+
value: token.value,
|
|
11697
|
+
...getData(token, token)
|
|
11698
|
+
});
|
|
11691
11699
|
}
|
|
11692
11700
|
return elements;
|
|
11693
11701
|
function parseNumberRef(dollarToken, startToken) {
|
|
@@ -11699,7 +11707,12 @@ var require_replacements_utils = __commonJS({
|
|
|
11699
11707
|
if (next) {
|
|
11700
11708
|
if (/^[1-9]$/u.test(next.value)) {
|
|
11701
11709
|
const ref2 = Number(next.value);
|
|
11702
|
-
elements.push(
|
|
11710
|
+
elements.push({
|
|
11711
|
+
type: "ReferenceElement",
|
|
11712
|
+
ref: ref2,
|
|
11713
|
+
refText: startToken.value + next.value,
|
|
11714
|
+
...getData(dollarToken, next)
|
|
11715
|
+
});
|
|
11703
11716
|
return true;
|
|
11704
11717
|
}
|
|
11705
11718
|
index--;
|
|
@@ -11707,7 +11720,12 @@ var require_replacements_utils = __commonJS({
|
|
|
11707
11720
|
return false;
|
|
11708
11721
|
}
|
|
11709
11722
|
const ref = Number(startToken.value);
|
|
11710
|
-
elements.push(
|
|
11723
|
+
elements.push({
|
|
11724
|
+
type: "ReferenceElement",
|
|
11725
|
+
ref,
|
|
11726
|
+
refText: startToken.value,
|
|
11727
|
+
...getData(dollarToken, startToken)
|
|
11728
|
+
});
|
|
11711
11729
|
return true;
|
|
11712
11730
|
}
|
|
11713
11731
|
function parseNamedRef(dollarToken, startToken) {
|
|
@@ -11720,7 +11738,12 @@ var require_replacements_utils = __commonJS({
|
|
|
11720
11738
|
if (t.value === ">") {
|
|
11721
11739
|
const refChars = chars.slice(startIndex, index - 1);
|
|
11722
11740
|
const ref = refChars.map((c) => c.value).join("");
|
|
11723
|
-
elements.push(
|
|
11741
|
+
elements.push({
|
|
11742
|
+
type: "ReferenceElement",
|
|
11743
|
+
ref,
|
|
11744
|
+
refText: ref,
|
|
11745
|
+
...getData(dollarToken, t)
|
|
11746
|
+
});
|
|
11724
11747
|
return true;
|
|
11725
11748
|
}
|
|
11726
11749
|
}
|
|
@@ -11728,13 +11751,12 @@ var require_replacements_utils = __commonJS({
|
|
|
11728
11751
|
return false;
|
|
11729
11752
|
}
|
|
11730
11753
|
}
|
|
11731
|
-
exports.baseParseReplacements = baseParseReplacements;
|
|
11732
11754
|
}
|
|
11733
11755
|
});
|
|
11734
11756
|
|
|
11735
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11757
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/tokenizer.js
|
|
11736
11758
|
var require_tokenizer = __commonJS({
|
|
11737
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11759
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/tokenizer.js"(exports) {
|
|
11738
11760
|
"use strict";
|
|
11739
11761
|
init_esm_shims();
|
|
11740
11762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11923,13 +11945,14 @@ var require_tokenizer = __commonJS({
|
|
|
11923
11945
|
}
|
|
11924
11946
|
});
|
|
11925
11947
|
|
|
11926
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11948
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/parser.js
|
|
11927
11949
|
var require_parser = __commonJS({
|
|
11928
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11950
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/parser.js"(exports) {
|
|
11929
11951
|
"use strict";
|
|
11930
11952
|
init_esm_shims();
|
|
11931
11953
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11932
|
-
exports.
|
|
11954
|
+
exports.parseStringLiteral = parseStringLiteral;
|
|
11955
|
+
exports.parseStringTokens = parseStringTokens;
|
|
11933
11956
|
var tokenizer_1 = require_tokenizer();
|
|
11934
11957
|
function parseStringLiteral(source, option) {
|
|
11935
11958
|
var _a, _b;
|
|
@@ -11950,7 +11973,6 @@ var require_parser = __commonJS({
|
|
|
11950
11973
|
range: [startIndex, tokenizer.pos]
|
|
11951
11974
|
};
|
|
11952
11975
|
}
|
|
11953
|
-
exports.parseStringLiteral = parseStringLiteral;
|
|
11954
11976
|
function* parseStringTokens(source, option) {
|
|
11955
11977
|
var _a, _b;
|
|
11956
11978
|
const startIndex = (_a = option === null || option === void 0 ? void 0 : option.start) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -11962,22 +11984,21 @@ var require_parser = __commonJS({
|
|
|
11962
11984
|
});
|
|
11963
11985
|
yield* tokenizer.parseTokens();
|
|
11964
11986
|
}
|
|
11965
|
-
exports.parseStringTokens = parseStringTokens;
|
|
11966
11987
|
}
|
|
11967
11988
|
});
|
|
11968
11989
|
|
|
11969
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11990
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/tokens.js
|
|
11970
11991
|
var require_tokens = __commonJS({
|
|
11971
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11992
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/tokens.js"(exports) {
|
|
11972
11993
|
"use strict";
|
|
11973
11994
|
init_esm_shims();
|
|
11974
11995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11975
11996
|
}
|
|
11976
11997
|
});
|
|
11977
11998
|
|
|
11978
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11999
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/index.js
|
|
11979
12000
|
var require_string_literal_parser = __commonJS({
|
|
11980
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
12001
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/index.js"(exports) {
|
|
11981
12002
|
"use strict";
|
|
11982
12003
|
init_esm_shims();
|
|
11983
12004
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -12347,9 +12368,9 @@ var require_eslint_visitor_keys = __commonJS({
|
|
|
12347
12368
|
}
|
|
12348
12369
|
});
|
|
12349
12370
|
|
|
12350
|
-
// node_modules/.pnpm/@eslint-community+eslint-utils@4.4.0_eslint@9.
|
|
12371
|
+
// node_modules/.pnpm/@eslint-community+eslint-utils@4.4.0_eslint@9.15.0_jiti@1.21.6_/node_modules/@eslint-community/eslint-utils/index.js
|
|
12351
12372
|
var require_eslint_utils = __commonJS({
|
|
12352
|
-
"node_modules/.pnpm/@eslint-community+eslint-utils@4.4.0_eslint@9.
|
|
12373
|
+
"node_modules/.pnpm/@eslint-community+eslint-utils@4.4.0_eslint@9.15.0_jiti@1.21.6_/node_modules/@eslint-community/eslint-utils/index.js"(exports) {
|
|
12353
12374
|
"use strict";
|
|
12354
12375
|
init_esm_shims();
|
|
12355
12376
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -12705,8 +12726,10 @@ var require_eslint_utils = __commonJS({
|
|
|
12705
12726
|
switch (node2.operator) {
|
|
12706
12727
|
case "==":
|
|
12707
12728
|
return { value: left.value == right.value };
|
|
12729
|
+
//eslint-disable-line eqeqeq
|
|
12708
12730
|
case "!=":
|
|
12709
12731
|
return { value: left.value != right.value };
|
|
12732
|
+
//eslint-disable-line eqeqeq
|
|
12710
12733
|
case "===":
|
|
12711
12734
|
return { value: left.value === right.value };
|
|
12712
12735
|
case "!==":
|
|
@@ -12956,6 +12979,7 @@ var require_eslint_utils = __commonJS({
|
|
|
12956
12979
|
return { value: -arg.value };
|
|
12957
12980
|
case "+":
|
|
12958
12981
|
return { value: +arg.value };
|
|
12982
|
+
//eslint-disable-line no-implicit-coercion
|
|
12959
12983
|
case "!":
|
|
12960
12984
|
return { value: !arg.value };
|
|
12961
12985
|
case "~":
|
|
@@ -13856,9 +13880,9 @@ var require_eslint_utils = __commonJS({
|
|
|
13856
13880
|
}
|
|
13857
13881
|
});
|
|
13858
13882
|
|
|
13859
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
13883
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/utils.js
|
|
13860
13884
|
var require_utils = __commonJS({
|
|
13861
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
13885
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/utils.js"(exports) {
|
|
13862
13886
|
"use strict";
|
|
13863
13887
|
init_esm_shims();
|
|
13864
13888
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -13889,7 +13913,21 @@ var require_utils = __commonJS({
|
|
|
13889
13913
|
return result;
|
|
13890
13914
|
};
|
|
13891
13915
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13892
|
-
exports.
|
|
13916
|
+
exports.getParent = getParent;
|
|
13917
|
+
exports.findVariable = findVariable;
|
|
13918
|
+
exports.getStringIfConstant = getStringIfConstant;
|
|
13919
|
+
exports.getStaticValue = getStaticValue;
|
|
13920
|
+
exports.getScope = getScope;
|
|
13921
|
+
exports.findFunction = findFunction;
|
|
13922
|
+
exports.isKnownMethodCall = isKnownMethodCall;
|
|
13923
|
+
exports.parseReplacements = parseReplacements;
|
|
13924
|
+
exports.getStringValueRange = getStringValueRange;
|
|
13925
|
+
exports.isRegexpLiteral = isRegexpLiteral;
|
|
13926
|
+
exports.isStringLiteral = isStringLiteral;
|
|
13927
|
+
exports.getPropertyName = getPropertyName;
|
|
13928
|
+
exports.astRangeToLocation = astRangeToLocation;
|
|
13929
|
+
exports.dereferenceOwnedVariable = dereferenceOwnedVariable;
|
|
13930
|
+
exports.dereferenceVariable = dereferenceVariable;
|
|
13893
13931
|
var replacements_utils_1 = require_replacements_utils();
|
|
13894
13932
|
var string_literal_parser_1 = require_string_literal_parser();
|
|
13895
13933
|
var eslintUtils = __importStar(require_eslint_utils());
|
|
@@ -13899,11 +13937,9 @@ var require_utils = __commonJS({
|
|
|
13899
13937
|
}
|
|
13900
13938
|
return node2.parent;
|
|
13901
13939
|
}
|
|
13902
|
-
exports.getParent = getParent;
|
|
13903
13940
|
function findVariable(context, node2) {
|
|
13904
13941
|
return eslintUtils.findVariable(getScope(context, node2), node2);
|
|
13905
13942
|
}
|
|
13906
|
-
exports.findVariable = findVariable;
|
|
13907
13943
|
function findSimpleVariable(context, identifier) {
|
|
13908
13944
|
const variable = findVariable(context, identifier);
|
|
13909
13945
|
if (!variable || variable.defs.length !== 1) {
|
|
@@ -13922,7 +13958,6 @@ var require_utils = __commonJS({
|
|
|
13922
13958
|
}
|
|
13923
13959
|
return eslintUtils.getStringIfConstant(node2, getScope(context, node2));
|
|
13924
13960
|
}
|
|
13925
|
-
exports.getStringIfConstant = getStringIfConstant;
|
|
13926
13961
|
function getStaticValue(context, node2) {
|
|
13927
13962
|
if (node2.type === "BinaryExpression") {
|
|
13928
13963
|
if (node2.operator === "+") {
|
|
@@ -13969,7 +14004,6 @@ var require_utils = __commonJS({
|
|
|
13969
14004
|
}
|
|
13970
14005
|
return eslintUtils.getStaticValue(node2, getScope(context, node2));
|
|
13971
14006
|
}
|
|
13972
|
-
exports.getStaticValue = getStaticValue;
|
|
13973
14007
|
function getScope(context, currentNode) {
|
|
13974
14008
|
const scopeManager = context.sourceCode.scopeManager;
|
|
13975
14009
|
let node2 = currentNode;
|
|
@@ -13984,7 +14018,6 @@ var require_utils = __commonJS({
|
|
|
13984
14018
|
}
|
|
13985
14019
|
return scopeManager.scopes[0];
|
|
13986
14020
|
}
|
|
13987
|
-
exports.getScope = getScope;
|
|
13988
14021
|
function findFunction(context, id) {
|
|
13989
14022
|
let target = id;
|
|
13990
14023
|
const set = /* @__PURE__ */ new Set();
|
|
@@ -14015,7 +14048,6 @@ var require_utils = __commonJS({
|
|
|
14015
14048
|
return null;
|
|
14016
14049
|
}
|
|
14017
14050
|
}
|
|
14018
|
-
exports.findFunction = findFunction;
|
|
14019
14051
|
function isKnownMethodCall(node2, methods) {
|
|
14020
14052
|
const mem = node2.callee;
|
|
14021
14053
|
if (mem.type !== "MemberExpression" || mem.computed || mem.property.type !== "Identifier") {
|
|
@@ -14034,7 +14066,6 @@ var require_utils = __commonJS({
|
|
|
14034
14066
|
}
|
|
14035
14067
|
return true;
|
|
14036
14068
|
}
|
|
14037
|
-
exports.isKnownMethodCall = isKnownMethodCall;
|
|
14038
14069
|
function parseReplacements(context, node2) {
|
|
14039
14070
|
const stringLiteral = (0, string_literal_parser_1.parseStringLiteral)(context.sourceCode.text, {
|
|
14040
14071
|
start: node2.range[0],
|
|
@@ -14047,7 +14078,6 @@ var require_utils = __commonJS({
|
|
|
14047
14078
|
};
|
|
14048
14079
|
});
|
|
14049
14080
|
}
|
|
14050
|
-
exports.parseReplacements = parseReplacements;
|
|
14051
14081
|
function getStringValueRange(sourceCode, node2, startOffset, endOffset) {
|
|
14052
14082
|
if (!node2.range) {
|
|
14053
14083
|
return null;
|
|
@@ -14075,15 +14105,12 @@ var require_utils = __commonJS({
|
|
|
14075
14105
|
}
|
|
14076
14106
|
return null;
|
|
14077
14107
|
}
|
|
14078
|
-
exports.getStringValueRange = getStringValueRange;
|
|
14079
14108
|
function isRegexpLiteral(node2) {
|
|
14080
14109
|
return node2.type === "Literal" && "regex" in node2;
|
|
14081
14110
|
}
|
|
14082
|
-
exports.isRegexpLiteral = isRegexpLiteral;
|
|
14083
14111
|
function isStringLiteral(node2) {
|
|
14084
14112
|
return node2.type === "Literal" && typeof node2.value === "string";
|
|
14085
14113
|
}
|
|
14086
|
-
exports.isStringLiteral = isStringLiteral;
|
|
14087
14114
|
function getPropertyName(node2, context) {
|
|
14088
14115
|
const prop = node2.property;
|
|
14089
14116
|
if (prop.type === "PrivateIdentifier") {
|
|
@@ -14100,14 +14127,12 @@ var require_utils = __commonJS({
|
|
|
14100
14127
|
}
|
|
14101
14128
|
return null;
|
|
14102
14129
|
}
|
|
14103
|
-
exports.getPropertyName = getPropertyName;
|
|
14104
14130
|
function astRangeToLocation(sourceCode, range) {
|
|
14105
14131
|
return {
|
|
14106
14132
|
start: sourceCode.getLocFromIndex(range[0]),
|
|
14107
14133
|
end: sourceCode.getLocFromIndex(range[1])
|
|
14108
14134
|
};
|
|
14109
14135
|
}
|
|
14110
|
-
exports.astRangeToLocation = astRangeToLocation;
|
|
14111
14136
|
function dereferenceOwnedVariable(context, expression) {
|
|
14112
14137
|
if (expression.type === "Identifier") {
|
|
14113
14138
|
const variable = findSimpleVariable(context, expression);
|
|
@@ -14130,7 +14155,6 @@ var require_utils = __commonJS({
|
|
|
14130
14155
|
}
|
|
14131
14156
|
return expression;
|
|
14132
14157
|
}
|
|
14133
|
-
exports.dereferenceOwnedVariable = dereferenceOwnedVariable;
|
|
14134
14158
|
function dereferenceVariable(context, expression) {
|
|
14135
14159
|
if (expression.type === "Identifier") {
|
|
14136
14160
|
const variable = findSimpleVariable(context, expression);
|
|
@@ -14151,17 +14175,17 @@ var require_utils = __commonJS({
|
|
|
14151
14175
|
}
|
|
14152
14176
|
return expression;
|
|
14153
14177
|
}
|
|
14154
|
-
exports.dereferenceVariable = dereferenceVariable;
|
|
14155
14178
|
}
|
|
14156
14179
|
});
|
|
14157
14180
|
|
|
14158
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14181
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/extract-expression-references.js
|
|
14159
14182
|
var require_extract_expression_references = __commonJS({
|
|
14160
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14183
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/extract-expression-references.js"(exports) {
|
|
14161
14184
|
"use strict";
|
|
14162
14185
|
init_esm_shims();
|
|
14163
14186
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14164
|
-
exports.
|
|
14187
|
+
exports.extractExpressionReferences = extractExpressionReferences;
|
|
14188
|
+
exports.extractExpressionReferencesForVariable = extractExpressionReferencesForVariable;
|
|
14165
14189
|
var utils_1 = require_utils();
|
|
14166
14190
|
function* extractExpressionReferences(node2, context) {
|
|
14167
14191
|
yield* iterateReferencesForExpression(node2, context, {
|
|
@@ -14169,14 +14193,12 @@ var require_extract_expression_references = __commonJS({
|
|
|
14169
14193
|
functions: /* @__PURE__ */ new Map()
|
|
14170
14194
|
});
|
|
14171
14195
|
}
|
|
14172
|
-
exports.extractExpressionReferences = extractExpressionReferences;
|
|
14173
14196
|
function* extractExpressionReferencesForVariable(node2, context) {
|
|
14174
14197
|
yield* iterateReferencesForVariable(node2, context, {
|
|
14175
14198
|
variables: /* @__PURE__ */ new Set(),
|
|
14176
14199
|
functions: /* @__PURE__ */ new Map()
|
|
14177
14200
|
});
|
|
14178
14201
|
}
|
|
14179
|
-
exports.extractExpressionReferencesForVariable = extractExpressionReferencesForVariable;
|
|
14180
14202
|
function* iterateReferencesForExpression(expression, context, alreadyChecked) {
|
|
14181
14203
|
let node2 = expression;
|
|
14182
14204
|
let parent = (0, utils_1.getParent)(node2);
|
|
@@ -14312,13 +14334,14 @@ var require_extract_expression_references = __commonJS({
|
|
|
14312
14334
|
}
|
|
14313
14335
|
});
|
|
14314
14336
|
|
|
14315
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14337
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/extract-property-references.js
|
|
14316
14338
|
var require_extract_property_references = __commonJS({
|
|
14317
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14339
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/extract-property-references.js"(exports) {
|
|
14318
14340
|
"use strict";
|
|
14319
14341
|
init_esm_shims();
|
|
14320
14342
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14321
|
-
exports.
|
|
14343
|
+
exports.extractPropertyReferences = extractPropertyReferences;
|
|
14344
|
+
exports.extractPropertyReferencesForPattern = extractPropertyReferencesForPattern;
|
|
14322
14345
|
var extract_expression_references_1 = require_extract_expression_references();
|
|
14323
14346
|
var utils_1 = require_utils();
|
|
14324
14347
|
function* extractPropertyReferences(node2, context) {
|
|
@@ -14342,11 +14365,9 @@ var require_extract_property_references = __commonJS({
|
|
|
14342
14365
|
}
|
|
14343
14366
|
}
|
|
14344
14367
|
}
|
|
14345
|
-
exports.extractPropertyReferences = extractPropertyReferences;
|
|
14346
14368
|
function* extractPropertyReferencesForPattern(node2, context) {
|
|
14347
14369
|
yield* iteratePropertyReferencesForPattern(node2, context);
|
|
14348
14370
|
}
|
|
14349
|
-
exports.extractPropertyReferencesForPattern = extractPropertyReferencesForPattern;
|
|
14350
14371
|
function isShallowCopy(node2) {
|
|
14351
14372
|
const parent = (0, utils_1.getParent)(node2);
|
|
14352
14373
|
if ((parent === null || parent === void 0 ? void 0 : parent.type) === "SpreadElement") {
|
|
@@ -14528,7 +14549,7 @@ var require_extract_property_references = __commonJS({
|
|
|
14528
14549
|
if (ref.type === "member" || ref.type === "destructuring") {
|
|
14529
14550
|
const num = Number(ref.name) + offset;
|
|
14530
14551
|
if (!Number.isNaN(num)) {
|
|
14531
|
-
return
|
|
14552
|
+
return { ...ref, name: String(num) };
|
|
14532
14553
|
}
|
|
14533
14554
|
}
|
|
14534
14555
|
return ref;
|
|
@@ -14536,13 +14557,16 @@ var require_extract_property_references = __commonJS({
|
|
|
14536
14557
|
}
|
|
14537
14558
|
});
|
|
14538
14559
|
|
|
14539
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14560
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/regex.js
|
|
14540
14561
|
var require_regex = __commonJS({
|
|
14541
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14562
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/regex.js"(exports) {
|
|
14542
14563
|
"use strict";
|
|
14543
14564
|
init_esm_shims();
|
|
14544
14565
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14545
|
-
exports.
|
|
14566
|
+
exports.getFlagsRange = getFlagsRange;
|
|
14567
|
+
exports.getFlagsLocation = getFlagsLocation;
|
|
14568
|
+
exports.getFlagRange = getFlagRange;
|
|
14569
|
+
exports.getFlagLocation = getFlagLocation;
|
|
14546
14570
|
var utils_1 = require_utils();
|
|
14547
14571
|
function getFlagsRange(flagsNode) {
|
|
14548
14572
|
if (!flagsNode) {
|
|
@@ -14559,7 +14583,6 @@ var require_regex = __commonJS({
|
|
|
14559
14583
|
}
|
|
14560
14584
|
return null;
|
|
14561
14585
|
}
|
|
14562
|
-
exports.getFlagsRange = getFlagsRange;
|
|
14563
14586
|
function getFlagsLocation(sourceCode, regexpNode, flagsNode) {
|
|
14564
14587
|
var _a;
|
|
14565
14588
|
const range = getFlagsRange(flagsNode);
|
|
@@ -14574,7 +14597,6 @@ var require_regex = __commonJS({
|
|
|
14574
14597
|
end: sourceCode.getLocFromIndex(range[1])
|
|
14575
14598
|
};
|
|
14576
14599
|
}
|
|
14577
|
-
exports.getFlagsLocation = getFlagsLocation;
|
|
14578
14600
|
function getFlagRange(sourceCode, flagsNode, flag) {
|
|
14579
14601
|
if (!flagsNode || !flag) {
|
|
14580
14602
|
return null;
|
|
@@ -14596,7 +14618,6 @@ var require_regex = __commonJS({
|
|
|
14596
14618
|
}
|
|
14597
14619
|
return null;
|
|
14598
14620
|
}
|
|
14599
|
-
exports.getFlagRange = getFlagRange;
|
|
14600
14621
|
function getFlagLocation(sourceCode, regexpNode, flagsNode, flag) {
|
|
14601
14622
|
var _a;
|
|
14602
14623
|
const range = getFlagRange(sourceCode, flagsNode, flag);
|
|
@@ -14608,13 +14629,12 @@ var require_regex = __commonJS({
|
|
|
14608
14629
|
end: sourceCode.getLocFromIndex(range[1])
|
|
14609
14630
|
};
|
|
14610
14631
|
}
|
|
14611
|
-
exports.getFlagLocation = getFlagLocation;
|
|
14612
14632
|
}
|
|
14613
14633
|
});
|
|
14614
14634
|
|
|
14615
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14635
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/index.js
|
|
14616
14636
|
var require_ast_utils = __commonJS({
|
|
14617
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14637
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/index.js"(exports) {
|
|
14618
14638
|
"use strict";
|
|
14619
14639
|
init_esm_shims();
|
|
14620
14640
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -14669,9 +14689,9 @@ var require_ast_utils = __commonJS({
|
|
|
14669
14689
|
}
|
|
14670
14690
|
});
|
|
14671
14691
|
|
|
14672
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14692
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/pattern-source.js
|
|
14673
14693
|
var require_pattern_source = __commonJS({
|
|
14674
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14694
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/pattern-source.js"(exports) {
|
|
14675
14695
|
"use strict";
|
|
14676
14696
|
init_esm_shims();
|
|
14677
14697
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -14793,6 +14813,8 @@ var require_pattern_source = __commonJS({
|
|
|
14793
14813
|
const items = [];
|
|
14794
14814
|
let value = "";
|
|
14795
14815
|
for (const e of flat) {
|
|
14816
|
+
if (e.type === "PrivateIdentifier")
|
|
14817
|
+
return null;
|
|
14796
14818
|
const staticValue = (0, utils_1.getStaticValue)(context, e);
|
|
14797
14819
|
if (!staticValue) {
|
|
14798
14820
|
return null;
|
|
@@ -14877,7 +14899,7 @@ var require_pattern_source = __commonJS({
|
|
|
14877
14899
|
function flattenPlus(context, e) {
|
|
14878
14900
|
if (e.type === "BinaryExpression" && e.operator === "+") {
|
|
14879
14901
|
return [
|
|
14880
|
-
...flattenPlus(context, e.left),
|
|
14902
|
+
...e.left.type !== "PrivateIdentifier" ? flattenPlus(context, e.left) : [e.left],
|
|
14881
14903
|
...flattenPlus(context, e.right)
|
|
14882
14904
|
];
|
|
14883
14905
|
}
|
|
@@ -14890,13 +14912,13 @@ var require_pattern_source = __commonJS({
|
|
|
14890
14912
|
}
|
|
14891
14913
|
});
|
|
14892
14914
|
|
|
14893
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14915
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/extract-capturing-group-references.js
|
|
14894
14916
|
var require_extract_capturing_group_references = __commonJS({
|
|
14895
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14917
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/extract-capturing-group-references.js"(exports) {
|
|
14896
14918
|
"use strict";
|
|
14897
14919
|
init_esm_shims();
|
|
14898
14920
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14899
|
-
exports.extractCapturingGroupReferences =
|
|
14921
|
+
exports.extractCapturingGroupReferences = extractCapturingGroupReferences;
|
|
14900
14922
|
var ast_utils_1 = require_ast_utils();
|
|
14901
14923
|
var extract_property_references_1 = require_extract_property_references();
|
|
14902
14924
|
var replacements_utils_1 = require_replacements_utils();
|
|
@@ -14960,7 +14982,6 @@ var require_extract_capturing_group_references = __commonJS({
|
|
|
14960
14982
|
}
|
|
14961
14983
|
}
|
|
14962
14984
|
}
|
|
14963
|
-
exports.extractCapturingGroupReferences = extractCapturingGroupReferences;
|
|
14964
14985
|
function* iterateForArgument(callExpression, argument, ctx) {
|
|
14965
14986
|
if (!(0, ast_utils_1.isKnownMethodCall)(callExpression, {
|
|
14966
14987
|
match: 1,
|
|
@@ -15374,13 +15395,14 @@ var require_extract_capturing_group_references = __commonJS({
|
|
|
15374
15395
|
}
|
|
15375
15396
|
});
|
|
15376
15397
|
|
|
15377
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15398
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/get-usage-of-pattern.js
|
|
15378
15399
|
var require_get_usage_of_pattern = __commonJS({
|
|
15379
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15400
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/get-usage-of-pattern.js"(exports) {
|
|
15380
15401
|
"use strict";
|
|
15381
15402
|
init_esm_shims();
|
|
15382
15403
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15383
|
-
exports.
|
|
15404
|
+
exports.UsageOfPattern = void 0;
|
|
15405
|
+
exports.getUsageOfPattern = getUsageOfPattern;
|
|
15384
15406
|
var ast_utils_1 = require_ast_utils();
|
|
15385
15407
|
var UsageOfPattern;
|
|
15386
15408
|
(function(UsageOfPattern2) {
|
|
@@ -15402,7 +15424,6 @@ var require_get_usage_of_pattern = __commonJS({
|
|
|
15402
15424
|
}
|
|
15403
15425
|
return usageSet.has(UsageOfPattern.whole) ? UsageOfPattern.whole : UsageOfPattern.unknown;
|
|
15404
15426
|
}
|
|
15405
|
-
exports.getUsageOfPattern = getUsageOfPattern;
|
|
15406
15427
|
function* iterateUsageOfPattern(node2, context) {
|
|
15407
15428
|
for (const ref of (0, ast_utils_1.extractExpressionReferences)(node2, context)) {
|
|
15408
15429
|
if (ref.type === "member") {
|
|
@@ -15460,17 +15481,20 @@ var require_get_usage_of_pattern = __commonJS({
|
|
|
15460
15481
|
}
|
|
15461
15482
|
});
|
|
15462
15483
|
|
|
15463
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15484
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/util.js
|
|
15464
15485
|
var require_util = __commonJS({
|
|
15465
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15486
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/util.js"(exports) {
|
|
15466
15487
|
"use strict";
|
|
15467
15488
|
init_esm_shims();
|
|
15468
15489
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15469
|
-
exports.
|
|
15490
|
+
exports.assertNever = assertNever;
|
|
15491
|
+
exports.lazy = lazy;
|
|
15492
|
+
exports.cachedFn = cachedFn;
|
|
15493
|
+
exports.toCodePoints = toCodePoints;
|
|
15494
|
+
exports.reversed = reversed;
|
|
15470
15495
|
function assertNever(value) {
|
|
15471
15496
|
throw new Error(`Invalid value: ${value}`);
|
|
15472
15497
|
}
|
|
15473
|
-
exports.assertNever = assertNever;
|
|
15474
15498
|
function lazy(fn) {
|
|
15475
15499
|
let cached;
|
|
15476
15500
|
return () => {
|
|
@@ -15480,7 +15504,6 @@ var require_util = __commonJS({
|
|
|
15480
15504
|
return cached;
|
|
15481
15505
|
};
|
|
15482
15506
|
}
|
|
15483
|
-
exports.lazy = lazy;
|
|
15484
15507
|
function cachedFn(fn) {
|
|
15485
15508
|
const cache = /* @__PURE__ */ new WeakMap();
|
|
15486
15509
|
return (key) => {
|
|
@@ -15492,25 +15515,31 @@ var require_util = __commonJS({
|
|
|
15492
15515
|
return cached;
|
|
15493
15516
|
};
|
|
15494
15517
|
}
|
|
15495
|
-
exports.cachedFn = cachedFn;
|
|
15496
15518
|
function toCodePoints(s) {
|
|
15497
15519
|
return [...s].map((c) => c.codePointAt(0));
|
|
15498
15520
|
}
|
|
15499
|
-
exports.toCodePoints = toCodePoints;
|
|
15500
15521
|
function reversed(iter) {
|
|
15501
15522
|
return [...iter].reverse();
|
|
15502
15523
|
}
|
|
15503
|
-
exports.reversed = reversed;
|
|
15504
15524
|
}
|
|
15505
15525
|
});
|
|
15506
15526
|
|
|
15507
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15527
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regex-syntax.js
|
|
15508
15528
|
var require_regex_syntax = __commonJS({
|
|
15509
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15529
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regex-syntax.js"(exports) {
|
|
15510
15530
|
"use strict";
|
|
15511
15531
|
init_esm_shims();
|
|
15512
15532
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15513
|
-
exports.
|
|
15533
|
+
exports.FLAG_UNICODE_SETS = exports.FLAG_UNICODE = exports.FLAG_STICKY = exports.FLAG_MULTILINE = exports.FLAG_IGNORECASE = exports.FLAG_HAS_INDICES = exports.FLAG_DOT_ALL = exports.FLAG_GLOBAL = exports.EscapeSequenceKind = exports.RESERVED_DOUBLE_PUNCTUATOR_PATTERN = exports.RESERVED_DOUBLE_PUNCTUATOR_CP = exports.RESERVED_DOUBLE_PUNCTUATOR_CHARS = void 0;
|
|
15534
|
+
exports.isOctalEscape = isOctalEscape;
|
|
15535
|
+
exports.isControlEscape = isControlEscape;
|
|
15536
|
+
exports.isHexadecimalEscape = isHexadecimalEscape;
|
|
15537
|
+
exports.isUnicodeEscape = isUnicodeEscape;
|
|
15538
|
+
exports.isUnicodeCodePointEscape = isUnicodeCodePointEscape;
|
|
15539
|
+
exports.getEscapeSequenceKind = getEscapeSequenceKind;
|
|
15540
|
+
exports.isEscapeSequence = isEscapeSequence;
|
|
15541
|
+
exports.isHexLikeEscape = isHexLikeEscape;
|
|
15542
|
+
exports.parseFlags = parseFlags;
|
|
15514
15543
|
var util_1 = require_util();
|
|
15515
15544
|
var RESERVED_DOUBLE_PUNCTUATORS = "&!#$%*+,.:;<=>?@^`~-";
|
|
15516
15545
|
exports.RESERVED_DOUBLE_PUNCTUATOR_CHARS = new Set(RESERVED_DOUBLE_PUNCTUATORS);
|
|
@@ -15519,23 +15548,18 @@ var require_regex_syntax = __commonJS({
|
|
|
15519
15548
|
function isOctalEscape(raw) {
|
|
15520
15549
|
return /^\\[0-7]{1,3}$/u.test(raw);
|
|
15521
15550
|
}
|
|
15522
|
-
exports.isOctalEscape = isOctalEscape;
|
|
15523
15551
|
function isControlEscape(raw) {
|
|
15524
15552
|
return /^\\c[A-Za-z]$/u.test(raw);
|
|
15525
15553
|
}
|
|
15526
|
-
exports.isControlEscape = isControlEscape;
|
|
15527
15554
|
function isHexadecimalEscape(raw) {
|
|
15528
15555
|
return /^\\x[\dA-Fa-f]{2}$/u.test(raw);
|
|
15529
15556
|
}
|
|
15530
|
-
exports.isHexadecimalEscape = isHexadecimalEscape;
|
|
15531
15557
|
function isUnicodeEscape(raw) {
|
|
15532
15558
|
return /^\\u[\dA-Fa-f]{4}$/u.test(raw);
|
|
15533
15559
|
}
|
|
15534
|
-
exports.isUnicodeEscape = isUnicodeEscape;
|
|
15535
15560
|
function isUnicodeCodePointEscape(raw) {
|
|
15536
15561
|
return /^\\u\{[\dA-Fa-f]{1,8}\}$/u.test(raw);
|
|
15537
15562
|
}
|
|
15538
|
-
exports.isUnicodeCodePointEscape = isUnicodeCodePointEscape;
|
|
15539
15563
|
var EscapeSequenceKind;
|
|
15540
15564
|
(function(EscapeSequenceKind2) {
|
|
15541
15565
|
EscapeSequenceKind2["octal"] = "octal";
|
|
@@ -15565,16 +15589,13 @@ var require_regex_syntax = __commonJS({
|
|
|
15565
15589
|
}
|
|
15566
15590
|
return null;
|
|
15567
15591
|
}
|
|
15568
|
-
exports.getEscapeSequenceKind = getEscapeSequenceKind;
|
|
15569
15592
|
function isEscapeSequence(raw) {
|
|
15570
15593
|
return getEscapeSequenceKind(raw) !== null;
|
|
15571
15594
|
}
|
|
15572
|
-
exports.isEscapeSequence = isEscapeSequence;
|
|
15573
15595
|
function isHexLikeEscape(raw) {
|
|
15574
15596
|
const kind = getEscapeSequenceKind(raw);
|
|
15575
15597
|
return kind === EscapeSequenceKind.hexadecimal || kind === EscapeSequenceKind.unicode || kind === EscapeSequenceKind.unicodeCodePoint;
|
|
15576
15598
|
}
|
|
15577
|
-
exports.isHexLikeEscape = isHexLikeEscape;
|
|
15578
15599
|
exports.FLAG_GLOBAL = "g";
|
|
15579
15600
|
exports.FLAG_DOT_ALL = "s";
|
|
15580
15601
|
exports.FLAG_HAS_INDICES = "d";
|
|
@@ -15601,17 +15622,18 @@ var require_regex_syntax = __commonJS({
|
|
|
15601
15622
|
}
|
|
15602
15623
|
return cached;
|
|
15603
15624
|
}
|
|
15604
|
-
exports.parseFlags = parseFlags;
|
|
15605
15625
|
}
|
|
15606
15626
|
});
|
|
15607
15627
|
|
|
15608
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15628
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/common.js
|
|
15609
15629
|
var require_common = __commonJS({
|
|
15610
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15630
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/common.js"(exports) {
|
|
15611
15631
|
"use strict";
|
|
15612
15632
|
init_esm_shims();
|
|
15613
15633
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15614
|
-
exports.
|
|
15634
|
+
exports.getFirstConsumedCharPlusAfter = getFirstConsumedCharPlusAfter;
|
|
15635
|
+
exports.extractCaptures = extractCaptures;
|
|
15636
|
+
exports.hasCapturingGroup = hasCapturingGroup;
|
|
15615
15637
|
var regexpp_1 = require_regexpp();
|
|
15616
15638
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
15617
15639
|
function getFirstConsumedCharPlusAfter(element, direction, flags) {
|
|
@@ -15621,7 +15643,6 @@ var require_common = __commonJS({
|
|
|
15621
15643
|
}
|
|
15622
15644
|
return regexp_ast_analysis_1.FirstConsumedChars.concat([consumed, (0, regexp_ast_analysis_1.getFirstConsumedCharAfter)(element, direction, flags)], flags);
|
|
15623
15645
|
}
|
|
15624
|
-
exports.getFirstConsumedCharPlusAfter = getFirstConsumedCharPlusAfter;
|
|
15625
15646
|
function extractCaptures(pattern) {
|
|
15626
15647
|
const groups = [];
|
|
15627
15648
|
(0, regexpp_1.visitRegExpAST)(pattern, {
|
|
@@ -15638,21 +15659,19 @@ var require_common = __commonJS({
|
|
|
15638
15659
|
}
|
|
15639
15660
|
return { groups, names, count: groups.length };
|
|
15640
15661
|
}
|
|
15641
|
-
exports.extractCaptures = extractCaptures;
|
|
15642
15662
|
function hasCapturingGroup(node2) {
|
|
15643
15663
|
return (0, regexp_ast_analysis_1.hasSomeDescendant)(node2, (d) => d.type === "CapturingGroup");
|
|
15644
15664
|
}
|
|
15645
|
-
exports.hasCapturingGroup = hasCapturingGroup;
|
|
15646
15665
|
}
|
|
15647
15666
|
});
|
|
15648
15667
|
|
|
15649
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15668
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/ast.js
|
|
15650
15669
|
var require_ast = __commonJS({
|
|
15651
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15670
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/ast.js"(exports) {
|
|
15652
15671
|
"use strict";
|
|
15653
15672
|
init_esm_shims();
|
|
15654
15673
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15655
|
-
exports.getRegExpNodeFromExpression =
|
|
15674
|
+
exports.getRegExpNodeFromExpression = getRegExpNodeFromExpression;
|
|
15656
15675
|
var regexpp_1 = require_regexpp();
|
|
15657
15676
|
var ast_utils_1 = require_ast_utils();
|
|
15658
15677
|
var parser = new regexpp_1.RegExpParser();
|
|
@@ -15680,17 +15699,16 @@ var require_ast = __commonJS({
|
|
|
15680
15699
|
return null;
|
|
15681
15700
|
}
|
|
15682
15701
|
}
|
|
15683
|
-
exports.getRegExpNodeFromExpression = getRegExpNodeFromExpression;
|
|
15684
15702
|
}
|
|
15685
15703
|
});
|
|
15686
15704
|
|
|
15687
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15705
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/is-equals.js
|
|
15688
15706
|
var require_is_equals = __commonJS({
|
|
15689
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15707
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/is-equals.js"(exports) {
|
|
15690
15708
|
"use strict";
|
|
15691
15709
|
init_esm_shims();
|
|
15692
15710
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15693
|
-
exports.isEqualNodes =
|
|
15711
|
+
exports.isEqualNodes = isEqualNodes;
|
|
15694
15712
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
15695
15713
|
function isEqualChar(a, b, flags) {
|
|
15696
15714
|
if (a.type === "Character") {
|
|
@@ -15772,6 +15790,12 @@ var require_is_equals = __commonJS({
|
|
|
15772
15790
|
Group(a, b, flags, shortCircuit) {
|
|
15773
15791
|
return isEqualSet(a.alternatives, b.alternatives, flags, shortCircuit);
|
|
15774
15792
|
},
|
|
15793
|
+
ModifierFlags(a, b) {
|
|
15794
|
+
return a.dotAll === b.dotAll && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline;
|
|
15795
|
+
},
|
|
15796
|
+
Modifiers(a, b, flags, shortCircuit) {
|
|
15797
|
+
return isEqualNodes(a.add, b.add, flags, shortCircuit) && (a.remove == null && b.remove == null || a.remove != null && b.remove != null && isEqualNodes(a.remove, b.remove, flags, shortCircuit));
|
|
15798
|
+
},
|
|
15775
15799
|
Pattern(a, b, flags, shortCircuit) {
|
|
15776
15800
|
return isEqualSet(a.alternatives, b.alternatives, flags, shortCircuit);
|
|
15777
15801
|
},
|
|
@@ -15806,7 +15830,6 @@ var require_is_equals = __commonJS({
|
|
|
15806
15830
|
}
|
|
15807
15831
|
return a.raw === b.raw;
|
|
15808
15832
|
}
|
|
15809
|
-
exports.isEqualNodes = isEqualNodes;
|
|
15810
15833
|
function isEqualConcatenation(a, b, flags, shortCircuit) {
|
|
15811
15834
|
if (a.length !== b.length) {
|
|
15812
15835
|
return false;
|
|
@@ -15838,13 +15861,13 @@ var require_is_equals = __commonJS({
|
|
|
15838
15861
|
}
|
|
15839
15862
|
});
|
|
15840
15863
|
|
|
15841
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15864
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/is-covered.js
|
|
15842
15865
|
var require_is_covered = __commonJS({
|
|
15843
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15866
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/is-covered.js"(exports) {
|
|
15844
15867
|
"use strict";
|
|
15845
15868
|
init_esm_shims();
|
|
15846
15869
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15847
|
-
exports.isCoveredNode =
|
|
15870
|
+
exports.isCoveredNode = isCoveredNode;
|
|
15848
15871
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
15849
15872
|
var util_1 = require_util();
|
|
15850
15873
|
var is_equals_1 = require_is_equals();
|
|
@@ -16037,7 +16060,6 @@ var require_is_covered = __commonJS({
|
|
|
16037
16060
|
const rightNode = normalizeNode(right, options);
|
|
16038
16061
|
return isCoveredForNormalizedNode(leftNode, rightNode, options);
|
|
16039
16062
|
}
|
|
16040
|
-
exports.isCoveredNode = isCoveredNode;
|
|
16041
16063
|
function isCoveredForNormalizedNode(left, right, options) {
|
|
16042
16064
|
if (right.type === "NormalizedDisjunctions") {
|
|
16043
16065
|
return right.alternatives.every((r) => isCoveredForNormalizedNode(left, r, options));
|
|
@@ -16123,6 +16145,8 @@ var require_is_covered = __commonJS({
|
|
|
16123
16145
|
return normalizeNode(node2.pattern, options);
|
|
16124
16146
|
case "Backreference":
|
|
16125
16147
|
case "Flags":
|
|
16148
|
+
case "ModifierFlags":
|
|
16149
|
+
case "Modifiers":
|
|
16126
16150
|
return NormalizedOther.fromNode(node2);
|
|
16127
16151
|
default:
|
|
16128
16152
|
return (0, util_1.assertNever)(node2);
|
|
@@ -16203,19 +16227,19 @@ var require_is_covered = __commonJS({
|
|
|
16203
16227
|
}
|
|
16204
16228
|
});
|
|
16205
16229
|
|
|
16206
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16230
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/quantifier.js
|
|
16207
16231
|
var require_quantifier = __commonJS({
|
|
16208
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16232
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/quantifier.js"(exports) {
|
|
16209
16233
|
"use strict";
|
|
16210
16234
|
init_esm_shims();
|
|
16211
16235
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16212
|
-
exports.
|
|
16236
|
+
exports.getQuantifierOffsets = getQuantifierOffsets;
|
|
16237
|
+
exports.quantToString = quantToString;
|
|
16213
16238
|
function getQuantifierOffsets(qNode) {
|
|
16214
16239
|
const startOffset = qNode.element.end - qNode.start;
|
|
16215
16240
|
const endOffset = qNode.raw.length - (qNode.greedy ? 0 : 1);
|
|
16216
16241
|
return [startOffset, endOffset];
|
|
16217
16242
|
}
|
|
16218
|
-
exports.getQuantifierOffsets = getQuantifierOffsets;
|
|
16219
16243
|
function quantToString(quant) {
|
|
16220
16244
|
if (quant.max < quant.min || quant.min < 0 || !Number.isInteger(quant.min) || !(Number.isInteger(quant.max) || quant.max === Infinity)) {
|
|
16221
16245
|
throw new Error(`Invalid quantifier { min: ${quant.min}, max: ${quant.max} }`);
|
|
@@ -16239,24 +16263,24 @@ var require_quantifier = __commonJS({
|
|
|
16239
16263
|
}
|
|
16240
16264
|
return value;
|
|
16241
16265
|
}
|
|
16242
|
-
exports.quantToString = quantToString;
|
|
16243
16266
|
}
|
|
16244
16267
|
});
|
|
16245
16268
|
|
|
16246
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16269
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/case-variation.js
|
|
16247
16270
|
var require_case_variation = __commonJS({
|
|
16248
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16271
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/case-variation.js"(exports) {
|
|
16249
16272
|
"use strict";
|
|
16250
16273
|
init_esm_shims();
|
|
16251
16274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16252
|
-
exports.
|
|
16275
|
+
exports.getCaseSensitiveFlags = exports.getIgnoreCaseFlags = void 0;
|
|
16276
|
+
exports.isCaseVariant = isCaseVariant;
|
|
16253
16277
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
16254
16278
|
var util_1 = require_util();
|
|
16255
16279
|
exports.getIgnoreCaseFlags = (0, util_1.cachedFn)((flags) => {
|
|
16256
|
-
return flags.ignoreCase ? flags : (0, regexp_ast_analysis_1.toCache)(
|
|
16280
|
+
return flags.ignoreCase ? flags : (0, regexp_ast_analysis_1.toCache)({ ...flags, ignoreCase: true });
|
|
16257
16281
|
});
|
|
16258
16282
|
exports.getCaseSensitiveFlags = (0, util_1.cachedFn)((flags) => {
|
|
16259
|
-
return flags.ignoreCase === false ? flags : (0, regexp_ast_analysis_1.toCache)(
|
|
16283
|
+
return flags.ignoreCase === false ? flags : (0, regexp_ast_analysis_1.toCache)({ ...flags, ignoreCase: false });
|
|
16260
16284
|
});
|
|
16261
16285
|
function isCaseVariant(element, flags, wholeCharacterClass = true) {
|
|
16262
16286
|
const unicodeLike = Boolean(flags.unicode || flags.unicodeSets);
|
|
@@ -16302,11 +16326,13 @@ var require_case_variation = __commonJS({
|
|
|
16302
16326
|
switch (d.type) {
|
|
16303
16327
|
case "Assertion":
|
|
16304
16328
|
return unicodeLike && d.kind === "word";
|
|
16305
|
-
case "Backreference":
|
|
16306
|
-
|
|
16329
|
+
case "Backreference": {
|
|
16330
|
+
const outside = getReferencedGroupsFromBackreference(d).filter((resolved) => !(0, regexp_ast_analysis_1.hasSomeDescendant)(element, resolved));
|
|
16331
|
+
if (outside.length === 0) {
|
|
16307
16332
|
return false;
|
|
16308
16333
|
}
|
|
16309
|
-
return !(0, regexp_ast_analysis_1.isEmptyBackreference)(d, flags) && isCaseVariant(
|
|
16334
|
+
return !(0, regexp_ast_analysis_1.isEmptyBackreference)(d, flags) && outside.some((resolved) => isCaseVariant(resolved, flags));
|
|
16335
|
+
}
|
|
16310
16336
|
case "Character":
|
|
16311
16337
|
case "CharacterClassRange":
|
|
16312
16338
|
case "CharacterSet":
|
|
@@ -16324,17 +16350,22 @@ var require_case_variation = __commonJS({
|
|
|
16324
16350
|
return d.type !== "CharacterClass" && d.type !== "CharacterClassRange" && d.type !== "ExpressionCharacterClass" && d.type !== "ClassStringDisjunction";
|
|
16325
16351
|
});
|
|
16326
16352
|
}
|
|
16327
|
-
|
|
16353
|
+
function getReferencedGroupsFromBackreference(backRef) {
|
|
16354
|
+
return [backRef.resolved].flat().filter((group) => {
|
|
16355
|
+
const closestAncestor = (0, regexp_ast_analysis_1.getClosestAncestor)(backRef, group);
|
|
16356
|
+
return closestAncestor !== group && closestAncestor.type === "Alternative";
|
|
16357
|
+
});
|
|
16358
|
+
}
|
|
16328
16359
|
}
|
|
16329
16360
|
});
|
|
16330
16361
|
|
|
16331
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16362
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/simplify-quantifier.js
|
|
16332
16363
|
var require_simplify_quantifier = __commonJS({
|
|
16333
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16364
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/simplify-quantifier.js"(exports) {
|
|
16334
16365
|
"use strict";
|
|
16335
16366
|
init_esm_shims();
|
|
16336
16367
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16337
|
-
exports.canSimplifyQuantifier =
|
|
16368
|
+
exports.canSimplifyQuantifier = canSimplifyQuantifier;
|
|
16338
16369
|
var refa_1 = require_refa();
|
|
16339
16370
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
16340
16371
|
var util_1 = require_util();
|
|
@@ -16362,7 +16393,6 @@ var require_simplify_quantifier = __commonJS({
|
|
|
16362
16393
|
}
|
|
16363
16394
|
return canAbsorb(preceding, { direction, flags, parser, quantifier });
|
|
16364
16395
|
}
|
|
16365
|
-
exports.canSimplifyQuantifier = canSimplifyQuantifier;
|
|
16366
16396
|
function canAbsorb(initialPreceding, options) {
|
|
16367
16397
|
const { direction, flags, parser, quantifier } = options;
|
|
16368
16398
|
const preceding = removeTargetQuantifier(initialPreceding, quantifier, direction, flags);
|
|
@@ -16571,9 +16601,9 @@ var require_simplify_quantifier = __commonJS({
|
|
|
16571
16601
|
}
|
|
16572
16602
|
});
|
|
16573
16603
|
|
|
16574
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16604
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/index.js
|
|
16575
16605
|
var require_regexp_ast = __commonJS({
|
|
16576
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16606
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/index.js"(exports) {
|
|
16577
16607
|
"use strict";
|
|
16578
16608
|
init_esm_shims();
|
|
16579
16609
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -223125,13 +223155,27 @@ ${e.message}`;
|
|
|
223125
223155
|
}
|
|
223126
223156
|
});
|
|
223127
223157
|
|
|
223128
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
223158
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ts-util.js
|
|
223129
223159
|
var require_ts_util = __commonJS({
|
|
223130
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
223160
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ts-util.js"(exports) {
|
|
223131
223161
|
"use strict";
|
|
223132
223162
|
init_esm_shims();
|
|
223133
223163
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
223134
|
-
exports.
|
|
223164
|
+
exports.getTypeScriptTools = getTypeScriptTools;
|
|
223165
|
+
exports.getTypeScript = getTypeScript;
|
|
223166
|
+
exports.isArrayLikeObject = isArrayLikeObject;
|
|
223167
|
+
exports.isClassOrInterface = isClassOrInterface;
|
|
223168
|
+
exports.isObject = isObject;
|
|
223169
|
+
exports.isReferenceObject = isReferenceObject;
|
|
223170
|
+
exports.isUnionOrIntersection = isUnionOrIntersection;
|
|
223171
|
+
exports.isTypeParameter = isTypeParameter;
|
|
223172
|
+
exports.isAny = isAny;
|
|
223173
|
+
exports.isUnknown = isUnknown;
|
|
223174
|
+
exports.isStringLine = isStringLine;
|
|
223175
|
+
exports.isNumberLike = isNumberLike;
|
|
223176
|
+
exports.isBooleanLike = isBooleanLike;
|
|
223177
|
+
exports.isBigIntLike = isBigIntLike;
|
|
223178
|
+
exports.isNull = isNull;
|
|
223135
223179
|
function getTypeScriptTools(context) {
|
|
223136
223180
|
const sourceCode = context.sourceCode;
|
|
223137
223181
|
const ts = getTypeScript();
|
|
@@ -223146,7 +223190,6 @@ var require_ts_util = __commonJS({
|
|
|
223146
223190
|
hasFullTypeInformation
|
|
223147
223191
|
};
|
|
223148
223192
|
}
|
|
223149
|
-
exports.getTypeScriptTools = getTypeScriptTools;
|
|
223150
223193
|
var cacheTypeScript;
|
|
223151
223194
|
function getTypeScript() {
|
|
223152
223195
|
try {
|
|
@@ -223164,72 +223207,58 @@ var require_ts_util = __commonJS({
|
|
|
223164
223207
|
throw e;
|
|
223165
223208
|
}
|
|
223166
223209
|
}
|
|
223167
|
-
exports.getTypeScript = getTypeScript;
|
|
223168
223210
|
function isArrayLikeObject(tsType) {
|
|
223169
223211
|
const ts = getTypeScript();
|
|
223170
223212
|
return isObject(tsType) && (tsType.objectFlags & (ts.ObjectFlags.ArrayLiteral | ts.ObjectFlags.EvolvingArray | ts.ObjectFlags.Tuple)) !== 0;
|
|
223171
223213
|
}
|
|
223172
|
-
exports.isArrayLikeObject = isArrayLikeObject;
|
|
223173
223214
|
function isClassOrInterface(tsType) {
|
|
223174
223215
|
const ts = getTypeScript();
|
|
223175
223216
|
return isObject(tsType) && (tsType.objectFlags & ts.ObjectFlags.ClassOrInterface) !== 0;
|
|
223176
223217
|
}
|
|
223177
|
-
exports.isClassOrInterface = isClassOrInterface;
|
|
223178
223218
|
function isObject(tsType) {
|
|
223179
223219
|
const ts = getTypeScript();
|
|
223180
223220
|
return (tsType.flags & ts.TypeFlags.Object) !== 0;
|
|
223181
223221
|
}
|
|
223182
|
-
exports.isObject = isObject;
|
|
223183
223222
|
function isReferenceObject(tsType) {
|
|
223184
223223
|
const ts = getTypeScript();
|
|
223185
223224
|
return isObject(tsType) && (tsType.objectFlags & ts.ObjectFlags.Reference) !== 0;
|
|
223186
223225
|
}
|
|
223187
|
-
exports.isReferenceObject = isReferenceObject;
|
|
223188
223226
|
function isUnionOrIntersection(tsType) {
|
|
223189
223227
|
const ts = getTypeScript();
|
|
223190
223228
|
return (tsType.flags & ts.TypeFlags.UnionOrIntersection) !== 0;
|
|
223191
223229
|
}
|
|
223192
|
-
exports.isUnionOrIntersection = isUnionOrIntersection;
|
|
223193
223230
|
function isTypeParameter(tsType) {
|
|
223194
223231
|
const ts = getTypeScript();
|
|
223195
223232
|
return (tsType.flags & ts.TypeFlags.TypeParameter) !== 0;
|
|
223196
223233
|
}
|
|
223197
|
-
exports.isTypeParameter = isTypeParameter;
|
|
223198
223234
|
function isAny(tsType) {
|
|
223199
223235
|
const ts = getTypeScript();
|
|
223200
223236
|
return (tsType.flags & ts.TypeFlags.Any) !== 0;
|
|
223201
223237
|
}
|
|
223202
|
-
exports.isAny = isAny;
|
|
223203
223238
|
function isUnknown(tsType) {
|
|
223204
223239
|
const ts = getTypeScript();
|
|
223205
223240
|
return (tsType.flags & ts.TypeFlags.Unknown) !== 0;
|
|
223206
223241
|
}
|
|
223207
|
-
exports.isUnknown = isUnknown;
|
|
223208
223242
|
function isStringLine(tsType) {
|
|
223209
223243
|
const ts = getTypeScript();
|
|
223210
223244
|
return (tsType.flags & ts.TypeFlags.StringLike) !== 0;
|
|
223211
223245
|
}
|
|
223212
|
-
exports.isStringLine = isStringLine;
|
|
223213
223246
|
function isNumberLike(tsType) {
|
|
223214
223247
|
const ts = getTypeScript();
|
|
223215
223248
|
return (tsType.flags & ts.TypeFlags.NumberLike) !== 0;
|
|
223216
223249
|
}
|
|
223217
|
-
exports.isNumberLike = isNumberLike;
|
|
223218
223250
|
function isBooleanLike(tsType) {
|
|
223219
223251
|
const ts = getTypeScript();
|
|
223220
223252
|
return (tsType.flags & ts.TypeFlags.BooleanLike) !== 0;
|
|
223221
223253
|
}
|
|
223222
|
-
exports.isBooleanLike = isBooleanLike;
|
|
223223
223254
|
function isBigIntLike(tsType) {
|
|
223224
223255
|
const ts = getTypeScript();
|
|
223225
223256
|
return (tsType.flags & ts.TypeFlags.BigIntLike) !== 0;
|
|
223226
223257
|
}
|
|
223227
|
-
exports.isBigIntLike = isBigIntLike;
|
|
223228
223258
|
function isNull(tsType) {
|
|
223229
223259
|
const ts = getTypeScript();
|
|
223230
223260
|
return (tsType.flags & ts.TypeFlags.Null) !== 0;
|
|
223231
223261
|
}
|
|
223232
|
-
exports.isNull = isNull;
|
|
223233
223262
|
}
|
|
223234
223263
|
});
|
|
223235
223264
|
|
|
@@ -226502,9 +226531,9 @@ var require_lib = __commonJS({
|
|
|
226502
226531
|
}
|
|
226503
226532
|
});
|
|
226504
226533
|
|
|
226505
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226534
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/jsdoc.js
|
|
226506
226535
|
var require_jsdoc = __commonJS({
|
|
226507
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226536
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/jsdoc.js"(exports) {
|
|
226508
226537
|
"use strict";
|
|
226509
226538
|
init_esm_shims();
|
|
226510
226539
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -226535,7 +226564,9 @@ var require_jsdoc = __commonJS({
|
|
|
226535
226564
|
return result;
|
|
226536
226565
|
};
|
|
226537
226566
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
226538
|
-
exports.
|
|
226567
|
+
exports.JSDoc = exports.JSDocParam = exports.JSDocParams = void 0;
|
|
226568
|
+
exports.getJSDoc = getJSDoc;
|
|
226569
|
+
exports.parseTypeText = parseTypeText;
|
|
226539
226570
|
var jsdocTypeParser = __importStar(require_dist());
|
|
226540
226571
|
var eslint_utils_1 = require_eslint_utils();
|
|
226541
226572
|
var commentParser = __importStar(require_lib());
|
|
@@ -226634,7 +226665,6 @@ var require_jsdoc = __commonJS({
|
|
|
226634
226665
|
}
|
|
226635
226666
|
return null;
|
|
226636
226667
|
}
|
|
226637
|
-
exports.getJSDoc = getJSDoc;
|
|
226638
226668
|
function findJSDocComment(node2, sourceCode) {
|
|
226639
226669
|
let target = node2;
|
|
226640
226670
|
let tokenBefore = null;
|
|
@@ -226678,17 +226708,21 @@ var require_jsdoc = __commonJS({
|
|
|
226678
226708
|
return null;
|
|
226679
226709
|
}
|
|
226680
226710
|
}
|
|
226681
|
-
exports.parseTypeText = parseTypeText;
|
|
226682
226711
|
}
|
|
226683
226712
|
});
|
|
226684
226713
|
|
|
226685
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226714
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/common.js
|
|
226686
226715
|
var require_common2 = __commonJS({
|
|
226687
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226716
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/common.js"(exports) {
|
|
226688
226717
|
"use strict";
|
|
226689
226718
|
init_esm_shims();
|
|
226690
226719
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
226691
|
-
exports.
|
|
226720
|
+
exports.TypeCollection = void 0;
|
|
226721
|
+
exports.isTypeClass = isTypeClass;
|
|
226722
|
+
exports.isEquals = isEquals;
|
|
226723
|
+
exports.hasType = hasType;
|
|
226724
|
+
exports.createObject = createObject;
|
|
226725
|
+
exports.getTypeName = getTypeName;
|
|
226692
226726
|
function isTypeClass(type) {
|
|
226693
226727
|
if (!type) {
|
|
226694
226728
|
return false;
|
|
@@ -226699,7 +226733,6 @@ var require_common2 = __commonJS({
|
|
|
226699
226733
|
}
|
|
226700
226734
|
return true;
|
|
226701
226735
|
}
|
|
226702
|
-
exports.isTypeClass = isTypeClass;
|
|
226703
226736
|
function isEquals(t1, t2) {
|
|
226704
226737
|
if (t1 === t2) {
|
|
226705
226738
|
return true;
|
|
@@ -226709,7 +226742,6 @@ var require_common2 = __commonJS({
|
|
|
226709
226742
|
}
|
|
226710
226743
|
return false;
|
|
226711
226744
|
}
|
|
226712
|
-
exports.isEquals = isEquals;
|
|
226713
226745
|
function hasType(result, type) {
|
|
226714
226746
|
if (result == null) {
|
|
226715
226747
|
return false;
|
|
@@ -226719,11 +226751,9 @@ var require_common2 = __commonJS({
|
|
|
226719
226751
|
}
|
|
226720
226752
|
return result.has(type);
|
|
226721
226753
|
}
|
|
226722
|
-
exports.hasType = hasType;
|
|
226723
226754
|
function createObject(t) {
|
|
226724
226755
|
return Object.assign(/* @__PURE__ */ Object.create(null), t);
|
|
226725
226756
|
}
|
|
226726
|
-
exports.createObject = createObject;
|
|
226727
226757
|
var TypeCollection = class {
|
|
226728
226758
|
constructor(generator) {
|
|
226729
226759
|
this.unknownIndex = null;
|
|
@@ -226815,17 +226845,17 @@ var require_common2 = __commonJS({
|
|
|
226815
226845
|
}
|
|
226816
226846
|
return type.typeNames().join("|");
|
|
226817
226847
|
}
|
|
226818
|
-
exports.getTypeName = getTypeName;
|
|
226819
226848
|
}
|
|
226820
226849
|
});
|
|
226821
226850
|
|
|
226822
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226851
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/object.js
|
|
226823
226852
|
var require_object = __commonJS({
|
|
226824
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226853
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/object.js"(exports) {
|
|
226825
226854
|
"use strict";
|
|
226826
226855
|
init_esm_shims();
|
|
226827
226856
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
226828
|
-
exports.
|
|
226857
|
+
exports.UNKNOWN_OBJECT = exports.TypeObject = exports.getObjectPrototypes = void 0;
|
|
226858
|
+
exports.buildObjectConstructor = buildObjectConstructor;
|
|
226829
226859
|
var util_1 = require_util();
|
|
226830
226860
|
var common_1 = require_common2();
|
|
226831
226861
|
var function_1 = require_function();
|
|
@@ -226962,17 +226992,17 @@ var require_object = __commonJS({
|
|
|
226962
226992
|
return (_a = argType === null || argType === void 0 ? void 0 : argType()) !== null && _a !== void 0 ? _a : exports.UNKNOWN_OBJECT;
|
|
226963
226993
|
}, OBJECT_TYPES);
|
|
226964
226994
|
}
|
|
226965
|
-
exports.buildObjectConstructor = buildObjectConstructor;
|
|
226966
226995
|
}
|
|
226967
226996
|
});
|
|
226968
226997
|
|
|
226969
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226998
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/number.js
|
|
226970
226999
|
var require_number = __commonJS({
|
|
226971
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227000
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/number.js"(exports) {
|
|
226972
227001
|
"use strict";
|
|
226973
227002
|
init_esm_shims();
|
|
226974
227003
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
226975
|
-
exports.
|
|
227004
|
+
exports.NUMBER = exports.TypeNumber = void 0;
|
|
227005
|
+
exports.buildNumberConstructor = buildNumberConstructor;
|
|
226976
227006
|
var util_1 = require_util();
|
|
226977
227007
|
var common_1 = require_common2();
|
|
226978
227008
|
var function_1 = require_function();
|
|
@@ -227025,18 +227055,26 @@ var require_number = __commonJS({
|
|
|
227025
227055
|
});
|
|
227026
227056
|
return new function_1.TypeGlobalFunction(() => exports.NUMBER, NUMBER_TYPES);
|
|
227027
227057
|
}
|
|
227028
|
-
|
|
227029
|
-
|
|
227058
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227059
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227060
|
+
toString: function_1.RETURN_STRING,
|
|
227061
|
+
toFixed: function_1.RETURN_STRING,
|
|
227062
|
+
toExponential: function_1.RETURN_STRING,
|
|
227063
|
+
toPrecision: function_1.RETURN_STRING,
|
|
227064
|
+
valueOf: function_1.RETURN_NUMBER,
|
|
227065
|
+
toLocaleString: function_1.RETURN_STRING
|
|
227066
|
+
}));
|
|
227030
227067
|
}
|
|
227031
227068
|
});
|
|
227032
227069
|
|
|
227033
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227070
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/string.js
|
|
227034
227071
|
var require_string = __commonJS({
|
|
227035
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227072
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/string.js"(exports) {
|
|
227036
227073
|
"use strict";
|
|
227037
227074
|
init_esm_shims();
|
|
227038
227075
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227039
|
-
exports.
|
|
227076
|
+
exports.STRING = exports.TypeString = void 0;
|
|
227077
|
+
exports.buildStringConstructor = buildStringConstructor;
|
|
227040
227078
|
var util_1 = require_util();
|
|
227041
227079
|
var common_1 = require_common2();
|
|
227042
227080
|
var function_1 = require_function();
|
|
@@ -227082,18 +227120,71 @@ var require_string = __commonJS({
|
|
|
227082
227120
|
});
|
|
227083
227121
|
return new function_1.TypeGlobalFunction(() => exports.STRING, STRING_TYPES);
|
|
227084
227122
|
}
|
|
227085
|
-
|
|
227086
|
-
|
|
227123
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227124
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227125
|
+
toString: function_1.RETURN_STRING,
|
|
227126
|
+
charAt: function_1.RETURN_STRING,
|
|
227127
|
+
charCodeAt: function_1.RETURN_NUMBER,
|
|
227128
|
+
concat: function_1.RETURN_STRING,
|
|
227129
|
+
indexOf: function_1.RETURN_NUMBER,
|
|
227130
|
+
lastIndexOf: function_1.RETURN_NUMBER,
|
|
227131
|
+
localeCompare: function_1.RETURN_NUMBER,
|
|
227132
|
+
match: function_1.RETURN_STRING_ARRAY,
|
|
227133
|
+
replace: function_1.RETURN_STRING,
|
|
227134
|
+
search: function_1.RETURN_NUMBER,
|
|
227135
|
+
slice: function_1.RETURN_STRING,
|
|
227136
|
+
split: function_1.RETURN_STRING_ARRAY,
|
|
227137
|
+
substring: function_1.RETURN_STRING,
|
|
227138
|
+
toLowerCase: function_1.RETURN_STRING,
|
|
227139
|
+
toLocaleLowerCase: function_1.RETURN_STRING,
|
|
227140
|
+
toUpperCase: function_1.RETURN_STRING,
|
|
227141
|
+
toLocaleUpperCase: function_1.RETURN_STRING,
|
|
227142
|
+
trim: function_1.RETURN_STRING,
|
|
227143
|
+
substr: function_1.RETURN_STRING,
|
|
227144
|
+
valueOf: function_1.RETURN_STRING,
|
|
227145
|
+
codePointAt: function_1.RETURN_NUMBER,
|
|
227146
|
+
includes: function_1.RETURN_BOOLEAN,
|
|
227147
|
+
endsWith: function_1.RETURN_BOOLEAN,
|
|
227148
|
+
normalize: function_1.RETURN_STRING,
|
|
227149
|
+
repeat: function_1.RETURN_STRING,
|
|
227150
|
+
startsWith: function_1.RETURN_BOOLEAN,
|
|
227151
|
+
anchor: function_1.RETURN_STRING,
|
|
227152
|
+
big: function_1.RETURN_STRING,
|
|
227153
|
+
blink: function_1.RETURN_STRING,
|
|
227154
|
+
bold: function_1.RETURN_STRING,
|
|
227155
|
+
fixed: function_1.RETURN_STRING,
|
|
227156
|
+
fontcolor: function_1.RETURN_STRING,
|
|
227157
|
+
fontsize: function_1.RETURN_STRING,
|
|
227158
|
+
italics: function_1.RETURN_STRING,
|
|
227159
|
+
link: function_1.RETURN_STRING,
|
|
227160
|
+
small: function_1.RETURN_STRING,
|
|
227161
|
+
strike: function_1.RETURN_STRING,
|
|
227162
|
+
sub: function_1.RETURN_STRING,
|
|
227163
|
+
sup: function_1.RETURN_STRING,
|
|
227164
|
+
padStart: function_1.RETURN_STRING,
|
|
227165
|
+
padEnd: function_1.RETURN_STRING,
|
|
227166
|
+
trimLeft: function_1.RETURN_STRING,
|
|
227167
|
+
trimRight: function_1.RETURN_STRING,
|
|
227168
|
+
trimStart: function_1.RETURN_STRING,
|
|
227169
|
+
trimEnd: function_1.RETURN_STRING,
|
|
227170
|
+
matchAll: null,
|
|
227171
|
+
replaceAll: function_1.RETURN_STRING,
|
|
227172
|
+
at: function_1.RETURN_STRING,
|
|
227173
|
+
length: number_1.NUMBER,
|
|
227174
|
+
0: exports.STRING,
|
|
227175
|
+
[Symbol.iterator]: null
|
|
227176
|
+
}));
|
|
227087
227177
|
}
|
|
227088
227178
|
});
|
|
227089
227179
|
|
|
227090
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227180
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/bigint.js
|
|
227091
227181
|
var require_bigint = __commonJS({
|
|
227092
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227182
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/bigint.js"(exports) {
|
|
227093
227183
|
"use strict";
|
|
227094
227184
|
init_esm_shims();
|
|
227095
227185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227096
|
-
exports.
|
|
227186
|
+
exports.BIGINT = exports.TypeBigInt = void 0;
|
|
227187
|
+
exports.buildBigIntConstructor = buildBigIntConstructor;
|
|
227097
227188
|
var util_1 = require_util();
|
|
227098
227189
|
var common_1 = require_common2();
|
|
227099
227190
|
var function_1 = require_function();
|
|
@@ -227135,18 +227226,24 @@ var require_bigint = __commonJS({
|
|
|
227135
227226
|
});
|
|
227136
227227
|
return new function_1.TypeGlobalFunction(() => exports.BIGINT, BIGINT_TYPES);
|
|
227137
227228
|
}
|
|
227138
|
-
|
|
227139
|
-
|
|
227229
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227230
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227231
|
+
toString: function_1.RETURN_STRING,
|
|
227232
|
+
toLocaleString: function_1.RETURN_STRING,
|
|
227233
|
+
valueOf: function_1.RETURN_BIGINT,
|
|
227234
|
+
[Symbol.toStringTag]: string_1.STRING
|
|
227235
|
+
}));
|
|
227140
227236
|
}
|
|
227141
227237
|
});
|
|
227142
227238
|
|
|
227143
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227239
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/boolean.js
|
|
227144
227240
|
var require_boolean = __commonJS({
|
|
227145
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227241
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/boolean.js"(exports) {
|
|
227146
227242
|
"use strict";
|
|
227147
227243
|
init_esm_shims();
|
|
227148
227244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227149
|
-
exports.
|
|
227245
|
+
exports.BOOLEAN = exports.TypeBoolean = void 0;
|
|
227246
|
+
exports.buildBooleanConstructor = buildBooleanConstructor;
|
|
227150
227247
|
var util_1 = require_util();
|
|
227151
227248
|
var common_1 = require_common2();
|
|
227152
227249
|
var function_1 = require_function();
|
|
@@ -227185,18 +227282,21 @@ var require_boolean = __commonJS({
|
|
|
227185
227282
|
});
|
|
227186
227283
|
return new function_1.TypeGlobalFunction(() => exports.BOOLEAN, BOOLEAN_TYPES);
|
|
227187
227284
|
}
|
|
227188
|
-
|
|
227189
|
-
|
|
227285
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227286
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227287
|
+
valueOf: function_1.RETURN_BOOLEAN
|
|
227288
|
+
}));
|
|
227190
227289
|
}
|
|
227191
227290
|
});
|
|
227192
227291
|
|
|
227193
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227292
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/regexp.js
|
|
227194
227293
|
var require_regexp = __commonJS({
|
|
227195
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227294
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/regexp.js"(exports) {
|
|
227196
227295
|
"use strict";
|
|
227197
227296
|
init_esm_shims();
|
|
227198
227297
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227199
|
-
exports.
|
|
227298
|
+
exports.REGEXP = exports.TypeRegExp = void 0;
|
|
227299
|
+
exports.buildRegExpConstructor = buildRegExpConstructor;
|
|
227200
227300
|
var util_1 = require_util();
|
|
227201
227301
|
var boolean_1 = require_boolean();
|
|
227202
227302
|
var common_1 = require_common2();
|
|
@@ -227258,18 +227358,38 @@ var require_regexp = __commonJS({
|
|
|
227258
227358
|
});
|
|
227259
227359
|
return new function_1.TypeGlobalFunction(() => exports.REGEXP, REGEXP_TYPES);
|
|
227260
227360
|
}
|
|
227261
|
-
|
|
227262
|
-
|
|
227361
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227362
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227363
|
+
exec: function_1.RETURN_STRING_ARRAY,
|
|
227364
|
+
test: function_1.RETURN_BOOLEAN,
|
|
227365
|
+
source: string_1.STRING,
|
|
227366
|
+
global: boolean_1.BOOLEAN,
|
|
227367
|
+
ignoreCase: boolean_1.BOOLEAN,
|
|
227368
|
+
multiline: boolean_1.BOOLEAN,
|
|
227369
|
+
lastIndex: number_1.NUMBER,
|
|
227370
|
+
compile: function_1.RETURN_REGEXP,
|
|
227371
|
+
flags: string_1.STRING,
|
|
227372
|
+
sticky: boolean_1.BOOLEAN,
|
|
227373
|
+
unicode: boolean_1.BOOLEAN,
|
|
227374
|
+
dotAll: boolean_1.BOOLEAN,
|
|
227375
|
+
hasIndices: boolean_1.BOOLEAN,
|
|
227376
|
+
[Symbol.match]: null,
|
|
227377
|
+
[Symbol.replace]: null,
|
|
227378
|
+
[Symbol.search]: null,
|
|
227379
|
+
[Symbol.split]: null,
|
|
227380
|
+
[Symbol.matchAll]: null
|
|
227381
|
+
}));
|
|
227263
227382
|
}
|
|
227264
227383
|
});
|
|
227265
227384
|
|
|
227266
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227385
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/function.js
|
|
227267
227386
|
var require_function = __commonJS({
|
|
227268
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227387
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/function.js"(exports) {
|
|
227269
227388
|
"use strict";
|
|
227270
227389
|
init_esm_shims();
|
|
227271
227390
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227272
|
-
exports.RETURN_BIGINT = exports.RETURN_REGEXP = exports.RETURN_UNKNOWN_OBJECT = exports.RETURN_STRING_ARRAY = exports.RETURN_UNKNOWN_ARRAY = exports.RETURN_BOOLEAN = exports.RETURN_NUMBER = exports.RETURN_STRING = exports.RETURN_VOID = exports.
|
|
227391
|
+
exports.RETURN_BIGINT = exports.RETURN_REGEXP = exports.RETURN_UNKNOWN_OBJECT = exports.RETURN_STRING_ARRAY = exports.RETURN_UNKNOWN_ARRAY = exports.RETURN_BOOLEAN = exports.RETURN_NUMBER = exports.RETURN_STRING = exports.RETURN_VOID = exports.UNKNOWN_FUNCTION = exports.TypeGlobalFunction = exports.TypeFunction = void 0;
|
|
227392
|
+
exports.buildFunctionConstructor = buildFunctionConstructor;
|
|
227273
227393
|
var util_1 = require_util();
|
|
227274
227394
|
var array_1 = require_array();
|
|
227275
227395
|
var bigint_1 = require_bigint();
|
|
@@ -227328,7 +227448,6 @@ var require_function = __commonJS({
|
|
|
227328
227448
|
return exports.UNKNOWN_FUNCTION;
|
|
227329
227449
|
}, FUNCTION_TYPES);
|
|
227330
227450
|
}
|
|
227331
|
-
exports.buildFunctionConstructor = buildFunctionConstructor;
|
|
227332
227451
|
exports.RETURN_VOID = new TypeFunction(function retVoid() {
|
|
227333
227452
|
return "undefined";
|
|
227334
227453
|
});
|
|
@@ -227360,13 +227479,25 @@ var require_function = __commonJS({
|
|
|
227360
227479
|
var _a;
|
|
227361
227480
|
return (_a = selfType === null || selfType === void 0 ? void 0 : selfType()) !== null && _a !== void 0 ? _a : null;
|
|
227362
227481
|
});
|
|
227363
|
-
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)(
|
|
227482
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227483
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227484
|
+
toString: exports.RETURN_STRING,
|
|
227485
|
+
bind: RETURN_SELF,
|
|
227486
|
+
length: number_1.NUMBER,
|
|
227487
|
+
name: string_1.STRING,
|
|
227488
|
+
apply: exports.UNKNOWN_FUNCTION,
|
|
227489
|
+
call: exports.UNKNOWN_FUNCTION,
|
|
227490
|
+
arguments: null,
|
|
227491
|
+
caller: exports.UNKNOWN_FUNCTION,
|
|
227492
|
+
prototype: null,
|
|
227493
|
+
[Symbol.hasInstance]: null
|
|
227494
|
+
}));
|
|
227364
227495
|
}
|
|
227365
227496
|
});
|
|
227366
227497
|
|
|
227367
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227498
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/iterable.js
|
|
227368
227499
|
var require_iterable = __commonJS({
|
|
227369
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227500
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/iterable.js"(exports) {
|
|
227370
227501
|
"use strict";
|
|
227371
227502
|
init_esm_shims();
|
|
227372
227503
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -227375,7 +227506,10 @@ var require_iterable = __commonJS({
|
|
|
227375
227506
|
var common_1 = require_common2();
|
|
227376
227507
|
var object_1 = require_object();
|
|
227377
227508
|
var getPrototypes = (0, util_1.lazy)(() => {
|
|
227378
|
-
return (0, common_1.createObject)(
|
|
227509
|
+
return (0, common_1.createObject)({
|
|
227510
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227511
|
+
[Symbol.iterator]: null
|
|
227512
|
+
});
|
|
227379
227513
|
});
|
|
227380
227514
|
var TypeIterable = class {
|
|
227381
227515
|
constructor(param0) {
|
|
@@ -227416,9 +227550,9 @@ var require_iterable = __commonJS({
|
|
|
227416
227550
|
}
|
|
227417
227551
|
});
|
|
227418
227552
|
|
|
227419
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227553
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/union-or-intersection.js
|
|
227420
227554
|
var require_union_or_intersection = __commonJS({
|
|
227421
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227555
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/union-or-intersection.js"(exports) {
|
|
227422
227556
|
"use strict";
|
|
227423
227557
|
init_esm_shims();
|
|
227424
227558
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -227508,13 +227642,14 @@ var require_union_or_intersection = __commonJS({
|
|
|
227508
227642
|
}
|
|
227509
227643
|
});
|
|
227510
227644
|
|
|
227511
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227645
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/array.js
|
|
227512
227646
|
var require_array = __commonJS({
|
|
227513
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227647
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/array.js"(exports) {
|
|
227514
227648
|
"use strict";
|
|
227515
227649
|
init_esm_shims();
|
|
227516
227650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227517
|
-
exports.
|
|
227651
|
+
exports.STRING_ARRAY = exports.UNKNOWN_ARRAY = exports.TypeArray = void 0;
|
|
227652
|
+
exports.buildArrayConstructor = buildArrayConstructor;
|
|
227518
227653
|
var util_1 = require_util();
|
|
227519
227654
|
var common_1 = require_common2();
|
|
227520
227655
|
var function_1 = require_function();
|
|
@@ -227587,7 +227722,6 @@ var require_array = __commonJS({
|
|
|
227587
227722
|
});
|
|
227588
227723
|
return new function_1.TypeGlobalFunction(() => exports.UNKNOWN_ARRAY, ARRAY_TYPES);
|
|
227589
227724
|
}
|
|
227590
|
-
exports.buildArrayConstructor = buildArrayConstructor;
|
|
227591
227725
|
var getPrototypes = (0, util_1.lazy)(() => {
|
|
227592
227726
|
const RETURN_ARRAY_ELEMENT = new function_1.TypeFunction(function returnArrayElement(selfType) {
|
|
227593
227727
|
const type = selfType === null || selfType === void 0 ? void 0 : selfType();
|
|
@@ -227651,18 +227785,63 @@ var require_array = __commonJS({
|
|
|
227651
227785
|
}
|
|
227652
227786
|
});
|
|
227653
227787
|
});
|
|
227654
|
-
return (0, common_1.createObject)(
|
|
227788
|
+
return (0, common_1.createObject)({
|
|
227789
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227790
|
+
toString: function_1.RETURN_STRING,
|
|
227791
|
+
toLocaleString: function_1.RETURN_STRING,
|
|
227792
|
+
pop: RETURN_ARRAY_ELEMENT,
|
|
227793
|
+
push: function_1.RETURN_NUMBER,
|
|
227794
|
+
concat: RETURN_CONCAT,
|
|
227795
|
+
join: function_1.RETURN_STRING,
|
|
227796
|
+
reverse: RETURN_SELF,
|
|
227797
|
+
shift: RETURN_ARRAY_ELEMENT,
|
|
227798
|
+
slice: RETURN_SELF,
|
|
227799
|
+
sort: RETURN_SELF,
|
|
227800
|
+
splice: RETURN_SELF,
|
|
227801
|
+
unshift: function_1.RETURN_NUMBER,
|
|
227802
|
+
indexOf: function_1.RETURN_NUMBER,
|
|
227803
|
+
lastIndexOf: function_1.RETURN_NUMBER,
|
|
227804
|
+
every: function_1.RETURN_BOOLEAN,
|
|
227805
|
+
some: function_1.RETURN_BOOLEAN,
|
|
227806
|
+
forEach: function_1.RETURN_VOID,
|
|
227807
|
+
map: RETURN_MAP,
|
|
227808
|
+
filter: RETURN_SELF,
|
|
227809
|
+
reduce: null,
|
|
227810
|
+
reduceRight: null,
|
|
227811
|
+
find: RETURN_ARRAY_ELEMENT,
|
|
227812
|
+
findIndex: function_1.RETURN_NUMBER,
|
|
227813
|
+
fill: function_1.RETURN_UNKNOWN_ARRAY,
|
|
227814
|
+
copyWithin: RETURN_SELF,
|
|
227815
|
+
entries: RETURN_ENTRIES,
|
|
227816
|
+
keys: RETURN_KEYS,
|
|
227817
|
+
values: RETURN_VALUES,
|
|
227818
|
+
includes: function_1.RETURN_BOOLEAN,
|
|
227819
|
+
flatMap: function_1.RETURN_UNKNOWN_ARRAY,
|
|
227820
|
+
flat: function_1.RETURN_UNKNOWN_ARRAY,
|
|
227821
|
+
at: RETURN_ARRAY_ELEMENT,
|
|
227822
|
+
findLast: RETURN_ARRAY_ELEMENT,
|
|
227823
|
+
findLastIndex: function_1.RETURN_NUMBER,
|
|
227824
|
+
toReversed: RETURN_SELF,
|
|
227825
|
+
toSorted: RETURN_SELF,
|
|
227826
|
+
toSpliced: RETURN_SELF,
|
|
227827
|
+
with: RETURN_SELF,
|
|
227828
|
+
length: number_1.NUMBER,
|
|
227829
|
+
0: null,
|
|
227830
|
+
[Symbol.iterator]: null,
|
|
227831
|
+
[Symbol.unscopables]: null
|
|
227832
|
+
});
|
|
227655
227833
|
});
|
|
227656
227834
|
}
|
|
227657
227835
|
});
|
|
227658
227836
|
|
|
227659
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227837
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/map.js
|
|
227660
227838
|
var require_map = __commonJS({
|
|
227661
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227839
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/map.js"(exports) {
|
|
227662
227840
|
"use strict";
|
|
227663
227841
|
init_esm_shims();
|
|
227664
227842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227665
|
-
exports.
|
|
227843
|
+
exports.UNKNOWN_MAP = exports.TypeMap = void 0;
|
|
227844
|
+
exports.buildMapConstructor = buildMapConstructor;
|
|
227666
227845
|
var util_1 = require_util();
|
|
227667
227846
|
var array_1 = require_array();
|
|
227668
227847
|
var common_1 = require_common2();
|
|
@@ -227715,7 +227894,21 @@ var require_map = __commonJS({
|
|
|
227715
227894
|
return null;
|
|
227716
227895
|
});
|
|
227717
227896
|
});
|
|
227718
|
-
return (0, common_1.createObject)(
|
|
227897
|
+
return (0, common_1.createObject)({
|
|
227898
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227899
|
+
clear: function_1.RETURN_VOID,
|
|
227900
|
+
delete: function_1.RETURN_BOOLEAN,
|
|
227901
|
+
forEach: function_1.RETURN_VOID,
|
|
227902
|
+
get: RETURN_MAP_VALUE,
|
|
227903
|
+
has: function_1.RETURN_BOOLEAN,
|
|
227904
|
+
set: RETURN_SELF,
|
|
227905
|
+
size: number_1.NUMBER,
|
|
227906
|
+
entries: RETURN_ENTRIES,
|
|
227907
|
+
keys: RETURN_KEYS,
|
|
227908
|
+
values: RETURN_VALUES,
|
|
227909
|
+
[Symbol.iterator]: null,
|
|
227910
|
+
[Symbol.toStringTag]: string_1.STRING
|
|
227911
|
+
});
|
|
227719
227912
|
});
|
|
227720
227913
|
var TypeMap = class {
|
|
227721
227914
|
constructor(param0, param1) {
|
|
@@ -227771,7 +227964,6 @@ var require_map = __commonJS({
|
|
|
227771
227964
|
});
|
|
227772
227965
|
return new function_1.TypeGlobalFunction(mapConstructor, MAP_TYPES);
|
|
227773
227966
|
}
|
|
227774
|
-
exports.buildMapConstructor = buildMapConstructor;
|
|
227775
227967
|
function mapConstructor(_thisType, argTypes, meta) {
|
|
227776
227968
|
var _a;
|
|
227777
227969
|
if (!(meta === null || meta === void 0 ? void 0 : meta.isConstructor)) {
|
|
@@ -227789,13 +227981,14 @@ var require_map = __commonJS({
|
|
|
227789
227981
|
}
|
|
227790
227982
|
});
|
|
227791
227983
|
|
|
227792
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227984
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/set.js
|
|
227793
227985
|
var require_set = __commonJS({
|
|
227794
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227986
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/set.js"(exports) {
|
|
227795
227987
|
"use strict";
|
|
227796
227988
|
init_esm_shims();
|
|
227797
227989
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
227798
|
-
exports.
|
|
227990
|
+
exports.UNKNOWN_SET = exports.TypeSet = void 0;
|
|
227991
|
+
exports.buildSetConstructor = buildSetConstructor;
|
|
227799
227992
|
var util_1 = require_util();
|
|
227800
227993
|
var array_1 = require_array();
|
|
227801
227994
|
var common_1 = require_common2();
|
|
@@ -227842,7 +228035,20 @@ var require_set = __commonJS({
|
|
|
227842
228035
|
return null;
|
|
227843
228036
|
});
|
|
227844
228037
|
});
|
|
227845
|
-
return (0, common_1.createObject)(
|
|
228038
|
+
return (0, common_1.createObject)({
|
|
228039
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
228040
|
+
clear: function_1.RETURN_VOID,
|
|
228041
|
+
delete: function_1.RETURN_BOOLEAN,
|
|
228042
|
+
forEach: function_1.RETURN_VOID,
|
|
228043
|
+
has: function_1.RETURN_BOOLEAN,
|
|
228044
|
+
add: RETURN_SELF,
|
|
228045
|
+
size: number_1.NUMBER,
|
|
228046
|
+
entries: RETURN_ENTRIES,
|
|
228047
|
+
keys: RETURN_KEYS,
|
|
228048
|
+
values: RETURN_VALUES,
|
|
228049
|
+
[Symbol.iterator]: null,
|
|
228050
|
+
[Symbol.toStringTag]: string_1.STRING
|
|
228051
|
+
});
|
|
227846
228052
|
});
|
|
227847
228053
|
var TypeSet = class {
|
|
227848
228054
|
constructor(param0) {
|
|
@@ -227887,7 +228093,6 @@ var require_set = __commonJS({
|
|
|
227887
228093
|
});
|
|
227888
228094
|
return new function_1.TypeGlobalFunction(setConstructor, SET_TYPES);
|
|
227889
228095
|
}
|
|
227890
|
-
exports.buildSetConstructor = buildSetConstructor;
|
|
227891
228096
|
function setConstructor(_thisType, argTypes, meta) {
|
|
227892
228097
|
var _a;
|
|
227893
228098
|
if (!(meta === null || meta === void 0 ? void 0 : meta.isConstructor)) {
|
|
@@ -227902,9 +228107,9 @@ var require_set = __commonJS({
|
|
|
227902
228107
|
}
|
|
227903
228108
|
});
|
|
227904
228109
|
|
|
227905
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228110
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/global.js
|
|
227906
228111
|
var require_global = __commonJS({
|
|
227907
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228112
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/global.js"(exports) {
|
|
227908
228113
|
"use strict";
|
|
227909
228114
|
init_esm_shims();
|
|
227910
228115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -227981,9 +228186,9 @@ var require_global = __commonJS({
|
|
|
227981
228186
|
}
|
|
227982
228187
|
});
|
|
227983
228188
|
|
|
227984
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228189
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/index.js
|
|
227985
228190
|
var require_type_data = __commonJS({
|
|
227986
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228191
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/index.js"(exports) {
|
|
227987
228192
|
"use strict";
|
|
227988
228193
|
init_esm_shims();
|
|
227989
228194
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -228162,9 +228367,9 @@ var require_type_data = __commonJS({
|
|
|
228162
228367
|
}
|
|
228163
228368
|
});
|
|
228164
228369
|
|
|
228165
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228370
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/utils.js
|
|
228166
228371
|
var require_utils2 = __commonJS({
|
|
228167
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228372
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/utils.js"(exports) {
|
|
228168
228373
|
"use strict";
|
|
228169
228374
|
init_esm_shims();
|
|
228170
228375
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -228195,31 +228400,30 @@ var require_utils2 = __commonJS({
|
|
|
228195
228400
|
return result;
|
|
228196
228401
|
};
|
|
228197
228402
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
228198
|
-
exports.
|
|
228403
|
+
exports.findVariable = findVariable;
|
|
228404
|
+
exports.getPropertyName = getPropertyName;
|
|
228405
|
+
exports.isParenthesized = isParenthesized;
|
|
228199
228406
|
var astUtils = __importStar(require_ast_utils());
|
|
228200
228407
|
var eslintUtils = __importStar(require_eslint_utils());
|
|
228201
228408
|
function findVariable(context, node2) {
|
|
228202
228409
|
return astUtils.findVariable(context, node2);
|
|
228203
228410
|
}
|
|
228204
|
-
exports.findVariable = findVariable;
|
|
228205
228411
|
function getPropertyName(context, node2) {
|
|
228206
228412
|
return eslintUtils.getPropertyName(node2, astUtils.getScope(context, node2));
|
|
228207
228413
|
}
|
|
228208
|
-
exports.getPropertyName = getPropertyName;
|
|
228209
228414
|
function isParenthesized(context, node2) {
|
|
228210
228415
|
return eslintUtils.isParenthesized(node2, context.sourceCode);
|
|
228211
228416
|
}
|
|
228212
|
-
exports.isParenthesized = isParenthesized;
|
|
228213
228417
|
}
|
|
228214
228418
|
});
|
|
228215
228419
|
|
|
228216
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228420
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/tracker.js
|
|
228217
228421
|
var require_tracker = __commonJS({
|
|
228218
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228422
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/tracker.js"(exports) {
|
|
228219
228423
|
"use strict";
|
|
228220
228424
|
init_esm_shims();
|
|
228221
228425
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
228222
|
-
exports.createTypeTracker =
|
|
228426
|
+
exports.createTypeTracker = createTypeTracker;
|
|
228223
228427
|
var ast_utils_1 = require_ast_utils();
|
|
228224
228428
|
var ts_util_1 = require_ts_util();
|
|
228225
228429
|
var util_1 = require_util();
|
|
@@ -228629,7 +228833,6 @@ var require_tracker = __commonJS({
|
|
|
228629
228833
|
return void 0;
|
|
228630
228834
|
}
|
|
228631
228835
|
}
|
|
228632
|
-
exports.createTypeTracker = createTypeTracker;
|
|
228633
228836
|
function typeTextToTypeInfo(typeText) {
|
|
228634
228837
|
if (typeText == null) {
|
|
228635
228838
|
return null;
|
|
@@ -228649,6 +228852,9 @@ var require_tracker = __commonJS({
|
|
|
228649
228852
|
if (node2.type === "JsdocTypeNumber") {
|
|
228650
228853
|
return type_data_1.NUMBER;
|
|
228651
228854
|
}
|
|
228855
|
+
if (node2.type === "JsdocTypeAsserts") {
|
|
228856
|
+
return type_data_1.BOOLEAN;
|
|
228857
|
+
}
|
|
228652
228858
|
if (node2.type === "JsdocTypeOptional" || node2.type === "JsdocTypeNullable" || node2.type === "JsdocTypeNotNullable" || node2.type === "JsdocTypeParenthesis") {
|
|
228653
228859
|
return jsDocTypeNodeToTypeInfo(node2.element);
|
|
228654
228860
|
}
|
|
@@ -228817,9 +229023,9 @@ var require_tracker = __commonJS({
|
|
|
228817
229023
|
}
|
|
228818
229024
|
});
|
|
228819
229025
|
|
|
228820
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229026
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/index.js
|
|
228821
229027
|
var require_type_tracker = __commonJS({
|
|
228822
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229028
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/index.js"(exports) {
|
|
228823
229029
|
"use strict";
|
|
228824
229030
|
init_esm_shims();
|
|
228825
229031
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -228831,14 +229037,24 @@ var require_type_tracker = __commonJS({
|
|
|
228831
229037
|
}
|
|
228832
229038
|
});
|
|
228833
229039
|
|
|
228834
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229040
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/unicode.js
|
|
228835
229041
|
var require_unicode = __commonJS({
|
|
228836
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229042
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/unicode.js"(exports) {
|
|
228837
229043
|
"use strict";
|
|
228838
229044
|
init_esm_shims();
|
|
228839
229045
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
228840
229046
|
exports.CP_PARAGRAPH_SEPARATOR = exports.CP_LINE_SEPARATOR = exports.CP_RLM = exports.CP_LRM = exports.CP_ZWJ = exports.CP_ZWNJ = exports.CP_ZWSP = exports.CP_HAIR_SPACE = exports.CP_EN_QUAD = exports.CP_MONGOLIAN_VOWEL_SEPARATOR = exports.CP_OGHAM_SPACE_MARK = exports.CP_NBSP = exports.CP_NEL = exports.CP_TILDE = exports.CP_CLOSING_BRACE = exports.CP_PIPE = exports.CP_OPENING_BRACE = exports.CP_APOSTROPHE = exports.CP_BACKTICK = exports.CP_CARET = exports.CP_CLOSING_BRACKET = exports.CP_BACK_SLASH = exports.CP_OPENING_BRACKET = exports.CP_AT = exports.CP_QUESTION = exports.CP_GT = exports.CP_EQ = exports.CP_LT = exports.CP_SEMI = exports.CP_COLON = exports.CP_SLASH = exports.CP_DOT = exports.CP_MINUS = exports.CP_COMMA = exports.CP_PLUS = exports.CP_STAR = exports.CP_CLOSING_PAREN = exports.CP_OPENING_PAREN = exports.CP_AMP = exports.CP_PERCENT = exports.CP_DOLLAR = exports.CP_HASH = exports.CP_BAN = exports.CP_SPACE = exports.CP_CR = exports.CP_FF = exports.CP_VT = exports.CP_LF = exports.CP_TAB = exports.CP_BACKSPACE = void 0;
|
|
228841
|
-
exports.
|
|
229047
|
+
exports.CP_RANGE_CAPITAL_LETTER = exports.CP_RANGE_SMALL_LETTER = exports.CP_LOW_LINE = exports.CP_CAPITAL_Z = exports.CP_CAPITAL_A = exports.CP_SMALL_Z = exports.CP_SMALL_A = exports.CP_DIGIT_NINE = exports.CP_DIGIT_ZERO = exports.CP_BOM = exports.CP_IDEOGRAPHIC_SPACE = exports.CP_BRAILLE_PATTERN_BLANK = exports.CP_MMSP = exports.CP_NNBSP = void 0;
|
|
229048
|
+
exports.isDigit = isDigit;
|
|
229049
|
+
exports.isLowercaseLetter = isLowercaseLetter;
|
|
229050
|
+
exports.isUppercaseLetter = isUppercaseLetter;
|
|
229051
|
+
exports.isLetter = isLetter;
|
|
229052
|
+
exports.toLowerCodePoint = toLowerCodePoint;
|
|
229053
|
+
exports.toUpperCodePoint = toUpperCodePoint;
|
|
229054
|
+
exports.isSymbol = isSymbol;
|
|
229055
|
+
exports.isSpace = isSpace;
|
|
229056
|
+
exports.isWord = isWord;
|
|
229057
|
+
exports.isInvisible = isInvisible;
|
|
228842
229058
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
228843
229059
|
exports.CP_BACKSPACE = 8;
|
|
228844
229060
|
exports.CP_TAB = 9;
|
|
@@ -228910,58 +229126,48 @@ var require_unicode = __commonJS({
|
|
|
228910
229126
|
function isDigit(codePoint) {
|
|
228911
229127
|
return regexp_ast_analysis_1.Chars.digit({}).has(codePoint);
|
|
228912
229128
|
}
|
|
228913
|
-
exports.isDigit = isDigit;
|
|
228914
229129
|
function isLowercaseLetter(codePoint) {
|
|
228915
229130
|
return isCodePointInRange(codePoint, exports.CP_RANGE_SMALL_LETTER);
|
|
228916
229131
|
}
|
|
228917
|
-
exports.isLowercaseLetter = isLowercaseLetter;
|
|
228918
229132
|
function isUppercaseLetter(codePoint) {
|
|
228919
229133
|
return isCodePointInRange(codePoint, exports.CP_RANGE_CAPITAL_LETTER);
|
|
228920
229134
|
}
|
|
228921
|
-
exports.isUppercaseLetter = isUppercaseLetter;
|
|
228922
229135
|
function isLetter(codePoint) {
|
|
228923
229136
|
return isLowercaseLetter(codePoint) || isUppercaseLetter(codePoint);
|
|
228924
229137
|
}
|
|
228925
|
-
exports.isLetter = isLetter;
|
|
228926
229138
|
function toLowerCodePoint(codePoint) {
|
|
228927
229139
|
if (isUppercaseLetter(codePoint)) {
|
|
228928
229140
|
return codePoint + 32;
|
|
228929
229141
|
}
|
|
228930
229142
|
return codePoint;
|
|
228931
229143
|
}
|
|
228932
|
-
exports.toLowerCodePoint = toLowerCodePoint;
|
|
228933
229144
|
function toUpperCodePoint(codePoint) {
|
|
228934
229145
|
if (isLowercaseLetter(codePoint)) {
|
|
228935
229146
|
return codePoint - 32;
|
|
228936
229147
|
}
|
|
228937
229148
|
return codePoint;
|
|
228938
229149
|
}
|
|
228939
|
-
exports.toUpperCodePoint = toUpperCodePoint;
|
|
228940
229150
|
function isSymbol(codePoint) {
|
|
228941
229151
|
return isCodePointInRange(codePoint, [exports.CP_BAN, exports.CP_SLASH]) || isCodePointInRange(codePoint, [exports.CP_COLON, exports.CP_AT]) || isCodePointInRange(codePoint, [exports.CP_OPENING_BRACKET, exports.CP_BACKTICK]) || isCodePointInRange(codePoint, [exports.CP_OPENING_BRACE, exports.CP_TILDE]);
|
|
228942
229152
|
}
|
|
228943
|
-
exports.isSymbol = isSymbol;
|
|
228944
229153
|
function isSpace(codePoint) {
|
|
228945
229154
|
return regexp_ast_analysis_1.Chars.space({}).has(codePoint);
|
|
228946
229155
|
}
|
|
228947
|
-
exports.isSpace = isSpace;
|
|
228948
229156
|
function isWord(codePoint) {
|
|
228949
229157
|
return regexp_ast_analysis_1.Chars.word({}).has(codePoint);
|
|
228950
229158
|
}
|
|
228951
|
-
exports.isWord = isWord;
|
|
228952
229159
|
function isInvisible(codePoint) {
|
|
228953
229160
|
if (isSpace(codePoint)) {
|
|
228954
229161
|
return true;
|
|
228955
229162
|
}
|
|
228956
229163
|
return codePoint === exports.CP_MONGOLIAN_VOWEL_SEPARATOR || codePoint === exports.CP_NEL || codePoint === exports.CP_ZWSP || codePoint === exports.CP_ZWNJ || codePoint === exports.CP_ZWJ || codePoint === exports.CP_LRM || codePoint === exports.CP_RLM || codePoint === exports.CP_BRAILLE_PATTERN_BLANK;
|
|
228957
229164
|
}
|
|
228958
|
-
exports.isInvisible = isInvisible;
|
|
228959
229165
|
}
|
|
228960
229166
|
});
|
|
228961
229167
|
|
|
228962
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229168
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/index.js
|
|
228963
229169
|
var require_utils3 = __commonJS({
|
|
228964
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229170
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/index.js"(exports) {
|
|
228965
229171
|
"use strict";
|
|
228966
229172
|
init_esm_shims();
|
|
228967
229173
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -228981,7 +229187,14 @@ var require_utils3 = __commonJS({
|
|
|
228981
229187
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
228982
229188
|
};
|
|
228983
229189
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
228984
|
-
exports.
|
|
229190
|
+
exports.createRule = createRule;
|
|
229191
|
+
exports.defineRegexpVisitor = defineRegexpVisitor;
|
|
229192
|
+
exports.compositingVisitors = compositingVisitors;
|
|
229193
|
+
exports.mightCreateNewElement = mightCreateNewElement;
|
|
229194
|
+
exports.fixRemoveCharacterClassElement = fixRemoveCharacterClassElement;
|
|
229195
|
+
exports.fixRemoveAlternative = fixRemoveAlternative;
|
|
229196
|
+
exports.fixRemoveStringAlternative = fixRemoveStringAlternative;
|
|
229197
|
+
exports.canUnwrapped = canUnwrapped;
|
|
228985
229198
|
var regexpp_1 = require_regexpp();
|
|
228986
229199
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
228987
229200
|
var ast_utils_1 = require_ast_utils();
|
|
@@ -228998,11 +229211,18 @@ var require_utils3 = __commonJS({
|
|
|
228998
229211
|
var regexpRules = /* @__PURE__ */ new WeakMap();
|
|
228999
229212
|
function createRule(ruleName, rule) {
|
|
229000
229213
|
return {
|
|
229001
|
-
meta:
|
|
229214
|
+
meta: {
|
|
229215
|
+
...rule.meta,
|
|
229216
|
+
docs: {
|
|
229217
|
+
...rule.meta.docs,
|
|
229218
|
+
url: `https://ota-meshi.github.io/eslint-plugin-regexp/rules/${ruleName}.html`,
|
|
229219
|
+
ruleId: `regexp/${ruleName}`,
|
|
229220
|
+
ruleName
|
|
229221
|
+
}
|
|
229222
|
+
},
|
|
229002
229223
|
create: rule.create
|
|
229003
229224
|
};
|
|
229004
229225
|
}
|
|
229005
|
-
exports.createRule = createRule;
|
|
229006
229226
|
function defineRegexpVisitor(context, rule) {
|
|
229007
229227
|
const programNode = context.sourceCode.ast;
|
|
229008
229228
|
let visitor;
|
|
@@ -229033,22 +229253,25 @@ var require_utils3 = __commonJS({
|
|
|
229033
229253
|
});
|
|
229034
229254
|
return visitor;
|
|
229035
229255
|
}
|
|
229036
|
-
exports.defineRegexpVisitor = defineRegexpVisitor;
|
|
229037
229256
|
function buildRegexpVisitor(context, rules, programExit) {
|
|
229038
229257
|
const parser = new regexpp_1.RegExpParser();
|
|
229039
229258
|
function verify(patternNode, flagsNode, regexpNode, patternSource, flagsString, ownsFlags, createVisitor) {
|
|
229040
229259
|
const flags = (0, regex_syntax_1.parseFlags)(flagsString || "");
|
|
229041
229260
|
if (!patternSource) {
|
|
229042
|
-
visitUnknownForRules(rules,
|
|
229043
|
-
|
|
229044
|
-
|
|
229045
|
-
|
|
229046
|
-
|
|
229047
|
-
|
|
229048
|
-
|
|
229049
|
-
|
|
229050
|
-
|
|
229051
|
-
|
|
229261
|
+
visitUnknownForRules(rules, {
|
|
229262
|
+
pattern: null,
|
|
229263
|
+
patternSource: null,
|
|
229264
|
+
...buildUnparsableRegExpContextBase({
|
|
229265
|
+
patternSource,
|
|
229266
|
+
patternNode,
|
|
229267
|
+
regexpNode,
|
|
229268
|
+
context,
|
|
229269
|
+
flags,
|
|
229270
|
+
flagsString,
|
|
229271
|
+
flagsNode,
|
|
229272
|
+
ownsFlags
|
|
229273
|
+
})
|
|
229274
|
+
});
|
|
229052
229275
|
return;
|
|
229053
229276
|
}
|
|
229054
229277
|
let parsedPattern;
|
|
@@ -229056,20 +229279,21 @@ var require_utils3 = __commonJS({
|
|
|
229056
229279
|
parsedPattern = parser.parsePattern(patternSource.value, 0, patternSource.value.length, flags);
|
|
229057
229280
|
} catch (error) {
|
|
229058
229281
|
if (error instanceof SyntaxError) {
|
|
229059
|
-
visitInvalidForRules(rules,
|
|
229282
|
+
visitInvalidForRules(rules, {
|
|
229060
229283
|
pattern: patternSource.value,
|
|
229061
229284
|
patternSource,
|
|
229062
|
-
error
|
|
229063
|
-
|
|
229064
|
-
|
|
229065
|
-
|
|
229066
|
-
|
|
229067
|
-
|
|
229068
|
-
|
|
229069
|
-
|
|
229070
|
-
|
|
229071
|
-
|
|
229072
|
-
|
|
229285
|
+
error,
|
|
229286
|
+
...buildUnparsableRegExpContextBase({
|
|
229287
|
+
patternSource,
|
|
229288
|
+
patternNode,
|
|
229289
|
+
regexpNode,
|
|
229290
|
+
context,
|
|
229291
|
+
flags,
|
|
229292
|
+
flagsString,
|
|
229293
|
+
flagsNode,
|
|
229294
|
+
ownsFlags
|
|
229295
|
+
})
|
|
229296
|
+
});
|
|
229073
229297
|
}
|
|
229074
229298
|
return;
|
|
229075
229299
|
}
|
|
@@ -229093,12 +229317,13 @@ var require_utils3 = __commonJS({
|
|
|
229093
229317
|
const flagsString = node2.regex.flags;
|
|
229094
229318
|
const patternSource = pattern_source_1.PatternSource.fromRegExpLiteral(context, node2);
|
|
229095
229319
|
verify(node2, node2, node2, patternSource, flagsString, true, (base) => {
|
|
229096
|
-
return createLiteralVisitorFromRules(rules,
|
|
229320
|
+
return createLiteralVisitorFromRules(rules, {
|
|
229097
229321
|
node: node2,
|
|
229098
229322
|
flagsString,
|
|
229099
229323
|
ownsFlags: true,
|
|
229100
|
-
regexpNode: node2
|
|
229101
|
-
|
|
229324
|
+
regexpNode: node2,
|
|
229325
|
+
...base
|
|
229326
|
+
});
|
|
229102
229327
|
});
|
|
229103
229328
|
},
|
|
229104
229329
|
Program(program) {
|
|
@@ -229145,12 +229370,13 @@ var require_utils3 = __commonJS({
|
|
|
229145
229370
|
}
|
|
229146
229371
|
for (const { call, patternNode, patternSource, flagsNode, flagsString, ownsFlags } of regexpDataList) {
|
|
229147
229372
|
verify(patternNode, flagsNode, call, patternSource, flagsString, ownsFlags, (base) => {
|
|
229148
|
-
return createSourceVisitorFromRules(rules,
|
|
229373
|
+
return createSourceVisitorFromRules(rules, {
|
|
229149
229374
|
node: patternNode,
|
|
229150
229375
|
flagsString,
|
|
229151
229376
|
ownsFlags,
|
|
229152
|
-
regexpNode: call
|
|
229153
|
-
|
|
229377
|
+
regexpNode: call,
|
|
229378
|
+
...base
|
|
229379
|
+
});
|
|
229154
229380
|
});
|
|
229155
229381
|
}
|
|
229156
229382
|
}
|
|
@@ -229220,7 +229446,6 @@ var require_utils3 = __commonJS({
|
|
|
229220
229446
|
}
|
|
229221
229447
|
return visitor;
|
|
229222
229448
|
}
|
|
229223
|
-
exports.compositingVisitors = compositingVisitors;
|
|
229224
229449
|
function buildRegExpContextBase({ patternSource, regexpNode, flagsNode, context, flags, parsedPattern }) {
|
|
229225
229450
|
const sourceCode = context.sourceCode;
|
|
229226
229451
|
let cacheUsageOfPattern = null;
|
|
@@ -229405,7 +229630,6 @@ var require_utils3 = __commonJS({
|
|
|
229405
229630
|
}
|
|
229406
229631
|
return false;
|
|
229407
229632
|
}
|
|
229408
|
-
exports.mightCreateNewElement = mightCreateNewElement;
|
|
229409
229633
|
function fixRemoveCharacterClassElement(context, element) {
|
|
229410
229634
|
const cc = element.parent;
|
|
229411
229635
|
if (cc.type !== "CharacterClass") {
|
|
@@ -229430,7 +229654,6 @@ var require_utils3 = __commonJS({
|
|
|
229430
229654
|
return "";
|
|
229431
229655
|
});
|
|
229432
229656
|
}
|
|
229433
|
-
exports.fixRemoveCharacterClassElement = fixRemoveCharacterClassElement;
|
|
229434
229657
|
function fixRemoveAlternative(context, alternative) {
|
|
229435
229658
|
const { parent } = alternative;
|
|
229436
229659
|
if (parent.alternatives.length === 1) {
|
|
@@ -229448,7 +229671,6 @@ var require_utils3 = __commonJS({
|
|
|
229448
229671
|
return before + after;
|
|
229449
229672
|
});
|
|
229450
229673
|
}
|
|
229451
|
-
exports.fixRemoveAlternative = fixRemoveAlternative;
|
|
229452
229674
|
function fixRemoveStringAlternative(context, alternative) {
|
|
229453
229675
|
const { parent } = alternative;
|
|
229454
229676
|
if (parent.alternatives.length === 1) {
|
|
@@ -229466,7 +229688,6 @@ var require_utils3 = __commonJS({
|
|
|
229466
229688
|
return before + after;
|
|
229467
229689
|
});
|
|
229468
229690
|
}
|
|
229469
|
-
exports.fixRemoveStringAlternative = fixRemoveStringAlternative;
|
|
229470
229691
|
function canUnwrapped(node2, text) {
|
|
229471
229692
|
let textBefore, textAfter;
|
|
229472
229693
|
const parent = node2.parent;
|
|
@@ -229482,13 +229703,12 @@ var require_utils3 = __commonJS({
|
|
|
229482
229703
|
}
|
|
229483
229704
|
return !mightCreateNewElement(textBefore, text) && !mightCreateNewElement(text, textAfter);
|
|
229484
229705
|
}
|
|
229485
|
-
exports.canUnwrapped = canUnwrapped;
|
|
229486
229706
|
}
|
|
229487
229707
|
});
|
|
229488
229708
|
|
|
229489
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229709
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/confusing-quantifier.js
|
|
229490
229710
|
var require_confusing_quantifier = __commonJS({
|
|
229491
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229711
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/confusing-quantifier.js"(exports) {
|
|
229492
229712
|
"use strict";
|
|
229493
229713
|
init_esm_shims();
|
|
229494
229714
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -229514,7 +229734,7 @@ var require_confusing_quantifier = __commonJS({
|
|
|
229514
229734
|
return {
|
|
229515
229735
|
onQuantifierEnter(qNode) {
|
|
229516
229736
|
if (qNode.min > 0 && (0, regexp_ast_analysis_1.isPotentiallyEmpty)(qNode.element, flags)) {
|
|
229517
|
-
const proposal = (0, regexp_ast_1.quantToString)(
|
|
229737
|
+
const proposal = (0, regexp_ast_1.quantToString)({ ...qNode, min: 0 });
|
|
229518
229738
|
context.report({
|
|
229519
229739
|
node: node2,
|
|
229520
229740
|
loc: getRegexpLocation(qNode, (0, regexp_ast_1.getQuantifierOffsets)(qNode)),
|
|
@@ -229536,13 +229756,15 @@ var require_confusing_quantifier = __commonJS({
|
|
|
229536
229756
|
}
|
|
229537
229757
|
});
|
|
229538
229758
|
|
|
229539
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229759
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/mention.js
|
|
229540
229760
|
var require_mention = __commonJS({
|
|
229541
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229761
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/mention.js"(exports) {
|
|
229542
229762
|
"use strict";
|
|
229543
229763
|
init_esm_shims();
|
|
229544
229764
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
229545
|
-
exports.
|
|
229765
|
+
exports.mentionChar = mentionChar;
|
|
229766
|
+
exports.mention = mention;
|
|
229767
|
+
exports.joinEnglishList = joinEnglishList;
|
|
229546
229768
|
function formatCodePoint(value) {
|
|
229547
229769
|
return `U+${value.toString(16).padStart(4, "0")}`;
|
|
229548
229770
|
}
|
|
@@ -229558,11 +229780,9 @@ var require_mention = __commonJS({
|
|
|
229558
229780
|
}
|
|
229559
229781
|
return mention(element);
|
|
229560
229782
|
}
|
|
229561
|
-
exports.mentionChar = mentionChar;
|
|
229562
229783
|
function mention(element) {
|
|
229563
229784
|
return `'${escape2(typeof element === "string" ? element : element.raw)}'`;
|
|
229564
229785
|
}
|
|
229565
|
-
exports.mention = mention;
|
|
229566
229786
|
function escape2(value) {
|
|
229567
229787
|
return value.replace(/\\(?<char>[\s\S])/gu, (m, char) => {
|
|
229568
229788
|
if (char.charCodeAt(0) < 32) {
|
|
@@ -229594,13 +229814,12 @@ var require_mention = __commonJS({
|
|
|
229594
229814
|
result += `, and ${list[list.length - 1]}`;
|
|
229595
229815
|
return result;
|
|
229596
229816
|
}
|
|
229597
|
-
exports.joinEnglishList = joinEnglishList;
|
|
229598
229817
|
}
|
|
229599
229818
|
});
|
|
229600
229819
|
|
|
229601
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229820
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/control-character-escape.js
|
|
229602
229821
|
var require_control_character_escape = __commonJS({
|
|
229603
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229822
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/control-character-escape.js"(exports) {
|
|
229604
229823
|
"use strict";
|
|
229605
229824
|
init_esm_shims();
|
|
229606
229825
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -229678,9 +229897,9 @@ var require_control_character_escape = __commonJS({
|
|
|
229678
229897
|
}
|
|
229679
229898
|
});
|
|
229680
229899
|
|
|
229681
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229900
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/grapheme-string-literal.js
|
|
229682
229901
|
var require_grapheme_string_literal = __commonJS({
|
|
229683
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229902
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/grapheme-string-literal.js"(exports) {
|
|
229684
229903
|
"use strict";
|
|
229685
229904
|
init_esm_shims();
|
|
229686
229905
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -229736,9 +229955,9 @@ var require_grapheme_string_literal = __commonJS({
|
|
|
229736
229955
|
}
|
|
229737
229956
|
});
|
|
229738
229957
|
|
|
229739
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229958
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/hexadecimal-escape.js
|
|
229740
229959
|
var require_hexadecimal_escape = __commonJS({
|
|
229741
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229960
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/hexadecimal-escape.js"(exports) {
|
|
229742
229961
|
"use strict";
|
|
229743
229962
|
init_esm_shims();
|
|
229744
229963
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -229819,9 +230038,9 @@ var require_hexadecimal_escape = __commonJS({
|
|
|
229819
230038
|
}
|
|
229820
230039
|
});
|
|
229821
230040
|
|
|
229822
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230041
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/letter-case.js
|
|
229823
230042
|
var require_letter_case = __commonJS({
|
|
229824
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230043
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/letter-case.js"(exports) {
|
|
229825
230044
|
"use strict";
|
|
229826
230045
|
init_esm_shims();
|
|
229827
230046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -229946,25 +230165,28 @@ var require_letter_case = __commonJS({
|
|
|
229946
230165
|
}
|
|
229947
230166
|
function createVisitor(regexpContext) {
|
|
229948
230167
|
const { flags } = regexpContext;
|
|
229949
|
-
return
|
|
229950
|
-
|
|
229951
|
-
|
|
229952
|
-
|
|
229953
|
-
|
|
229954
|
-
|
|
229955
|
-
|
|
229956
|
-
|
|
229957
|
-
|
|
229958
|
-
|
|
229959
|
-
|
|
229960
|
-
|
|
229961
|
-
|
|
229962
|
-
|
|
229963
|
-
|
|
229964
|
-
|
|
229965
|
-
|
|
229966
|
-
|
|
229967
|
-
|
|
230168
|
+
return {
|
|
230169
|
+
onCharacterEnter(cNode) {
|
|
230170
|
+
if (flags.ignoreCase) {
|
|
230171
|
+
verifyCharacterInCaseInsensitive(regexpContext, cNode);
|
|
230172
|
+
}
|
|
230173
|
+
const escapeKind = (0, regex_syntax_1.getEscapeSequenceKind)(cNode.raw);
|
|
230174
|
+
if (escapeKind === regex_syntax_1.EscapeSequenceKind.unicode || escapeKind === regex_syntax_1.EscapeSequenceKind.unicodeCodePoint) {
|
|
230175
|
+
verifyCharacterInUnicodeEscape(regexpContext, cNode);
|
|
230176
|
+
}
|
|
230177
|
+
if (escapeKind === regex_syntax_1.EscapeSequenceKind.hexadecimal) {
|
|
230178
|
+
verifyCharacterInHexadecimalEscape(regexpContext, cNode);
|
|
230179
|
+
}
|
|
230180
|
+
if (escapeKind === regex_syntax_1.EscapeSequenceKind.control) {
|
|
230181
|
+
verifyCharacterInControl(regexpContext, cNode);
|
|
230182
|
+
}
|
|
230183
|
+
},
|
|
230184
|
+
...flags.ignoreCase ? {
|
|
230185
|
+
onCharacterClassRangeEnter(ccrNode) {
|
|
230186
|
+
verifyCharacterClassRangeInCaseInsensitive(regexpContext, ccrNode);
|
|
230187
|
+
}
|
|
230188
|
+
} : {}
|
|
230189
|
+
};
|
|
229968
230190
|
}
|
|
229969
230191
|
return (0, utils_1.defineRegexpVisitor)(context, {
|
|
229970
230192
|
createVisitor
|
|
@@ -229974,9 +230196,9 @@ var require_letter_case = __commonJS({
|
|
|
229974
230196
|
}
|
|
229975
230197
|
});
|
|
229976
230198
|
|
|
229977
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230199
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/match-any.js
|
|
229978
230200
|
var require_match_any = __commonJS({
|
|
229979
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230201
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/match-any.js"(exports) {
|
|
229980
230202
|
"use strict";
|
|
229981
230203
|
init_esm_shims();
|
|
229982
230204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -230112,9 +230334,9 @@ var require_match_any = __commonJS({
|
|
|
230112
230334
|
}
|
|
230113
230335
|
});
|
|
230114
230336
|
|
|
230115
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230337
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/negation.js
|
|
230116
230338
|
var require_negation = __commonJS({
|
|
230117
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230339
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/negation.js"(exports) {
|
|
230118
230340
|
"use strict";
|
|
230119
230341
|
init_esm_shims();
|
|
230120
230342
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -230154,7 +230376,10 @@ var require_negation = __commonJS({
|
|
|
230154
230376
|
}
|
|
230155
230377
|
if (flags.ignoreCase && !flags.unicodeSets && element.type === "CharacterSet" && element.kind === "property") {
|
|
230156
230378
|
const ccSet = (0, regexp_ast_analysis_1.toUnicodeSet)(ccNode, flags);
|
|
230157
|
-
const negatedElementSet = (0, regexp_ast_analysis_1.toUnicodeSet)(
|
|
230379
|
+
const negatedElementSet = (0, regexp_ast_analysis_1.toUnicodeSet)({
|
|
230380
|
+
...element,
|
|
230381
|
+
negate: !element.negate
|
|
230382
|
+
}, flags);
|
|
230158
230383
|
if (!ccSet.equals(negatedElementSet)) {
|
|
230159
230384
|
return;
|
|
230160
230385
|
}
|
|
@@ -230196,9 +230421,9 @@ var require_negation = __commonJS({
|
|
|
230196
230421
|
}
|
|
230197
230422
|
});
|
|
230198
230423
|
|
|
230199
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230424
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-contradiction-with-assertion.js
|
|
230200
230425
|
var require_no_contradiction_with_assertion = __commonJS({
|
|
230201
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230426
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-contradiction-with-assertion.js"(exports) {
|
|
230202
230427
|
"use strict";
|
|
230203
230428
|
init_esm_shims();
|
|
230204
230429
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -230393,7 +230618,7 @@ var require_no_contradiction_with_assertion = __commonJS({
|
|
|
230393
230618
|
}
|
|
230394
230619
|
const after = (0, regexp_ast_analysis_1.getFirstCharAfter)(quant, dir, flags);
|
|
230395
230620
|
if (disjoint(assertionLook, after)) {
|
|
230396
|
-
const newQuant = (0, regexp_ast_1.quantToString)(
|
|
230621
|
+
const newQuant = (0, regexp_ast_1.quantToString)({ ...quant, min: 1 });
|
|
230397
230622
|
context.report({
|
|
230398
230623
|
node: node2,
|
|
230399
230624
|
loc: getRegexpLocation(quant),
|
|
@@ -230442,9 +230667,9 @@ var require_no_contradiction_with_assertion = __commonJS({
|
|
|
230442
230667
|
}
|
|
230443
230668
|
});
|
|
230444
230669
|
|
|
230445
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230670
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-control-character.js
|
|
230446
230671
|
var require_no_control_character = __commonJS({
|
|
230447
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230672
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-control-character.js"(exports) {
|
|
230448
230673
|
"use strict";
|
|
230449
230674
|
init_esm_shims();
|
|
230450
230675
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -230524,13 +230749,16 @@ var require_no_control_character = __commonJS({
|
|
|
230524
230749
|
}
|
|
230525
230750
|
});
|
|
230526
230751
|
|
|
230527
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230752
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/refa.js
|
|
230528
230753
|
var require_refa2 = __commonJS({
|
|
230529
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230754
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/refa.js"(exports) {
|
|
230530
230755
|
"use strict";
|
|
230531
230756
|
init_esm_shims();
|
|
230532
230757
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
230533
|
-
exports.
|
|
230758
|
+
exports.getParser = void 0;
|
|
230759
|
+
exports.getJSRegexppAst = getJSRegexppAst;
|
|
230760
|
+
exports.assertValidFlags = assertValidFlags;
|
|
230761
|
+
exports.toCharSetSource = toCharSetSource;
|
|
230534
230762
|
var refa_1 = require_refa();
|
|
230535
230763
|
var util_1 = require_util();
|
|
230536
230764
|
function getJSRegexppAst(context, ignoreSticky = false) {
|
|
@@ -230555,14 +230783,12 @@ var require_refa2 = __commonJS({
|
|
|
230555
230783
|
}
|
|
230556
230784
|
};
|
|
230557
230785
|
}
|
|
230558
|
-
exports.getJSRegexppAst = getJSRegexppAst;
|
|
230559
230786
|
exports.getParser = (0, util_1.cachedFn)((context) => refa_1.JS.Parser.fromAst(getJSRegexppAst(context)));
|
|
230560
230787
|
function assertValidFlags(flags) {
|
|
230561
230788
|
if (!refa_1.JS.isFlags(flags)) {
|
|
230562
230789
|
throw new Error(`Invalid flags: ${JSON.stringify(flags)}`);
|
|
230563
230790
|
}
|
|
230564
230791
|
}
|
|
230565
|
-
exports.assertValidFlags = assertValidFlags;
|
|
230566
230792
|
function toCharSetSource(charSetOrChar, flags) {
|
|
230567
230793
|
assertValidFlags(flags);
|
|
230568
230794
|
let charSet;
|
|
@@ -230576,13 +230802,12 @@ var require_refa2 = __commonJS({
|
|
|
230576
230802
|
elements: [{ type: "CharacterClass", characters: charSet }]
|
|
230577
230803
|
}, { flags }).source;
|
|
230578
230804
|
}
|
|
230579
|
-
exports.toCharSetSource = toCharSetSource;
|
|
230580
230805
|
}
|
|
230581
230806
|
});
|
|
230582
230807
|
|
|
230583
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230808
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-dupe-characters-character-class.js
|
|
230584
230809
|
var require_no_dupe_characters_character_class = __commonJS({
|
|
230585
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230810
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-dupe-characters-character-class.js"(exports) {
|
|
230586
230811
|
"use strict";
|
|
230587
230812
|
init_esm_shims();
|
|
230588
230813
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -230798,13 +231023,15 @@ var require_no_dupe_characters_character_class = __commonJS({
|
|
|
230798
231023
|
}
|
|
230799
231024
|
});
|
|
230800
231025
|
|
|
230801
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231026
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/char-ranges.js
|
|
230802
231027
|
var require_char_ranges = __commonJS({
|
|
230803
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231028
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/char-ranges.js"(exports) {
|
|
230804
231029
|
"use strict";
|
|
230805
231030
|
init_esm_shims();
|
|
230806
231031
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
230807
|
-
exports.
|
|
231032
|
+
exports.getAllowedCharRanges = getAllowedCharRanges;
|
|
231033
|
+
exports.getAllowedCharValueSchema = getAllowedCharValueSchema;
|
|
231034
|
+
exports.inRange = inRange;
|
|
230808
231035
|
var unicode_1 = require_unicode();
|
|
230809
231036
|
var ALL_RANGES = [{ min: 0, max: 1114111 }];
|
|
230810
231037
|
var ALPHANUMERIC_RANGES = [
|
|
@@ -230842,7 +231069,6 @@ var require_char_ranges = __commonJS({
|
|
|
230842
231069
|
}
|
|
230843
231070
|
return allowed;
|
|
230844
231071
|
}
|
|
230845
|
-
exports.getAllowedCharRanges = getAllowedCharRanges;
|
|
230846
231072
|
function getAllowedCharValueSchema() {
|
|
230847
231073
|
return {
|
|
230848
231074
|
anyOf: [
|
|
@@ -230871,7 +231097,6 @@ var require_char_ranges = __commonJS({
|
|
|
230871
231097
|
]
|
|
230872
231098
|
};
|
|
230873
231099
|
}
|
|
230874
|
-
exports.getAllowedCharValueSchema = getAllowedCharValueSchema;
|
|
230875
231100
|
function inRange(ranges, min, max = min) {
|
|
230876
231101
|
for (const range of ranges) {
|
|
230877
231102
|
if (range.min <= min && max <= range.max) {
|
|
@@ -230880,13 +231105,12 @@ var require_char_ranges = __commonJS({
|
|
|
230880
231105
|
}
|
|
230881
231106
|
return false;
|
|
230882
231107
|
}
|
|
230883
|
-
exports.inRange = inRange;
|
|
230884
231108
|
}
|
|
230885
231109
|
});
|
|
230886
231110
|
|
|
230887
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231111
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/partial-parser.js
|
|
230888
231112
|
var require_partial_parser = __commonJS({
|
|
230889
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231113
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/partial-parser.js"(exports) {
|
|
230890
231114
|
"use strict";
|
|
230891
231115
|
init_esm_shims();
|
|
230892
231116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -231071,9 +231295,9 @@ var require_partial_parser = __commonJS({
|
|
|
231071
231295
|
}
|
|
231072
231296
|
});
|
|
231073
231297
|
|
|
231074
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231298
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-dupe-disjunctions.js
|
|
231075
231299
|
var require_no_dupe_disjunctions = __commonJS({
|
|
231076
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231300
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-dupe-disjunctions.js"(exports) {
|
|
231077
231301
|
"use strict";
|
|
231078
231302
|
init_esm_shims();
|
|
231079
231303
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -231123,7 +231347,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231123
231347
|
}
|
|
231124
231348
|
});
|
|
231125
231349
|
return false;
|
|
231126
|
-
} catch (
|
|
231350
|
+
} catch (_a) {
|
|
231127
231351
|
return true;
|
|
231128
231352
|
}
|
|
231129
231353
|
}
|
|
@@ -231138,7 +231362,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231138
231362
|
}
|
|
231139
231363
|
});
|
|
231140
231364
|
return false;
|
|
231141
|
-
} catch (
|
|
231365
|
+
} catch (_a) {
|
|
231142
231366
|
return true;
|
|
231143
231367
|
}
|
|
231144
231368
|
}
|
|
@@ -231164,7 +231388,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231164
231388
|
nfa: refa_1.NFA.fromRegex(e, { maxCharacter }, { assertions: "disable", unknowns: "disable" }),
|
|
231165
231389
|
partial: containsAssertionsOrUnknowns(e)
|
|
231166
231390
|
};
|
|
231167
|
-
} catch (
|
|
231391
|
+
} catch (_a) {
|
|
231168
231392
|
return {
|
|
231169
231393
|
nfa: refa_1.NFA.empty({
|
|
231170
231394
|
maxCharacter: parser.maxCharacter
|
|
@@ -231241,7 +231465,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231241
231465
|
const expression = partialParser.parse(alternative, nested);
|
|
231242
231466
|
const nfa = refa_1.NFA.fromRegex(expression, { maxCharacter });
|
|
231243
231467
|
yield { nested, nfa };
|
|
231244
|
-
} catch (
|
|
231468
|
+
} catch (_a) {
|
|
231245
231469
|
}
|
|
231246
231470
|
}
|
|
231247
231471
|
}
|
|
@@ -231265,7 +231489,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231265
231489
|
a.minimize();
|
|
231266
231490
|
b.minimize();
|
|
231267
231491
|
return a.structurallyEqual(b);
|
|
231268
|
-
} catch (
|
|
231492
|
+
} catch (_a) {
|
|
231269
231493
|
return null;
|
|
231270
231494
|
}
|
|
231271
231495
|
}
|
|
@@ -231287,7 +231511,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231287
231511
|
return 3;
|
|
231288
231512
|
}
|
|
231289
231513
|
return 0;
|
|
231290
|
-
} catch (
|
|
231514
|
+
} catch (_a) {
|
|
231291
231515
|
return 4;
|
|
231292
231516
|
}
|
|
231293
231517
|
}
|
|
@@ -231329,7 +231553,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231329
231553
|
try {
|
|
231330
231554
|
(0, refa_2.assertValidFlags)(flags);
|
|
231331
231555
|
return refa_1.JS.toLiteral(fa.toRegex(), { flags }).source;
|
|
231332
|
-
} catch (
|
|
231556
|
+
} catch (_a) {
|
|
231333
231557
|
return "<ERROR>";
|
|
231334
231558
|
}
|
|
231335
231559
|
}
|
|
@@ -231397,7 +231621,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231397
231621
|
} else {
|
|
231398
231622
|
const nested = tryFindNestedSubsetResult(overlapping.map((o) => [o[0], o[2]]), othersNfa, alternative, parser);
|
|
231399
231623
|
if (nested) {
|
|
231400
|
-
yield
|
|
231624
|
+
yield { ...nested, type: "PrefixNestedSubset" };
|
|
231401
231625
|
}
|
|
231402
231626
|
}
|
|
231403
231627
|
}
|
|
@@ -231883,9 +232107,9 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231883
232107
|
}
|
|
231884
232108
|
});
|
|
231885
232109
|
|
|
231886
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232110
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-alternative.js
|
|
231887
232111
|
var require_no_empty_alternative = __commonJS({
|
|
231888
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232112
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-alternative.js"(exports) {
|
|
231889
232113
|
"use strict";
|
|
231890
232114
|
init_esm_shims();
|
|
231891
232115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -231981,9 +232205,9 @@ var require_no_empty_alternative = __commonJS({
|
|
|
231981
232205
|
}
|
|
231982
232206
|
});
|
|
231983
232207
|
|
|
231984
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232208
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-capturing-group.js
|
|
231985
232209
|
var require_no_empty_capturing_group = __commonJS({
|
|
231986
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232210
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-capturing-group.js"(exports) {
|
|
231987
232211
|
"use strict";
|
|
231988
232212
|
init_esm_shims();
|
|
231989
232213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232024,9 +232248,9 @@ var require_no_empty_capturing_group = __commonJS({
|
|
|
232024
232248
|
}
|
|
232025
232249
|
});
|
|
232026
232250
|
|
|
232027
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232251
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-character-class.js
|
|
232028
232252
|
var require_no_empty_character_class = __commonJS({
|
|
232029
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232253
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-character-class.js"(exports) {
|
|
232030
232254
|
"use strict";
|
|
232031
232255
|
init_esm_shims();
|
|
232032
232256
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232078,9 +232302,9 @@ var require_no_empty_character_class = __commonJS({
|
|
|
232078
232302
|
}
|
|
232079
232303
|
});
|
|
232080
232304
|
|
|
232081
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232305
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-group.js
|
|
232082
232306
|
var require_no_empty_group = __commonJS({
|
|
232083
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232307
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-group.js"(exports) {
|
|
232084
232308
|
"use strict";
|
|
232085
232309
|
init_esm_shims();
|
|
232086
232310
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232126,9 +232350,9 @@ var require_no_empty_group = __commonJS({
|
|
|
232126
232350
|
}
|
|
232127
232351
|
});
|
|
232128
232352
|
|
|
232129
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232353
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-lookarounds-assertion.js
|
|
232130
232354
|
var require_no_empty_lookarounds_assertion = __commonJS({
|
|
232131
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232355
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-lookarounds-assertion.js"(exports) {
|
|
232132
232356
|
"use strict";
|
|
232133
232357
|
init_esm_shims();
|
|
232134
232358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232176,9 +232400,9 @@ var require_no_empty_lookarounds_assertion = __commonJS({
|
|
|
232176
232400
|
}
|
|
232177
232401
|
});
|
|
232178
232402
|
|
|
232179
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232403
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-string-literal.js
|
|
232180
232404
|
var require_no_empty_string_literal = __commonJS({
|
|
232181
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232405
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-string-literal.js"(exports) {
|
|
232182
232406
|
"use strict";
|
|
232183
232407
|
init_esm_shims();
|
|
232184
232408
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232219,9 +232443,9 @@ var require_no_empty_string_literal = __commonJS({
|
|
|
232219
232443
|
}
|
|
232220
232444
|
});
|
|
232221
232445
|
|
|
232222
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232446
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-escape-backspace.js
|
|
232223
232447
|
var require_no_escape_backspace = __commonJS({
|
|
232224
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232448
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-escape-backspace.js"(exports) {
|
|
232225
232449
|
"use strict";
|
|
232226
232450
|
init_esm_shims();
|
|
232227
232451
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232269,9 +232493,9 @@ var require_no_escape_backspace = __commonJS({
|
|
|
232269
232493
|
}
|
|
232270
232494
|
});
|
|
232271
232495
|
|
|
232272
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232496
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-extra-lookaround-assertions.js
|
|
232273
232497
|
var require_no_extra_lookaround_assertions = __commonJS({
|
|
232274
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232498
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-extra-lookaround-assertions.js"(exports) {
|
|
232275
232499
|
"use strict";
|
|
232276
232500
|
init_esm_shims();
|
|
232277
232501
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232336,9 +232560,9 @@ var require_no_extra_lookaround_assertions = __commonJS({
|
|
|
232336
232560
|
}
|
|
232337
232561
|
});
|
|
232338
232562
|
|
|
232339
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232563
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-invalid-regexp.js
|
|
232340
232564
|
var require_no_invalid_regexp = __commonJS({
|
|
232341
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232565
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-invalid-regexp.js"(exports) {
|
|
232342
232566
|
"use strict";
|
|
232343
232567
|
init_esm_shims();
|
|
232344
232568
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232412,9 +232636,9 @@ var require_no_invalid_regexp = __commonJS({
|
|
|
232412
232636
|
}
|
|
232413
232637
|
});
|
|
232414
232638
|
|
|
232415
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232639
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-invisible-character.js
|
|
232416
232640
|
var require_no_invisible_character = __commonJS({
|
|
232417
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232641
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-invisible-character.js"(exports) {
|
|
232418
232642
|
"use strict";
|
|
232419
232643
|
init_esm_shims();
|
|
232420
232644
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232503,9 +232727,9 @@ var require_no_invisible_character = __commonJS({
|
|
|
232503
232727
|
}
|
|
232504
232728
|
});
|
|
232505
232729
|
|
|
232506
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232730
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-lazy-ends.js
|
|
232507
232731
|
var require_no_lazy_ends = __commonJS({
|
|
232508
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232732
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-lazy-ends.js"(exports) {
|
|
232509
232733
|
"use strict";
|
|
232510
232734
|
init_esm_shims();
|
|
232511
232735
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232641,9 +232865,9 @@ var require_no_lazy_ends = __commonJS({
|
|
|
232641
232865
|
}
|
|
232642
232866
|
});
|
|
232643
232867
|
|
|
232644
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232868
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-legacy-features.js
|
|
232645
232869
|
var require_no_legacy_features = __commonJS({
|
|
232646
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232870
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-legacy-features.js"(exports) {
|
|
232647
232871
|
"use strict";
|
|
232648
232872
|
init_esm_shims();
|
|
232649
232873
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -232708,50 +232932,53 @@ var require_no_legacy_features = __commonJS({
|
|
|
232708
232932
|
const staticProperties = (_b = (_a = context.options[0]) === null || _a === void 0 ? void 0 : _a.staticProperties) !== null && _b !== void 0 ? _b : STATIC_PROPERTIES;
|
|
232709
232933
|
const prototypeMethods = (_d = (_c = context.options[0]) === null || _c === void 0 ? void 0 : _c.prototypeMethods) !== null && _d !== void 0 ? _d : PROTOTYPE_METHODS;
|
|
232710
232934
|
const typeTracer = (0, type_tracker_1.createTypeTracker)(context);
|
|
232711
|
-
return
|
|
232712
|
-
|
|
232713
|
-
|
|
232714
|
-
|
|
232715
|
-
|
|
232716
|
-
|
|
232717
|
-
|
|
232718
|
-
|
|
232719
|
-
|
|
232720
|
-
|
|
232721
|
-
|
|
232722
|
-
|
|
232723
|
-
|
|
232724
|
-
|
|
232725
|
-
|
|
232726
|
-
|
|
232727
|
-
|
|
232728
|
-
|
|
232729
|
-
} : {}), prototypeMethods.length ? {
|
|
232730
|
-
MemberExpression(node2) {
|
|
232731
|
-
if (node2.computed || node2.property.type !== "Identifier" || !prototypeMethods.includes(node2.property.name) || node2.object.type === "Super") {
|
|
232732
|
-
return;
|
|
232935
|
+
return {
|
|
232936
|
+
...staticProperties.length ? {
|
|
232937
|
+
Program(program) {
|
|
232938
|
+
const scope = context.sourceCode.getScope(program);
|
|
232939
|
+
const tracker = new eslint_utils_1.ReferenceTracker(scope);
|
|
232940
|
+
const regexpTraceMap = {};
|
|
232941
|
+
for (const sp of staticProperties) {
|
|
232942
|
+
regexpTraceMap[sp] = { [eslint_utils_1.READ]: true };
|
|
232943
|
+
}
|
|
232944
|
+
for (const { node: node2, path: path3 } of tracker.iterateGlobalReferences({
|
|
232945
|
+
RegExp: regexpTraceMap
|
|
232946
|
+
})) {
|
|
232947
|
+
context.report({
|
|
232948
|
+
node: node2,
|
|
232949
|
+
messageId: "forbiddenStaticProperty",
|
|
232950
|
+
data: { name: path3.join(".") }
|
|
232951
|
+
});
|
|
232952
|
+
}
|
|
232733
232953
|
}
|
|
232734
|
-
|
|
232735
|
-
|
|
232736
|
-
|
|
232737
|
-
|
|
232738
|
-
|
|
232739
|
-
}
|
|
232954
|
+
} : {},
|
|
232955
|
+
...prototypeMethods.length ? {
|
|
232956
|
+
MemberExpression(node2) {
|
|
232957
|
+
if (node2.computed || node2.property.type !== "Identifier" || !prototypeMethods.includes(node2.property.name) || node2.object.type === "Super") {
|
|
232958
|
+
return;
|
|
232959
|
+
}
|
|
232960
|
+
if (typeTracer.isRegExp(node2.object)) {
|
|
232961
|
+
context.report({
|
|
232962
|
+
node: node2,
|
|
232963
|
+
messageId: "forbiddenPrototypeMethods",
|
|
232964
|
+
data: { name: node2.property.name }
|
|
232965
|
+
});
|
|
232966
|
+
}
|
|
232740
232967
|
}
|
|
232741
|
-
}
|
|
232742
|
-
}
|
|
232968
|
+
} : {}
|
|
232969
|
+
};
|
|
232743
232970
|
}
|
|
232744
232971
|
});
|
|
232745
232972
|
}
|
|
232746
232973
|
});
|
|
232747
232974
|
|
|
232748
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232975
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/fix-simplify-quantifier.js
|
|
232749
232976
|
var require_fix_simplify_quantifier = __commonJS({
|
|
232750
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232977
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/fix-simplify-quantifier.js"(exports) {
|
|
232751
232978
|
"use strict";
|
|
232752
232979
|
init_esm_shims();
|
|
232753
232980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
232754
|
-
exports.fixSimplifyQuantifier =
|
|
232981
|
+
exports.fixSimplifyQuantifier = fixSimplifyQuantifier;
|
|
232755
232982
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
232756
232983
|
var regexp_ast_1 = require_regexp_ast();
|
|
232757
232984
|
function fixSimplifyQuantifier(quantifier, result, { fixReplaceNode }) {
|
|
@@ -232775,13 +233002,12 @@ var require_fix_simplify_quantifier = __commonJS({
|
|
|
232775
233002
|
})
|
|
232776
233003
|
];
|
|
232777
233004
|
}
|
|
232778
|
-
exports.fixSimplifyQuantifier = fixSimplifyQuantifier;
|
|
232779
233005
|
}
|
|
232780
233006
|
});
|
|
232781
233007
|
|
|
232782
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233008
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-misleading-capturing-group.js
|
|
232783
233009
|
var require_no_misleading_capturing_group = __commonJS({
|
|
232784
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233010
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-misleading-capturing-group.js"(exports) {
|
|
232785
233011
|
"use strict";
|
|
232786
233012
|
init_esm_shims();
|
|
232787
233013
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -233078,9 +233304,9 @@ var require_no_misleading_capturing_group = __commonJS({
|
|
|
233078
233304
|
}
|
|
233079
233305
|
});
|
|
233080
233306
|
|
|
233081
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233307
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-misleading-unicode-character.js
|
|
233082
233308
|
var require_no_misleading_unicode_character = __commonJS({
|
|
233083
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233309
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-misleading-unicode-character.js"(exports) {
|
|
233084
233310
|
"use strict";
|
|
233085
233311
|
init_esm_shims();
|
|
233086
233312
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -233231,11 +233457,17 @@ var require_no_misleading_unicode_character = __commonJS({
|
|
|
233231
233457
|
const fix = getGraphemeProblemsFix(problems, ccNode, flags);
|
|
233232
233458
|
const graphemes = problems.map((p) => (0, mention_1.mention)(p.grapheme)).join(", ");
|
|
233233
233459
|
const uFlag = problems.every((p) => p.problem === "Surrogate");
|
|
233234
|
-
context.report(
|
|
233235
|
-
|
|
233236
|
-
|
|
233237
|
-
|
|
233238
|
-
|
|
233460
|
+
context.report({
|
|
233461
|
+
node: node2,
|
|
233462
|
+
loc: getRegexpLocation(range),
|
|
233463
|
+
messageId: "characterClass",
|
|
233464
|
+
data: {
|
|
233465
|
+
graphemes,
|
|
233466
|
+
unit: flags.unicode || flags.unicodeSets ? "code points" : "char codes",
|
|
233467
|
+
uFlag: uFlag ? " Use the `u` flag." : ""
|
|
233468
|
+
},
|
|
233469
|
+
...makeFix(fixReplaceNode(ccNode, () => fix), "fixCharacterClass", { graphemes })
|
|
233470
|
+
});
|
|
233239
233471
|
},
|
|
233240
233472
|
onQuantifierEnter(qNode) {
|
|
233241
233473
|
if (qNode.element.type !== "Character") {
|
|
@@ -233246,19 +233478,25 @@ var require_no_misleading_unicode_character = __commonJS({
|
|
|
233246
233478
|
if (problem === null) {
|
|
233247
233479
|
return;
|
|
233248
233480
|
}
|
|
233249
|
-
context.report(
|
|
233250
|
-
|
|
233251
|
-
|
|
233252
|
-
|
|
233253
|
-
|
|
233254
|
-
|
|
233255
|
-
|
|
233256
|
-
}
|
|
233257
|
-
|
|
233258
|
-
|
|
233259
|
-
|
|
233260
|
-
|
|
233261
|
-
|
|
233481
|
+
context.report({
|
|
233482
|
+
node: node2,
|
|
233483
|
+
loc: getRegexpLocation(qNode),
|
|
233484
|
+
messageId: `quantifier${problem}`,
|
|
233485
|
+
data: {
|
|
233486
|
+
grapheme: (0, mention_1.mention)(grapheme),
|
|
233487
|
+
last: (0, mention_1.mentionChar)(qNode.element)
|
|
233488
|
+
},
|
|
233489
|
+
...makeFix((fixer) => {
|
|
233490
|
+
const range = patternSource.getReplaceRange({
|
|
233491
|
+
start: qNode.element.end - grapheme.length,
|
|
233492
|
+
end: qNode.element.end
|
|
233493
|
+
});
|
|
233494
|
+
if (!range) {
|
|
233495
|
+
return null;
|
|
233496
|
+
}
|
|
233497
|
+
return range.replace(fixer, `(?:${grapheme})`);
|
|
233498
|
+
}, "fixQuantifier", { grapheme: (0, mention_1.mention)(grapheme) })
|
|
233499
|
+
});
|
|
233262
233500
|
}
|
|
233263
233501
|
};
|
|
233264
233502
|
}
|
|
@@ -233270,9 +233508,9 @@ var require_no_misleading_unicode_character = __commonJS({
|
|
|
233270
233508
|
}
|
|
233271
233509
|
});
|
|
233272
233510
|
|
|
233273
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233511
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-missing-g-flag.js
|
|
233274
233512
|
var require_no_missing_g_flag = __commonJS({
|
|
233275
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233513
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-missing-g-flag.js"(exports) {
|
|
233276
233514
|
"use strict";
|
|
233277
233515
|
init_esm_shims();
|
|
233278
233516
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -233366,9 +233604,9 @@ var require_no_missing_g_flag = __commonJS({
|
|
|
233366
233604
|
}
|
|
233367
233605
|
});
|
|
233368
233606
|
|
|
233369
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233607
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-non-standard-flag.js
|
|
233370
233608
|
var require_no_non_standard_flag = __commonJS({
|
|
233371
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233609
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-non-standard-flag.js"(exports) {
|
|
233372
233610
|
"use strict";
|
|
233373
233611
|
init_esm_shims();
|
|
233374
233612
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -233414,9 +233652,9 @@ var require_no_non_standard_flag = __commonJS({
|
|
|
233414
233652
|
}
|
|
233415
233653
|
});
|
|
233416
233654
|
|
|
233417
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233655
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-obscure-range.js
|
|
233418
233656
|
var require_no_obscure_range = __commonJS({
|
|
233419
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233657
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-obscure-range.js"(exports) {
|
|
233420
233658
|
"use strict";
|
|
233421
233659
|
init_esm_shims();
|
|
233422
233660
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -233486,9 +233724,9 @@ var require_no_obscure_range = __commonJS({
|
|
|
233486
233724
|
}
|
|
233487
233725
|
});
|
|
233488
233726
|
|
|
233489
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233727
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-octal.js
|
|
233490
233728
|
var require_no_octal = __commonJS({
|
|
233491
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233729
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-octal.js"(exports) {
|
|
233492
233730
|
"use strict";
|
|
233493
233731
|
init_esm_shims();
|
|
233494
233732
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -233549,9 +233787,9 @@ var require_no_octal = __commonJS({
|
|
|
233549
233787
|
}
|
|
233550
233788
|
});
|
|
233551
233789
|
|
|
233552
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233790
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-optional-assertion.js
|
|
233553
233791
|
var require_no_optional_assertion = __commonJS({
|
|
233554
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233792
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-optional-assertion.js"(exports) {
|
|
233555
233793
|
"use strict";
|
|
233556
233794
|
init_esm_shims();
|
|
233557
233795
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -233636,9 +233874,9 @@ var require_no_optional_assertion = __commonJS({
|
|
|
233636
233874
|
}
|
|
233637
233875
|
});
|
|
233638
233876
|
|
|
233639
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233877
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-potentially-useless-backreference.js
|
|
233640
233878
|
var require_no_potentially_useless_backreference = __commonJS({
|
|
233641
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233879
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-potentially-useless-backreference.js"(exports) {
|
|
233642
233880
|
"use strict";
|
|
233643
233881
|
init_esm_shims();
|
|
233644
233882
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -233683,9 +233921,9 @@ var require_no_potentially_useless_backreference = __commonJS({
|
|
|
233683
233921
|
}
|
|
233684
233922
|
});
|
|
233685
233923
|
|
|
233686
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233924
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-standalone-backslash.js
|
|
233687
233925
|
var require_no_standalone_backslash = __commonJS({
|
|
233688
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233926
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-standalone-backslash.js"(exports) {
|
|
233689
233927
|
"use strict";
|
|
233690
233928
|
init_esm_shims();
|
|
233691
233929
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -234130,9 +234368,9 @@ var require_scslre = __commonJS({
|
|
|
234130
234368
|
}
|
|
234131
234369
|
});
|
|
234132
234370
|
|
|
234133
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234371
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-super-linear-backtracking.js
|
|
234134
234372
|
var require_no_super_linear_backtracking = __commonJS({
|
|
234135
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234373
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-super-linear-backtracking.js"(exports) {
|
|
234136
234374
|
"use strict";
|
|
234137
234375
|
init_esm_shims();
|
|
234138
234376
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -234151,8 +234389,8 @@ var require_no_super_linear_backtracking = __commonJS({
|
|
|
234151
234389
|
return x.column < y.column;
|
|
234152
234390
|
}
|
|
234153
234391
|
return {
|
|
234154
|
-
start:
|
|
234155
|
-
end:
|
|
234392
|
+
start: { ...less(a.start, b.start) ? a.start : b.start },
|
|
234393
|
+
end: { ...less(a.end, b.end) ? b.end : a.end }
|
|
234156
234394
|
};
|
|
234157
234395
|
}
|
|
234158
234396
|
exports.default = (0, utils_1.createRule)("no-super-linear-backtracking", {
|
|
@@ -234233,9 +234471,9 @@ var require_no_super_linear_backtracking = __commonJS({
|
|
|
234233
234471
|
}
|
|
234234
234472
|
});
|
|
234235
234473
|
|
|
234236
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234474
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-super-linear-move.js
|
|
234237
234475
|
var require_no_super_linear_move = __commonJS({
|
|
234238
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234476
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-super-linear-move.js"(exports) {
|
|
234239
234477
|
"use strict";
|
|
234240
234478
|
init_esm_shims();
|
|
234241
234479
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -234302,7 +234540,10 @@ var require_no_super_linear_move = __commonJS({
|
|
|
234302
234540
|
var PASS_2 = new refa_1.CombinedTransformer([
|
|
234303
234541
|
refa_1.Transformers.inline(TRANSFORMER_OPTIONS),
|
|
234304
234542
|
refa_1.Transformers.removeDeadBranches(TRANSFORMER_OPTIONS),
|
|
234305
|
-
refa_1.Transformers.replaceAssertions(
|
|
234543
|
+
refa_1.Transformers.replaceAssertions({
|
|
234544
|
+
...TRANSFORMER_OPTIONS,
|
|
234545
|
+
replacement: "empty-set"
|
|
234546
|
+
})
|
|
234306
234547
|
]);
|
|
234307
234548
|
exports.default = (0, utils_1.createRule)("no-super-linear-move", {
|
|
234308
234549
|
meta: {
|
|
@@ -234429,9 +234670,9 @@ var require_no_super_linear_move = __commonJS({
|
|
|
234429
234670
|
}
|
|
234430
234671
|
});
|
|
234431
234672
|
|
|
234432
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234673
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-trivially-nested-assertion.js
|
|
234433
234674
|
var require_no_trivially_nested_assertion = __commonJS({
|
|
234434
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234675
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-trivially-nested-assertion.js"(exports) {
|
|
234435
234676
|
"use strict";
|
|
234436
234677
|
init_esm_shims();
|
|
234437
234678
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -234515,9 +234756,9 @@ var require_no_trivially_nested_assertion = __commonJS({
|
|
|
234515
234756
|
}
|
|
234516
234757
|
});
|
|
234517
234758
|
|
|
234518
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234759
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-trivially-nested-quantifier.js
|
|
234519
234760
|
var require_no_trivially_nested_quantifier = __commonJS({
|
|
234520
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234761
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-trivially-nested-quantifier.js"(exports) {
|
|
234521
234762
|
"use strict";
|
|
234522
234763
|
init_esm_shims();
|
|
234523
234764
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -234656,9 +234897,9 @@ var require_no_trivially_nested_quantifier = __commonJS({
|
|
|
234656
234897
|
}
|
|
234657
234898
|
});
|
|
234658
234899
|
|
|
234659
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234900
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-unused-capturing-group.js
|
|
234660
234901
|
var require_no_unused_capturing_group = __commonJS({
|
|
234661
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234902
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-unused-capturing-group.js"(exports) {
|
|
234662
234903
|
"use strict";
|
|
234663
234904
|
init_esm_shims();
|
|
234664
234905
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -234802,9 +235043,9 @@ var require_no_unused_capturing_group = __commonJS({
|
|
|
234802
235043
|
}
|
|
234803
235044
|
});
|
|
234804
235045
|
|
|
234805
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235046
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-assertions.js
|
|
234806
235047
|
var require_no_useless_assertions = __commonJS({
|
|
234807
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235048
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-assertions.js"(exports) {
|
|
234808
235049
|
"use strict";
|
|
234809
235050
|
init_esm_shims();
|
|
234810
235051
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -235011,7 +235252,10 @@ var require_no_useless_assertions = __commonJS({
|
|
|
235011
235252
|
node: node2,
|
|
235012
235253
|
loc: getRegexpLocation(assertion),
|
|
235013
235254
|
messageId,
|
|
235014
|
-
data:
|
|
235255
|
+
data: {
|
|
235256
|
+
assertion: (0, mention_1.mention)(assertion),
|
|
235257
|
+
...data
|
|
235258
|
+
},
|
|
235015
235259
|
suggest: [
|
|
235016
235260
|
{
|
|
235017
235261
|
messageId: `${acceptOrReject}Suggestion`,
|
|
@@ -235162,9 +235406,9 @@ var require_no_useless_assertions = __commonJS({
|
|
|
235162
235406
|
}
|
|
235163
235407
|
});
|
|
235164
235408
|
|
|
235165
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235409
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-backreference.js
|
|
235166
235410
|
var require_no_useless_backreference = __commonJS({
|
|
235167
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235411
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-backreference.js"(exports) {
|
|
235168
235412
|
"use strict";
|
|
235169
235413
|
init_esm_shims();
|
|
235170
235414
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -235179,8 +235423,40 @@ var require_no_useless_backreference = __commonJS({
|
|
|
235179
235423
|
}
|
|
235180
235424
|
return false;
|
|
235181
235425
|
}
|
|
235182
|
-
function
|
|
235183
|
-
const
|
|
235426
|
+
function getUselessProblem(backRef, flags) {
|
|
235427
|
+
const groups = [backRef.resolved].flat();
|
|
235428
|
+
const problems = [];
|
|
235429
|
+
for (const group2 of groups) {
|
|
235430
|
+
const messageId2 = getUselessMessageId(backRef, group2, flags);
|
|
235431
|
+
if (!messageId2) {
|
|
235432
|
+
return null;
|
|
235433
|
+
}
|
|
235434
|
+
problems.push({ messageId: messageId2, group: group2 });
|
|
235435
|
+
}
|
|
235436
|
+
if (problems.length === 0) {
|
|
235437
|
+
return null;
|
|
235438
|
+
}
|
|
235439
|
+
let problemsToReport;
|
|
235440
|
+
const problemsInSameDisjunction = problems.filter((problem) => problem.messageId !== "disjunctive");
|
|
235441
|
+
if (problemsInSameDisjunction.length) {
|
|
235442
|
+
problemsToReport = problemsInSameDisjunction;
|
|
235443
|
+
} else {
|
|
235444
|
+
problemsToReport = problems;
|
|
235445
|
+
}
|
|
235446
|
+
const [{ messageId, group }, ...other] = problemsToReport;
|
|
235447
|
+
let otherGroups = "";
|
|
235448
|
+
if (other.length === 1) {
|
|
235449
|
+
otherGroups = " and another group";
|
|
235450
|
+
} else if (other.length > 1) {
|
|
235451
|
+
otherGroups = ` and other ${other.length} groups`;
|
|
235452
|
+
}
|
|
235453
|
+
return {
|
|
235454
|
+
messageId,
|
|
235455
|
+
group,
|
|
235456
|
+
otherGroups
|
|
235457
|
+
};
|
|
235458
|
+
}
|
|
235459
|
+
function getUselessMessageId(backRef, group, flags) {
|
|
235184
235460
|
const closestAncestor = (0, regexp_ast_analysis_1.getClosestAncestor)(backRef, group);
|
|
235185
235461
|
if (closestAncestor === group) {
|
|
235186
235462
|
return "nested";
|
|
@@ -235210,12 +235486,12 @@ var require_no_useless_backreference = __commonJS({
|
|
|
235210
235486
|
},
|
|
235211
235487
|
schema: [],
|
|
235212
235488
|
messages: {
|
|
235213
|
-
nested: "Backreference {{ bref }} will be ignored. It references group {{ group }} from within that group.",
|
|
235214
|
-
forward: "Backreference {{ bref }} will be ignored. It references group {{ group }} which appears later in the pattern.",
|
|
235215
|
-
backward: "Backreference {{ bref }} will be ignored. It references group {{ group }} which appears before in the same lookbehind.",
|
|
235216
|
-
disjunctive: "Backreference {{ bref }} will be ignored. It references group {{ group }} which is in another alternative.",
|
|
235217
|
-
intoNegativeLookaround: "Backreference {{ bref }} will be ignored. It references group {{ group }} which is in a negative lookaround.",
|
|
235218
|
-
empty: "Backreference {{ bref }} will be ignored. It references group {{ group }} which always captures zero characters."
|
|
235489
|
+
nested: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} from within that group.",
|
|
235490
|
+
forward: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which appears later in the pattern.",
|
|
235491
|
+
backward: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which appears before in the same lookbehind.",
|
|
235492
|
+
disjunctive: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which is in another alternative.",
|
|
235493
|
+
intoNegativeLookaround: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which is in a negative lookaround.",
|
|
235494
|
+
empty: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which always captures zero characters."
|
|
235219
235495
|
},
|
|
235220
235496
|
type: "suggestion"
|
|
235221
235497
|
},
|
|
@@ -235223,15 +235499,16 @@ var require_no_useless_backreference = __commonJS({
|
|
|
235223
235499
|
function createVisitor({ node: node2, flags, getRegexpLocation }) {
|
|
235224
235500
|
return {
|
|
235225
235501
|
onBackreferenceEnter(backRef) {
|
|
235226
|
-
const
|
|
235227
|
-
if (
|
|
235502
|
+
const problem = getUselessProblem(backRef, flags);
|
|
235503
|
+
if (problem) {
|
|
235228
235504
|
context.report({
|
|
235229
235505
|
node: node2,
|
|
235230
235506
|
loc: getRegexpLocation(backRef),
|
|
235231
|
-
messageId,
|
|
235507
|
+
messageId: problem.messageId,
|
|
235232
235508
|
data: {
|
|
235233
235509
|
bref: (0, mention_1.mention)(backRef),
|
|
235234
|
-
group: (0, mention_1.mention)(
|
|
235510
|
+
group: (0, mention_1.mention)(problem.group),
|
|
235511
|
+
otherGroups: problem.otherGroups
|
|
235235
235512
|
}
|
|
235236
235513
|
});
|
|
235237
235514
|
}
|
|
@@ -235246,9 +235523,9 @@ var require_no_useless_backreference = __commonJS({
|
|
|
235246
235523
|
}
|
|
235247
235524
|
});
|
|
235248
235525
|
|
|
235249
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235526
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-character-class.js
|
|
235250
235527
|
var require_no_useless_character_class = __commonJS({
|
|
235251
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235528
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-character-class.js"(exports) {
|
|
235252
235529
|
"use strict";
|
|
235253
235530
|
init_esm_shims();
|
|
235254
235531
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -235430,9 +235707,9 @@ var require_no_useless_character_class = __commonJS({
|
|
|
235430
235707
|
}
|
|
235431
235708
|
});
|
|
235432
235709
|
|
|
235433
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235710
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-dollar-replacements.js
|
|
235434
235711
|
var require_no_useless_dollar_replacements = __commonJS({
|
|
235435
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235712
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-dollar-replacements.js"(exports) {
|
|
235436
235713
|
"use strict";
|
|
235437
235714
|
init_esm_shims();
|
|
235438
235715
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -235453,9 +235730,9 @@ var require_no_useless_dollar_replacements = __commonJS({
|
|
|
235453
235730
|
schema: [],
|
|
235454
235731
|
messages: {
|
|
235455
235732
|
numberRef: "'${{ refText }}' replacement will insert '${{ refText }}' because there are less than {{ num }} capturing groups. Use '$$' if you want to escape '$'.",
|
|
235456
|
-
numberRefCapturingNotFound: "'${{ refText }}' replacement will insert '${{ refText }}' because capturing group
|
|
235733
|
+
numberRefCapturingNotFound: "'${{ refText }}' replacement will insert '${{ refText }}' because capturing group is not found. Use '$$' if you want to escape '$'.",
|
|
235457
235734
|
namedRef: "'$<{{ refText }}>' replacement will be ignored because the named capturing group is not found. Use '$$' if you want to escape '$'.",
|
|
235458
|
-
namedRefNamedCapturingNotFound: "'$<{{ refText }}>' replacement will insert '$<{{ refText }}>' because named capturing group
|
|
235735
|
+
namedRefNamedCapturingNotFound: "'$<{{ refText }}>' replacement will insert '$<{{ refText }}>' because named capturing group is not found. Use '$$' if you want to escape '$'."
|
|
235459
235736
|
},
|
|
235460
235737
|
type: "suggestion"
|
|
235461
235738
|
},
|
|
@@ -235522,9 +235799,9 @@ var require_no_useless_dollar_replacements = __commonJS({
|
|
|
235522
235799
|
}
|
|
235523
235800
|
});
|
|
235524
235801
|
|
|
235525
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235802
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-escape.js
|
|
235526
235803
|
var require_no_useless_escape = __commonJS({
|
|
235527
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235804
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-escape.js"(exports) {
|
|
235528
235805
|
"use strict";
|
|
235529
235806
|
init_esm_shims();
|
|
235530
235807
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -235658,9 +235935,9 @@ var require_no_useless_escape = __commonJS({
|
|
|
235658
235935
|
}
|
|
235659
235936
|
});
|
|
235660
235937
|
|
|
235661
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235938
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-flag.js
|
|
235662
235939
|
var require_no_useless_flag = __commonJS({
|
|
235663
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235940
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-flag.js"(exports) {
|
|
235664
235941
|
"use strict";
|
|
235665
235942
|
init_esm_shims();
|
|
235666
235943
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236196,9 +236473,9 @@ var require_no_useless_flag = __commonJS({
|
|
|
236196
236473
|
}
|
|
236197
236474
|
});
|
|
236198
236475
|
|
|
236199
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236476
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-lazy.js
|
|
236200
236477
|
var require_no_useless_lazy = __commonJS({
|
|
236201
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236478
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-lazy.js"(exports) {
|
|
236202
236479
|
"use strict";
|
|
236203
236480
|
init_esm_shims();
|
|
236204
236481
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236279,9 +236556,9 @@ var require_no_useless_lazy = __commonJS({
|
|
|
236279
236556
|
}
|
|
236280
236557
|
});
|
|
236281
236558
|
|
|
236282
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236559
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-non-capturing-group.js
|
|
236283
236560
|
var require_no_useless_non_capturing_group = __commonJS({
|
|
236284
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236561
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-non-capturing-group.js"(exports) {
|
|
236285
236562
|
"use strict";
|
|
236286
236563
|
init_esm_shims();
|
|
236287
236564
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236390,9 +236667,9 @@ var require_no_useless_non_capturing_group = __commonJS({
|
|
|
236390
236667
|
}
|
|
236391
236668
|
});
|
|
236392
236669
|
|
|
236393
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236670
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-quantifier.js
|
|
236394
236671
|
var require_no_useless_quantifier = __commonJS({
|
|
236395
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236672
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-quantifier.js"(exports) {
|
|
236396
236673
|
"use strict";
|
|
236397
236674
|
init_esm_shims();
|
|
236398
236675
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236485,9 +236762,9 @@ var require_no_useless_quantifier = __commonJS({
|
|
|
236485
236762
|
}
|
|
236486
236763
|
});
|
|
236487
236764
|
|
|
236488
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236765
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-range.js
|
|
236489
236766
|
var require_no_useless_range = __commonJS({
|
|
236490
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236767
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-range.js"(exports) {
|
|
236491
236768
|
"use strict";
|
|
236492
236769
|
init_esm_shims();
|
|
236493
236770
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236549,9 +236826,9 @@ var require_no_useless_range = __commonJS({
|
|
|
236549
236826
|
}
|
|
236550
236827
|
});
|
|
236551
236828
|
|
|
236552
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236829
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-set-operand.js
|
|
236553
236830
|
var require_no_useless_set_operand = __commonJS({
|
|
236554
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236831
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-set-operand.js"(exports) {
|
|
236555
236832
|
"use strict";
|
|
236556
236833
|
init_esm_shims();
|
|
236557
236834
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236740,9 +237017,9 @@ var require_no_useless_set_operand = __commonJS({
|
|
|
236740
237017
|
}
|
|
236741
237018
|
});
|
|
236742
237019
|
|
|
236743
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237020
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-string-literal.js
|
|
236744
237021
|
var require_no_useless_string_literal = __commonJS({
|
|
236745
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237022
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-string-literal.js"(exports) {
|
|
236746
237023
|
"use strict";
|
|
236747
237024
|
init_esm_shims();
|
|
236748
237025
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236810,9 +237087,9 @@ var require_no_useless_string_literal = __commonJS({
|
|
|
236810
237087
|
}
|
|
236811
237088
|
});
|
|
236812
237089
|
|
|
236813
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237090
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-two-nums-quantifier.js
|
|
236814
237091
|
var require_no_useless_two_nums_quantifier = __commonJS({
|
|
236815
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237092
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-two-nums-quantifier.js"(exports) {
|
|
236816
237093
|
"use strict";
|
|
236817
237094
|
init_esm_shims();
|
|
236818
237095
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236866,9 +237143,9 @@ var require_no_useless_two_nums_quantifier = __commonJS({
|
|
|
236866
237143
|
}
|
|
236867
237144
|
});
|
|
236868
237145
|
|
|
236869
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237146
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-zero-quantifier.js
|
|
236870
237147
|
var require_no_zero_quantifier = __commonJS({
|
|
236871
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237148
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-zero-quantifier.js"(exports) {
|
|
236872
237149
|
"use strict";
|
|
236873
237150
|
init_esm_shims();
|
|
236874
237151
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -236935,9 +237212,9 @@ var require_no_zero_quantifier = __commonJS({
|
|
|
236935
237212
|
}
|
|
236936
237213
|
});
|
|
236937
237214
|
|
|
236938
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237215
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/optimal-lookaround-quantifier.js
|
|
236939
237216
|
var require_optimal_lookaround_quantifier = __commonJS({
|
|
236940
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237217
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/optimal-lookaround-quantifier.js"(exports) {
|
|
236941
237218
|
"use strict";
|
|
236942
237219
|
init_esm_shims();
|
|
236943
237220
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -237037,9 +237314,9 @@ var require_optimal_lookaround_quantifier = __commonJS({
|
|
|
237037
237314
|
}
|
|
237038
237315
|
});
|
|
237039
237316
|
|
|
237040
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237317
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/optimal-quantifier-concatenation.js
|
|
237041
237318
|
var require_optimal_quantifier_concatenation = __commonJS({
|
|
237042
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237319
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/optimal-quantifier-concatenation.js"(exports) {
|
|
237043
237320
|
"use strict";
|
|
237044
237321
|
init_esm_shims();
|
|
237045
237322
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -237239,7 +237516,7 @@ var require_optimal_quantifier_concatenation = __commonJS({
|
|
|
237239
237516
|
return {
|
|
237240
237517
|
type: "Nested",
|
|
237241
237518
|
messageId: "nestedReplace",
|
|
237242
|
-
raw: quantize(nested.element,
|
|
237519
|
+
raw: quantize(nested.element, { ...nested, max: min }),
|
|
237243
237520
|
nested,
|
|
237244
237521
|
dominate
|
|
237245
237522
|
};
|
|
@@ -237491,9 +237768,9 @@ var require_optimal_quantifier_concatenation = __commonJS({
|
|
|
237491
237768
|
}
|
|
237492
237769
|
});
|
|
237493
237770
|
|
|
237494
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237771
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-character-class.js
|
|
237495
237772
|
var require_prefer_character_class = __commonJS({
|
|
237496
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237773
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-character-class.js"(exports) {
|
|
237497
237774
|
"use strict";
|
|
237498
237775
|
init_esm_shims();
|
|
237499
237776
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -237837,9 +238114,9 @@ var require_prefer_character_class = __commonJS({
|
|
|
237837
238114
|
}
|
|
237838
238115
|
});
|
|
237839
238116
|
|
|
237840
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238117
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-d.js
|
|
237841
238118
|
var require_prefer_d = __commonJS({
|
|
237842
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238119
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-d.js"(exports) {
|
|
237843
238120
|
"use strict";
|
|
237844
238121
|
init_esm_shims();
|
|
237845
238122
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -237933,9 +238210,9 @@ var require_prefer_d = __commonJS({
|
|
|
237933
238210
|
}
|
|
237934
238211
|
});
|
|
237935
238212
|
|
|
237936
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238213
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-escape-replacement-dollar-char.js
|
|
237937
238214
|
var require_prefer_escape_replacement_dollar_char = __commonJS({
|
|
237938
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238215
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-escape-replacement-dollar-char.js"(exports) {
|
|
237939
238216
|
"use strict";
|
|
237940
238217
|
init_esm_shims();
|
|
237941
238218
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -237996,9 +238273,9 @@ var require_prefer_escape_replacement_dollar_char = __commonJS({
|
|
|
237996
238273
|
}
|
|
237997
238274
|
});
|
|
237998
238275
|
|
|
237999
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238276
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-lookaround.js
|
|
238000
238277
|
var require_prefer_lookaround = __commonJS({
|
|
238001
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238278
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-lookaround.js"(exports) {
|
|
238002
238279
|
"use strict";
|
|
238003
238280
|
init_esm_shims();
|
|
238004
238281
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -238468,9 +238745,9 @@ var require_prefer_lookaround = __commonJS({
|
|
|
238468
238745
|
}
|
|
238469
238746
|
});
|
|
238470
238747
|
|
|
238471
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238748
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-backreference.js
|
|
238472
238749
|
var require_prefer_named_backreference = __commonJS({
|
|
238473
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238750
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-backreference.js"(exports) {
|
|
238474
238751
|
"use strict";
|
|
238475
238752
|
init_esm_shims();
|
|
238476
238753
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -238493,7 +238770,7 @@ var require_prefer_named_backreference = __commonJS({
|
|
|
238493
238770
|
function createVisitor({ node: node2, fixReplaceNode, getRegexpLocation }) {
|
|
238494
238771
|
return {
|
|
238495
238772
|
onBackreferenceEnter(bNode) {
|
|
238496
|
-
if (bNode.resolved.name && !bNode.raw.startsWith("\\k<")) {
|
|
238773
|
+
if (!bNode.ambiguous && bNode.resolved.name && !bNode.raw.startsWith("\\k<")) {
|
|
238497
238774
|
context.report({
|
|
238498
238775
|
node: node2,
|
|
238499
238776
|
loc: getRegexpLocation(bNode),
|
|
@@ -238512,9 +238789,9 @@ var require_prefer_named_backreference = __commonJS({
|
|
|
238512
238789
|
}
|
|
238513
238790
|
});
|
|
238514
238791
|
|
|
238515
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238792
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-capture-group.js
|
|
238516
238793
|
var require_prefer_named_capture_group = __commonJS({
|
|
238517
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238794
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-capture-group.js"(exports) {
|
|
238518
238795
|
"use strict";
|
|
238519
238796
|
init_esm_shims();
|
|
238520
238797
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -238559,9 +238836,9 @@ var require_prefer_named_capture_group = __commonJS({
|
|
|
238559
238836
|
}
|
|
238560
238837
|
});
|
|
238561
238838
|
|
|
238562
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238839
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-replacement.js
|
|
238563
238840
|
var require_prefer_named_replacement = __commonJS({
|
|
238564
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238841
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-replacement.js"(exports) {
|
|
238565
238842
|
"use strict";
|
|
238566
238843
|
init_esm_shims();
|
|
238567
238844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -238626,9 +238903,9 @@ var require_prefer_named_replacement = __commonJS({
|
|
|
238626
238903
|
}
|
|
238627
238904
|
});
|
|
238628
238905
|
|
|
238629
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238906
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-plus-quantifier.js
|
|
238630
238907
|
var require_prefer_plus_quantifier = __commonJS({
|
|
238631
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238908
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-plus-quantifier.js"(exports) {
|
|
238632
238909
|
"use strict";
|
|
238633
238910
|
init_esm_shims();
|
|
238634
238911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -238681,9 +238958,9 @@ var require_prefer_plus_quantifier = __commonJS({
|
|
|
238681
238958
|
}
|
|
238682
238959
|
});
|
|
238683
238960
|
|
|
238684
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238961
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-predefined-assertion.js
|
|
238685
238962
|
var require_prefer_predefined_assertion = __commonJS({
|
|
238686
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238963
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-predefined-assertion.js"(exports) {
|
|
238687
238964
|
"use strict";
|
|
238688
238965
|
init_esm_shims();
|
|
238689
238966
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -238820,9 +239097,9 @@ var require_prefer_predefined_assertion = __commonJS({
|
|
|
238820
239097
|
}
|
|
238821
239098
|
});
|
|
238822
239099
|
|
|
238823
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239100
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-quantifier.js
|
|
238824
239101
|
var require_prefer_quantifier = __commonJS({
|
|
238825
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239102
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-quantifier.js"(exports) {
|
|
238826
239103
|
"use strict";
|
|
238827
239104
|
init_esm_shims();
|
|
238828
239105
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -238949,9 +239226,9 @@ var require_prefer_quantifier = __commonJS({
|
|
|
238949
239226
|
}
|
|
238950
239227
|
});
|
|
238951
239228
|
|
|
238952
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239229
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-question-quantifier.js
|
|
238953
239230
|
var require_prefer_question_quantifier = __commonJS({
|
|
238954
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239231
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-question-quantifier.js"(exports) {
|
|
238955
239232
|
"use strict";
|
|
238956
239233
|
init_esm_shims();
|
|
238957
239234
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239041,9 +239318,9 @@ var require_prefer_question_quantifier = __commonJS({
|
|
|
239041
239318
|
}
|
|
239042
239319
|
});
|
|
239043
239320
|
|
|
239044
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239321
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-range.js
|
|
239045
239322
|
var require_prefer_range = __commonJS({
|
|
239046
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239323
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-range.js"(exports) {
|
|
239047
239324
|
"use strict";
|
|
239048
239325
|
init_esm_shims();
|
|
239049
239326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239133,7 +239410,10 @@ var require_prefer_range = __commonJS({
|
|
|
239133
239410
|
}
|
|
239134
239411
|
group.nodes.push(element);
|
|
239135
239412
|
} else {
|
|
239136
|
-
groups.push(
|
|
239413
|
+
groups.push({
|
|
239414
|
+
...data,
|
|
239415
|
+
nodes: [element]
|
|
239416
|
+
});
|
|
239137
239417
|
}
|
|
239138
239418
|
}
|
|
239139
239419
|
for (const group of groups) {
|
|
@@ -239179,9 +239459,9 @@ var require_prefer_range = __commonJS({
|
|
|
239179
239459
|
}
|
|
239180
239460
|
});
|
|
239181
239461
|
|
|
239182
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239462
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-regexp-exec.js
|
|
239183
239463
|
var require_prefer_regexp_exec = __commonJS({
|
|
239184
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239464
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-regexp-exec.js"(exports) {
|
|
239185
239465
|
"use strict";
|
|
239186
239466
|
init_esm_shims();
|
|
239187
239467
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239227,9 +239507,9 @@ var require_prefer_regexp_exec = __commonJS({
|
|
|
239227
239507
|
}
|
|
239228
239508
|
});
|
|
239229
239509
|
|
|
239230
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239510
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-regexp-test.js
|
|
239231
239511
|
var require_prefer_regexp_test = __commonJS({
|
|
239232
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239512
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-regexp-test.js"(exports) {
|
|
239233
239513
|
"use strict";
|
|
239234
239514
|
init_esm_shims();
|
|
239235
239515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239345,9 +239625,9 @@ var require_prefer_regexp_test = __commonJS({
|
|
|
239345
239625
|
}
|
|
239346
239626
|
});
|
|
239347
239627
|
|
|
239348
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239628
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-result-array-groups.js
|
|
239349
239629
|
var require_prefer_result_array_groups = __commonJS({
|
|
239350
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239630
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-result-array-groups.js"(exports) {
|
|
239351
239631
|
"use strict";
|
|
239352
239632
|
init_esm_shims();
|
|
239353
239633
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239463,9 +239743,9 @@ var require_prefer_result_array_groups = __commonJS({
|
|
|
239463
239743
|
}
|
|
239464
239744
|
});
|
|
239465
239745
|
|
|
239466
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239746
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-set-operation.js
|
|
239467
239747
|
var require_prefer_set_operation = __commonJS({
|
|
239468
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239748
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-set-operation.js"(exports) {
|
|
239469
239749
|
"use strict";
|
|
239470
239750
|
init_esm_shims();
|
|
239471
239751
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239555,9 +239835,9 @@ var require_prefer_set_operation = __commonJS({
|
|
|
239555
239835
|
}
|
|
239556
239836
|
});
|
|
239557
239837
|
|
|
239558
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239838
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-star-quantifier.js
|
|
239559
239839
|
var require_prefer_star_quantifier = __commonJS({
|
|
239560
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239840
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-star-quantifier.js"(exports) {
|
|
239561
239841
|
"use strict";
|
|
239562
239842
|
init_esm_shims();
|
|
239563
239843
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239610,9 +239890,9 @@ var require_prefer_star_quantifier = __commonJS({
|
|
|
239610
239890
|
}
|
|
239611
239891
|
});
|
|
239612
239892
|
|
|
239613
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239893
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-unicode-codepoint-escapes.js
|
|
239614
239894
|
var require_prefer_unicode_codepoint_escapes = __commonJS({
|
|
239615
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239895
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-unicode-codepoint-escapes.js"(exports) {
|
|
239616
239896
|
"use strict";
|
|
239617
239897
|
init_esm_shims();
|
|
239618
239898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239666,9 +239946,9 @@ var require_prefer_unicode_codepoint_escapes = __commonJS({
|
|
|
239666
239946
|
}
|
|
239667
239947
|
});
|
|
239668
239948
|
|
|
239669
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239949
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-w.js
|
|
239670
239950
|
var require_prefer_w = __commonJS({
|
|
239671
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239951
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-w.js"(exports) {
|
|
239672
239952
|
"use strict";
|
|
239673
239953
|
init_esm_shims();
|
|
239674
239954
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239794,9 +240074,9 @@ var require_prefer_w = __commonJS({
|
|
|
239794
240074
|
}
|
|
239795
240075
|
});
|
|
239796
240076
|
|
|
239797
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240077
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/require-unicode-regexp.js
|
|
239798
240078
|
var require_require_unicode_regexp = __commonJS({
|
|
239799
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240079
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/require-unicode-regexp.js"(exports) {
|
|
239800
240080
|
"use strict";
|
|
239801
240081
|
init_esm_shims();
|
|
239802
240082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -239809,7 +240089,7 @@ var require_require_unicode_regexp = __commonJS({
|
|
|
239809
240089
|
let uPattern;
|
|
239810
240090
|
try {
|
|
239811
240091
|
uPattern = new regexpp_1.RegExpParser().parsePattern(pattern.raw, void 0, void 0, { unicode: true });
|
|
239812
|
-
} catch (
|
|
240092
|
+
} catch (_a) {
|
|
239813
240093
|
return false;
|
|
239814
240094
|
}
|
|
239815
240095
|
try {
|
|
@@ -239912,7 +240192,7 @@ var require_require_unicode_regexp = __commonJS({
|
|
|
239912
240192
|
});
|
|
239913
240193
|
const pattern = regexpContext.patternAst;
|
|
239914
240194
|
const flags = regexpContext.flags;
|
|
239915
|
-
const uFlags = (0, regexp_ast_analysis_1.toCache)(
|
|
240195
|
+
const uFlags = (0, regexp_ast_analysis_1.toCache)({ ...flags, unicode: true });
|
|
239916
240196
|
const skip = /* @__PURE__ */ new Set();
|
|
239917
240197
|
return !(0, regexp_ast_analysis_1.hasSomeDescendant)(pattern, (n) => {
|
|
239918
240198
|
if (n.type === "Character" && surrogatePositions.has(n.start)) {
|
|
@@ -239986,9 +240266,9 @@ var require_require_unicode_regexp = __commonJS({
|
|
|
239986
240266
|
}
|
|
239987
240267
|
});
|
|
239988
240268
|
|
|
239989
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240269
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/require-unicode-sets-regexp.js
|
|
239990
240270
|
var require_require_unicode_sets_regexp = __commonJS({
|
|
239991
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240271
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/require-unicode-sets-regexp.js"(exports) {
|
|
239992
240272
|
"use strict";
|
|
239993
240273
|
init_esm_shims();
|
|
239994
240274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -240000,11 +240280,11 @@ var require_require_unicode_sets_regexp = __commonJS({
|
|
|
240000
240280
|
const INCOMPATIBLE = {};
|
|
240001
240281
|
const { flags, patternAst, pattern } = regexpContext;
|
|
240002
240282
|
try {
|
|
240003
|
-
const flagsWithV =
|
|
240283
|
+
const flagsWithV = { ...flags, unicodeSets: true, unicode: false };
|
|
240004
240284
|
(0, regexpp_1.visitRegExpAST)(patternAst, {
|
|
240005
240285
|
onCharacterClassEnter(node2) {
|
|
240006
240286
|
const us = (0, regexp_ast_analysis_1.toUnicodeSet)(node2, flags);
|
|
240007
|
-
const vus = (0, regexp_ast_analysis_1.toUnicodeSet)(
|
|
240287
|
+
const vus = (0, regexp_ast_analysis_1.toUnicodeSet)({ ...node2, unicodeSets: true }, flagsWithV);
|
|
240008
240288
|
if (!us.equals(vus)) {
|
|
240009
240289
|
throw INCOMPATIBLE;
|
|
240010
240290
|
}
|
|
@@ -240023,7 +240303,7 @@ var require_require_unicode_sets_regexp = __commonJS({
|
|
|
240023
240303
|
new regexpp_1.RegExpParser().parsePattern(pattern, void 0, void 0, {
|
|
240024
240304
|
unicodeSets: true
|
|
240025
240305
|
});
|
|
240026
|
-
} catch (
|
|
240306
|
+
} catch (_a) {
|
|
240027
240307
|
return false;
|
|
240028
240308
|
}
|
|
240029
240309
|
return true;
|
|
@@ -240071,9 +240351,9 @@ var require_require_unicode_sets_regexp = __commonJS({
|
|
|
240071
240351
|
}
|
|
240072
240352
|
});
|
|
240073
240353
|
|
|
240074
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240354
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/simplify-set-operations.js
|
|
240075
240355
|
var require_simplify_set_operations = __commonJS({
|
|
240076
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240356
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/simplify-set-operations.js"(exports) {
|
|
240077
240357
|
"use strict";
|
|
240078
240358
|
init_esm_shims();
|
|
240079
240359
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -240117,7 +240397,7 @@ var require_simplify_set_operations = __commonJS({
|
|
|
240117
240397
|
return element;
|
|
240118
240398
|
}
|
|
240119
240399
|
}
|
|
240120
|
-
} catch (
|
|
240400
|
+
} catch (_a) {
|
|
240121
240401
|
}
|
|
240122
240402
|
return null;
|
|
240123
240403
|
}
|
|
@@ -240313,13 +240593,14 @@ var require_simplify_set_operations = __commonJS({
|
|
|
240313
240593
|
}
|
|
240314
240594
|
});
|
|
240315
240595
|
|
|
240316
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240596
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/lexicographically-smallest.js
|
|
240317
240597
|
var require_lexicographically_smallest = __commonJS({
|
|
240318
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240598
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/lexicographically-smallest.js"(exports) {
|
|
240319
240599
|
"use strict";
|
|
240320
240600
|
init_esm_shims();
|
|
240321
240601
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
240322
|
-
exports.
|
|
240602
|
+
exports.getLexicographicallySmallest = getLexicographicallySmallest;
|
|
240603
|
+
exports.getLexicographicallySmallestInConcatenation = getLexicographicallySmallestInConcatenation;
|
|
240323
240604
|
function findMin(array, compare) {
|
|
240324
240605
|
if (array.length === 0) {
|
|
240325
240606
|
return void 0;
|
|
@@ -240350,7 +240631,6 @@ var require_lexicographically_smallest = __commonJS({
|
|
|
240350
240631
|
const words = set.accept.wordSets.map((w) => w.map((c) => c.ranges[0].min));
|
|
240351
240632
|
return findMin(words, compareWords);
|
|
240352
240633
|
}
|
|
240353
|
-
exports.getLexicographicallySmallest = getLexicographicallySmallest;
|
|
240354
240634
|
function getLexicographicallySmallestInConcatenation(elements) {
|
|
240355
240635
|
if (elements.length === 1) {
|
|
240356
240636
|
return getLexicographicallySmallest(elements[0]);
|
|
@@ -240380,13 +240660,12 @@ var require_lexicographically_smallest = __commonJS({
|
|
|
240380
240660
|
}
|
|
240381
240661
|
return smallest;
|
|
240382
240662
|
}
|
|
240383
|
-
exports.getLexicographicallySmallestInConcatenation = getLexicographicallySmallestInConcatenation;
|
|
240384
240663
|
}
|
|
240385
240664
|
});
|
|
240386
240665
|
|
|
240387
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240666
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-alternatives.js
|
|
240388
240667
|
var require_sort_alternatives = __commonJS({
|
|
240389
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240668
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-alternatives.js"(exports) {
|
|
240390
240669
|
"use strict";
|
|
240391
240670
|
init_esm_shims();
|
|
240392
240671
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -240472,7 +240751,7 @@ var require_sort_alternatives = __commonJS({
|
|
|
240472
240751
|
}, result.expression);
|
|
240473
240752
|
const nfa = refa_1.NFA.fromRegex(expression, { maxCharacter: result.maxCharacter }, {}, new refa_1.NFA.LimitedNodeFactory(1e3));
|
|
240474
240753
|
return getLexicographicallySmallestFromNfa(nfa.initial, nfa.finals);
|
|
240475
|
-
} catch (
|
|
240754
|
+
} catch (_a) {
|
|
240476
240755
|
return void 0;
|
|
240477
240756
|
}
|
|
240478
240757
|
}
|
|
@@ -240770,9 +241049,9 @@ var require_sort_alternatives = __commonJS({
|
|
|
240770
241049
|
}
|
|
240771
241050
|
});
|
|
240772
241051
|
|
|
240773
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241052
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-character-class-elements.js
|
|
240774
241053
|
var require_sort_character_class_elements = __commonJS({
|
|
240775
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241054
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-character-class-elements.js"(exports) {
|
|
240776
241055
|
"use strict";
|
|
240777
241056
|
init_esm_shims();
|
|
240778
241057
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -240802,7 +241081,7 @@ var require_sort_character_class_elements = __commonJS({
|
|
|
240802
241081
|
return "*";
|
|
240803
241082
|
}
|
|
240804
241083
|
function getLexicographicallySmallestFromElement(node2, flags) {
|
|
240805
|
-
const us = node2.type === "CharacterSet" && node2.negate ? (0, regexp_ast_analysis_1.toUnicodeSet)(
|
|
241084
|
+
const us = node2.type === "CharacterSet" && node2.negate ? (0, regexp_ast_analysis_1.toUnicodeSet)({ ...node2, negate: false }, flags) : (0, regexp_ast_analysis_1.toUnicodeSet)(node2, flags);
|
|
240806
241085
|
return (0, lexicographically_smallest_1.getLexicographicallySmallest)(us) || [];
|
|
240807
241086
|
}
|
|
240808
241087
|
function compareWords(a, b) {
|
|
@@ -240967,9 +241246,9 @@ var require_sort_character_class_elements = __commonJS({
|
|
|
240967
241246
|
}
|
|
240968
241247
|
});
|
|
240969
241248
|
|
|
240970
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241249
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-flags.js
|
|
240971
241250
|
var require_sort_flags = __commonJS({
|
|
240972
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241251
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-flags.js"(exports) {
|
|
240973
241252
|
"use strict";
|
|
240974
241253
|
init_esm_shims();
|
|
240975
241254
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -241019,9 +241298,9 @@ var require_sort_flags = __commonJS({
|
|
|
241019
241298
|
}
|
|
241020
241299
|
});
|
|
241021
241300
|
|
|
241022
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241301
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/strict.js
|
|
241023
241302
|
var require_strict = __commonJS({
|
|
241024
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241303
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/strict.js"(exports) {
|
|
241025
241304
|
"use strict";
|
|
241026
241305
|
init_esm_shims();
|
|
241027
241306
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -241201,9 +241480,9 @@ var require_strict = __commonJS({
|
|
|
241201
241480
|
}
|
|
241202
241481
|
});
|
|
241203
241482
|
|
|
241204
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241483
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/unicode-escape.js
|
|
241205
241484
|
var require_unicode_escape = __commonJS({
|
|
241206
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241485
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/unicode-escape.js"(exports) {
|
|
241207
241486
|
"use strict";
|
|
241208
241487
|
init_esm_shims();
|
|
241209
241488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -241289,9 +241568,9 @@ var require_unicode_escape = __commonJS({
|
|
|
241289
241568
|
}
|
|
241290
241569
|
});
|
|
241291
241570
|
|
|
241292
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241571
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/unicode-alias.js
|
|
241293
241572
|
var require_unicode_alias = __commonJS({
|
|
241294
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241573
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/unicode-alias.js"(exports) {
|
|
241295
241574
|
"use strict";
|
|
241296
241575
|
init_esm_shims();
|
|
241297
241576
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -241368,6 +241647,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241368
241647
|
Join_C: "Join_Control",
|
|
241369
241648
|
LOE: "Logical_Order_Exception",
|
|
241370
241649
|
Lower: "Lowercase",
|
|
241650
|
+
MCM: "Modifier_Combining_Mark",
|
|
241371
241651
|
NChar: "Noncharacter_Code_Point",
|
|
241372
241652
|
OAlpha: "Other_Alphabetic",
|
|
241373
241653
|
ODI: "Other_Default_Ignorable_Code_Point",
|
|
@@ -241485,6 +241765,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241485
241765
|
Elba: "Elbasan",
|
|
241486
241766
|
Elym: "Elymaic",
|
|
241487
241767
|
Ethi: "Ethiopic",
|
|
241768
|
+
Gara: "Garay",
|
|
241488
241769
|
Geor: "Georgian",
|
|
241489
241770
|
Glag: "Glagolitic",
|
|
241490
241771
|
Gong: "Gunjala_Gondi",
|
|
@@ -241493,6 +241774,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241493
241774
|
Gran: "Grantha",
|
|
241494
241775
|
Grek: "Greek",
|
|
241495
241776
|
Gujr: "Gujarati",
|
|
241777
|
+
Gukh: "Gurung_Khema",
|
|
241496
241778
|
Guru: "Gurmukhi",
|
|
241497
241779
|
Hang: "Hangul",
|
|
241498
241780
|
Hani: "Han",
|
|
@@ -241514,6 +241796,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241514
241796
|
Khoj: "Khojki",
|
|
241515
241797
|
Kits: "Khitan_Small_Script",
|
|
241516
241798
|
Knda: "Kannada",
|
|
241799
|
+
Krai: "Kirat_Rai",
|
|
241517
241800
|
Kthi: "Kaithi",
|
|
241518
241801
|
Lana: "Tai_Tham",
|
|
241519
241802
|
Laoo: "Lao",
|
|
@@ -241547,6 +241830,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241547
241830
|
Nshu: "Nushu",
|
|
241548
241831
|
Ogam: "Ogham",
|
|
241549
241832
|
Olck: "Ol_Chiki",
|
|
241833
|
+
Onao: "Ol_Onal",
|
|
241550
241834
|
Orkh: "Old_Turkic",
|
|
241551
241835
|
Orya: "Oriya",
|
|
241552
241836
|
Osge: "Osage",
|
|
@@ -241578,6 +241862,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241578
241862
|
Sora: "Sora_Sompeng",
|
|
241579
241863
|
Soyo: "Soyombo",
|
|
241580
241864
|
Sund: "Sundanese",
|
|
241865
|
+
Sunu: "Sunuwar",
|
|
241581
241866
|
Sylo: "Syloti_Nagri",
|
|
241582
241867
|
Syrc: "Syriac",
|
|
241583
241868
|
Tagb: "Tagbanwa",
|
|
@@ -241594,6 +241879,8 @@ var require_unicode_alias = __commonJS({
|
|
|
241594
241879
|
Tibt: "Tibetan",
|
|
241595
241880
|
Tirh: "Tirhuta",
|
|
241596
241881
|
Tnsa: "Tangsa",
|
|
241882
|
+
Todr: "Todhri",
|
|
241883
|
+
Tutg: "Tulu_Tigalari",
|
|
241597
241884
|
Ugar: "Ugaritic",
|
|
241598
241885
|
Vaii: "Vai",
|
|
241599
241886
|
Vith: "Vithkuqi",
|
|
@@ -241616,9 +241903,9 @@ var require_unicode_alias = __commonJS({
|
|
|
241616
241903
|
}
|
|
241617
241904
|
});
|
|
241618
241905
|
|
|
241619
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241906
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/unicode-property.js
|
|
241620
241907
|
var require_unicode_property = __commonJS({
|
|
241621
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241908
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/unicode-property.js"(exports) {
|
|
241622
241909
|
"use strict";
|
|
241623
241910
|
init_esm_shims();
|
|
241624
241911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -241810,9 +242097,9 @@ var require_unicode_property = __commonJS({
|
|
|
241810
242097
|
}
|
|
241811
242098
|
});
|
|
241812
242099
|
|
|
241813
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242100
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/use-ignore-case.js
|
|
241814
242101
|
var require_use_ignore_case = __commonJS({
|
|
241815
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242102
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/use-ignore-case.js"(exports) {
|
|
241816
242103
|
"use strict";
|
|
241817
242104
|
init_esm_shims();
|
|
241818
242105
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -242000,9 +242287,9 @@ var require_use_ignore_case = __commonJS({
|
|
|
242000
242287
|
}
|
|
242001
242288
|
});
|
|
242002
242289
|
|
|
242003
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242290
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/all-rules.js
|
|
242004
242291
|
var require_all_rules = __commonJS({
|
|
242005
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242292
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/all-rules.js"(exports) {
|
|
242006
242293
|
"use strict";
|
|
242007
242294
|
init_esm_shims();
|
|
242008
242295
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
@@ -242179,9 +242466,9 @@ var require_all_rules = __commonJS({
|
|
|
242179
242466
|
}
|
|
242180
242467
|
});
|
|
242181
242468
|
|
|
242182
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242469
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/rules/recommended.js
|
|
242183
242470
|
var require_recommended = __commonJS({
|
|
242184
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242471
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/rules/recommended.js"(exports) {
|
|
242185
242472
|
"use strict";
|
|
242186
242473
|
init_esm_shims();
|
|
242187
242474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -242258,9 +242545,9 @@ var require_recommended = __commonJS({
|
|
|
242258
242545
|
}
|
|
242259
242546
|
});
|
|
242260
242547
|
|
|
242261
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242548
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/rules/all.js
|
|
242262
242549
|
var require_all = __commonJS({
|
|
242263
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242550
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/rules/all.js"(exports) {
|
|
242264
242551
|
"use strict";
|
|
242265
242552
|
init_esm_shims();
|
|
242266
242553
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -242271,13 +242558,16 @@ var require_all = __commonJS({
|
|
|
242271
242558
|
for (const rule of all_rules_1.rules) {
|
|
242272
242559
|
all[rule.meta.docs.ruleId] = "error";
|
|
242273
242560
|
}
|
|
242274
|
-
exports.rules =
|
|
242561
|
+
exports.rules = {
|
|
242562
|
+
...all,
|
|
242563
|
+
...recommended_1.rules
|
|
242564
|
+
};
|
|
242275
242565
|
}
|
|
242276
242566
|
});
|
|
242277
242567
|
|
|
242278
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242568
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/all.js
|
|
242279
242569
|
var require_all2 = __commonJS({
|
|
242280
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242570
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/all.js"(exports) {
|
|
242281
242571
|
"use strict";
|
|
242282
242572
|
init_esm_shims();
|
|
242283
242573
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -242290,9 +242580,9 @@ var require_all2 = __commonJS({
|
|
|
242290
242580
|
}
|
|
242291
242581
|
});
|
|
242292
242582
|
|
|
242293
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242583
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/flat/all.js
|
|
242294
242584
|
var require_all3 = __commonJS({
|
|
242295
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242585
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/flat/all.js"(exports) {
|
|
242296
242586
|
"use strict";
|
|
242297
242587
|
init_esm_shims();
|
|
242298
242588
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -242333,9 +242623,9 @@ var require_all3 = __commonJS({
|
|
|
242333
242623
|
}
|
|
242334
242624
|
});
|
|
242335
242625
|
|
|
242336
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242626
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/flat/recommended.js
|
|
242337
242627
|
var require_recommended2 = __commonJS({
|
|
242338
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242628
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/flat/recommended.js"(exports) {
|
|
242339
242629
|
"use strict";
|
|
242340
242630
|
init_esm_shims();
|
|
242341
242631
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -242376,9 +242666,9 @@ var require_recommended2 = __commonJS({
|
|
|
242376
242666
|
}
|
|
242377
242667
|
});
|
|
242378
242668
|
|
|
242379
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242669
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/recommended.js
|
|
242380
242670
|
var require_recommended3 = __commonJS({
|
|
242381
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242671
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/recommended.js"(exports) {
|
|
242382
242672
|
"use strict";
|
|
242383
242673
|
init_esm_shims();
|
|
242384
242674
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -242391,12 +242681,12 @@ var require_recommended3 = __commonJS({
|
|
|
242391
242681
|
}
|
|
242392
242682
|
});
|
|
242393
242683
|
|
|
242394
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242684
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/package.json
|
|
242395
242685
|
var require_package = __commonJS({
|
|
242396
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242686
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/package.json"(exports, module) {
|
|
242397
242687
|
module.exports = {
|
|
242398
242688
|
name: "eslint-plugin-regexp",
|
|
242399
|
-
version: "2.
|
|
242689
|
+
version: "2.7.0",
|
|
242400
242690
|
description: "ESLint plugin for finding RegExp mistakes and RegExp style guide violations.",
|
|
242401
242691
|
engines: {
|
|
242402
242692
|
node: "^18 || >=20"
|
|
@@ -242411,9 +242701,9 @@ var require_package = __commonJS({
|
|
|
242411
242701
|
build: "tsc --project ./tsconfig.build.json",
|
|
242412
242702
|
clean: "rimraf .nyc_output dist coverage",
|
|
242413
242703
|
lint: 'npm-run-all "lint:*"',
|
|
242414
|
-
"lint:js": "eslint .
|
|
242704
|
+
"lint:js": "eslint .",
|
|
242415
242705
|
"lint:docs": 'markdownlint "**/*.md"',
|
|
242416
|
-
"eslint-fix": "eslint . --
|
|
242706
|
+
"eslint-fix": "eslint . --fix",
|
|
242417
242707
|
pretest: "npm run build",
|
|
242418
242708
|
"test:base": 'mocha --require ts-node/register/transpile-only "tests/**/*.ts" --reporter dot --timeout 60000',
|
|
242419
242709
|
test: "npm run test:nyc",
|
|
@@ -242459,55 +242749,64 @@ var require_package = __commonJS({
|
|
|
242459
242749
|
},
|
|
242460
242750
|
devDependencies: {
|
|
242461
242751
|
"@changesets/cli": "^2.26.2",
|
|
242462
|
-
"@
|
|
242752
|
+
"@changesets/get-release-plan": "^4.0.2",
|
|
242753
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
242754
|
+
"@eslint/compat": "^1.1.0",
|
|
242755
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
242756
|
+
"@eslint/js": "^9.5.0",
|
|
242757
|
+
"@ota-meshi/eslint-plugin": "^0.17.4",
|
|
242463
242758
|
"@ota-meshi/site-kit-eslint-editor-vue": "^0.2.0",
|
|
242464
242759
|
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
|
|
242465
|
-
"@types/chai": "^
|
|
242466
|
-
"@types/eslint": "^
|
|
242760
|
+
"@types/chai": "^5.0.0",
|
|
242761
|
+
"@types/eslint": "^9.0.0",
|
|
242762
|
+
"@types/eslint__eslintrc": "^2.1.1",
|
|
242467
242763
|
"@types/eslint-scope": "^3.7.1",
|
|
242468
|
-
"@types/estree": "^1.0.
|
|
242764
|
+
"@types/estree": "^1.0.6",
|
|
242469
242765
|
"@types/mocha": "^10.0.0",
|
|
242470
|
-
"@types/node": "^
|
|
242471
|
-
"@
|
|
242472
|
-
"@typescript-eslint/
|
|
242766
|
+
"@types/node": "^22.0.0",
|
|
242767
|
+
"@types/pako": "^2.0.3",
|
|
242768
|
+
"@typescript-eslint/eslint-plugin": "~8.14.0",
|
|
242769
|
+
"@typescript-eslint/parser": "~8.14.0",
|
|
242473
242770
|
assert: "^2.0.0",
|
|
242474
|
-
chai: "^
|
|
242771
|
+
chai: "^5.0.0",
|
|
242475
242772
|
"env-cmd": "^10.1.0",
|
|
242476
|
-
eslint: "^
|
|
242477
|
-
"eslint-config-prettier": "^9.
|
|
242478
|
-
"eslint-doc-generator": "^1.7.
|
|
242773
|
+
eslint: "^9.14.0",
|
|
242774
|
+
"eslint-config-prettier": "^9.1.0",
|
|
242775
|
+
"eslint-doc-generator": "^1.7.1",
|
|
242479
242776
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
242480
|
-
"eslint-plugin-eslint-
|
|
242481
|
-
"eslint-plugin-eslint-plugin": "^6.0.0",
|
|
242777
|
+
"eslint-plugin-eslint-plugin": "^6.1.0",
|
|
242482
242778
|
"eslint-plugin-import": "^2.29.1",
|
|
242483
|
-
"eslint-plugin-
|
|
242484
|
-
"eslint-plugin-
|
|
242485
|
-
"eslint-plugin-
|
|
242486
|
-
"eslint-plugin-
|
|
242487
|
-
"eslint-plugin-
|
|
242488
|
-
"eslint-plugin-
|
|
242489
|
-
"eslint-plugin-
|
|
242779
|
+
"eslint-plugin-jsdoc": "^50.5.0",
|
|
242780
|
+
"eslint-plugin-json-schema-validator": "^5.1.1",
|
|
242781
|
+
"eslint-plugin-jsonc": "^2.16.0",
|
|
242782
|
+
"eslint-plugin-markdown": "^5.0.0",
|
|
242783
|
+
"eslint-plugin-n": "^17.9.0",
|
|
242784
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
242785
|
+
"eslint-plugin-regexp": "~2.6.0",
|
|
242786
|
+
"eslint-plugin-vue": "^9.26.0",
|
|
242787
|
+
"eslint-plugin-yml": "^1.14.0",
|
|
242490
242788
|
"eslint-snapshot-rule-tester": "^0.1.0",
|
|
242491
|
-
"
|
|
242492
|
-
"markdownlint-cli": "^0.40.0",
|
|
242789
|
+
"markdownlint-cli": "^0.42.0",
|
|
242493
242790
|
mocha: "^10.0.0",
|
|
242494
242791
|
"mocha-chai-jest-snapshot": "^1.1.3",
|
|
242495
|
-
"npm-run-all2": "^
|
|
242496
|
-
nyc: "^
|
|
242792
|
+
"npm-run-all2": "^7.0.0",
|
|
242793
|
+
nyc: "^17.0.0",
|
|
242497
242794
|
pako: "^2.1.0",
|
|
242498
|
-
prettier: "~3.
|
|
242795
|
+
prettier: "~3.3.0",
|
|
242499
242796
|
semver: "^7.5.4",
|
|
242500
242797
|
stylelint: "^16.0.0",
|
|
242501
|
-
"stylelint-config-
|
|
242502
|
-
"
|
|
242503
|
-
|
|
242504
|
-
|
|
242798
|
+
"stylelint-config-recommended": "^14.0.1",
|
|
242799
|
+
"stylelint-config-recommended-vue": "^1.5.0",
|
|
242800
|
+
"ts-node": "^10.9.2",
|
|
242801
|
+
typescript: "~5.6.2",
|
|
242802
|
+
"typescript-eslint": "~8.14.0",
|
|
242803
|
+
"vite-plugin-eslint4b": "^0.4.6",
|
|
242505
242804
|
vitepress: "^1.0.0",
|
|
242506
242805
|
"vue-eslint-parser": "^9.0.0"
|
|
242507
242806
|
},
|
|
242508
242807
|
dependencies: {
|
|
242509
242808
|
"@eslint-community/eslint-utils": "^4.2.0",
|
|
242510
|
-
"@eslint-community/regexpp": "^4.
|
|
242809
|
+
"@eslint-community/regexpp": "^4.11.0",
|
|
242511
242810
|
"comment-parser": "^1.4.0",
|
|
242512
242811
|
"jsdoc-type-pratt-parser": "^4.0.0",
|
|
242513
242812
|
refa: "^0.12.1",
|
|
@@ -242521,9 +242820,9 @@ var require_package = __commonJS({
|
|
|
242521
242820
|
}
|
|
242522
242821
|
});
|
|
242523
242822
|
|
|
242524
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242823
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/meta.js
|
|
242525
242824
|
var require_meta = __commonJS({
|
|
242526
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242825
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/meta.js"(exports) {
|
|
242527
242826
|
"use strict";
|
|
242528
242827
|
init_esm_shims();
|
|
242529
242828
|
var _a;
|
|
@@ -242533,9 +242832,9 @@ var require_meta = __commonJS({
|
|
|
242533
242832
|
}
|
|
242534
242833
|
});
|
|
242535
242834
|
|
|
242536
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242835
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/index.js
|
|
242537
242836
|
var require_dist2 = __commonJS({
|
|
242538
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242837
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/index.js"(exports) {
|
|
242539
242838
|
"use strict";
|
|
242540
242839
|
init_esm_shims();
|
|
242541
242840
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -244802,7 +245101,7 @@ async function yaml(options = {}) {
|
|
|
244802
245101
|
"yaml/indent": ["error", indent === "tab" ? 2 : indent],
|
|
244803
245102
|
"yaml/key-spacing": "error",
|
|
244804
245103
|
"yaml/no-tab-indent": "error",
|
|
244805
|
-
"yaml/quotes": ["error", { avoidEscape:
|
|
245104
|
+
"yaml/quotes": ["error", { avoidEscape: true, prefer: quotes === "backtick" ? "single" : quotes }],
|
|
244806
245105
|
"yaml/spaced-comment": "error"
|
|
244807
245106
|
} : {},
|
|
244808
245107
|
"max-lines": "off",
|