dompurify
Version:
DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It runs as JavaScript and works in all modern browsers, as well as in Node.js (via jsdom). DOMPurify is written by security people who have vast background in web a
2,733 lines (2,728 loc) • 559 kB
JavaScript
'use strict';
function cov_1y5s59mky6() {
var path = "/home/mario/git/DOMPurify/src/utils.ts";
var hash = "770472368ad06d0ff895b0e27e0d534b59a593be";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/mario/git/DOMPurify/src/utils.ts",
statementMap: {
"0": {
start: {
line: 7,
column: 4
},
end: {
line: 7,
column: 10
}
},
"1": {
start: {
line: 9,
column: 31
},
end: {
line: 9,
column: 37
}
},
"2": {
start: {
line: 10,
column: 27
},
end: {
line: 10,
column: 68
}
},
"3": {
start: {
line: 12,
column: 0
},
end: {
line: 16,
column: 1
}
},
"4": {
start: {
line: 13,
column: 2
},
end: {
line: 15,
column: 4
}
},
"5": {
start: {
line: 14,
column: 4
},
end: {
line: 14,
column: 13
}
},
"6": {
start: {
line: 18,
column: 0
},
end: {
line: 22,
column: 1
}
},
"7": {
start: {
line: 19,
column: 2
},
end: {
line: 21,
column: 4
}
},
"8": {
start: {
line: 20,
column: 4
},
end: {
line: 20,
column: 13
}
},
"9": {
start: {
line: 24,
column: 0
},
end: {
line: 32,
column: 1
}
},
"10": {
start: {
line: 25,
column: 2
},
end: {
line: 31,
column: 4
}
},
"11": {
start: {
line: 30,
column: 4
},
end: {
line: 30,
column: 37
}
},
"12": {
start: {
line: 34,
column: 0
},
end: {
line: 38,
column: 1
}
},
"13": {
start: {
line: 35,
column: 2
},
end: {
line: 37,
column: 4
}
},
"14": {
start: {
line: 36,
column: 4
},
end: {
line: 36,
column: 29
}
},
"15": {
start: {
line: 40,
column: 21
},
end: {
line: 40,
column: 53
}
},
"16": {
start: {
line: 41,
column: 21
},
end: {
line: 41,
column: 53
}
},
"17": {
start: {
line: 42,
column: 25
},
end: {
line: 42,
column: 61
}
},
"18": {
start: {
line: 43,
column: 17
},
end: {
line: 43,
column: 45
}
},
"19": {
start: {
line: 44,
column: 18
},
end: {
line: 44,
column: 47
}
},
"20": {
start: {
line: 45,
column: 19
},
end: {
line: 45,
column: 49
}
},
"21": {
start: {
line: 46,
column: 20
},
end: {
line: 46,
column: 51
}
},
"22": {
start: {
line: 47,
column: 21
},
end: {
line: 47,
column: 34
}
},
"23": {
start: {
line: 49,
column: 26
},
end: {
line: 49,
column: 63
}
},
"24": {
start: {
line: 50,
column: 23
},
end: {
line: 50,
column: 57
}
},
"25": {
start: {
line: 51,
column: 20
},
end: {
line: 51,
column: 51
}
},
"26": {
start: {
line: 52,
column: 22
},
end: {
line: 52,
column: 55
}
},
"27": {
start: {
line: 53,
column: 22
},
end: {
line: 53,
column: 55
}
},
"28": {
start: {
line: 54,
column: 19
},
end: {
line: 54,
column: 49
}
},
"29": {
start: {
line: 56,
column: 23
},
end: {
line: 56,
column: 57
}
},
"30": {
start: {
line: 57,
column: 24
},
end: {
line: 57,
column: 59
}
},
"31": {
start: {
line: 59,
column: 2
},
end: {
line: 59,
column: 75
}
},
"32": {
start: {
line: 61,
column: 2
},
end: {
line: 61,
column: 75
}
},
"33": {
start: {
line: 63,
column: 29
},
end: {
line: 63,
column: 69
}
},
"34": {
start: {
line: 64,
column: 23
},
end: {
line: 64,
column: 57
}
},
"35": {
start: {
line: 66,
column: 19
},
end: {
line: 66,
column: 49
}
},
"36": {
start: {
line: 68,
column: 24
},
end: {
line: 68,
column: 46
}
},
"37": {
start: {
line: 79,
column: 2
},
end: {
line: 85,
column: 4
}
},
"38": {
start: {
line: 80,
column: 4
},
end: {
line: 82,
column: 5
}
},
"39": {
start: {
line: 81,
column: 6
},
end: {
line: 81,
column: 28
}
},
"40": {
start: {
line: 84,
column: 4
},
end: {
line: 84,
column: 38
}
},
"41": {
start: {
line: 97,
column: 2
},
end: {
line: 97,
column: 54
}
},
"42": {
start: {
line: 97,
column: 32
},
end: {
line: 97,
column: 53
}
},
"43": {
start: {
line: 113,
column: 2
},
end: {
line: 118,
column: 3
}
},
"44": {
start: {
line: 117,
column: 4
},
end: {
line: 117,
column: 30
}
},
"45": {
start: {
line: 120,
column: 2
},
end: {
line: 122,
column: 3
}
},
"46": {
start: {
line: 121,
column: 4
},
end: {
line: 121,
column: 15
}
},
"47": {
start: {
line: 124,
column: 10
},
end: {
line: 124,
column: 22
}
},
"48": {
start: {
line: 125,
column: 2
},
end: {
line: 142,
column: 3
}
},
"49": {
start: {
line: 126,
column: 18
},
end: {
line: 126,
column: 26
}
},
"50": {
start: {
line: 128,
column: 4
},
end: {
line: 139,
column: 5
}
},
"51": {
start: {
line: 129,
column: 24
},
end: {
line: 129,
column: 50
}
},
"52": {
start: {
line: 131,
column: 6
},
end: {
line: 138,
column: 7
}
},
"53": {
start: {
line: 133,
column: 8
},
end: {
line: 135,
column: 9
}
},
"54": {
start: {
line: 134,
column: 10
},
end: {
line: 134,
column: 46
}
},
"55": {
start: {
line: 137,
column: 8
},
end: {
line: 137,
column: 28
}
},
"56": {
start: {
line: 141,
column: 4
},
end: {
line: 141,
column: 34
}
},
"57": {
start: {
line: 144,
column: 2
},
end: {
line: 144,
column: 13
}
},
"58": {
start: {
line: 154,
column: 2
},
end: {
line: 160,
column: 3
}
},
"59": {
start: {
line: 154,
column: 19
},
end: {
line: 154,
column: 20
}
},
"60": {
start: {
line: 155,
column: 28
},
end: {
line: 155,
column: 62
}
},
"61": {
start: {
line: 157,
column: 4
},
end: {
line: 159,
column: 5
}
},
"62": {
start: {
line: 158,
column: 6
},
end: {
line: 158,
column: 26
}
},
"63": {
start: {
line: 162,
column: 2
},
end: {
line: 162,
column: 15
}
},
"64": {
start: {
line: 172,
column: 20
},
end: {
line: 172,
column: 32
}
},
"65": {
start: {
line: 174,
column: 2
},
end: {
line: 190,
column: 3
}
},
"66": {
start: {
line: 175,
column: 28
},
end: {
line: 175,
column: 66
}
},
"67": {
start: {
line: 177,
column: 4
},
end: {
line: 189,
column: 5
}
},
"68": {
start: {
line: 178,
column: 6
},
end: {
line: 188,
column: 7
}
},
"69": {
start: {
line: 179,
column: 8
},
end: {
line: 179,
column: 48
}
},
"70": {
start: {
line: 180,
column: 13
},
end: {
line: 188,
column: 7
}
},
"71": {
start: {
line: 185,
column: 8
},
end: {
line: 185,
column: 43
}
},
"72": {
start: {
line: 187,
column: 8
},
end: {
line: 187,
column: 36
}
},
"73": {
start: {
line: 192,
column: 2
},
end: {
line: 192,
column: 19
}
},
"74": {
start: {
line: 202,
column: 2
},
end: {
line: 250,
column: 3
}
},
"75": {
start: {
line: 204,
column: 6
},
end: {
line: 204,
column: 19
}
},
"76": {
start: {
line: 208,
column: 6
},
end: {
line: 208,
column: 35
}
},
"77": {
start: {
line: 212,
column: 6
},
end: {
line: 212,
column: 36
}
},
"78": {
start: {
line: 216,
column: 6
},
end: {
line: 216,
column: 58
}
},
"79": {
start: {
line: 220,
column: 6
},
end: {
line: 220,
column: 65
}
},
"80": {
start: {
line: 224,
column: 6
},
end: {
line: 224,
column: 35
}
},
"81": {
start: {
line: 229,
column: 6
},
end: {
line: 231,
column: 7
}
},
"82": {
start: {
line: 230,
column: 8
},
end: {
line: 230,
column: 37
}
},
"83": {
start: {
line: 233,
column: 28
},
end: {
line: 233,
column: 56
}
},
"84": {
start: {
line: 234,
column: 28
},
end: {
line: 234,
column: 67
}
},
"85": {
start: {
line: 236,
column: 6
},
end: {
line: 242,
column: 7
}
},
"86": {
start: {
line: 237,
column: 28
},
end: {
line: 237,
column: 56
}
},
"87": {
start: {
line: 239,
column: 8
},
end: {
line: 241,
column: 40
}
},
"88": {
start: {
line: 244,
column: 6
},
end: {
line: 244,
column: 35
}
},
"89": {
start: {
line: 248,
column: 6
},
end: {
line: 248,
column: 35
}
},
"90": {
start: {
line: 264,
column: 2
},
end: {
line: 278,
column: 3
}
},
"91": {
start: {
line: 265,
column: 17
},
end: {
line: 265,
column: 55
}
},
"92": {
start: {
line: 267,
column: 4
},
end: {
line: 275,
column: 5
}
},
"93": {
start: {
line: 268,
column: 6
},
end: {
line: 270,
column: 7
}
},
"94": {
start: {
line: 269,
column: 8
},
end: {
line: 269,
column: 33
}
},
"95": {
start: {
line: 272,
column: 6
},
end: {
line: 274,
column: 7
}
},
"96": {
start: {
line: 273,
column: 8
},
end: {
line: 273,
column: 35
}
},
"97": {
start: {
line: 277,
column: 4
},
end: {
line: 277,
column: 36
}
},
"98": {
start: {
line: 281,
column: 4
},
end: {
line: 281,
column: 16
}
},
"99": {
start: {
line: 284,
column: 2
},
end: {
line: 284,
column: 23
}
},
"100": {
start: {
line: 288,
column: 2
},
end: {
line: 293,
column: 3
}
},
"101": {
start: {
line: 289,
column: 4
},
end: {
line: 289,
column: 36
}
},
"102": {
start: {
line: 290,
column: 4
},
end: {
line: 290,
column: 16
}
},
"103": {
start: {
line: 292,
column: 4
},
end: {
line: 292,
column: 17
}
}
},
fnMap: {
"0": {
name: "(anonymous_0)",
decl: {
start: {
line: 13,
column: 11
},
end: {
line: 13,
column: 12
}
},
loc: {
start: {
line: 13,
column: 33
},
end: {
line: 15,
column: 3
}
},
line: 13
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 19,
column: 9
},
end: {
line: 19,
column: 10
}
},
loc: {
start: {
line: 19,
column: 31
},
end: {
line: 21,
column: 3
}
},
line: 19
},
"2": {
name: "(anonymous_2)",
decl: {
start: {
line: 25,
column: 10
},
end: {
line: 25,
column: 11
}
},
loc: {
start: {
line: 29,
column: 7
},
end: {
line: 31,
column: 3
}
},
line: 29
},
"3": {
name: "(anonymous_3)",
decl: {
start: {
line: 35,
column: 14
},
end: {
line: 35,
column: 15
}
},
loc: {
start: {
line: 35,
column: 79
},
end: {
line: 37,
column: 3
}
},
line: 35
},
"4": {
name: "unapply",
decl: {
start: {
line: 76,
column: 9
},
end: {
line: 76,
column: 16
}
},
loc: {
start: {
line: 78,
column: 39
},
end: {
line: 86,
column: 1
}
},
line: 78
},
"5": {
name: "(anonymous_5)",
decl: {
start: {
line: 79,
column: 9
},
end: {
line: 79,
column: 10
}
},
loc: {
start: {
line: 79,
column: 46
},
end: {
line: 85,
column: 3
}
},
line: 79
},
"6": {
name: "unconstruct",
decl: {
start: {
line: 94,
column: 9
},
end: {
line: 94,
column: 20
}
},
loc: {
start: {
line: 96,
column: 25
},
end: {
line: 98,
column: 1
}
},
line: 96
},
"7": {
name: "(anonymous_7)",
decl: {
start: {
line: 97,
column: 9
},
end: {
line: 97,
column: 10
}
},
loc: {
start: {
line: 97,
column: 32
},
end: {
line: 97,
column: 53
}
},
line: 97
},
"8": {
name: "addToSet",
decl: {
start: {
line: 108,
column: 9
},
end: {
line: 108,
column: 17
}
},
loc: {
start: {
line: 112,
column: 27
},
end: {
line: 145,
column: 1
}
},
line: 112
},
"9": {
name: "cleanArray",
decl: {
start: {
line: 153,
column: 9
},
end: {
line: 153,
column: 19
}
},
loc: {
start: {
line: 153,
column: 52
},
end: {
line: 163,
column: 1
}
},
line: 153
},
"10": {
name: "clone",
decl: {
start: {
line: 171,
column: 9
},
end: {
line: 171,
column: 14
}
},
loc: {
start: {
line: 171,
column: 60
},
end: {
line: 193,
column: 1
}
},
line: 171
},
"11": {
name: "stringifyValue",
decl: {
start: {
line: 201,
column: 9
},
end: {
line: 201,
column: 23
}
},
loc: {
start: {
line: 201,
column: 48
},
end: {
line: 251,
column: 1
}
},
line: 201
},
"12": {
name: "lookupGetter",
decl: {
start: {
line: 260,
column: 9
},
end: {
line: 260,
column: 21
}
},
loc: {
start: {
line: 263,
column: 50
},
end: {
line: 285,
column: 1
}
},
line: 263
},
"13": {
name: "fallbackValue",
decl: {
start: {
line: 280,
column: 11
},
end: {
line: 280,
column: 24
}
},
loc: {
start: {
line: 280,
column: 33
},
end: {
line: 282,
column: 3
}
},
line: 280
},
"14": {
name: "isRegex",
decl: {
start: {
line: 287,
column: 9
},
end: {
line: 287,
column: 16
}
},
loc: {
start: {
line: 287,
column: 50
},
end: {
line: 294,
column: 1
}
},
line: 287
}
},
branchMap: {
"0": {
loc: {
start: {
line: 10,
column: 27
},
end: {
line: 10,
column: 68
}
},
type: "binary-expr",
locations: [{
start: {
line: 10,
column: 27
},
end: {
line: 10,
column: 57
}
}, {
start: {
line: 10,
column: 61
},
end: {
line: 10,
column: 68
}
}],
line: 10
},
"1": {
loc: {
start: {
line: 12,
column: 0
},
end: {
line: 16,
column: 1
}
},
type: "if",
locations: [{
start: {
line: 12,
column: 0
},
end: {
line: 16,
column: 1
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 12
},
"2": {
loc: {
start: {
line: 18,
column: 0
},
end: {
line: 22,
column: 1
}
},
type: "if",
locations: [{
start: {
line: 18,
column: 0
},
end: {
line: 22,
column: 1
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 18
},
"3": {
loc: {
start: {
line: 24,
column: 0
},
end: {
line: 32,
column: 1
}
},
type: "if",
locations: [{
start: {
line: 24,
column: 0
},
end: {
line: 32,
column: 1
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 24
},
"4": {
loc: {
start: {
line: 34,
column: 0
},
end: {
line: 38,
column: 1
}
},
type: "if",
locations: [{
start: {
line: 34,
column: 0
},
end: {
line: 38,
column: 1
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 34
},
"5": {
loc: {
start: {
line: 59,
column: 2
},
end: {
line: 59,
column: 75
}
},
type: "cond-expr",
locations: [{
start: {
line: 59,
column: 34
},
end: {
line: 59,
column: 38
}
}, {
start: {
line: 59,
column: 41
},
end: {
line: 59,
column: 75
}
}],
line: 59
},
"6": {
loc: {
start: {
line: 61,
column: 2
},
end: {
line: 61,
column: 75
}
},
type: "cond-expr",
locations: [{
start: {
line: 61,
column: 34
},
end: {
line: 61,
column: 38
}
}, {
start: {
line: 61,
column: 41
},
end: {
line: 61,
column: 75
}
}],
line: 61
},
"7": {
loc: {
start: {
line: 80,
column: 4
},
end: {
line: 82,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 80,
column: 4
},
end: {
line: 82,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 80
},
"8": {
loc: {
start: {
line: 111,
column: 2
},
end: {
line: 111,
column: 75
}
},
type: "default-arg",
locations: [{
start: {
line: 111,
column: 58
},
end: {
line: 111,
column: 75
}
}],
line: 111
},
"9": {
loc: {
start: {
line: 113,
column: 2
},
end: {
line: 118,
column: 3
}
},
type: "if",
locations: [{
start: {
line: 113,
column: 2
},
end: {
line: 118,
column: 3
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 113
},
"10": {
loc: {
start: {
line: 120,
column: 2
},
end: {
line: 122,
column: 3
}
},
type: "if",
locations: [{
start: {
line: 120,
column: 2
},
end: {
line: 122,
column: 3
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 120
},
"11": {
loc: {
start: {
line: 128,
column: 4
},
end: {
line: 139,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 128,
column: 4
},
end: {
line: 139,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 128
},
"12": {
loc: {
start: {
line: 131,
column: 6
},
end: {
line: 138,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 131,
column: 6
},
end: {
line: 138,
column: 7
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 131
},
"13": {
loc: {
start: {
line: 133,
column: 8
},
end: {
line: 135,
column: 9
}
},
type: "if",
locations: [{
start: {
line: 133,
column: 8
},
end: {
line: 135,
column: 9
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 133
},
"14": {
loc: {
start: {
line: 157,
column: 4
},
end: {
line: 159,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 157,
column: 4
},
end: {
line: 159,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 157
},
"15": {
loc: {
start: {
line: 177,
column: 4
},
end: {
line: 189,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 177,
column: 4
},
end: {
line: 189,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 177
},
"16": {
loc: {
start: {
line: 178,
column: 6
},
end: {
line: 188,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 178,
column: 6
},
end: {
line: 188,
column: 7
}
}, {
start: {
line: 180,
column: 13
},
end: {
line: 188,
column: 7
}
}],
line: 178
},
"17": {
loc: {
start: {
line: 180,
column: 13
},
end: {
line: 188,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 180,
column: 13
},
end: {
line: 188,
column: 7
}
}, {
start: {
line: 186,
column: 13
},
end: {
line: 188,
column: 7
}
}],
line: 180
},
"18": {
loc: {
start: {
line: 181,
column: 8
},
end: {
line: 183,
column: 36
}
},
type: "binary-expr",
locations: [{
start: {
line: 181,
column: 8
},
end: {
line: 181,
column: 13
}
}, {
start: {
line: 182,
column: 8
},
end: {
line: 182,
column: 33
}
}, {
start: {
line: 183,
column: 8
},
end: {
line: 183,
column: 36
}
}],
line: 181
},
"19": {
loc: {
start: {
line: 202,
column: 2
},
end: {
line: 250,
column: 3
}
},
type: "switch",
locations: [{
start: {
line: 203,
column: 4
},
end: {
line: 205,
column: 5
}
}, {
start: {
line: 207,
column: 4
},
end: {
line: 209,
column: 5
}
}, {
start: {
line: 211,
column: 4
},
end: {
line: 213,
column: 5
}
}, {
start: {
line: 215,
column: 4
},
end: {
line: 217,
column: 5
}
}, {
start: {
line: 219,
column: 4
},
end: {
line: 221,
column: 5
}
}, {
start: {
line: 223,
column: 4
},
end: {
line: 225,
column: 5
}
}, {
start: {
line: 227,
column: 4
},
end: {
line: 227,
column: 20
}
}, {
start: {
line: 228,
column: 4
},
end: {
line: 245,
column: 5
}
}, {
start: {
line: 247,
column: 4
},
end: {
line: 249,
column: 5
}
}],
line: 202
},
"20": {
loc: {
start: {
line: 216,
column: 13
},
end: {
line: 216,
column: 57
}
},
type: "cond-expr",
locations: [{
start: {
line: 216,
column: 30
},
end: {
line: 216,
column: 51
}
}, {
start: {
line: 216,
column: 54
},
end: {
line: 216,
column: 57
}
}],
line: 216
},
"21": {
loc: {
start: {
line: 220,
column: 13
},
end: {
line: 220,
column: 64
}
},
type: "cond-expr",
locations: [{
start: {
line: 220,
column: 30
},
end: {
line: 220,
column: 51
}
}, {
start: {
line: 220,
column: 54
},
end: {
line: 220,
column: 64
}
}],
line: 220
},
"22": {
loc: {
start: {
line: 229,
column: 6
},
end: {
line: 231,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 229,
column: 6
},
end: {
line: 231,
column: 7
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 229
},
"23": {
loc: {
start: {
line: 236,
column: 6
},
end: {
line: 242,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 236,
column: 6
},
end: {
line: 242,
column: 7
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 236
},
"24": {
loc: {
start: {
line: 239,
column: 15
},
end: {
line: 241,
column: 39
}
},
type: "cond-expr",
locations: [{
start: {
line: 240,
column: 12
},
end: {
line: 240,
column: 23
}
}, {
start: {
line: 241,
column: 12
},
end: {
line: 241,
column: 39
}
}],
line: 239
},
"25": {
loc: {
start: {
line: 267,
column: 4
},
end: {
line: 275,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 267,
column: 4
},
end: {
line: 275,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 267
},
"26": {
loc: {
start: {
line: 268,
column: 6
},
end: {
line: 270,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 268,
column: 6
},
end: {
line: 270,
column: 7
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 268
},
"27": {
loc: {
start: {
line: 272,
column: 6
},
end: {
line: 274,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 272,
column: 6
},
end: {
line: 274,
column: 7
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 272
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0,
"15": 0,
"16": 0,
"17": 0,
"18": 0,
"19": 0,
"20": 0,
"21": 0,
"22": 0,
"23": 0,
"24": 0,
"25": 0,
"26": 0,
"27": 0,
"28": 0,
"29": 0,
"30": 0,
"31": 0,
"32": 0,
"33": 0,
"34": 0,
"35": 0,
"36": 0,
"37": 0,
"38": 0,
"39": 0,
"40": 0,
"41": 0,
"42": 0,
"43": 0,
"44": 0,
"45": 0,
"46": 0,
"47": 0,
"48": 0,
"49": 0,
"50": 0,
"51": 0,
"52": 0,
"53": 0,
"54": 0,
"55": 0,
"56": 0,
"57": 0,
"58": 0,
"59": 0,
"60": 0,
"61": 0,
"62": 0,
"63": 0,
"64": 0,
"65": 0,
"66": 0,
"67": 0,
"68": 0,
"69": 0,
"70": 0,
"71": 0,
"72": 0,
"73": 0,
"74": 0,
"75": 0,
"76": 0,
"77": 0,
"78": 0,
"79": 0,
"80": 0,
"81": 0,
"82": 0,
"83": 0,
"84": 0,
"85": 0,
"86": 0,
"87": 0,
"88": 0,
"89": 0,
"90": 0,
"91": 0,
"92": 0,
"93": 0,
"94": 0,
"95": 0,
"96": 0,
"97": 0,
"98": 0,
"99": 0,
"100": 0,
"101": 0,
"102": 0,
"103": 0
},
f: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0
},
b: {
"0": [0, 0],
"1": [0, 0],
"2": [0, 0],
"3": [0, 0],
"4": [0, 0],
"5": [0, 0],
"6": [0, 0],
"7": [0, 0],
"8": [0],
"9": [0, 0],
"10": [0, 0],
"11": [0, 0],
"12": [0, 0],
"13": [0, 0],
"14": [0, 0],
"15": [0, 0],
"16": [0, 0],
"17": [0, 0],
"18": [0, 0, 0],
"19": [0, 0, 0, 0, 0, 0, 0, 0, 0],
"20": [0, 0],
"21": [0, 0],
"22": [0, 0],
"23": [0, 0],
"24": [0, 0],
"25": [0, 0],
"26": [0, 0],
"27": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "770472368ad06d0ff895b0e27e0d534b59a593be"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_1y5s59mky6 = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_1y5s59mky6();
const {
entries,
setPrototypeOf,
isFrozen,
getPrototypeOf,
getOwnPropertyDescriptor
} = (cov_1y5s59mky6().s[0]++, Object);
let {
freeze,
seal,
create
} = (cov_1y5s59mky6().s[1]++, Object); // eslint-disable-line import/no-mutable-exports
let {
apply,
construct
} = (cov_1y5s59mky6().s[2]++, (cov_1y5s59mky6().b[0][0]++, typeof Reflect !== 'undefined') && (cov_1y5s59mky6().b[0][1]++, Reflect));
cov_1y5s59mky6().s[3]++;
if (!freeze) {
cov_1y5s59mky6().b[1][0]++;
cov_1y5s59mky6().s[4]++;
freeze = function (x) {
cov_1y5s59mky6().f[0]++;
cov_1y5s59mky6().s[5]++;
return x;
};
} else {
cov_1y5s59mky6().b[1][1]++;
}
cov_1y5s59mky6().s[6]++;
if (!seal) {
cov_1y5s59mky6().b[2][0]++;
cov_1y5s59mky6().s[7]++;
seal = function (x) {
cov_1y5s59mky6().f[1]++;
cov_1y5s59mky6().s[8]++;
return x;
};
} else {
cov_1y5s59mky6().b[2][1]++;
}
cov_1y5s59mky6().s[9]++;
if (!apply) {
cov_1y5s59mky6().b[3][0]++;
cov_1y5s59mky6().s[10]++;
apply = function (func, thisArg, ...args) {
cov_1y5s59mky6().f[2]++;
cov_1y5s59mky6().s[11]++;
return func.apply(thisArg, args);
};
} else {
cov_1y5s59mky6().b[3][1]++;
}
cov_1y5s59mky6().s[12]++;
if (!construct) {
cov_1y5s59mky6().b[4][0]++;
cov_1y5s59mky6().s[13]++;
construct = function (Func, ...args) {
cov_1y5s59mky6().f[3]++;
cov_1y5s59mky6().s[14]++;
return new Func(...args);
};
} else {
cov_1y5s59mky6().b[4][1]++;
}
const arrayForEach = (cov_1y5s59mky6().s[15]++, unapply(Array.prototype.forEach));
(cov_1y5s59mky6().s[16]++, unapply(Array.prototype.indexOf));
const arrayLastIndexOf = (cov_1y5s59mky6().s[17]++, unapply(Array.prototype.lastIndexOf));
const arrayPop = (cov_1y5s59mky6().s[18]++, unapply(Array.prototype.pop));
const arrayPush = (cov_1y5s59mky6().s[19]++, unapply(Array.prototype.push));
(cov_1y5s59mky6().s[20]++, unapply(Array.prototype.slice));
const arraySplice = (cov_1y5s59mky6().s[21]++, unapply(Array.prototype.splice));
const arrayIsArray = (cov_1y5s59mky6().s[22]++, Array.isArray);
const stringToLowerCase = (cov_1y5s59mky6().s[23]++, unapply(String.prototype.toLowerCase));
const stringToString = (cov_1y5s59mky6().s[24]++, unapply(String.prototype.toString));
const stringMatch = (cov_1y5s59mky6().s[25]++, unapply(String.prototype.match));
const stringReplace = (cov_1y5s59mky6().s[26]++, unapply(String.prototype.replace));
const stringIndexOf = (cov_1y5s59mky6().s[27]++, unapply(String.prototype.indexOf));
const stringTrim = (cov_1y5s59mky6().s[28]++, unapply(String.prototype.trim));
const numberToString = (cov_1y5s59mky6().s[29]++, unapply(Number.prototype.toString));
const booleanToString = (cov_1y5s59mky6().s[30]++, unapply(Boolean.prototype.toString));
const bigintToString = (cov_1y5s59mky6().s[31]++, typeof BigInt === 'undefined' ? (cov_1y5s59mky6().b[5][0]++, null) : (cov_1y5s59mky6().b[5][1]++, unapply(BigInt.prototype.toString)));
const symbolToString = (cov_1y5s59mky6().s[32]++, typeof Symbol === 'undefined' ? (cov_1y5s59mky6().b[6][0]++, null) : (cov_1y5s59mky6().b[6][1]++, unapply(Symbol.prototype.toString)));
const objectHasOwnProperty = (cov_1y5s59mky6().s[33]++, unapply(Object.prototype.hasOwnProperty));
const objectToString = (cov_1y5s59mky6().s[34]++, unapply(Object.prototype.toString));
const regExpTest = (cov_1y5s59mky6().s[35]++, unapply(RegExp.prototype.test));
const typeErrorCreate = (cov_1y5s59mky6().s[36]++, unconstruct(TypeError));
/**
* Creates a new function that calls the given function with a specified thisArg and arguments.
*
* @param func - The function to be wrapped and called.
* @returns A new function that calls the given function with a specified thisArg and arguments.
*/
function unapply(func) {
cov_1y5s59mky6().f[4]++;
cov_1y5s59mky6().s[37]++;
return (thisArg, ...args) => {
cov_1y5s59mky6().f[5]++;
cov_1y5s59mky6().s[38]++;
if (thisArg instanceof RegExp) {
cov_1y5s59mky6().b[7][0]++;
cov_1y5s59mky6().s[39]++;
thisArg.lastIndex = 0;
} else {
cov_1y5s59mky6().b[7][1]++;
}
cov_1y5s59mky6().s[40]++;
return apply(func, thisArg, args);
};
}
/**
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
*
* @param func - The constructor function to be wrapped and called.
* @returns A new function that constructs an instance of the given constructor function with the provided arguments.
*/
function unconstruct(Func) {
cov_1y5s59mky6().f[6]++;
cov_1y5s59mky6().s[41]++;
return (...args) => {
cov_1y5s59mky6().f[7]++;
cov_1y5s59mky6().s[42]++;
return construct(Func, args);
};
}
/**
* Add properties to a lookup table
*
* @param set - The set to which elements will be added.
* @param array - The array containing elements to be added to the set.
* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
* @returns The modified set with added elements.
*/
function addToSet(set, array, transformCaseFunc = (cov_1y5s59mky6().b[8][0]++, stringToLowerCase)) {
cov_1y5s59mky6().f[8]++;
cov_1y5s59mky6().s[43]++;
if (setPrototypeOf) {
cov_1y5s59mky6().b[9][0]++;
cov_1y5s59mky6().s[44]++;
// Make 'in' and truthy checks like Boolean(set.constructor)
// independent of any properties defined on Object.prototype.
// Prevent prototype setters from intercepting set as a this value.
setPrototypeOf(set, null);
} else {
cov_1y5s59mky6().b[9][1]++;
}
cov_1y5s59mky6().s[45]++;
if (!arrayIsArray(array)) {
cov_1y5s59mky6().b[10][0]++;
cov_1y5s59mky6().s[46]++;
return set;
} else {
cov_1y5s59mky6().b[10][1]++;
}
let l = (cov_1y5s59mky6().s[47]++, array.length);
cov_1y5s59mky6().s[48]++;
while (l--) {
let element = (cov_1y5s59mky6().s[49]++, array[l]);