UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,584 lines (1,583 loc) 6.09 MB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 0, 12 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } } }, "range": [ 0, 13 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "__extends", "range": [ 18, 27 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 13 } } }, "init": { "type": "LogicalExpression", "operator": "||", "left": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "ThisExpression", "range": [ 31, 35 ], "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 21 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 39, 43 ], "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 2, "column": 29 } } }, "property": { "type": "Identifier", "name": "__extends", "range": [ 44, 53 ], "loc": { "start": { "line": 2, "column": 30 }, "end": { "line": 2, "column": 39 } } }, "range": [ 39, 53 ], "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 2, "column": 39 } } }, "range": [ 31, 53 ], "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 39 } } }, "right": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "d", "range": [ 68, 69 ], "loc": { "start": { "line": 2, "column": 54 }, "end": { "line": 2, "column": 55 } } }, { "type": "Identifier", "name": "b", "range": [ 71, 72 ], "loc": { "start": { "line": 2, "column": 57 }, "end": { "line": 2, "column": 58 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ForInStatement", "left": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "p", "range": [ 89, 90 ], "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 14 } } }, "init": null, "range": [ 89, 90 ], "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 14 } } } ], "kind": "var", "range": [ 85, 90 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 14 } } }, "right": { "type": "Identifier", "name": "b", "range": [ 94, 95 ], "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 19 } } }, "body": { "type": "IfStatement", "test": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "b", "range": [ 101, 102 ], "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 26 } } }, "property": { "type": "Identifier", "name": "hasOwnProperty", "range": [ 103, 117 ], "loc": { "start": { "line": 3, "column": 27 }, "end": { "line": 3, "column": 41 } } }, "range": [ 101, 117 ], "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 41 } } }, "arguments": [ { "type": "Identifier", "name": "p", "range": [ 118, 119 ], "loc": { "start": { "line": 3, "column": 42 }, "end": { "line": 3, "column": 43 } } } ], "range": [ 101, 120 ], "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 44 } } }, "consequent": { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "d", "range": [ 122, 123 ], "loc": { "start": { "line": 3, "column": 46 }, "end": { "line": 3, "column": 47 } } }, "property": { "type": "Identifier", "name": "p", "range": [ 124, 125 ], "loc": { "start": { "line": 3, "column": 48 }, "end": { "line": 3, "column": 49 } } }, "range": [ 122, 126 ], "loc": { "start": { "line": 3, "column": 46 }, "end": { "line": 3, "column": 50 } } }, "right": { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "b", "range": [ 129, 130 ], "loc": { "start": { "line": 3, "column": 53 }, "end": { "line": 3, "column": 54 } } }, "property": { "type": "Identifier", "name": "p", "range": [ 131, 132 ], "loc": { "start": { "line": 3, "column": 55 }, "end": { "line": 3, "column": 56 } } }, "range": [ 129, 133 ], "loc": { "start": { "line": 3, "column": 53 }, "end": { "line": 3, "column": 57 } } }, "range": [ 122, 133 ], "loc": { "start": { "line": 3, "column": 46 }, "end": { "line": 3, "column": 57 } } }, "range": [ 122, 134 ], "loc": { "start": { "line": 3, "column": 46 }, "end": { "line": 3, "column": 58 } } }, "alternate": null, "range": [ 97, 134 ], "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 58 } } }, "each": false, "range": [ 80, 134 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 58 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "__", "range": [ 148, 150 ], "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 15 } } }, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 155, 159 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 24 } } }, "property": { "type": "Identifier", "name": "constructor", "range": [ 160, 171 ], "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 36 } } }, "range": [ 155, 171 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 36 } } }, "right": { "type": "Identifier", "name": "d", "range": [ 174, 175 ], "loc": { "start": { "line": 4, "column": 39 }, "end": { "line": 4, "column": 40 } } }, "range": [ 155, 175 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 40 } } }, "range": [ 155, 176 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 41 } } } ], "range": [ 153, 178 ], "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 43 } } }, "generator": false, "expression": false, "range": [ 139, 178 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 43 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "d", "range": [ 183, 184 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 5 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 185, 194 ], "loc": { "start": { "line": 5, "column": 6 }, "end": { "line": 5, "column": 15 } } }, "range": [ 183, 194 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 15 } } }, "right": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "b", "range": [ 197, 198 ], "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 19 } } }, "right": { "type": "Literal", "value": null, "raw": "null", "range": [ 203, 207 ], "loc": { "start": { "line": 5, "column": 24 }, "end": { "line": 5, "column": 28 } } }, "range": [ 197, 207 ], "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 28 } } }, "consequent": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Object", "range": [ 210, 216 ], "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 37 } } }, "property": { "type": "Identifier", "name": "create", "range": [ 217, 223 ], "loc": { "start": { "line": 5, "column": 38 }, "end": { "line": 5, "column": 44 } } }, "range": [ 210, 223 ], "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 44 } } }, "arguments": [ { "type": "Identifier", "name": "b", "range": [ 224, 225 ], "loc": { "start": { "line": 5, "column": 45 }, "end": { "line": 5, "column": 46 } } } ], "range": [ 210, 226 ], "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 47 } } }, "alternate": { "type": "SequenceExpression", "expressions": [ { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "__", "range": [ 230, 232 ], "loc": { "start": { "line": 5, "column": 51 }, "end": { "line": 5, "column": 53 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 233, 242 ], "loc": { "start": { "line": 5, "column": 54 }, "end": { "line": 5, "column": 63 } } }, "range": [ 230, 242 ], "loc": { "start": { "line": 5, "column": 51 }, "end": { "line": 5, "column": 63 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "b", "range": [ 245, 246 ], "loc": { "start": { "line": 5, "column": 66 }, "end": { "line": 5, "column": 67 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 247, 256 ], "loc": { "start": { "line": 5, "column": 68 }, "end": { "line": 5, "column": 77 } } }, "range": [ 245, 256 ], "loc": { "start": { "line": 5, "column": 66 }, "end": { "line": 5, "column": 77 } } }, "range": [ 230, 256 ], "loc": { "start": { "line": 5, "column": 51 }, "end": { "line": 5, "column": 77 } } }, { "type": "NewExpression", "callee": { "type": "Identifier", "name": "__", "range": [ 262, 264 ], "loc": { "start": { "line": 5, "column": 83 }, "end": { "line": 5, "column": 85 } } }, "arguments": [], "range": [ 258, 266 ], "loc": { "start": { "line": 5, "column": 79 }, "end": { "line": 5, "column": 87 } } } ], "range": [ 230, 266 ], "loc": { "start": { "line": 5, "column": 51 }, "end": { "line": 5, "column": 87 } } }, "range": [ 197, 267 ], "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 88 } } }, "range": [ 183, 267 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 88 } } }, "range": [ 183, 268 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 89 } } } ], "range": [ 74, 270 ], "loc": { "start": { "line": 2, "column": 60 }, "end": { "line": 6, "column": 1 } } }, "generator": false, "expression": false, "range": [ 58, 270 ], "loc": { "start": { "line": 2, "column": 44 }, "end": { "line": 6, "column": 1 } } }, "range": [ 30, 270 ], "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 6, "column": 1 } } }, "range": [ 18, 270 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 6, "column": 1 } } } ], "kind": "var", "range": [ 14, 271 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 6, "column": 2 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "chai_1", "range": [ 276, 282 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 10 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 285, 292 ], "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 293, 299 ], "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 27 } } } ], "range": [ 285, 300 ], "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 28 } } }, "range": [ 276, 300 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 28 } } } ], "kind": "var", "range": [ 272, 301 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Rx", "range": [ 306, 308 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 311, 318 ], "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 319, 338 ], "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 36 } } } ], "range": [ 311, 339 ], "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 37 } } }, "range": [ 306, 339 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 37 } } } ], "kind": "var", "range": [ 302, 340 ], "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "groupBy_1", "range": [ 345, 354 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 357, 364 ], "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 23 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/operator/groupBy", "raw": "'../../dist/cjs/operator/groupBy'", "range": [ 365, 398 ], "loc": { "start": { "line": 9, "column": 24 }, "end": { "line": 9, "column": 57 } } } ], "range": [ 357, 399 ], "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 9, "column": 58 } } }, "range": [ 345, 399 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 58 } } } ], "kind": "var", "range": [ 341, 400 ], "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 59 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Observable", "range": [ 405, 415 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 14 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 418, 420 ],