UNPKG

skypager-project

Version:
1,621 lines (1,600 loc) 292 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmory imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmory exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 145); /******/ }) /************************************************************************/ /******/ ({ /***/ 145: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(54); /***/ }, /***/ 54: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/helpers/data-source.js", "ast": { "type": "File", "start": 0, "end": 1149, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 44, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1149, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 44, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Object" }, "property": { "type": "Identifier", "name": "defineProperty" }, "computed": false }, "arguments": [ { "type": "Identifier", "name": "exports" }, { "type": "StringLiteral", "extra": { "rawValue": "__esModule", "raw": "\"__esModule\"" }, "value": "__esModule" }, { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "value" }, "value": { "type": "BooleanLiteral", "value": true } } ] } ] } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "DataSource", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "name": "undefined", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/extends", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_extends3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_extends2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_promise" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/core-js/promise", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_promise2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_promise" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_getPrototypeOf" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/core-js/object/get-prototype-of", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_getPrototypeOf2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_getPrototypeOf" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/classCallCheck", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_classCallCheck3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_classCallCheck2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/createClass", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_createClass3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_createClass2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_possibleConstructorReturn2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/possibleConstructorReturn", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_possibleConstructorReturn3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_possibleConstructorReturn2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_inherits2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/helpers/inherits", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_inherits3" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_inherits2" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_class" }, "init": null }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_temp" }, "init": null } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_skypagerRegistry" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "skypager-registry", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 43 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_helper" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "../helper", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 42 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_helper2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_helper" } ] } } ] }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireDefault" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "name": "obj" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "left": { "type": "Identifier", "name": "obj" }, "operator": "&&", "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "obj" }, "property": { "type": "Identifier", "name": "__esModule" }, "computed": false } }, "consequent": { "type": "Identifier", "name": "obj" }, "alternate": { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "default" }, "value": { "type": "Identifier", "name": "obj" } } ] } } } ], "directives": [] }, "extra": { "parenthesized": true, "parenStart": 3 } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 101, "end": 111, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 23 }, "identifierName": "DataSource" }, "name": "DataSource", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 101, "end": 111, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 23 }, "identifierName": "DataSource" }, "name": "DataSource", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "SequenceExpression", "expressions": [ { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "_temp" }, "right": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "_class" }, "right": { "type": "CallExpression", "callee": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "_Helper" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_inherits3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "name": "DataSource" }, { "type": "Identifier", "name": "_Helper" } ] } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "DataSource" }, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_classCallCheck3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "ThisExpression" }, { "type": "Identifier", "name": "DataSource" } ] } }, { "type": "ReturnStatement", "argument": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_possibleConstructorReturn3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "ThisExpression" }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "LogicalExpression", "operator": "||", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "DataSource" }, "property": { "type": "Identifier", "name": "__proto__" }, "computed": false }, "right": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_getPrototypeOf2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "name": "DataSource" } ] } }, "property": { "type": "Identifier", "name": "apply" }, "computed": false }, "arguments": [ { "type": "ThisExpression" }, { "type": "Identifier", "name": "arguments" } ] } ] }, "trailingComments": [], "leadingComments": [], "innerComments": [] } ], "directives": [], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "async": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_createClass3" }, "property": { "type": "Identifier", "name": "default" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "name": "DataSource" }, { "type": "ArrayExpression", "elements": [ { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "key" }, "value": { "type": "StringLiteral", "value": "load" }, "computed": false, "shorthand": false, "decorators": null }, { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "value" }, "value": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "load" }, "params": [], "body": { "type": "BlockStatement", "start": 1065, "end": 1119, "loc": { "start": { "line": 38, "column": 21 }, "end": { "line": 40, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 1051, "end": 1058, "loc": { "start": { "line": 38, "column": 7 }, "end": { "line": 38, "column": 14 }, "identifierName": "options" }, "name": "options", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "left": { "type": "BinaryExpression", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "name": "length" }, "computed": false }, "operator": ">", "right": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "operator": "&&", "right": { "type": "BinaryExpression", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "operator": "!==", "right": { "type": "Identifier", "name": "undefined" } } }, "consequent": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 0, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "alternate": { "type": "ObjectExpression", "start": 1061, "end": 1063, "loc": { "start": { "line": 38, "column": 17 }, "end": { "line": 38, "column": 19 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "ReturnStatement", "start": 1071, "end": 1115, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 39, "column": 48 } }, "argument": { "type": "CallExpression", "start": 1078, "end": 1115, "loc": { "start": { "line": 39, "column": 11 }, "end": { "line": 39, "column": 48 } }, "callee": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_promise2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "Identifier", "start": 1086, "end": 1093, "loc": { "start": { "line": 39, "column": 19 }, "end": { "line": 39, "column": 26 }, "identifierName": "resolve" }, "name": "resolve" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "CallExpression", "start": 1094, "end": 1114, "loc": { "start": { "line": 39, "column": 27 }, "end": { "line": 39, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 1094, "end": 1105, "loc": { "start": { "line": 39, "column": 27 }, "end": { "line": 39, "column": 38 } }, "object": { "type": "ThisExpression", "start": 1094, "end": 1098, "loc": { "start": { "line": 39, "column": 27 }, "end": { "line": 39, "column": 31 } } }, "property": { "type": "Identifier", "start": 1099, "end": 1105, "loc": { "start": { "line": 39, "column": 32 }, "end": { "line": 39, "column": 38 }, "identifierName": "source" }, "name": "source" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1106, "end": 1113, "loc": { "start": { "line": 39, "column": 39 }, "end": { "line": 39, "column": 46 }, "identifierName": "options" }, "name": "options" } ] } ] } } ], "directives": [] }, "generator": false, "async": false }, "computed": false, "shorthand": false, "decorators": null, "trailingComments": [], "leadingComments": [], "innerComments": [] } ] }, { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "key" }, "value": { "type": "StringLiteral", "value": "source" }, "computed": false, "shorthand": false, "decorators": null }, { "type": "ObjectProperty", "key": { "type": "Identifier", "name": "get" }, "value": { "type": "FunctionExpression", "id": { "type": "Identifier", "name": "get" }, "params": [], "body": { "type": "BlockStatement", "start": 816, "end": 1042, "loc": { "start": { "line": 30, "column": 15 }, "end": { "line": 36, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_this2", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "ThisExpression" } } ] }, { "type": "VariableDeclaration", "start": 822, "end": 898, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 80 } }, "declarations": [ { "type": "VariableDeclarator", "start": 828, "end": 898, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 80 } }, "id": { "type": "Identifier", "start": 828, "end": 834, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 16 }, "identifierName": "source" }, "name": "source" }, "init": { "type": "ConditionalExpression", "start": 837, "end": 898, "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 80 } }, "test": { "type": "MemberExpression", "start": 837, "end": 858, "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 40 } }, "object": { "type": "MemberExpression", "start": 837, "end": 850, "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 32 } }, "object": { "type": "ThisExpression", "start": 837, "end": 841, "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 23 } } }, "property": { "type": "Identifier", "start": 842, "end": 850, "loc": { "s