UNPKG

awv3

Version:
1,411 lines (1,410 loc) 306 kB
{ "type": "Program", "start": 0, "end": 2909, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 111, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportNamedDeclaration", "start": 0, "end": 233, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 7, "column": 1 } }, "declaration": { "type": "FunctionDeclaration", "start": 7, "end": 233, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 7, "column": 1 } }, "id": { "type": "Identifier", "start": 16, "end": 20, "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 20 } }, "name": "guid" }, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 23, "end": 233, "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 7, "column": 1 } }, "body": [ { "type": "ReturnStatement", "start": 30, "end": 230, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 6, "column": 7 } }, "argument": { "type": "CallExpression", "start": 37, "end": 229, "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 6, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 37, "end": 83, "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 57 } }, "object": { "type": "Literal", "start": 37, "end": 75, "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 49 } }, "value": "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "rawValue": "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "raw": "'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'" }, "property": { "type": "Identifier", "start": 76, "end": 83, "loc": { "start": { "line": 2, "column": 50 }, "end": { "line": 2, "column": 57 } }, "name": "replace" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 84, "end": 91, "loc": { "start": { "line": 2, "column": 58 }, "end": { "line": 2, "column": 65 } }, "value": {}, "rawValue": {}, "raw": "/[xy]/g", "regex": { "pattern": "[xy]", "flags": "g" } }, { "type": "ArrowFunctionExpression", "start": 93, "end": 228, "loc": { "start": { "line": 2, "column": 67 }, "end": { "line": 6, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 93, "end": 94, "loc": { "start": { "line": 2, "column": 67 }, "end": { "line": 2, "column": 68 } }, "name": "c" } ], "body": { "type": "BlockStatement", "start": 98, "end": 228, "loc": { "start": { "line": 2, "column": 72 }, "end": { "line": 6, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 109, "end": 189, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 4, "column": 47 } }, "declarations": [ { "type": "VariableDeclarator", "start": 113, "end": 139, "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 38 } }, "id": { "type": "Identifier", "start": 113, "end": 114, "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 13 } }, "name": "r" }, "init": { "type": "BinaryExpression", "start": 117, "end": 139, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 38 } }, "left": { "type": "BinaryExpression", "start": 117, "end": 135, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 34 } }, "left": { "type": "CallExpression", "start": 117, "end": 130, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 117, "end": 128, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 27 } }, "object": { "type": "Identifier", "start": 117, "end": 121, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 20 } }, "name": "Math" }, "property": { "type": "Identifier", "start": 122, "end": 128, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 27 } }, "name": "random" }, "computed": false }, "arguments": [] }, "operator": "*", "right": { "type": "Literal", "start": 133, "end": 135, "loc": { "start": { "line": 3, "column": 32 }, "end": { "line": 3, "column": 34 } }, "value": 16, "rawValue": 16, "raw": "16" } }, "operator": "|", "right": { "type": "Literal", "start": 138, "end": 139, "loc": { "start": { "line": 3, "column": 37 }, "end": { "line": 3, "column": 38 } }, "value": 0, "rawValue": 0, "raw": "0" } } }, { "type": "VariableDeclarator", "start": 154, "end": 188, "loc": { "start": { "line": 4, "column": 12 }, "end": { "line": 4, "column": 46 } }, "id": { "type": "Identifier", "start": 154, "end": 155, "loc": { "start": { "line": 4, "column": 12 }, "end": { "line": 4, "column": 13 } }, "name": "v" }, "init": { "type": "ConditionalExpression", "start": 158, "end": 188, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 46 } }, "test": { "type": "BinaryExpression", "start": 158, "end": 166, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 24 } }, "left": { "type": "Identifier", "start": 158, "end": 159, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 17 } }, "name": "c" }, "operator": "==", "right": { "type": "Literal", "start": 163, "end": 166, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 24 } }, "value": "x", "rawValue": "x", "raw": "'x'" } }, "consequent": { "type": "Identifier", "start": 169, "end": 170, "loc": { "start": { "line": 4, "column": 27 }, "end": { "line": 4, "column": 28 } }, "name": "r" }, "alternate": { "type": "BinaryExpression", "start": 174, "end": 187, "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 45 } }, "left": { "type": "BinaryExpression", "start": 174, "end": 181, "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 39 } }, "left": { "type": "Identifier", "start": 174, "end": 175, "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 33 } }, "name": "r" }, "operator": "&", "right": { "type": "Literal", "start": 178, "end": 181, "loc": { "start": { "line": 4, "column": 36 }, "end": { "line": 4, "column": 39 } }, "value": 3, "rawValue": 3, "raw": "0x3" } }, "operator": "|", "right": { "type": "Literal", "start": 184, "end": 187, "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 4, "column": 45 } }, "value": 8, "rawValue": 8, "raw": "0x8" }, "parenthesizedExpression": true } } } ], "kind": "var" }, { "type": "ReturnStatement", "start": 199, "end": 221, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 30 } }, "argument": { "type": "CallExpression", "start": 206, "end": 220, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 206, "end": 216, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 25 } }, "object": { "type": "Identifier", "start": 206, "end": 207, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 16 } }, "name": "v" }, "property": { "type": "Identifier", "start": 208, "end": 216, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 25 } }, "name": "toString" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 217, "end": 219, "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 28 } }, "value": 16, "rawValue": 16, "raw": "16" } ] } } ] } } ] } } ] }, "leadingComments": [], "trailingComments": [] }, "specifiers": [], "source": null }, { "type": "ExportNamedDeclaration", "start": 237, "end": 584, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 18, "column": 1 } }, "declaration": { "type": "FunctionDeclaration", "start": 244, "end": 584, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 18, "column": 1 } }, "id": { "type": "Identifier", "start": 253, "end": 256, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 19 } }, "name": "url" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 257, "end": 262, "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 25 } }, "name": "param" } ], "body": { "type": "BlockStatement", "start": 264, "end": 584, "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 18, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "start": 271, "end": 368, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 11, "column": 44 } }, "declarations": [ { "type": "VariableDeclarator", "start": 275, "end": 321, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 54 } }, "id": { "type": "Identifier", "start": 275, "end": 283, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 16 } }, "name": "sPageURL" }, "init": { "type": "CallExpression", "start": 286, "end": 321, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 54 } }, "callee": { "type": "MemberExpression", "start": 286, "end": 318, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 51 } }, "object": { "type": "MemberExpression", "start": 286, "end": 308, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 41 } }, "object": { "type": "MemberExpression", "start": 286, "end": 301, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 34 } }, "object": { "type": "Identifier", "start": 286, "end": 292, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 25 } }, "name": "window" }, "property": { "type": "Identifier", "start": 293, "end": 301, "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 34 } }, "name": "location" }, "computed": false }, "property": { "type": "Identifier", "start": 302, "end": 308, "loc": { "start": { "line": 10, "column": 35 }, "end": { "line": 10, "column": 41 } }, "name": "search" }, "computed": false }, "property": { "type": "Identifier", "start": 309, "end": 318, "loc": { "start": { "line": 10, "column": 42 }, "end": { "line": 10, "column": 51 } }, "name": "substring" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 319, "end": 320, "loc": { "start": { "line": 10, "column": 52 }, "end": { "line": 10, "column": 53 } }, "value": 1, "rawValue": 1, "raw": "1" } ] } }, { "type": "VariableDeclarator", "start": 332, "end": 367, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 43 } }, "id": { "type": "Identifier", "start": 332, "end": 345, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 21 } }, "name": "sURLVariables" }, "init": { "type": "CallExpression", "start": 348, "end": 367, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 348, "end": 362, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 38 } }, "object": { "type": "Identifier", "start": 348, "end": 356, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 32 } }, "name": "sPageURL" }, "property": { "type": "Identifier", "start": 357, "end": 362, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 38 } }, "name": "split" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 363, "end": 366, "loc": { "start": { "line": 11, "column": 39 }, "end": { "line": 11, "column": 42 } }, "value": "&", "rawValue": "&", "raw": "'&'" } ] } } ], "kind": "var" }, { "type": "ForStatement", "start": 374, "end": 581, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 17, "column": 5 } }, "init": { "type": "VariableDeclaration", "start": 379, "end": 388, "loc": { "start": { "line": 12, "column": 9 }, "end": { "line": 12, "column": 18 } }, "declarations": [ { "type": "VariableDeclarator", "start": 383, "end": 388, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 18 } }, "id": { "type": "Identifier", "start": 383, "end": 384, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 14 } }, "name": "i" }, "init": { "type": "Literal", "start": 387, "end": 388, "loc": { "start": { "line": 12, "column": 17 }, "end": { "line": 12, "column": 18 } }, "value": 0, "rawValue": 0, "raw": "0" } } ], "kind": "var" }, "test": { "type": "BinaryExpression", "start": 390, "end": 414, "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 44 } }, "left": { "type": "Identifier", "start": 390, "end": 391, "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 21 } }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 394, "end": 414, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 44 } }, "object": { "type": "Identifier", "start": 394, "end": 407, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 37 } }, "name": "sURLVariables" }, "property": { "type": "Identifier", "start": 408, "end": 414, "loc": { "start": { "line": 12, "column": 38 }, "end": { "line": 12, "column": 44 } }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 416, "end": 419, "loc": { "start": { "line": 12, "column": 46 }, "end": { "line": 12, "column": 49 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 416, "end": 417, "loc": { "start": { "line": 12, "column": 46 }, "end": { "line": 12, "column": 47 } }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 421, "end": 581, "loc": { "start": { "line": 12, "column": 51 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 432, "end": 481, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 57 } }, "declarations": [ { "type": "VariableDeclarator", "start": 436, "end": 480, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 56 } }, "id": { "type": "Identifier", "start": 436, "end": 450, "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 26 } }, "name": "sParameterName" }, "init": { "type": "CallExpression", "start": 453, "end": 480, "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 56 } }, "callee": { "type": "MemberExpression", "start": 453, "end": 475, "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 51 } }, "object": { "type": "MemberExpression", "start": 453, "end": 469, "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 45 } }, "object": { "type": "Identifier", "start": 453,