UNPKG

awv3

Version:
2,000 lines (1,999 loc) 1.52 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": "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": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends2", "range": [ 72, 81 ], "loc": { "start": { "line": 1, "column": 72 }, "end": { "line": 1, "column": 81 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 82, 89 ], "loc": { "start": { "line": 1, "column": 82 }, "end": { "line": 1, "column": 89 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/extends", "raw": "'babel-runtime/helpers/extends'", "range": [ 90, 121 ], "loc": { "start": { "line": 1, "column": 90 }, "end": { "line": 1, "column": 121 } } } ], "range": [ 82, 122 ], "loc": { "start": { "line": 1, "column": 82 }, "end": { "line": 1, "column": 122 } } }, "range": [ 72, 122 ], "loc": { "start": { "line": 1, "column": 72 }, "end": { "line": 1, "column": 122 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends3", "range": [ 123, 132 ], "loc": { "start": { "line": 1, "column": 123 }, "end": { "line": 1, "column": 132 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 133, 155 ], "loc": { "start": { "line": 1, "column": 133 }, "end": { "line": 1, "column": 155 } } }, "arguments": [ { "type": "Identifier", "name": "_extends2", "range": [ 156, 165 ], "loc": { "start": { "line": 1, "column": 156 }, "end": { "line": 1, "column": 165 } } } ], "range": [ 133, 166 ], "loc": { "start": { "line": 1, "column": 133 }, "end": { "line": 1, "column": 166 } } }, "range": [ 123, 166 ], "loc": { "start": { "line": 1, "column": 123 }, "end": { "line": 1, "column": 166 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_getIterator2", "range": [ 167, 180 ], "loc": { "start": { "line": 1, "column": 167 }, "end": { "line": 1, "column": 180 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 181, 188 ], "loc": { "start": { "line": 1, "column": 181 }, "end": { "line": 1, "column": 188 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/core-js/get-iterator", "raw": "'babel-runtime/core-js/get-iterator'", "range": [ 189, 225 ], "loc": { "start": { "line": 1, "column": 189 }, "end": { "line": 1, "column": 225 } } } ], "range": [ 181, 226 ], "loc": { "start": { "line": 1, "column": 181 }, "end": { "line": 1, "column": 226 } } }, "range": [ 167, 226 ], "loc": { "start": { "line": 1, "column": 167 }, "end": { "line": 1, "column": 226 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_getIterator3", "range": [ 227, 240 ], "loc": { "start": { "line": 1, "column": 227 }, "end": { "line": 1, "column": 240 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 241, 263 ], "loc": { "start": { "line": 1, "column": 241 }, "end": { "line": 1, "column": 263 } } }, "arguments": [ { "type": "Identifier", "name": "_getIterator2", "range": [ 264, 277 ], "loc": { "start": { "line": 1, "column": 264 }, "end": { "line": 1, "column": 277 } } } ], "range": [ 241, 278 ], "loc": { "start": { "line": 1, "column": 241 }, "end": { "line": 1, "column": 278 } } }, "range": [ 227, 278 ], "loc": { "start": { "line": 1, "column": 227 }, "end": { "line": 1, "column": 278 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck2", "range": [ 279, 295 ], "loc": { "start": { "line": 1, "column": 279 }, "end": { "line": 1, "column": 295 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 296, 303 ], "loc": { "start": { "line": 1, "column": 296 }, "end": { "line": 1, "column": 303 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/classCallCheck", "raw": "'babel-runtime/helpers/classCallCheck'", "range": [ 304, 342 ], "loc": { "start": { "line": 1, "column": 304 }, "end": { "line": 1, "column": 342 } } } ], "range": [ 296, 343 ], "loc": { "start": { "line": 1, "column": 296 }, "end": { "line": 1, "column": 343 } } }, "range": [ 279, 343 ], "loc": { "start": { "line": 1, "column": 279 }, "end": { "line": 1, "column": 343 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck3", "range": [ 344, 360 ], "loc": { "start": { "line": 1, "column": 344 }, "end": { "line": 1, "column": 360 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 361, 383 ], "loc": { "start": { "line": 1, "column": 361 }, "end": { "line": 1, "column": 383 } } }, "arguments": [ { "type": "Identifier", "name": "_classCallCheck2", "range": [ 384, 400 ], "loc": { "start": { "line": 1, "column": 384 }, "end": { "line": 1, "column": 400 } } } ], "range": [ 361, 401 ], "loc": { "start": { "line": 1, "column": 361 }, "end": { "line": 1, "column": 401 } } }, "range": [ 344, 401 ], "loc": { "start": { "line": 1, "column": 344 }, "end": { "line": 1, "column": 401 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass2", "range": [ 402, 415 ], "loc": { "start": { "line": 1, "column": 402 }, "end": { "line": 1, "column": 415 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 416, 423 ], "loc": { "start": { "line": 1, "column": 416 }, "end": { "line": 1, "column": 423 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/createClass", "raw": "'babel-runtime/helpers/createClass'", "range": [ 424, 459 ], "loc": { "start": { "line": 1, "column": 424 }, "end": { "line": 1, "column": 459 } } } ], "range": [ 416, 460 ], "loc": { "start": { "line": 1, "column": 416 }, "end": { "line": 1, "column": 460 } } }, "range": [ 402, 460 ], "loc": { "start": { "line": 1, "column": 402 }, "end": { "line": 1, "column": 460 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass3", "range": [ 461, 474 ], "loc": { "start": { "line": 1, "column": 461 }, "end": { "line": 1, "column": 474 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 475, 497 ], "loc": { "start": { "line": 1, "column": 475 }, "end": { "line": 1, "column": 497 } } }, "arguments": [ { "type": "Identifier", "name": "_createClass2", "range": [ 498, 511 ], "loc": { "start": { "line": 1, "column": 498 }, "end": { "line": 1, "column": 511 } } } ], "range": [ 475, 512 ], "loc": { "start": { "line": 1, "column": 475 }, "end": { "line": 1, "column": 512 } } }, "range": [ 461, 512 ], "loc": { "start": { "line": 1, "column": 461 }, "end": { "line": 1, "column": 512 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_three", "range": [ 513, 519 ], "loc": { "start": { "line": 1, "column": 513 }, "end": { "line": 1, "column": 519 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 520, 527 ], "loc": { "start": { "line": 1, "column": 520 }, "end": { "line": 1, "column": 527 } } }, "arguments": [ { "type": "Literal", "value": "three", "raw": "'three'", "range": [ 528, 535 ], "loc": { "start": { "line": 1, "column": 528 }, "end": { "line": 1, "column": 535 } } } ], "range": [ 520, 536 ], "loc": { "start": { "line": 1, "column": 520 }, "end": { "line": 1, "column": 536 } } }, "range": [ 513, 536 ], "loc": { "start": { "line": 1, "column": 513 }, "end": { "line": 1, "column": 536 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "THREE", "range": [ 537, 542 ], "loc": { "start": { "line": 1, "column": 537 }, "end": { "line": 1, "column": 542 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireWildcard", "range": [ 543, 566 ], "loc": { "start": { "line": 1, "column": 543 }, "end": { "line": 1, "column": 566 } } }, "arguments": [ { "type": "Identifier", "name": "_three", "range": [ 567, 573 ], "loc": { "start": { "line": 1, "column": 567 }, "end": { "line": 1, "column": 573 } } } ], "range": [ 543, 574 ], "loc": { "start": { "line": 1, "column": 543 }, "end": { "line": 1, "column": 574 } } }, "range": [ 537, 574 ], "loc": { "start": { "line": 1, "column": 537 }, "end": { "line": 1, "column": 574 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_expressions", "range": [ 575, 587 ], "loc": { "start": { "line": 1, "column": 575 }, "end": { "line": 1, "column": 587 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 588, 595 ], "loc": { "start": { "line": 1, "column": 588 }, "end": { "line": 1, "column": 595 } } }, "arguments": [ { "type": "Literal", "value": "../sketcher/expressions", "raw": "'../sketcher/expressions'", "range": [ 596, 621 ], "loc": { "start": { "line": 1, "column": 596 }, "end": { "line": 1, "column": 621 } } } ], "range": [ 588, 622 ], "loc": { "start": { "line": 1, "column": 588 }, "end": { "line": 1, "column": 622 } } }, "range": [ 575, 622 ], "loc": { "start": { "line": 1, "column": 575 }, "end": { "line": 1, "column": 622 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_geomutils", "range": [ 623, 633 ], "loc": { "start": { "line": 1, "column": 623 }, "end": { "line": 1, "column": 633 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 634, 641 ], "loc": { "start": { "line": 1, "column": 634 }, "end": { "line": 1, "column": 641 } } }, "arguments": [ { "type": "Literal", "value": "./geomutils", "raw": "'./geomutils'", "range": [ 642, 655 ], "loc": { "start": { "line": 1, "column": 642 }, "end": { "line": 1, "column": 655 } } } ], "range": [ 634, 656 ], "loc": { "start": { "line": 1, "column": 634 }, "end": { "line": 1, "column": 656 } } }, "range": [ 623, 656 ], "loc": { "start": { "line": 1, "column": 623 }, "end": { "line": 1, "column": 656 } } } ], "kind": "var", "range": [ 68, 657 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 657 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireWildcard", "range": [ 666, 689 ], "loc": { "start": { "line": 1, "column": 666 }, "end": { "line": 1, "column": 689 } } }, "params": [ { "type": "Identifier", "name": "obj", "range": [ 690, 693 ], "loc": { "start": { "line": 1, "column": 690 }, "end": { "line": 1, "column": 693 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "obj", "range": [ 698, 701 ], "loc": { "start": { "line": 1, "column": 698 }, "end": { "line": 1, "column": 701 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "obj", "range": [ 703, 706 ], "loc": { "start": { "line": 1, "column": 703 }, "end": { "line": 1, "column": 706 } } }, "property": { "type": "Identifier", "name": "__esModule", "range": [ 707, 717 ], "loc": { "start": { "line": 1, "column": 707 }, "end": { "line": 1, "column": 717 } } }, "range": [ 703, 717 ], "loc": { "start": { "line": 1, "column": 703 }, "end": { "line": 1, "column": 717 } } }, "range": [ 698, 717 ], "loc": { "start": { "line": 1, "column": 698 }, "end": { "line": 1, "column": 717 } } }, "consequent": { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "obj", "range": [ 725, 728 ], "loc": { "start": { "line": 1, "column": 725 }, "end": { "line": 1, "column": 728 } } }, "range": [ 718, 729 ], "loc": { "start": { "line": 1, "column": 718 }, "end": { "line": 1, "column": 729 } } }, "alternate": null, "range": [ 695, 729 ], "loc": { "start": { "line": 1, "column": 695 }, "end": { "line": 1, "column": 729 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "newObj", "range": [ 733, 739 ], "loc": { "start": { "line": 1, "column": 733 }, "end": { "line": 1, "column": 739 } } }, "init": { "type": "ObjectExpression", "properties": [], "range": [ 740, 742 ], "loc": { "start": { "line": 1, "column": 740 }, "end": { "line": 1, "column": 742 } } }, "range": [ 733, 742 ], "loc": { "start": { "line": 1, "column": 733 }, "end": { "line": 1, "column": 742 } } } ], "kind": "var", "range": [ 729, 743 ], "loc": { "start": { "line": 1, "column": 729 }, "end": { "line": 1, "column": 743 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "!=", "left": { "type": "Literal", "value": null, "raw": "null", "range": [ 746, 750 ], "loc": { "start": { "line": 1, "column": 746 }, "end": { "line": 1, "column": 750 } } }, "right": { "type": "Identifier", "name": "obj", "range": [ 752, 755 ], "loc": { "start": { "line": 1, "column": 752 }, "end": { "line": 1, "column": 755 } } }, "range": [ 746, 755 ], "loc": { "start": { "line": 1, "column": 746 }, "end": { "line": 1, "column": 755 } } }, "consequent": { "type": "ForInStatement", "left": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "key", "range": [ 764, 767 ], "loc": { "start": { "line": 1, "column": 764 }, "end": { "line": 1, "column": 767 } } }, "init": null, "range": [ 764, 767 ], "loc": { "start": { "line": 1, "column": 764 }, "end": { "line": 1, "column": 767 } } } ], "kind": "var", "range": [ 760, 767 ], "loc": { "start": { "line": 1, "column": 760 }, "end": { "line": 1, "column": 767 } } }, "right": { "type": "Identifier", "name": "obj", "range": [ 771, 774 ], "loc": { "start": { "line": 1, "column": 771 }, "end": { "line": 1, "column": 774 } } }, "body": { "type": "ExpressionStatement", "expression": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Object", "range": [ 775, 781 ], "loc": { "start": { "line": 1, "column": 775 }, "end": { "line": 1, "column": 781 } } }, "property": { "type": "Identifier", "name": "prototype", "range": [ 782, 791 ], "loc": { "start": { "line": 1, "column": 782 }, "end": { "line": 1, "column": 791 } } }, "range": [ 775, 791 ], "loc": { "start": { "line": 1, "column": 775 }, "end": { "line": 1, "column": 791 } } }, "property": { "type": "Identifier", "name": "hasOwnProperty", "range": [ 792, 806 ], "loc": { "start": { "line": 1, "column": 792 }, "end": { "line": 1, "column": 806 } } }, "range": [ 775, 806 ], "loc": { "start": { "line": 1, "column": 775 }, "end": { "line": 1, "column": 806 } } }, "property": { "type": "Identifier", "name": "call", "range": [ 807, 811 ], "loc": { "start": { "line": 1, "column": 807 }, "end": { "line": 1, "column": 811 } } }, "range": [ 775, 811 ], "loc": { "start": { "line": 1, "column": 775 }, "end": { "line": 1, "column": 811 } } }, "arguments": [ { "type": "Identifier", "name": "obj", "range": [ 812, 815 ], "loc": { "start": { "line": 1, "column": 812 }, "end": { "line": 1, "column": 815 } } }, { "type": "Identifier", "name": "key", "range": [ 816, 819 ], "loc": { "start": { "line": 1, "column": 816 }, "end": { "line": 1, "column": 819 } } } ], "range": [ 775, 820 ], "loc": { "start": { "line": 1, "column": 775 }, "end": { "line": 1, "column": 820 } } }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "newObj", "range": [ 823, 829 ], "loc": { "start": { "line": 1, "column": 823 }, "end": { "line": 1, "column": 829 } } }, "property": { "type": "Identifier", "name": "key", "range": [ 830, 833 ], "loc": { "start": { "line": 1, "column": 830 }, "end": { "line": 1, "column": 833 } } }, "range": [ 823, 834 ], "loc": { "start": { "line": 1, "column": 823 }, "end": {