chordsheetjs 6.0.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +477 -539
- package/lib/bundle.js +15353 -0
- package/lib/index.js +6253 -216
- package/lib/index.js.map +1 -0
- package/lib/main.d.ts +1062 -0
- package/lib/main.d.ts.map +1 -0
- package/package.json +50 -23
- package/d7b54993c4ea66c07a35bd36690482ab620f836e.patch +0 -105
- package/lib/chord.js +0 -496
- package/lib/chord_sheet/chord_lyrics_pair.js +0 -75
- package/lib/chord_sheet/chord_pro/composite.js +0 -54
- package/lib/chord_sheet/chord_pro/evaluation_error.js +0 -58
- package/lib/chord_sheet/chord_pro/literal.js +0 -42
- package/lib/chord_sheet/chord_pro/ternary.js +0 -126
- package/lib/chord_sheet/comment.js +0 -55
- package/lib/chord_sheet/line.js +0 -185
- package/lib/chord_sheet/metadata.js +0 -202
- package/lib/chord_sheet/paragraph.js +0 -88
- package/lib/chord_sheet/song.js +0 -353
- package/lib/chord_sheet/tag.js +0 -345
- package/lib/chord_sheet_serializer.js +0 -278
- package/lib/constants.js +0 -54
- package/lib/formatter/chord_pro_formatter.js +0 -184
- package/lib/formatter/html_div_formatter.js +0 -130
- package/lib/formatter/html_formatter.js +0 -44
- package/lib/formatter/html_table_formatter.js +0 -154
- package/lib/formatter/templates/html_div_formatter.js +0 -544
- package/lib/formatter/templates/html_table_formatter.js +0 -731
- package/lib/formatter/text_formatter.js +0 -184
- package/lib/helpers.js +0 -32
- package/lib/key.js +0 -386
- package/lib/normalize_mappings/enharmonic-normalize.js +0 -124
- package/lib/normalize_mappings/generate-suffix-normalize-mapping.js +0 -36
- package/lib/normalize_mappings/suffix-normalize-mapping.js +0 -914
- package/lib/note.js +0 -264
- package/lib/parser/chord_pro_parser.js +0 -64
- package/lib/parser/chord_pro_peg_parser.js +0 -2069
- package/lib/parser/chord_sheet_parser.js +0 -175
- package/lib/parser/parser_warning.js +0 -62
- package/lib/parser/ultimate_guitar_parser.js +0 -154
- package/lib/template_helpers.js +0 -98
- package/lib/utilities.js +0 -110
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.defaultCss = exports["default"] = void 0;
|
|
9
|
-
exports.scopedCss = scopedCss;
|
|
10
|
-
|
|
11
|
-
var _handlebars = _interopRequireDefault(require("handlebars"));
|
|
12
|
-
|
|
13
|
-
require("../template_helpers");
|
|
14
|
-
|
|
15
|
-
var _html_formatter = _interopRequireDefault(require("./html_formatter"));
|
|
16
|
-
|
|
17
|
-
require("./templates/html_table_formatter");
|
|
18
|
-
|
|
19
|
-
var _utilities = require("../utilities");
|
|
20
|
-
|
|
21
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
22
|
-
|
|
23
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
-
|
|
25
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
26
|
-
|
|
27
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
28
|
-
|
|
29
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
30
|
-
|
|
31
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
32
|
-
|
|
33
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
34
|
-
|
|
35
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
36
|
-
|
|
37
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
38
|
-
|
|
39
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
40
|
-
|
|
41
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
42
|
-
|
|
43
|
-
var template = _handlebars["default"].templates.html_table_formatter;
|
|
44
|
-
/**
|
|
45
|
-
* Basic CSS, in object style à la useStyles, to use with output generated by {@link }HtmlTableFormatter}
|
|
46
|
-
* For a CSS string see {@link scopedCss}
|
|
47
|
-
* @type {Object.<string, Object.<string, string>>}
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
var defaultCss = {
|
|
51
|
-
h1: {
|
|
52
|
-
fontSize: '1.5em'
|
|
53
|
-
},
|
|
54
|
-
h2: {
|
|
55
|
-
fontSize: '1.1em'
|
|
56
|
-
},
|
|
57
|
-
table: {
|
|
58
|
-
borderSpacing: '0',
|
|
59
|
-
color: 'inherit'
|
|
60
|
-
},
|
|
61
|
-
td: {
|
|
62
|
-
padding: '3px 0'
|
|
63
|
-
},
|
|
64
|
-
'.chord:not(:last-child)': {
|
|
65
|
-
paddingRight: '10px'
|
|
66
|
-
},
|
|
67
|
-
'.paragraph': {
|
|
68
|
-
marginBottom: '1em'
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Generates basic CSS, scoped within the provided selector, to use with output generated by {@link HtmlTableFormatter}
|
|
73
|
-
* @param scope the CSS scope to use, for example `.chordSheetViewer`
|
|
74
|
-
* @returns {string} the CSS string
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
exports.defaultCss = defaultCss;
|
|
78
|
-
|
|
79
|
-
function scopedCss(scope) {
|
|
80
|
-
return (0, _utilities.scopeCss)(defaultCss, scope);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Formats a song into HTML. It uses TABLEs to align lyrics with chords, which makes the HTML for things like
|
|
84
|
-
* PDF conversion.
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
var HtmlTableFormatter = /*#__PURE__*/function (_HtmlFormatter) {
|
|
89
|
-
_inherits(HtmlTableFormatter, _HtmlFormatter);
|
|
90
|
-
|
|
91
|
-
var _super = _createSuper(HtmlTableFormatter);
|
|
92
|
-
|
|
93
|
-
function HtmlTableFormatter() {
|
|
94
|
-
_classCallCheck(this, HtmlTableFormatter);
|
|
95
|
-
|
|
96
|
-
return _super.apply(this, arguments);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
_createClass(HtmlTableFormatter, [{
|
|
100
|
-
key: "format",
|
|
101
|
-
value:
|
|
102
|
-
/**
|
|
103
|
-
* Formats a song into HTML.
|
|
104
|
-
* @param {Song} song The song to be formatted
|
|
105
|
-
* @returns {string} The HTML string
|
|
106
|
-
*/
|
|
107
|
-
function format(song) {
|
|
108
|
-
return this.formatWithTemplate(song, template);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Generates basic CSS, optionally scoped within the provided selector, to use with output generated by
|
|
112
|
-
* {@link HtmlTableFormatter}
|
|
113
|
-
*
|
|
114
|
-
* For example, execute cssString('.chordSheetViewer') will result in CSS like:
|
|
115
|
-
*
|
|
116
|
-
* .chordSheetViewer .paragraph {
|
|
117
|
-
* margin-bottom: 1em;
|
|
118
|
-
* }
|
|
119
|
-
*
|
|
120
|
-
* @param scope the CSS scope to use, for example `.chordSheetViewer`
|
|
121
|
-
* @returns {string} the CSS string
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
|
-
}], [{
|
|
125
|
-
key: "cssString",
|
|
126
|
-
value: function cssString() {
|
|
127
|
-
var scope = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
128
|
-
return (0, _utilities.scopeCss)(defaultCss, scope);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Basic CSS, in object style à la useStyles, to use with output generated by {@link HtmlTableFormatter}
|
|
132
|
-
* For a CSS string see {@link cssString}
|
|
133
|
-
*
|
|
134
|
-
* Example:
|
|
135
|
-
*
|
|
136
|
-
* '.paragraph': {
|
|
137
|
-
* marginBottom: '1em'
|
|
138
|
-
* }
|
|
139
|
-
*
|
|
140
|
-
* @return {Object.<string, Object.<string, string>>} the CSS object
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
|
-
}, {
|
|
144
|
-
key: "cssObject",
|
|
145
|
-
value: function cssObject() {
|
|
146
|
-
return defaultCss;
|
|
147
|
-
}
|
|
148
|
-
}]);
|
|
149
|
-
|
|
150
|
-
return HtmlTableFormatter;
|
|
151
|
-
}(_html_formatter["default"]);
|
|
152
|
-
|
|
153
|
-
var _default = HtmlTableFormatter;
|
|
154
|
-
exports["default"] = _default;
|
|
@@ -1,544 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var Handlebars = require("handlebars");
|
|
4
|
-
|
|
5
|
-
var template = Handlebars.template,
|
|
6
|
-
templates = Handlebars.templates = Handlebars.templates || {};
|
|
7
|
-
templates['html_div_formatter'] = template({
|
|
8
|
-
"1": function _(container, depth0, helpers, partials, data, blockParams) {
|
|
9
|
-
var stack1,
|
|
10
|
-
alias1 = depth0 != null ? depth0 : container.nullContext || {},
|
|
11
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13
|
-
return parent[propertyName];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return undefined;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
return ((stack1 = lookupProperty(helpers, "if").call(alias1, depth0 != null ? lookupProperty(depth0, "title") : depth0, {
|
|
20
|
-
"name": "if",
|
|
21
|
-
"hash": {},
|
|
22
|
-
"fn": container.program(2, data, 0, blockParams),
|
|
23
|
-
"inverse": container.noop,
|
|
24
|
-
"data": data,
|
|
25
|
-
"blockParams": blockParams,
|
|
26
|
-
"loc": {
|
|
27
|
-
"start": {
|
|
28
|
-
"line": 2,
|
|
29
|
-
"column": 2
|
|
30
|
-
},
|
|
31
|
-
"end": {
|
|
32
|
-
"line": 4,
|
|
33
|
-
"column": 11
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
})) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, depth0 != null ? lookupProperty(depth0, "subtitle") : depth0, {
|
|
37
|
-
"name": "if",
|
|
38
|
-
"hash": {},
|
|
39
|
-
"fn": container.program(4, data, 0, blockParams),
|
|
40
|
-
"inverse": container.noop,
|
|
41
|
-
"data": data,
|
|
42
|
-
"blockParams": blockParams,
|
|
43
|
-
"loc": {
|
|
44
|
-
"start": {
|
|
45
|
-
"line": 6,
|
|
46
|
-
"column": 2
|
|
47
|
-
},
|
|
48
|
-
"end": {
|
|
49
|
-
"line": 8,
|
|
50
|
-
"column": 11
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
})) != null ? stack1 : "") + "<div class=\"chord-sheet\">" + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "bodyParagraphs") : depth0, {
|
|
54
|
-
"name": "each",
|
|
55
|
-
"hash": {},
|
|
56
|
-
"fn": container.program(6, data, 1, blockParams),
|
|
57
|
-
"inverse": container.noop,
|
|
58
|
-
"data": data,
|
|
59
|
-
"blockParams": blockParams,
|
|
60
|
-
"loc": {
|
|
61
|
-
"start": {
|
|
62
|
-
"line": 11,
|
|
63
|
-
"column": 4
|
|
64
|
-
},
|
|
65
|
-
"end": {
|
|
66
|
-
"line": 35,
|
|
67
|
-
"column": 15
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
})) != null ? stack1 : "") + "</div>";
|
|
71
|
-
},
|
|
72
|
-
"2": function _(container, depth0, helpers, partials, data) {
|
|
73
|
-
var helper,
|
|
74
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
75
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
76
|
-
return parent[propertyName];
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return undefined;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
return "<h1>" + container.escapeExpression((helper = (helper = lookupProperty(helpers, "title") || (depth0 != null ? lookupProperty(depth0, "title") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
|
|
83
|
-
"name": "title",
|
|
84
|
-
"hash": {},
|
|
85
|
-
"data": data,
|
|
86
|
-
"loc": {
|
|
87
|
-
"start": {
|
|
88
|
-
"line": 3,
|
|
89
|
-
"column": 8
|
|
90
|
-
},
|
|
91
|
-
"end": {
|
|
92
|
-
"line": 3,
|
|
93
|
-
"column": 19
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}) : helper)) + "</h1>";
|
|
97
|
-
},
|
|
98
|
-
"4": function _(container, depth0, helpers, partials, data) {
|
|
99
|
-
var helper,
|
|
100
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
101
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
102
|
-
return parent[propertyName];
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return undefined;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
return "<h2>" + container.escapeExpression((helper = (helper = lookupProperty(helpers, "subtitle") || (depth0 != null ? lookupProperty(depth0, "subtitle") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
|
|
109
|
-
"name": "subtitle",
|
|
110
|
-
"hash": {},
|
|
111
|
-
"data": data,
|
|
112
|
-
"loc": {
|
|
113
|
-
"start": {
|
|
114
|
-
"line": 7,
|
|
115
|
-
"column": 8
|
|
116
|
-
},
|
|
117
|
-
"end": {
|
|
118
|
-
"line": 7,
|
|
119
|
-
"column": 22
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}) : helper)) + "</h2>";
|
|
123
|
-
},
|
|
124
|
-
"6": function _(container, depth0, helpers, partials, data, blockParams) {
|
|
125
|
-
var stack1,
|
|
126
|
-
alias1 = depth0 != null ? depth0 : container.nullContext || {},
|
|
127
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
128
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
129
|
-
return parent[propertyName];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return undefined;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
return "<div class=\"" + container.escapeExpression(lookupProperty(helpers, "paragraphClasses").call(alias1, blockParams[0][0], {
|
|
136
|
-
"name": "paragraphClasses",
|
|
137
|
-
"hash": {},
|
|
138
|
-
"data": data,
|
|
139
|
-
"blockParams": blockParams,
|
|
140
|
-
"loc": {
|
|
141
|
-
"start": {
|
|
142
|
-
"line": 12,
|
|
143
|
-
"column": 18
|
|
144
|
-
},
|
|
145
|
-
"end": {
|
|
146
|
-
"line": 12,
|
|
147
|
-
"column": 48
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
})) + "\">" + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "lines") : depth0, {
|
|
151
|
-
"name": "each",
|
|
152
|
-
"hash": {},
|
|
153
|
-
"fn": container.program(7, data, 1, blockParams),
|
|
154
|
-
"inverse": container.noop,
|
|
155
|
-
"data": data,
|
|
156
|
-
"blockParams": blockParams,
|
|
157
|
-
"loc": {
|
|
158
|
-
"start": {
|
|
159
|
-
"line": 13,
|
|
160
|
-
"column": 8
|
|
161
|
-
},
|
|
162
|
-
"end": {
|
|
163
|
-
"line": 33,
|
|
164
|
-
"column": 19
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
})) != null ? stack1 : "") + "</div>";
|
|
168
|
-
},
|
|
169
|
-
"7": function _(container, depth0, helpers, partials, data, blockParams) {
|
|
170
|
-
var stack1,
|
|
171
|
-
alias1 = depth0 != null ? depth0 : container.nullContext || {},
|
|
172
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
173
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
174
|
-
return parent[propertyName];
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return undefined;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
return (stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "shouldRenderLine").call(alias1, blockParams[0][0], {
|
|
181
|
-
"name": "shouldRenderLine",
|
|
182
|
-
"hash": {},
|
|
183
|
-
"data": data,
|
|
184
|
-
"blockParams": blockParams,
|
|
185
|
-
"loc": {
|
|
186
|
-
"start": {
|
|
187
|
-
"line": 14,
|
|
188
|
-
"column": 17
|
|
189
|
-
},
|
|
190
|
-
"end": {
|
|
191
|
-
"line": 14,
|
|
192
|
-
"column": 40
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}), {
|
|
196
|
-
"name": "if",
|
|
197
|
-
"hash": {},
|
|
198
|
-
"fn": container.program(8, data, 0, blockParams),
|
|
199
|
-
"inverse": container.noop,
|
|
200
|
-
"data": data,
|
|
201
|
-
"blockParams": blockParams,
|
|
202
|
-
"loc": {
|
|
203
|
-
"start": {
|
|
204
|
-
"line": 14,
|
|
205
|
-
"column": 10
|
|
206
|
-
},
|
|
207
|
-
"end": {
|
|
208
|
-
"line": 32,
|
|
209
|
-
"column": 19
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
})) != null ? stack1 : "";
|
|
213
|
-
},
|
|
214
|
-
"8": function _(container, depth0, helpers, partials, data, blockParams) {
|
|
215
|
-
var stack1,
|
|
216
|
-
alias1 = depth0 != null ? depth0 : container.nullContext || {},
|
|
217
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
218
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
219
|
-
return parent[propertyName];
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
return undefined;
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
return "<div class=\"" + container.escapeExpression(lookupProperty(helpers, "lineClasses").call(alias1, blockParams[1][0], {
|
|
226
|
-
"name": "lineClasses",
|
|
227
|
-
"hash": {},
|
|
228
|
-
"data": data,
|
|
229
|
-
"blockParams": blockParams,
|
|
230
|
-
"loc": {
|
|
231
|
-
"start": {
|
|
232
|
-
"line": 15,
|
|
233
|
-
"column": 24
|
|
234
|
-
},
|
|
235
|
-
"end": {
|
|
236
|
-
"line": 15,
|
|
237
|
-
"column": 44
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
})) + "\">" + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "items") : depth0, {
|
|
241
|
-
"name": "each",
|
|
242
|
-
"hash": {},
|
|
243
|
-
"fn": container.program(9, data, 1, blockParams),
|
|
244
|
-
"inverse": container.noop,
|
|
245
|
-
"data": data,
|
|
246
|
-
"blockParams": blockParams,
|
|
247
|
-
"loc": {
|
|
248
|
-
"start": {
|
|
249
|
-
"line": 16,
|
|
250
|
-
"column": 14
|
|
251
|
-
},
|
|
252
|
-
"end": {
|
|
253
|
-
"line": 30,
|
|
254
|
-
"column": 25
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
})) != null ? stack1 : "") + "</div>";
|
|
258
|
-
},
|
|
259
|
-
"9": function _(container, depth0, helpers, partials, data, blockParams) {
|
|
260
|
-
var stack1,
|
|
261
|
-
alias1 = depth0 != null ? depth0 : container.nullContext || {},
|
|
262
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
263
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
264
|
-
return parent[propertyName];
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
return undefined;
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isChordLyricsPair").call(alias1, blockParams[0][0], {
|
|
271
|
-
"name": "isChordLyricsPair",
|
|
272
|
-
"hash": {},
|
|
273
|
-
"data": data,
|
|
274
|
-
"blockParams": blockParams,
|
|
275
|
-
"loc": {
|
|
276
|
-
"start": {
|
|
277
|
-
"line": 17,
|
|
278
|
-
"column": 23
|
|
279
|
-
},
|
|
280
|
-
"end": {
|
|
281
|
-
"line": 17,
|
|
282
|
-
"column": 47
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}), {
|
|
286
|
-
"name": "if",
|
|
287
|
-
"hash": {},
|
|
288
|
-
"fn": container.program(10, data, 0, blockParams),
|
|
289
|
-
"inverse": container.noop,
|
|
290
|
-
"data": data,
|
|
291
|
-
"blockParams": blockParams,
|
|
292
|
-
"loc": {
|
|
293
|
-
"start": {
|
|
294
|
-
"line": 17,
|
|
295
|
-
"column": 16
|
|
296
|
-
},
|
|
297
|
-
"end": {
|
|
298
|
-
"line": 19,
|
|
299
|
-
"column": 25
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
})) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isTag").call(alias1, blockParams[0][0], {
|
|
303
|
-
"name": "isTag",
|
|
304
|
-
"hash": {},
|
|
305
|
-
"data": data,
|
|
306
|
-
"blockParams": blockParams,
|
|
307
|
-
"loc": {
|
|
308
|
-
"start": {
|
|
309
|
-
"line": 21,
|
|
310
|
-
"column": 23
|
|
311
|
-
},
|
|
312
|
-
"end": {
|
|
313
|
-
"line": 21,
|
|
314
|
-
"column": 35
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}), {
|
|
318
|
-
"name": "if",
|
|
319
|
-
"hash": {},
|
|
320
|
-
"fn": container.program(12, data, 0, blockParams),
|
|
321
|
-
"inverse": container.noop,
|
|
322
|
-
"data": data,
|
|
323
|
-
"blockParams": blockParams,
|
|
324
|
-
"loc": {
|
|
325
|
-
"start": {
|
|
326
|
-
"line": 21,
|
|
327
|
-
"column": 16
|
|
328
|
-
},
|
|
329
|
-
"end": {
|
|
330
|
-
"line": 25,
|
|
331
|
-
"column": 25
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
})) != null ? stack1 : "") + ((stack1 = lookupProperty(helpers, "if").call(alias1, (lookupProperty(helpers, "isEvaluatable") || depth0 && lookupProperty(depth0, "isEvaluatable") || container.hooks.helperMissing).call(alias1, blockParams[0][0], {
|
|
335
|
-
"name": "isEvaluatable",
|
|
336
|
-
"hash": {},
|
|
337
|
-
"data": data,
|
|
338
|
-
"blockParams": blockParams,
|
|
339
|
-
"loc": {
|
|
340
|
-
"start": {
|
|
341
|
-
"line": 27,
|
|
342
|
-
"column": 23
|
|
343
|
-
},
|
|
344
|
-
"end": {
|
|
345
|
-
"line": 27,
|
|
346
|
-
"column": 43
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}), {
|
|
350
|
-
"name": "if",
|
|
351
|
-
"hash": {},
|
|
352
|
-
"fn": container.program(15, data, 0, blockParams),
|
|
353
|
-
"inverse": container.noop,
|
|
354
|
-
"data": data,
|
|
355
|
-
"blockParams": blockParams,
|
|
356
|
-
"loc": {
|
|
357
|
-
"start": {
|
|
358
|
-
"line": 27,
|
|
359
|
-
"column": 16
|
|
360
|
-
},
|
|
361
|
-
"end": {
|
|
362
|
-
"line": 29,
|
|
363
|
-
"column": 25
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
})) != null ? stack1 : "");
|
|
367
|
-
},
|
|
368
|
-
"10": function _(container, depth0, helpers, partials, data, blockParams) {
|
|
369
|
-
var stack1,
|
|
370
|
-
helper,
|
|
371
|
-
alias1 = depth0 != null ? depth0 : container.nullContext || {},
|
|
372
|
-
alias2 = container.hooks.helperMissing,
|
|
373
|
-
alias3 = container.escapeExpression,
|
|
374
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
375
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
376
|
-
return parent[propertyName];
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
return undefined;
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
return "<div class=\"column\"><div class=\"chord\">" + alias3((lookupProperty(helpers, "renderChord") || depth0 && lookupProperty(depth0, "renderChord") || alias2).call(alias1, depth0 != null ? lookupProperty(depth0, "chords") : depth0, (stack1 = blockParams[3][0]) != null ? lookupProperty(stack1, "key") : stack1, (stack1 = (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song")) && lookupProperty(stack1, "key"), {
|
|
383
|
-
"name": "renderChord",
|
|
384
|
-
"hash": {},
|
|
385
|
-
"data": data,
|
|
386
|
-
"blockParams": blockParams,
|
|
387
|
-
"loc": {
|
|
388
|
-
"start": {
|
|
389
|
-
"line": 18,
|
|
390
|
-
"column": 57
|
|
391
|
-
},
|
|
392
|
-
"end": {
|
|
393
|
-
"line": 18,
|
|
394
|
-
"column": 103
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
})) + "</div><div class=\"lyrics\">" + alias3((helper = (helper = lookupProperty(helpers, "lyrics") || (depth0 != null ? lookupProperty(depth0, "lyrics") : depth0)) != null ? helper : alias2, typeof helper === "function" ? helper.call(alias1, {
|
|
398
|
-
"name": "lyrics",
|
|
399
|
-
"hash": {},
|
|
400
|
-
"data": data,
|
|
401
|
-
"blockParams": blockParams,
|
|
402
|
-
"loc": {
|
|
403
|
-
"start": {
|
|
404
|
-
"line": 18,
|
|
405
|
-
"column": 129
|
|
406
|
-
},
|
|
407
|
-
"end": {
|
|
408
|
-
"line": 18,
|
|
409
|
-
"column": 139
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}) : helper)) + "</div></div>";
|
|
413
|
-
},
|
|
414
|
-
"12": function _(container, depth0, helpers, partials, data, blockParams) {
|
|
415
|
-
var stack1,
|
|
416
|
-
alias1 = depth0 != null ? depth0 : container.nullContext || {},
|
|
417
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
418
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
419
|
-
return parent[propertyName];
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
return undefined;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
return (stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "isComment").call(alias1, blockParams[1][0], {
|
|
426
|
-
"name": "isComment",
|
|
427
|
-
"hash": {},
|
|
428
|
-
"data": data,
|
|
429
|
-
"blockParams": blockParams,
|
|
430
|
-
"loc": {
|
|
431
|
-
"start": {
|
|
432
|
-
"line": 22,
|
|
433
|
-
"column": 25
|
|
434
|
-
},
|
|
435
|
-
"end": {
|
|
436
|
-
"line": 22,
|
|
437
|
-
"column": 41
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}), {
|
|
441
|
-
"name": "if",
|
|
442
|
-
"hash": {},
|
|
443
|
-
"fn": container.program(13, data, 0, blockParams),
|
|
444
|
-
"inverse": container.noop,
|
|
445
|
-
"data": data,
|
|
446
|
-
"blockParams": blockParams,
|
|
447
|
-
"loc": {
|
|
448
|
-
"start": {
|
|
449
|
-
"line": 22,
|
|
450
|
-
"column": 18
|
|
451
|
-
},
|
|
452
|
-
"end": {
|
|
453
|
-
"line": 24,
|
|
454
|
-
"column": 27
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
})) != null ? stack1 : "";
|
|
458
|
-
},
|
|
459
|
-
"13": function _(container, depth0, helpers, partials, data) {
|
|
460
|
-
var helper,
|
|
461
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
462
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
463
|
-
return parent[propertyName];
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
return undefined;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
return "<div class=\"comment\">" + container.escapeExpression((helper = (helper = lookupProperty(helpers, "value") || (depth0 != null ? lookupProperty(depth0, "value") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
|
|
470
|
-
"name": "value",
|
|
471
|
-
"hash": {},
|
|
472
|
-
"data": data,
|
|
473
|
-
"loc": {
|
|
474
|
-
"start": {
|
|
475
|
-
"line": 23,
|
|
476
|
-
"column": 41
|
|
477
|
-
},
|
|
478
|
-
"end": {
|
|
479
|
-
"line": 23,
|
|
480
|
-
"column": 50
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}) : helper)) + "</div>";
|
|
484
|
-
},
|
|
485
|
-
"15": function _(container, depth0, helpers, partials, data, blockParams) {
|
|
486
|
-
var stack1,
|
|
487
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
488
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
489
|
-
return parent[propertyName];
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
return undefined;
|
|
493
|
-
};
|
|
494
|
-
|
|
495
|
-
return "<div class=\"column\"><div class=\"chord\"></div><div class=\"lyrics\">" + container.escapeExpression((lookupProperty(helpers, "evaluate") || depth0 && lookupProperty(depth0, "evaluate") || container.hooks.helperMissing).call(depth0 != null ? depth0 : container.nullContext || {}, blockParams[1][0], (stack1 = (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song")) && lookupProperty(stack1, "metadata"), {
|
|
496
|
-
"name": "evaluate",
|
|
497
|
-
"hash": {},
|
|
498
|
-
"data": data,
|
|
499
|
-
"blockParams": blockParams,
|
|
500
|
-
"loc": {
|
|
501
|
-
"start": {
|
|
502
|
-
"line": 28,
|
|
503
|
-
"column": 83
|
|
504
|
-
},
|
|
505
|
-
"end": {
|
|
506
|
-
"line": 28,
|
|
507
|
-
"column": 120
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
})) + "</div></div>";
|
|
511
|
-
},
|
|
512
|
-
"compiler": [8, ">= 4.3.0"],
|
|
513
|
-
"main": function main(container, depth0, helpers, partials, data, blockParams) {
|
|
514
|
-
var stack1,
|
|
515
|
-
lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
516
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
517
|
-
return parent[propertyName];
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
return undefined;
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
return (stack1 = lookupProperty(helpers, "with").call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "song") : depth0, {
|
|
524
|
-
"name": "with",
|
|
525
|
-
"hash": {},
|
|
526
|
-
"fn": container.program(1, data, 0, blockParams),
|
|
527
|
-
"inverse": container.noop,
|
|
528
|
-
"data": data,
|
|
529
|
-
"blockParams": blockParams,
|
|
530
|
-
"loc": {
|
|
531
|
-
"start": {
|
|
532
|
-
"line": 1,
|
|
533
|
-
"column": 0
|
|
534
|
-
},
|
|
535
|
-
"end": {
|
|
536
|
-
"line": 37,
|
|
537
|
-
"column": 11
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
})) != null ? stack1 : "";
|
|
541
|
-
},
|
|
542
|
-
"useData": true,
|
|
543
|
-
"useBlockParams": true
|
|
544
|
-
});
|