UNPKG

skypager-project

Version:
1,787 lines (1,765 loc) 99.5 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 = 166); /******/ }) /************************************************************************/ /******/ ({ /***/ 166: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(75); /***/ }, /***/ 75: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/renderers/remark-html.js", "ast": { "type": "File", "start": 0, "end": 505, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 21, "column": 1 } }, "program": { "type": "Program", "start": 0, "end": 505, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 21, "column": 1 } }, "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": "render", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "name": "undefined", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_markdown" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "../transformers/markdown", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 50 } } }, { "type": "VariableDeclaration", "start": 59, "end": 505, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 21, "column": 1 } }, "declarations": [ { "type": "VariableDeclarator", "start": 65, "end": 505, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 21, "column": 1 } }, "id": { "type": "Identifier", "start": 65, "end": 71, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 19 }, "identifierName": "render" }, "name": "render", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "init": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 65, "end": 71, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 19 }, "identifierName": "render" }, "name": "render", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "FunctionExpression", "start": 74, "end": 505, "loc": { "start": { "line": 3, "column": 22 }, "end": { "line": 21, "column": 1 } }, "id": { "type": "Identifier", "start": 65, "end": 71, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 19 }, "identifierName": "render" }, "name": "render", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 106, "end": 505, "loc": { "start": { "line": 3, "column": 54 }, "end": { "line": 21, "column": 1 } }, "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 75, "end": 82, "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column": 30 }, "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": 85, "end": 87, "loc": { "start": { "line": 3, "column": 33 }, "end": { "line": 3, "column": 35 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 89, "end": 96, "loc": { "start": { "line": 3, "column": 37 }, "end": { "line": 3, "column": 44 }, "identifierName": "context" }, "name": "context", "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": 1, "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "operator": "&&", "right": { "type": "BinaryExpression", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "arguments", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "property": { "type": "NumericLiteral", "value": 1, "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": 1, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": true }, "alternate": { "type": "ObjectExpression", "start": 99, "end": 101, "loc": { "start": { "line": 3, "column": 47 }, "end": { "line": 3, "column": 49 } }, "properties": [], "trailingComments": [], "leadingComments": [], "innerComments": [] } } } ], "kind": "var" }, { "type": "IfStatement", "start": 110, "end": 193, "loc": { "start": { "line": 4, "column": 2 }, "end": { "line": 8, "column": 3 } }, "test": { "type": "BinaryExpression", "start": 114, "end": 141, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 33 } }, "left": { "type": "UnaryExpression", "start": 114, "end": 128, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 20 } }, "operator": "typeof", "prefix": true, "argument": { "type": "Identifier", "start": 121, "end": 128, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 20 }, "identifierName": "options" }, "name": "options" }, "extra": { "parenthesizedArgument": false } }, "operator": "===", "right": { "type": "StringLiteral", "start": 133, "end": 141, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 33 } }, "extra": { "rawValue": "string", "raw": "'string'" }, "value": "string" } }, "consequent": { "type": "BlockStatement", "start": 143, "end": 193, "loc": { "start": { "line": 4, "column": 35 }, "end": { "line": 8, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 149, "end": 189, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 7, "column": 5 } }, "expression": { "type": "AssignmentExpression", "start": 149, "end": 189, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 7, "column": 5 } }, "operator": "=", "left": { "type": "Identifier", "start": 149, "end": 156, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 11 }, "identifierName": "options" }, "name": "options" }, "right": { "type": "ObjectExpression", "start": 159, "end": 189, "loc": { "start": { "line": 5, "column": 14 }, "end": { "line": 7, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 167, "end": 183, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 6, "column": 22 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 167, "end": 174, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 6, "column": 13 }, "identifierName": "pattern" }, "name": "pattern" }, "value": { "type": "Identifier", "start": 176, "end": 183, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 22 }, "identifierName": "options" }, "name": "options" } } ] } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 207, "end": 214, "loc": { "start": { "line": 10, "column": 10 }, "end": { "line": 10, "column": 17 }, "identifierName": "project" }, "name": "project" }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "start": 219, "end": 226, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 29 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 207, "end": 214, "loc": { "start": { "line": 10, "column": 10 }, "end": { "line": 10, "column": 17 }, "identifierName": "project" }, "name": "project" }, "computed": false } } ], "leadingComments": [], "trailingComments": [] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_options" }, "init": { "type": "Identifier", "start": 264, "end": 271, "loc": { "start": { "line": 13, "column": 6 }, "end": { "line": 13, "column": 13 }, "identifierName": "options" }, "name": "options" } } ], "leadingComments": [] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_options$pattern" }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_options" }, "property": { "type": "Identifier", "start": 241, "end": 248, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 11 }, "identifierName": "pattern" }, "name": "pattern" }, "computed": false } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "start": 241, "end": 248, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 11 }, "identifierName": "pattern" }, "name": "pattern" }, "init": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "Identifier", "name": "_options$pattern" }, "right": { "type": "Identifier", "name": "undefined" } }, "consequent": { "type": "StringLiteral", "start": 251, "end": 257, "loc": { "start": { "line": 12, "column": 14 }, "end": { "line": 12, "column": 20 } }, "extra": { "rawValue": "*.md", "raw": "'*.md'" }, "value": "*.md" }, "alternate": { "type": "Identifier", "name": "_options$pattern" } } } ], "trailingComments": [] }, { "type": "VariableDeclaration", "start": 275, "end": 437, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 17, "column": 28 } }, "declarations": [ { "type": "VariableDeclarator", "start": 281, "end": 437, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 17, "column": 28 } }, "id": { "type": "Identifier", "start": 281, "end": 285, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 }, "identifierName": "docs" }, "name": "docs" }, "init": { "type": "ConditionalExpression", "start": 288, "end": 437, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 17, "column": 28 } }, "test": { "type": "MemberExpression", "start": 288, "end": 304, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 31 } }, "object": { "type": "Identifier", "start": 288, "end": 295, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 22 }, "identifierName": "options" }, "name": "options" }, "property": { "type": "Identifier", "start": 296, "end": 304, "loc": { "start": { "line": 15, "column": 23 }, "end": { "line": 15, "column": 31 }, "identifierName": "document" }, "name": "document" }, "computed": false }, "consequent": { "type": "ConditionalExpression", "start": 312, "end": 408, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 102 } }, "test": { "type": "BinaryExpression", "start": 312, "end": 348, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 42 } }, "left": { "type": "UnaryExpression", "start": 312, "end": 335, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 29 } }, "operator": "typeof", "prefix": true, "argument": { "type": "MemberExpression", "start": 319, "end": 335, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 29 } }, "object": { "type": "Identifier", "start": 319, "end": 326, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 20 }, "identifierName": "options" }, "name": "options" }, "property": { "type": "Identifier", "start": 327, "end": 335, "loc": { "start": { "line": 16, "column": 21 }, "end": { "line": 16, "column": 29 }, "identifierName": "document" }, "name": "document" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "operator": "===", "right": { "type": "StringLiteral", "start": 340, "end": 348, "loc": { "start": { "line": 16, "column": 34 }, "end": { "line": 16, "column": 42 } }, "extra": { "rawValue": "string", "raw": "'string'" }, "value": "string" } }, "consequent": { "type": "ArrayExpression", "start": 351, "end": 387, "loc": { "start": { "line": 16, "column": 45 }, "end": { "line": 16, "column": 81 } }, "elements": [ { "type": "CallExpression", "start": 352, "end": 386, "loc": { "start": { "line": 16, "column": 46 }, "end": { "line": 16, "column": 80 } }, "callee": { "type": "MemberExpression", "start": 352, "end": 368, "loc": { "start": { "line": 16, "column": 46 }, "end": { "line": 16, "column": 62 } }, "object": { "type": "Identifier", "start": 352, "end": 359, "loc": { "start": { "line": 16, "column": 46 }, "end": { "line": 16, "column": 53 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 360, "end": 368, "loc": { "start": { "line": 16, "column": 54 }, "end": { "line": 16, "column": 62 }, "identifierName": "document" }, "name": "document" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 369, "end": 385, "loc": { "start": { "line": 16, "column": 63 }, "end": { "line": 16, "column": 79 } }, "object": { "type": "Identifier", "start": 369, "end": 376, "loc": { "start": { "line": 16, "column": 63 }, "end": { "line": 16, "column": 70 }, "identifierName": "options" }, "name": "options" }, "property": { "type": "Identifier", "start": 377, "end": 385, "loc": { "start": { "line": 16, "column": 71 }, "end": { "line": 16, "column": 79 }, "identifierName": "document" }, "name": "document" }, "computed": false } ] } ] }, "alternate": { "type": "ArrayExpression", "start": 390, "end": 408, "loc": { "start": { "line": 16, "column": 84 }, "end": { "line": 16, "column": 102 } }, "elements": [ { "type": "MemberExpression", "start": 391, "end": 407, "loc": { "start": { "line": 16, "column": 85 }, "end": { "line": 16, "column": 101 } }, "object": { "type": "Identifier", "start": 391, "end": 398, "loc": { "start": { "line": 16, "column": 85 }, "end": { "line": 16, "column": 92 }, "identifierName": "options" }, "name": "options" }, "property": { "type": "Identifier", "start": 399, "end": 407, "loc": { "start": { "line": 16, "column": 93 }, "end": { "line": 16, "column": 101 }, "identifierName": "document" }, "name": "document" }, "computed": false } ] } }, "alternate": { "type": "CallExpression", "start": 415, "end": 437, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 28 } }, "callee": { "type": "MemberExpression", "start": 415, "end": 428, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 19 } }, "object": { "type": "Identifier", "start": 415, "end": 422, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 13 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 423, "end": 428, "loc": { "start": { "line": 17, "column": 14 }, "end": { "line": 17, "column": 19 }, "identifierName": "query" }, "name": "query" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 429, "end": 436, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 27 }, "identifierName": "pattern" }, "name": "pattern" } ] } } } ], "kind": "var" }, { "type": "ReturnStatement", "start": 441, "end": 503, "loc": { "start": { "line": 19, "column": 2 }, "end": { "line": 20, "column": 46 } }, "argument": { "type": "CallExpression", "start": 448, "end": 503, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 20, "column": 46 } }, "callee": { "type": "MemberExpression", "start": 448, "end": 465, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 20, "column": 8 } }, "object": { "type": "Identifier", "start": 448, "end": 452, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 13 }, "identifierName": "docs" }, "name": "docs" }, "property": { "type": "Identifier", "start": 462, "end": 465, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 8 }, "identifierName": "map" }, "name": "map" }, "computed": false }, "arguments": [ { "type": "FunctionExpression", "start": 466, "end": 502, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 45 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 466, "end": 467, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 10 }, "identifierName": "d" }, "name": "d" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "start": 471, "end": 502, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 45 } }, "callee": { "type": "MemberExpression", "start": 471, "end": 482, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 25 } }, "object": { "type": "MemberExpression", "start": 471, "end": 478, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 21 } }, "object": { "type": "Identifier", "start": 471, "end": 472, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 15 }, "identifierName": "d" }, "name": "d" }, "property": { "type": "Identifier", "start": 473, "end": 478, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 21 }, "identifierName": "ready" }, "name": "ready" }, "computed": false }, "property": { "type": "Identifier", "start": 479, "end": 482, "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 25 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 483, "end": 501, "loc": { "start": { "line": 20,