UNPKG

awv3

Version:
1,885 lines (1,884 loc) 507 kB
{ "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": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Object", "range": [ 13, 19 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 19 } } }, "property": { "type": "Identifier", "name": "defineProperty", "range": [ 20, 34 ], "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 34 } } }, "range": [ 13, 34 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 34 } } }, "arguments": [ { "type": "Identifier", "name": "exports", "range": [ 35, 42 ], "loc": { "start": { "line": 1, "column": 35 }, "end": { "line": 1, "column": 42 } } }, { "type": "Literal", "value": "__esModule", "raw": "\"__esModule\"", "range": [ 43, 55 ], "loc": { "start": { "line": 1, "column": 43 }, "end": { "line": 1, "column": 55 } } }, { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "value", "range": [ 57, 62 ], "loc": { "start": { "line": 1, "column": 57 }, "end": { "line": 1, "column": 62 } } }, "value": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 64, 65 ], "loc": { "start": { "line": 1, "column": 64 }, "end": { "line": 1, "column": 65 } } }, "prefix": true, "range": [ 63, 65 ], "loc": { "start": { "line": 1, "column": 63 }, "end": { "line": 1, "column": 65 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 57, 65 ], "loc": { "start": { "line": 1, "column": 57 }, "end": { "line": 1, "column": 65 } } } ], "range": [ 56, 66 ], "loc": { "start": { "line": 1, "column": 56 }, "end": { "line": 1, "column": 66 } } } ], "range": [ 13, 67 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 67 } } }, "range": [ 13, 68 ], "loc": { "start": { "line": 1, "column": 13 }, "end": { "line": 1, "column": 68 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 68, 75 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 75 } } }, "property": { "type": "Identifier", "name": "reducer", "range": [ 76, 83 ], "loc": { "start": { "line": 1, "column": 76 }, "end": { "line": 1, "column": 83 } } }, "range": [ 68, 83 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 83 } } }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 84, 91 ], "loc": { "start": { "line": 1, "column": 84 }, "end": { "line": 1, "column": 91 } } }, "property": { "type": "Identifier", "name": "actions", "range": [ 92, 99 ], "loc": { "start": { "line": 1, "column": 92 }, "end": { "line": 1, "column": 99 } } }, "range": [ 84, 99 ], "loc": { "start": { "line": 1, "column": 84 }, "end": { "line": 1, "column": 99 } } }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 100, 107 ], "loc": { "start": { "line": 1, "column": 100 }, "end": { "line": 1, "column": 107 } } }, "property": { "type": "Identifier", "name": "types", "range": [ 108, 113 ], "loc": { "start": { "line": 1, "column": 108 }, "end": { "line": 1, "column": 113 } } }, "range": [ 100, 113 ], "loc": { "start": { "line": 1, "column": 100 }, "end": { "line": 1, "column": 113 } } }, "right": { "type": "UnaryExpression", "operator": "void", "argument": { "type": "Literal", "value": 0, "raw": "0", "range": [ 119, 120 ], "loc": { "start": { "line": 1, "column": 119 }, "end": { "line": 1, "column": 120 } } }, "prefix": true, "range": [ 114, 120 ], "loc": { "start": { "line": 1, "column": 114 }, "end": { "line": 1, "column": 120 } } }, "range": [ 100, 120 ], "loc": { "start": { "line": 1, "column": 100 }, "end": { "line": 1, "column": 120 } } }, "range": [ 84, 120 ], "loc": { "start": { "line": 1, "column": 84 }, "end": { "line": 1, "column": 120 } } }, "range": [ 68, 120 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 120 } } }, "range": [ 68, 121 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 121 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_regenerator", "range": [ 125, 137 ], "loc": { "start": { "line": 1, "column": 125 }, "end": { "line": 1, "column": 137 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 138, 145 ], "loc": { "start": { "line": 1, "column": 138 }, "end": { "line": 1, "column": 145 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/regenerator", "raw": "\"babel-runtime/regenerator\"", "range": [ 146, 173 ], "loc": { "start": { "line": 1, "column": 146 }, "end": { "line": 1, "column": 173 } } } ], "range": [ 138, 174 ], "loc": { "start": { "line": 1, "column": 138 }, "end": { "line": 1, "column": 174 } } }, "range": [ 125, 174 ], "loc": { "start": { "line": 1, "column": 125 }, "end": { "line": 1, "column": 174 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_regenerator2", "range": [ 175, 188 ], "loc": { "start": { "line": 1, "column": 175 }, "end": { "line": 1, "column": 188 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 189, 211 ], "loc": { "start": { "line": 1, "column": 189 }, "end": { "line": 1, "column": 211 } } }, "arguments": [ { "type": "Identifier", "name": "_regenerator", "range": [ 212, 224 ], "loc": { "start": { "line": 1, "column": 212 }, "end": { "line": 1, "column": 224 } } } ], "range": [ 189, 225 ], "loc": { "start": { "line": 1, "column": 189 }, "end": { "line": 1, "column": 225 } } }, "range": [ 175, 225 ], "loc": { "start": { "line": 1, "column": 175 }, "end": { "line": 1, "column": 225 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_asyncToGenerator2", "range": [ 226, 244 ], "loc": { "start": { "line": 1, "column": 226 }, "end": { "line": 1, "column": 244 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 245, 252 ], "loc": { "start": { "line": 1, "column": 245 }, "end": { "line": 1, "column": 252 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/asyncToGenerator", "raw": "\"babel-runtime/helpers/asyncToGenerator\"", "range": [ 253, 293 ], "loc": { "start": { "line": 1, "column": 253 }, "end": { "line": 1, "column": 293 } } } ], "range": [ 245, 294 ], "loc": { "start": { "line": 1, "column": 245 }, "end": { "line": 1, "column": 294 } } }, "range": [ 226, 294 ], "loc": { "start": { "line": 1, "column": 226 }, "end": { "line": 1, "column": 294 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_asyncToGenerator3", "range": [ 295, 313 ], "loc": { "start": { "line": 1, "column": 295 }, "end": { "line": 1, "column": 313 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 314, 336 ], "loc": { "start": { "line": 1, "column": 314 }, "end": { "line": 1, "column": 336 } } }, "arguments": [ { "type": "Identifier", "name": "_asyncToGenerator2", "range": [ 337, 355 ], "loc": { "start": { "line": 1, "column": 337 }, "end": { "line": 1, "column": 355 } } } ], "range": [ 314, 356 ], "loc": { "start": { "line": 1, "column": 314 }, "end": { "line": 1, "column": 356 } } }, "range": [ 295, 356 ], "loc": { "start": { "line": 1, "column": 295 }, "end": { "line": 1, "column": 356 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_jsonpatch", "range": [ 357, 367 ], "loc": { "start": { "line": 1, "column": 357 }, "end": { "line": 1, "column": 367 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 368, 375 ], "loc": { "start": { "line": 1, "column": 368 }, "end": { "line": 1, "column": 375 } } }, "arguments": [ { "type": "Literal", "value": "jsonpatch", "raw": "\"jsonpatch\"", "range": [ 376, 387 ], "loc": { "start": { "line": 1, "column": 376 }, "end": { "line": 1, "column": 387 } } } ], "range": [ 368, 388 ], "loc": { "start": { "line": 1, "column": 368 }, "end": { "line": 1, "column": 388 } } }, "range": [ 357, 388 ], "loc": { "start": { "line": 1, "column": 357 }, "end": { "line": 1, "column": 388 } } } ], "kind": "var", "range": [ 121, 389 ], "loc": { "start": { "line": 1, "column": 121 }, "end": { "line": 1, "column": 389 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 398, 420 ], "loc": { "start": { "line": 1, "column": 398 }, "end": { "line": 1, "column": 420 } } }, "params": [ { "type": "Identifier", "name": "obj", "range": [ 421, 424 ], "loc": { "start": { "line": 1, "column": 421 }, "end": { "line": 1, "column": 424 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "obj", "range": [ 433, 436 ], "loc": { "start": { "line": 1, "column": 433 }, "end": { "line": 1, "column": 436 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "obj", "range": [ 438, 441 ], "loc": { "start": { "line": 1, "column": 438 }, "end": { "line": 1, "column": 441 } } }, "property": { "type": "Identifier", "name": "__esModule", "range": [ 442, 452 ], "loc": { "start": { "line": 1, "column": 442 }, "end": { "line": 1, "column": 452 } } }, "range": [ 438, 452 ], "loc": { "start": { "line": 1, "column": 438 }, "end": { "line": 1, "column": 452 } } }, "range": [ 433, 452 ], "loc": { "start": { "line": 1, "column": 433 }, "end": { "line": 1, "column": 452 } } }, "consequent": { "type": "Identifier", "name": "obj", "range": [ 453, 456 ], "loc": { "start": { "line": 1, "column": 453 }, "end": { "line": 1, "column": 456 } } }, "alternate": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "default", "range": [ 458, 465 ], "loc": { "start": { "line": 1, "column": 458 }, "end": { "line": 1, "column": 465 } } }, "value": { "type": "Identifier", "name": "obj", "range": [ 466, 469 ], "loc": { "start": { "line": 1, "column": 466 }, "end": { "line": 1, "column": 469 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 458, 469 ], "loc": { "start": { "line": 1, "column": 458 }, "end": { "line": 1, "column": 469 } } } ], "range": [ 457, 470 ], "loc": { "start": { "line": 1, "column": 457 }, "end": { "line": 1, "column": 470 } } }, "range": [ 433, 470 ], "loc": { "start": { "line": 1, "column": 433 }, "end": { "line": 1, "column": 470 } } }, "range": [ 426, 470 ], "loc": { "start": { "line": 1, "column": 426 }, "end": { "line": 1, "column": 470 } } } ], "range": [ 425, 471 ], "loc": { "start": { "line": 1, "column": 425 }, "end": { "line": 1, "column": 471 } } }, "generator": false, "expression": false, "range": [ 389, 471 ], "loc": { "start": { "line": 1, "column": 389 }, "end": { "line": 1, "column": 471 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "types", "range": [ 475, 480 ], "loc": { "start": { "line": 1, "column": 475 }, "end": { "line": 1, "column": 480 } } }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 481, 488 ], "loc": { "start": { "line": 1, "column": 481 }, "end": { "line": 1, "column": 488 } } }, "property": { "type": "Identifier", "name": "types", "range": [ 489, 494 ], "loc": { "start": { "line": 1, "column": 489 }, "end": { "line": 1, "column": 494 } } }, "range": [ 481, 494 ], "loc": { "start": { "line": 1, "column": 481 }, "end": { "line": 1, "column": 494 } } }, "right": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "init", "range": [ 496, 500 ], "loc": { "start": { "line": 1, "column": 496 }, "end": { "line": 1, "column": 500 } } }, "value": { "type": "Literal", "value": "SESSION_INIT", "raw": "\"SESSION_INIT\"", "range": [ 501, 515 ], "loc": { "start": { "line": 1, "column": 501 }, "end": { "line": 1, "column": 515 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 496, 515 ], "loc": { "start": { "line": 1, "column": 496 }, "end": { "line": 1, "column": 515 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "patch", "range": [ 516, 521 ], "loc": { "start": { "line": 1, "column": 516 }, "end": { "line": 1, "column": 521 } } }, "value": { "type": "Literal", "value": "SESSION_PATCH", "raw": "\"SESSION_PATCH\"", "range": [ 522, 537 ], "loc": { "start": { "line": 1, "column": 522 }, "end": { "line": 1, "column": 537 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 516, 537 ], "loc": { "start": { "line": 1, "column": 516 }, "end": { "line": 1, "column": 537 } } }, { "type": "Property", "key": { "type": "Identifier", "name": "request", "range": [ 538, 545 ], "loc": { "start": { "line": 1, "column": 538 }, "end": { "line": 1, "column": 545 } } }, "value": { "type": "Literal", "value": "SESSION_REQUEST", "raw": "\"SESSION_REQUEST\"", "range": [ 546, 563 ], "loc": { "start": { "line": 1, "column": 546 }, "end": { "line": 1, "column": 563 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 538, 563 ], "loc": { "start": { "line": 1, "column": 538 }, "end": { "line": 1, "column": 563 } } } ], "range": [ 495, 564 ], "loc": { "start": { "line": 1, "column": 495 }, "end": { "line": 1, "column": 564 } } }, "range": [ 481, 564 ], "loc": { "start": { "line": 1, "column": 481 }, "end": { "line": 1, "column": 564 } } }, "range": [ 475, 564 ], "loc": { "start": { "line": 1, "column": 475 }, "end": { "line": 1, "column": 564 } } } ], "kind": "var", "range": [ 471, 565 ], "loc": { "start": { "line": 1, "column": 471 }, "end": { "line": 1, "column": 565 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "actions", "range": [ 569, 576 ], "loc": { "start": { "line": 1, "column": 569 }, "end": { "line": 1, "column": 576 } } }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "exports", "range": [ 577, 584 ], "loc": { "start": { "line": 1, "column": 577 }, "end": { "line": 1, "column": 584 } } }, "property": { "type": "Identifier", "name": "actions", "range": [ 585, 592 ], "loc": { "start": { "line": 1, "column": 585 }, "end": { "line": 1, "column": 592 } } }, "range": [ 577, 592 ], "loc": { "start": { "line": 1, "column": 577 }, "end": { "line": 1, "column": 592 } } }, "right": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "init", "range": [ 594, 598 ], "loc": { "start": { "line": 1, "column": 594 }, "end": { "line": 1, "column": 598 } } }, "value": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "init", "range": [ 608, 612 ], "loc": { "start": { "line": 1, "column": 608 }, "end": { "line": 1, "column": 612 } } }, "params": [ { "type": "Identifier", "name": "a", "range": [ 613, 614 ], "loc": { "start": { "line": 1, "column": 613 }, "end": { "line": 1, "column": 614 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_ref", "range": [ 638, 642 ], "loc": { "start": { "line": 1, "column": 638 }, "end": { "line": 1, "column": 642 } } }, "init": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "Literal", "value": 0, "raw": "0", "range": [ 644, 645 ], "loc": { "start": { "line": 1, "column": 644 }, "end": { "line": 1, "column": 645 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "_asyncToGenerator3", "range": [ 646, 664 ], "loc": { "start": { "line": 1, "column": 646 }, "end": { "line": 1, "column": 664 } } }, "property": { "type": "Identifier", "name": "default", "range": [ 665, 672 ], "loc": { "start": { "line": 1, "column": 665 }, "end": { "line": 1, "column": 672 } } }, "range": [ 646, 672 ], "loc": { "start": { "line": 1, "column": 646 }, "end": { "line": 1, "column": 672 } } } ], "range": [ 644, 672 ], "loc": {