2021-01-15 13:30:44 +03:00
|
|
|
{
|
|
|
|
"type": "Module",
|
|
|
|
"span": {
|
|
|
|
"start": 0,
|
|
|
|
"end": 276,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "ExportDeclaration",
|
|
|
|
"span": {
|
|
|
|
"start": 0,
|
|
|
|
"end": 276,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"declaration": {
|
|
|
|
"type": "FunctionDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 16,
|
|
|
|
"end": 27,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "removeClass",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
|
|
|
"start": 29,
|
|
|
|
"end": 45,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 29,
|
|
|
|
"end": 45,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "node",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
2021-01-15 13:30:44 +03:00
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
|
|
|
"start": 33,
|
|
|
|
"end": 45,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
|
|
|
"start": 34,
|
|
|
|
"end": 45,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 34,
|
|
|
|
"end": 45,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "HTMLElement",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
2021-02-19 09:34:22 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
|
|
|
"start": 47,
|
|
|
|
"end": 63,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 47,
|
|
|
|
"end": 63,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "className",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
2021-01-15 13:30:44 +03:00
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
|
|
|
"start": 56,
|
|
|
|
"end": 63,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
|
|
|
"start": 57,
|
|
|
|
"end": 63,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "string"
|
|
|
|
}
|
2021-02-19 09:34:22 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
|
|
|
"start": 7,
|
|
|
|
"end": 276,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
|
|
|
"start": 65,
|
|
|
|
"end": 276,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
|
|
|
"start": 68,
|
|
|
|
"end": 274,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 68,
|
|
|
|
"end": 273,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 68,
|
|
|
|
"end": 82,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 68,
|
|
|
|
"end": 72,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "node",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 73,
|
|
|
|
"end": 82,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "className",
|
|
|
|
"optional": false
|
2022-01-10 16:54:42 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "CallExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 85,
|
|
|
|
"end": 273,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"callee": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 85,
|
|
|
|
"end": 107,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 85,
|
|
|
|
"end": 99,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 85,
|
|
|
|
"end": 89,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "node",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 90,
|
|
|
|
"end": 99,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "className",
|
|
|
|
"optional": false
|
2022-01-10 16:54:42 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 100,
|
|
|
|
"end": 107,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "replace",
|
|
|
|
"optional": false
|
2022-01-10 16:54:42 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"spread": null,
|
|
|
|
"expression": {
|
|
|
|
"type": "CallExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 108,
|
|
|
|
"end": 135,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"callee": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 108,
|
|
|
|
"end": 124,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "_classNameRegexp",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"spread": null,
|
|
|
|
"expression": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 125,
|
|
|
|
"end": 134,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "className",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"typeArguments": null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"spread": null,
|
|
|
|
"expression": {
|
|
|
|
"type": "FunctionExpression",
|
|
|
|
"identifier": null,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
|
|
|
"start": 147,
|
|
|
|
"end": 157,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 147,
|
|
|
|
"end": 157,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "everything",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
|
|
|
"start": 159,
|
|
|
|
"end": 172,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 159,
|
|
|
|
"end": 172,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "leftDelimiter",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
|
|
|
"start": 174,
|
|
|
|
"end": 178,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 174,
|
|
|
|
"end": 178,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "name",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
|
|
|
"start": 180,
|
|
|
|
"end": 194,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 180,
|
|
|
|
"end": 194,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "rightDelimiter",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
|
|
|
"start": 137,
|
|
|
|
"end": 272,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
|
|
|
"start": 196,
|
|
|
|
"end": 272,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ReturnStatement",
|
|
|
|
"span": {
|
|
|
|
"start": 200,
|
|
|
|
"end": 269,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "ConditionalExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 207,
|
|
|
|
"end": 268,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "BinaryExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 207,
|
|
|
|
"end": 257,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "===",
|
|
|
|
"left": {
|
|
|
|
"type": "BinaryExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 207,
|
|
|
|
"end": 251,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "+",
|
|
|
|
"left": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 207,
|
|
|
|
"end": 227,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 207,
|
|
|
|
"end": 220,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "leftDelimiter",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 221,
|
|
|
|
"end": 227,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "length",
|
|
|
|
"optional": false
|
2022-01-10 16:54:42 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 230,
|
|
|
|
"end": 251,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 230,
|
|
|
|
"end": 244,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "rightDelimiter",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 245,
|
|
|
|
"end": 251,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "length",
|
|
|
|
"optional": false
|
2022-01-10 16:54:42 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
|
|
|
"start": 256,
|
|
|
|
"end": 257,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 2.0,
|
|
|
|
"raw": "2"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"consequent": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
|
|
|
"start": 260,
|
|
|
|
"end": 263,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": " ",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "' '"
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"alternate": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
|
|
|
"start": 266,
|
|
|
|
"end": 268,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "''"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"typeArguments": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"interpreter": null
|
|
|
|
}
|