UNPKG

awv3

Version:
2,135 lines (2,134 loc) 3.19 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": "_regenerator", "range": [ 72, 84 ], "loc": { "start": { "line": 1, "column": 72 }, "end": { "line": 1, "column": 84 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 85, 92 ], "loc": { "start": { "line": 1, "column": 85 }, "end": { "line": 1, "column": 92 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/regenerator", "raw": "'babel-runtime/regenerator'", "range": [ 93, 120 ], "loc": { "start": { "line": 1, "column": 93 }, "end": { "line": 1, "column": 120 } } } ], "range": [ 85, 121 ], "loc": { "start": { "line": 1, "column": 85 }, "end": { "line": 1, "column": 121 } } }, "range": [ 72, 121 ], "loc": { "start": { "line": 1, "column": 72 }, "end": { "line": 1, "column": 121 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_regenerator2", "range": [ 122, 135 ], "loc": { "start": { "line": 1, "column": 122 }, "end": { "line": 1, "column": 135 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 136, 158 ], "loc": { "start": { "line": 1, "column": 136 }, "end": { "line": 1, "column": 158 } } }, "arguments": [ { "type": "Identifier", "name": "_regenerator", "range": [ 159, 171 ], "loc": { "start": { "line": 1, "column": 159 }, "end": { "line": 1, "column": 171 } } } ], "range": [ 136, 172 ], "loc": { "start": { "line": 1, "column": 136 }, "end": { "line": 1, "column": 172 } } }, "range": [ 122, 172 ], "loc": { "start": { "line": 1, "column": 122 }, "end": { "line": 1, "column": 172 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_asyncToGenerator2", "range": [ 173, 191 ], "loc": { "start": { "line": 1, "column": 173 }, "end": { "line": 1, "column": 191 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 192, 199 ], "loc": { "start": { "line": 1, "column": 192 }, "end": { "line": 1, "column": 199 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/asyncToGenerator", "raw": "'babel-runtime/helpers/asyncToGenerator'", "range": [ 200, 240 ], "loc": { "start": { "line": 1, "column": 200 }, "end": { "line": 1, "column": 240 } } } ], "range": [ 192, 241 ], "loc": { "start": { "line": 1, "column": 192 }, "end": { "line": 1, "column": 241 } } }, "range": [ 173, 241 ], "loc": { "start": { "line": 1, "column": 173 }, "end": { "line": 1, "column": 241 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_asyncToGenerator3", "range": [ 242, 260 ], "loc": { "start": { "line": 1, "column": 242 }, "end": { "line": 1, "column": 260 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 261, 283 ], "loc": { "start": { "line": 1, "column": 261 }, "end": { "line": 1, "column": 283 } } }, "arguments": [ { "type": "Identifier", "name": "_asyncToGenerator2", "range": [ 284, 302 ], "loc": { "start": { "line": 1, "column": 284 }, "end": { "line": 1, "column": 302 } } } ], "range": [ 261, 303 ], "loc": { "start": { "line": 1, "column": 261 }, "end": { "line": 1, "column": 303 } } }, "range": [ 242, 303 ], "loc": { "start": { "line": 1, "column": 242 }, "end": { "line": 1, "column": 303 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck2", "range": [ 304, 320 ], "loc": { "start": { "line": 1, "column": 304 }, "end": { "line": 1, "column": 320 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 321, 328 ], "loc": { "start": { "line": 1, "column": 321 }, "end": { "line": 1, "column": 328 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/classCallCheck", "raw": "'babel-runtime/helpers/classCallCheck'", "range": [ 329, 367 ], "loc": { "start": { "line": 1, "column": 329 }, "end": { "line": 1, "column": 367 } } } ], "range": [ 321, 368 ], "loc": { "start": { "line": 1, "column": 321 }, "end": { "line": 1, "column": 368 } } }, "range": [ 304, 368 ], "loc": { "start": { "line": 1, "column": 304 }, "end": { "line": 1, "column": 368 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck3", "range": [ 369, 385 ], "loc": { "start": { "line": 1, "column": 369 }, "end": { "line": 1, "column": 385 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 386, 408 ], "loc": { "start": { "line": 1, "column": 386 }, "end": { "line": 1, "column": 408 } } }, "arguments": [ { "type": "Identifier", "name": "_classCallCheck2", "range": [ 409, 425 ], "loc": { "start": { "line": 1, "column": 409 }, "end": { "line": 1, "column": 425 } } } ], "range": [ 386, 426 ], "loc": { "start": { "line": 1, "column": 386 }, "end": { "line": 1, "column": 426 } } }, "range": [ 369, 426 ], "loc": { "start": { "line": 1, "column": 369 }, "end": { "line": 1, "column": 426 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass2", "range": [ 427, 440 ], "loc": { "start": { "line": 1, "column": 427 }, "end": { "line": 1, "column": 440 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 441, 448 ], "loc": { "start": { "line": 1, "column": 441 }, "end": { "line": 1, "column": 448 } } }, "arguments": [ { "type": "Literal", "value": "babel-runtime/helpers/createClass", "raw": "'babel-runtime/helpers/createClass'", "range": [ 449, 484 ], "loc": { "start": { "line": 1, "column": 449 }, "end": { "line": 1, "column": 484 } } } ], "range": [ 441, 485 ], "loc": { "start": { "line": 1, "column": 441 }, "end": { "line": 1, "column": 485 } } }, "range": [ 427, 485 ], "loc": { "start": { "line": 1, "column": 427 }, "end": { "line": 1, "column": 485 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass3", "range": [ 486, 499 ], "loc": { "start": { "line": 1, "column": 486 }, "end": { "line": 1, "column": 499 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 500, 522 ], "loc": { "start": { "line": 1, "column": 500 }, "end": { "line": 1, "column": 522 } } }, "arguments": [ { "type": "Identifier", "name": "_createClass2", "range": [ 523, 536 ], "loc": { "start": { "line": 1, "column": 523 }, "end": { "line": 1, "column": 536 } } } ], "range": [ 500, 537 ], "loc": { "start": { "line": 1, "column": 500 }, "end": { "line": 1, "column": 537 } } }, "range": [ 486, 537 ], "loc": { "start": { "line": 1, "column": 486 }, "end": { "line": 1, "column": 537 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_sketch", "range": [ 538, 545 ], "loc": { "start": { "line": 1, "column": 538 }, "end": { "line": 1, "column": 545 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 546, 553 ], "loc": { "start": { "line": 1, "column": 546 }, "end": { "line": 1, "column": 553 } } }, "arguments": [ { "type": "Literal", "value": "../sketcher/sketch", "raw": "'../sketcher/sketch'", "range": [ 554, 574 ], "loc": { "start": { "line": 1, "column": 554 }, "end": { "line": 1, "column": 574 } } } ], "range": [ 546, 575 ], "loc": { "start": { "line": 1, "column": 546 }, "end": { "line": 1, "column": 575 } } }, "range": [ 538, 575 ], "loc": { "start": { "line": 1, "column": 538 }, "end": { "line": 1, "column": 575 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_sketch2", "range": [ 576, 584 ], "loc": { "start": { "line": 1, "column": 576 }, "end": { "line": 1, "column": 584 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 585, 607 ], "loc": { "start": { "line": 1, "column": 585 }, "end": { "line": 1, "column": 607 } } }, "arguments": [ { "type": "Identifier", "name": "_sketch", "range": [ 608, 615 ], "loc": { "start": { "line": 1, "column": 608 }, "end": { "line": 1, "column": 615 } } } ], "range": [ 585, 616 ], "loc": { "start": { "line": 1, "column": 585 }, "end": { "line": 1, "column": 616 } } }, "range": [ 576, 616 ], "loc": { "start": { "line": 1, "column": 576 }, "end": { "line": 1, "column": 616 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_constraint", "range": [ 617, 628 ], "loc": { "start": { "line": 1, "column": 617 }, "end": { "line": 1, "column": 628 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 629, 636 ], "loc": { "start": { "line": 1, "column": 629 }, "end": { "line": 1, "column": 636 } } }, "arguments": [ { "type": "Literal", "value": "../sketcher/constraint", "raw": "'../sketcher/constraint'", "range": [ 637, 661 ], "loc": { "start": { "line": 1, "column": 637 }, "end": { "line": 1, "column": 661 } } } ], "range": [ 629, 662 ], "loc": { "start": { "line": 1, "column": 629 }, "end": { "line": 1, "column": 662 } } }, "range": [ 617, 662 ], "loc": { "start": { "line": 1, "column": 617 }, "end": { "line": 1, "column": 662 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_constraint2", "range": [ 663, 675 ], "loc": { "start": { "line": 1, "column": 663 }, "end": { "line": 1, "column": 675 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 676, 698 ], "loc": { "start": { "line": 1, "column": 676 }, "end": { "line": 1, "column": 698 } } }, "arguments": [ { "type": "Identifier", "name": "_constraint", "range": [ 699, 710 ], "loc": { "start": { "line": 1, "column": 699 }, "end": { "line": 1, "column": 710 } } } ], "range": [ 676, 711 ], "loc": { "start": { "line": 1, "column": 676 }, "end": { "line": 1, "column": 711 } } }, "range": [ 663, 711 ], "loc": { "start": { "line": 1, "column": 663 }, "end": { "line": 1, "column": 711 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_geomutils", "range": [ 712, 722 ], "loc": { "start": { "line": 1, "column": 712 }, "end": { "line": 1, "column": 722 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 723, 730 ], "loc": { "start": { "line": 1, "column": 723 }, "end": { "line": 1, "column": 730 } } }, "arguments": [ { "type": "Literal", "value": "../sketcher/geomutils", "raw": "'../sketcher/geomutils'", "range": [ 731, 754 ], "loc": { "start": { "line": 1, "column": 731 }, "end": { "line": 1, "column": 754 } } } ], "range": [ 723, 755 ], "loc": { "start": { "line": 1, "column": 723 }, "end": { "line": 1, "column": 755 } } }, "range": [ 712, 755 ], "loc": { "start": { "line": 1, "column": 712 }, "end": { "line": 1, "column": 755 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_statements", "range": [ 756, 767 ], "loc": { "start": { "line": 1, "column": 756 }, "end": { "line": 1, "column": 767 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 768, 775 ], "loc": { "start": { "line": 1, "column": 768 }, "end": { "line": 1, "column": 775 } } }, "arguments": [ { "type": "Literal", "value": "../sketcher/statements", "raw": "'../sketcher/statements'", "range": [ 776, 800 ], "loc": { "start": { "line": 1, "column": 776 }, "end": { "line": 1, "column": 800 } } } ], "range": [ 768, 801 ], "loc": { "start": { "line": 1, "column": 768 }, "end": { "line": 1, "column": 801 } } }, "range": [ 756, 801 ], "loc": { "start": { "line": 1, "column": 756 }, "end": { "line": 1, "column": 801 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_statements2", "range": [ 802, 814 ], "loc": { "start": { "line": 1, "column": 802 }, "end": { "line": 1, "column": 814 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault", "range": [ 815, 837 ], "loc": { "start": { "line": 1, "column": 815 }, "end": { "line": 1, "column": 837 } } }, "arguments": [ { "type": "Identifier", "name": "_statements", "range": [ 838, 849 ], "loc": { "start": { "line": 1, "column": 838 }, "end": { "line": 1, "column": 849 } } } ], "range": [ 815, 850 ], "loc": { "start": { "line": 1, "column": 815 }, "end": { "line": 1, "column": 850 } } }, "range": [ 802, 850 ], "loc": { "start": { "line": 1, "column": 802 }, "end": { "line": 1, "column": 850 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_three", "range": [ 851, 857 ], "loc": { "start": { "line": 1, "column": 851 }, "end": { "line": 1, "column": 857 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 858, 865 ], "loc": { "start": { "line": 1, "column": 858 }, "end": { "line": 1, "column": 865 } } }, "arguments": [ { "type": "Literal", "value": "three", "raw": "'three'", "range": [ 866, 873 ], "loc": { "start": { "line": 1, "column": 866 }, "end": { "line": 1, "column": 873 } } } ], "range": [ 858, 874 ], "loc": { "start": { "line": 1, "column": 858 }, "end": { "line": 1, "column": 874 } } }, "range": [ 851, 874 ], "loc": { "start": { "line": 1, "column": 851 }, "end": { "line": 1, "column": 874 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "THREE", "range": [ 875, 880 ], "loc": { "start": { "line": 1, "column": 875 }, "end": { "line": 1, "column": 880 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireWildcard", "range": [ 881, 904 ], "loc": { "start": { "line": 1, "column": 881 }, "end": { "line": 1, "column": 904 } } }, "arguments": [ { "type": "Identifier", "name": "_three", "range": [ 905, 911 ], "loc": { "start": { "line": 1, "column": 905 }, "end": { "line": 1, "column": 911 } } } ], "range": [ 881, 912 ], "loc": { "start": { "line": 1, "column": 881 }, "end": { "line": 1, "column": 912 } } }, "range": [ 875, 912 ], "loc": { "start": { "line": 1, "column": 875 }, "end": { "line": 1, "column": 912 } } } ], "kind": "var", "range": [ 68, 913 ], "loc": { "start": { "line": 1, "column": 68 }, "end": { "line": 1, "column": 913 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireWildcard", "range": [ 922, 945 ], "loc": { "start": { "line": 1, "column": 922 }, "end": { "line": 1, "column": 945 } } }, "params": [ { "type": "Identifier", "name": "obj", "range": [ 946, 949 ], "loc": { "start": { "line": 1, "column": 946 }, "end": { "line": 1, "column": 949 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "obj", "range": [ 954, 957 ], "loc": { "start": { "line": 1, "column": 954 }, "end": { "line": 1, "column": 957 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "obj", "range": [ 959, 962 ], "loc": { "start": { "line": 1, "column": 959 }, "end": { "line": 1, "column": 962 } } }, "property": { "type": "Identifier", "name": "__esModule", "range": [ 963, 973 ], "loc": { "start": { "line": 1, "column": 963 }, "end": { "line": 1, "column": 973 } } }, "range": [ 959, 973 ], "loc": { "start": { "line": 1, "column": 959 }, "end": { "line": 1, "column": 973 } } }, "range": [ 954, 973 ], "loc": { "start": { "line": 1, "column": 954 }, "end": { "line": 1, "column": 973 } } }, "consequent": { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "obj", "range": [ 981, 984 ], "loc": { "start": { "line": 1, "column": 981 }, "end": { "line": 1, "column": 984 } } }, "range": [ 974, 985 ], "loc": { "start": { "line": 1, "column": 974 }, "end": { "line": 1, "column": 985 } } }, "alternate": null, "range": [ 951, 985 ], "loc": { "start": { "line": 1, "column": 951 }, "end": { "line": 1, "column": 985 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "newObj", "range": [ 989, 995 ], "loc": { "start": { "line": 1, "column": 989 }, "end": { "line": 1, "column": 995 } } }, "init": { "type": "ObjectExpression", "properties": [], "range": [ 996, 998 ], "loc": { "start": { "line": 1, "column": 996 }, "end": { "line": 1, "column": 998 } } }, "range": [ 989, 998 ], "loc": { "start": { "line": 1, "column": 989 }, "end": { "line": 1, "column": 998 } } } ], "kind": "var", "range": [ 985, 999 ], "loc": { "start": { "line": 1, "column": 985 }, "end": { "line": 1, "column": 999 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "!=", "left": { "type": "Literal", "value": null, "raw": "null", "range": [ 1002, 1006 ], "loc": { "start": { "line": 1, "column": 1002 }, "end": { "line": 1, "column": 1006 } } }, "right": { "type": "Identifier", "name": "obj", "range": [ 1008, 1011 ], "loc": { "start": { "line": 1, "column": 1008 }, "end": { "line": 1, "column": 1011 } } }, "range": [ 1002, 1011 ], "loc": { "start": { "line": 1, "column": 1002 }, "end": { "line": 1, "column": 1011