skypager-project
Version:
skypager project framework
1,532 lines (1,511 loc) • 1.16 MB
JavaScript
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 = 153);
/******/ })
/************************************************************************/
/******/ ({
/***/ 153:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(62);
/***/ },
/***/ 62:
/***/ function(module, exports) {
module.exports = {
"path": "/Users/jonathan/Skypager/packages/skypager-project/src/markdown-ast-interface.js",
"ast": {
"type": "File",
"start": 0,
"end": 5500,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 195,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 5500,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 195,
"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": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_toConsumableArray2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/helpers/toConsumableArray",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_toConsumableArray3"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_toConsumableArray2"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_assign"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "babel-runtime/core-js/object/assign",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_assign2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_assign"
}
]
}
}
]
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_entity"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require"
},
"arguments": [
{
"type": "StringLiteral",
"value": "./entity",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
}
]
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 31
}
}
},
{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_entity2"
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault"
},
"arguments": [
{
"type": "Identifier",
"name": "_entity"
}
]
}
}
]
},
{
"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": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "exports"
},
"property": {
"type": "Identifier",
"name": "default",
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"computed": false
},
"right": {
"type": "FunctionExpression",
"start": 48,
"end": 5500,
"loc": {
"start": {
"line": 3,
"column": 15
},
"end": {
"line": 195,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 49,
"end": 52,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 19
},
"identifierName": "obj"
},
"name": "obj"
}
],
"body": {
"type": "BlockStatement",
"start": 57,
"end": 5500,
"loc": {
"start": {
"line": 3,
"column": 24
},
"end": {
"line": 195,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 61,
"end": 86,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 27
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 67,
"end": 86,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 27
}
},
"id": {
"type": "Identifier",
"start": 67,
"end": 70,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 11
},
"identifierName": "doc"
},
"name": "doc"
},
"init": {
"type": "CallExpression",
"start": 73,
"end": 86,
"loc": {
"start": {
"line": 4,
"column": 14
},
"end": {
"line": 4,
"column": 27
}
},
"callee": {
"type": "SequenceExpression",
"expressions": [
{
"type": "NumericLiteral",
"value": 0
},
{
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_entity2"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false
}
],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "Identifier",
"start": 82,
"end": 85,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 4,
"column": 26
},
"identifierName": "obj"
},
"name": "obj"
}
]
}
}
],
"kind": "var"
},
{
"type": "ReturnStatement",
"start": 90,
"end": 5498,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 194,
"column": 4
}
},
"argument": {
"type": "CallExpression",
"start": 97,
"end": 5498,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 194,
"column": 4
}
},
"callee": {
"type": "SequenceExpression",
"expressions": [
{
"type": "NumericLiteral",
"value": 0
},
{
"type": "MemberExpression",
"object": {
"type": "Identifier",
"name": "_assign2"
},
"property": {
"type": "Identifier",
"name": "default"
},
"computed": false
}
],
"trailingComments": [],
"leadingComments": [],
"innerComments": []
},
"arguments": [
{
"type": "Identifier",
"start": 111,
"end": 114,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 26
},
"identifierName": "doc"
},
"name": "doc"
},
{
"type": "ObjectExpression",
"start": 116,
"end": 5497,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 194,
"column": 3
}
},
"properties": [
{
"type": "ObjectProperty",
"key": {
"type": "Identifier",
"start": 122,
"end": 139,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 21
},
"identifierName": "createHeadingsMap"
},
"name": "createHeadingsMap"
},
"value": {
"type": "FunctionExpression",
"id": {
"type": "Identifier",
"name": "createHeadingsMap"
},
"params": [],
"body": {
"type": "BlockStatement",
"start": 142,
"end": 398,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 14,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 150,
"end": 392,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 13,
"column": 16
}
},
"argument": {
"type": "CallExpression",
"start": 157,
"end": 392,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 13,
"column": 16
}
},
"callee": {
"type": "MemberExpression",
"start": 157,
"end": 390,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 13,
"column": 14
}
},
"object": {
"type": "CallExpression",
"start": 157,
"end": 384,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 13,
"column": 8
}
},
"callee": {
"type": "MemberExpression",
"start": 157,
"end": 201,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 57
}
},
"object": {
"type": "CallExpression",
"start": 157,
"end": 195,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 157,
"end": 173,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 157,
"end": 166,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 157,
"end": 160,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 16
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 161,
"end": 166,
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 22
},
"identifierName": "chain"
},
"name": "chain"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 167,
"end": 173,
"loc": {
"start": {
"line": 8,
"column": 23
},
"end": {
"line": 8,
"column": 29
},
"identifierName": "invoke"
},
"name": "invoke"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 174,
"end": 194,
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 8,
"column": 50
}
},
"extra": {
"rawValue": "selectHeadingNodes",
"raw": "'selectHeadingNodes'"
},
"value": "selectHeadingNodes"
}
]
},
"property": {
"type": "Identifier",
"start": 196,
"end": 201,
"loc": {
"start": {
"line": 8,
"column": 52
},
"end": {
"line": 8,
"column": 57
},
"identifierName": "keyBy"
},
"name": "keyBy"
},
"computed": false
},
"arguments": [
{
"type": "FunctionExpression",
"start": 202,
"end": 383,
"loc": {
"start": {
"line": 8,
"column": 58
},
"end": {
"line": 13,
"column": 7
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 202,
"end": 209,
"loc": {
"start": {
"line": 8,
"column": 58
},
"end": {
"line": 8,
"column": 65
},
"identifierName": "heading"
},
"name": "heading"
}
],
"body": {
"type": "BlockStatement",
"start": 213,
"end": 383,
"loc": {
"start": {
"line": 8,
"column": 69
},
"end": {
"line": 13,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 223,
"end": 281,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 66
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 229,
"end": 281,
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 229,
"end": 233,
"loc": {
"start": {
"line": 9,
"column": 14
},
"end": {
"line": 9,
"column": 18
},
"identifierName": "node"
},
"name": "node"
},
"init": {
"type": "CallExpression",
"start": 236,
"end": 281,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 236,
"end": 257,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 42
}
},
"object": {
"type": "MemberExpression",
"start": 236,
"end": 252,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 236,
"end": 243,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 28
},
"identifierName": "heading"
},
"name": "heading"
},
"property": {
"type": "Identifier",
"start": 244,
"end": 252,
"loc": {
"start": {
"line": 9,
"column": 29
},
"end": {
"line": 9,
"column": 37
},
"identifierName": "children"
},
"name": "children"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 253,
"end": 257,
"loc": {
"start": {
"line": 9,
"column": 38
},
"end": {
"line": 9,
"column": 42
},
"identifierName": "find"
},
"name": "find"
},
"computed": false
},
"arguments": [
{
"type": "FunctionExpression",
"start": 258,
"end": 280,
"loc": {
"start": {
"line": 9,
"column": 43
},
"end": {
"line": 9,
"column": 65
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 258,
"end": 259,
"loc": {
"start": {
"line": 9,
"column": 43
},
"end": {
"line": 9,
"column": 44
},
"identifierName": "n"
},
"name": "n"
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "BinaryExpression",
"start": 263,
"end": 280,
"loc": {
"start": {
"line": 9,
"column": 48
},
"end": {
"line": 9,
"column": 65
}
},
"left": {
"type": "MemberExpression",
"start": 263,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 48
},
"end": {
"line": 9,
"column": 54
}
},
"object": {
"type": "Identifier",
"start": 263,
"end": 264,
"loc": {
"start": {
"line": 9,
"column": 48
},
"end": {
"line": 9,
"column": 49
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 265,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 50
},
"end": {
"line": 9,
"column": 54
},
"identifierName": "type"
},
"name": "type"
},
"computed": false
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 274,
"end": 280,
"loc": {
"start": {
"line": 9,
"column": 59
},
"end": {
"line": 9,
"column": 65
}
},
"extra": {
"rawValue": "text",
"raw": "'text'"
},
"value": "text"
}
}
}
],
"directives": []
},
"shadow": true
}
]
}
}
],
"kind": "var"
},
{
"type": "VariableDeclaration",
"start": 290,
"end": 330,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 48
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 296,
"end": 330,
"loc": {
"start": {
"line": 10,
"column": 14
},
"end": {
"line": 10,
"column": 48
}
},
"id": {
"type": "Identifier",
"start": 296,
"end": 301,
"loc": {
"start": {
"line": 10,
"column": 14
},
"end": {
"line": 10,
"column": 19
},
"identifierName": "value"
},
"name": "value"
},
"init": {
"type": "LogicalExpression",
"start": 304,
"end": 330,
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 48
}
},
"left": {
"type": "LogicalExpression",
"start": 305,
"end": 323,
"loc": {
"start": {
"line": 10,
"column": 23
},
"end": {
"line": 10,
"column": 41
}
},
"left": {
"type": "Identifier",
"start": 305,
"end": 309,
"loc": {
"start": {
"line": 10,
"column": 23
},
"end": {
"line": 10,
"column": 27
},
"identifierName": "node"
},
"name": "node"
},
"operator": "&&",
"right": {
"type": "MemberExpression",
"start": 313,
"end": 323,
"loc": {
"start": {
"line": 10,
"column": 31
},
"end": {
"line": 10,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 313,
"end": 317,
"loc": {
"start": {
"line": 10,
"column": 31
},
"end": {
"line": 10,
"column": 35
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 318,
"end": 323,
"loc": {
"start": {
"line": 10,
"column": 36
},
"end": {
"line": 10,
"column": 41
},
"identifierName": "value"
},
"name": "value"
},
"computed": false
},
"extra": {
"parenthesized": true,
"parenStart": 304
}
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 328,
"end": 330,
"loc": {
"start": {
"line": 10,
"column": 46
},
"end": {
"line": 10,
"column": 48
}
},
"extra": {
"rawValue": "",
"raw": "''"
},
"value": ""
}
}
}
],
"kind": "var"
},
{
"type": "ReturnStatement",
"start": 340,
"end": 374,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 42
}
},
"argument": {
"type": "CallExpression",
"start": 347,
"end": 374,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 42
}
},
"callee": {
"type": "Identifier",
"start": 347,
"end": 356,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 24
},
"identifierName": "camelCase"
},
"name": "camelCase"
},
"arguments": [
{
"type": "CallExpression",
"start": 357,
"end": 373,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 41
}
},
"callee": {
"type": "Identifier",
"start": 357,
"end": 366,
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 34
},
"identifierName": "snakeCase"
},
"name": "snakeCase"
},
"arguments": [
{
"type": "Identifier",
"start": 367,
"end": 372,
"loc": {
"start": {
"line": 12,
"column": 35
},
"end": {
"line": 12,
"column": 40
},
"identifierName": "value"
},
"na