chordsheetjs 7.0.0 → 7.1.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/lib/bundle.js CHANGED
@@ -49,7 +49,7 @@ $parcel$export(module.exports, "NUMERIC", () => $af8d31735c159a26$export$4d31898
49
49
  // https://peggyjs.org/ https://github.com/metadevpro/ts-pegjs
50
50
  "use strict";
51
51
  function $1a506a341538d943$var$peg$padEnd(str, targetLength, padString) {
52
- padString = padString || ' ';
52
+ padString = padString || " ";
53
53
  if (str.length > targetLength) return str;
54
54
  targetLength -= str.length;
55
55
  padString += padString.repeat(targetLength);
@@ -61,19 +61,15 @@ class $1a506a341538d943$export$f21cea08b0dd60e8 extends Error {
61
61
  return ch.charCodeAt(0).toString(16).toUpperCase();
62
62
  }
63
63
  function literalEscape(s) {
64
- return s.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (ch)=>"\\x0" + hex(ch)
65
- ).replace(/[\x10-\x1F\x7F-\x9F]/g, (ch)=>"\\x" + hex(ch)
66
- );
64
+ return s.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (ch)=>"\\x0" + hex(ch)).replace(/[\x10-\x1F\x7F-\x9F]/g, (ch)=>"\\x" + hex(ch));
67
65
  }
68
66
  function classEscape(s) {
69
- return s.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (ch)=>"\\x0" + hex(ch)
70
- ).replace(/[\x10-\x1F\x7F-\x9F]/g, (ch)=>"\\x" + hex(ch)
71
- );
67
+ return s.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (ch)=>"\\x0" + hex(ch)).replace(/[\x10-\x1F\x7F-\x9F]/g, (ch)=>"\\x" + hex(ch));
72
68
  }
73
69
  function describeExpectation(expectation) {
74
70
  switch(expectation.type){
75
71
  case "literal":
76
- return "\"" + literalEscape(expectation.text) + "\"";
72
+ return '"' + literalEscape(expectation.text) + '"';
77
73
  case "class":
78
74
  const escapedParts = expectation.parts.map((part)=>{
79
75
  return Array.isArray(part) ? classEscape(part[0]) + "-" + classEscape(part[1]) : classEscape(part);
@@ -109,7 +105,7 @@ class $1a506a341538d943$export$f21cea08b0dd60e8 extends Error {
109
105
  }
110
106
  }
111
107
  function describeFound(found1) {
112
- return found1 ? "\"" + literalEscape(found1) + "\"" : "end of input";
108
+ return found1 ? '"' + literalEscape(found1) + '"' : "end of input";
113
109
  }
114
110
  return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
115
111
  }
@@ -125,7 +121,7 @@ class $1a506a341538d943$export$f21cea08b0dd60e8 extends Error {
125
121
  if (typeof Error.captureStackTrace === "function") Error.captureStackTrace(this, $1a506a341538d943$export$f21cea08b0dd60e8);
126
122
  }
127
123
  format(sources) {
128
- let str = 'Error: ' + this.message;
124
+ let str = "Error: " + this.message;
129
125
  if (this.location) {
130
126
  let src = null;
131
127
  let k;
@@ -134,14 +130,14 @@ class $1a506a341538d943$export$f21cea08b0dd60e8 extends Error {
134
130
  break;
135
131
  }
136
132
  let s = this.location.start;
137
- let loc = this.location.source + ':' + s.line + ':' + s.column;
133
+ let loc = this.location.source + ":" + s.line + ":" + s.column;
138
134
  if (src) {
139
135
  let e = this.location.end;
140
- let filler = $1a506a341538d943$var$peg$padEnd('', s.line.toString().length, ' ');
136
+ let filler = $1a506a341538d943$var$peg$padEnd("", s.line.toString().length, " ");
141
137
  let line = src[s.line - 1];
142
138
  let last = s.line === e.line ? e.column : line.length + 1;
143
- str += '\n --> ' + loc + '\n' + filler + ' |\n' + s.line + ' | ' + line + '\n' + filler + ' | ' + $1a506a341538d943$var$peg$padEnd('', s.column - 1, ' ') + $1a506a341538d943$var$peg$padEnd('', last - s.column, '^');
144
- } else str += '\n at ' + loc;
139
+ str += "\n --> " + loc + "\n" + filler + " |\n" + s.line + " | " + line + "\n" + filler + " | " + $1a506a341538d943$var$peg$padEnd("", s.column - 1, " ") + $1a506a341538d943$var$peg$padEnd("", last - s.column, "^");
140
+ } else str += "\n at " + loc;
145
141
  }
146
142
  return str;
147
143
  }
@@ -172,21 +168,20 @@ function $1a506a341538d943$var$peg$parse(input, options) {
172
168
  items: [
173
169
  lyrics ? {
174
170
  type: "chordLyricsPair",
175
- chords: '',
171
+ chords: "",
176
172
  lyrics: lyrics
177
173
  } : null,
178
174
  ...tokens,
179
175
  chords ? {
180
176
  type: "chordLyricsPair",
181
177
  chords: chords,
182
- lyrics: ''
178
+ lyrics: ""
183
179
  } : null,
184
180
  comment ? {
185
181
  type: "comment",
186
182
  comment: comment
187
183
  } : null
188
- ].filter((x)=>x
189
- )
184
+ ].filter((x)=>x)
190
185
  };
191
186
  };
192
187
  const peg$c3 = "#";
@@ -202,21 +197,19 @@ function $1a506a341538d943$var$peg$parse(input, options) {
202
197
  const peg$c8 = function(chords, lyrics) {
203
198
  return {
204
199
  type: "chordLyricsPair",
205
- chords: chords || '',
200
+ chords: chords || "",
206
201
  lyrics: lyrics
207
202
  };
208
203
  };
209
204
  const peg$c9 = function(lyrics) {
210
- return lyrics.map((c)=>c.char || c
211
- ).join("");
205
+ return lyrics.map((c)=>c.char || c).join("");
212
206
  };
213
207
  const peg$c10 = "[";
214
208
  const peg$c11 = peg$literalExpectation("[", false);
215
209
  const peg$c12 = "]";
216
210
  const peg$c13 = peg$literalExpectation("]", false);
217
211
  const peg$c14 = function(chords) {
218
- return chords.map((c)=>c.char || c
219
- ).join("");
212
+ return chords.map((c)=>c.char || c).join("");
220
213
  };
221
214
  const peg$c15 = /^[^\]\r\n]/;
222
215
  const peg$c16 = peg$classExpectation([
@@ -298,7 +291,7 @@ function $1a506a341538d943$var$peg$parse(input, options) {
298
291
  const peg$c37 = function() {
299
292
  return {
300
293
  type: "char",
301
- char: "\x7d"
294
+ char: "}"
302
295
  };
303
296
  };
304
297
  const peg$c38 = /^[^|[\]\\{}%#\r\n]/;
@@ -325,7 +318,7 @@ function $1a506a341538d943$var$peg$parse(input, options) {
325
318
  const peg$c43 = function() {
326
319
  return {
327
320
  type: "char",
328
- char: "\x7b"
321
+ char: "{"
329
322
  };
330
323
  };
331
324
  const peg$c44 = "%";
@@ -353,8 +346,7 @@ function $1a506a341538d943$var$peg$parse(input, options) {
353
346
  const peg$c49 = ":";
354
347
  const peg$c50 = peg$literalExpectation(":", false);
355
348
  const peg$c51 = function(tagValue) {
356
- return tagValue.map((c)=>c.char || c
357
- ).join('');
349
+ return tagValue.map((c)=>c.char || c).join("");
358
350
  };
359
351
  const peg$c52 = /^[a-zA-Z\-_]/;
360
352
  const peg$c53 = peg$classExpectation([
@@ -380,7 +372,7 @@ function $1a506a341538d943$var$peg$parse(input, options) {
380
372
  const peg$c57 = /^[ \t\n\r]/;
381
373
  const peg$c58 = peg$classExpectation([
382
374
  " ",
383
- "\t",
375
+ " ",
384
376
  "\n",
385
377
  "\r"
386
378
  ], false, false);
@@ -388,7 +380,7 @@ function $1a506a341538d943$var$peg$parse(input, options) {
388
380
  const peg$c60 = /^[ \t]/;
389
381
  const peg$c61 = peg$classExpectation([
390
382
  " ",
391
- "\t"
383
+ " "
392
384
  ], false, false);
393
385
  const peg$c62 = "\n";
394
386
  const peg$c63 = peg$literalExpectation("\n", false);
@@ -407,7 +399,7 @@ function $1a506a341538d943$var$peg$parse(input, options) {
407
399
  let peg$silentFails = 0;
408
400
  let peg$result;
409
401
  if (options.startRule !== undefined) {
410
- if (!(options.startRule in peg$startRuleFunctions)) throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
402
+ if (!(options.startRule in peg$startRuleFunctions)) throw new Error("Can't start parsing from rule \"" + options.startRule + '".');
411
403
  peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
412
404
  }
413
405
  function text() {
@@ -1653,27 +1645,27 @@ class $e1378a714a1834c5$var$Literal {
1653
1645
  var $e1378a714a1834c5$export$2e2bcd8739ae039 = $e1378a714a1834c5$var$Literal;
1654
1646
 
1655
1647
 
1656
- const $af8d31735c159a26$export$4b194284baed1659 = 'verse';
1657
- const $af8d31735c159a26$export$8db6c706fc9142b2 = 'chorus';
1658
- const $af8d31735c159a26$export$c53d0f541b41b88e = 'none';
1659
- const $af8d31735c159a26$export$c5a6fe907430212e = 'indeterminate';
1660
- const $af8d31735c159a26$export$f1c9dd0f5207dd5e = 'tab';
1661
- const $af8d31735c159a26$export$27c95a7104c1f7aa = 'symbol';
1662
- const $af8d31735c159a26$export$4d318981b5a83836 = 'numeric';
1663
- const $af8d31735c159a26$export$1321df9b16c30c6a = 'numeral';
1648
+ const $af8d31735c159a26$export$4b194284baed1659 = "verse";
1649
+ const $af8d31735c159a26$export$8db6c706fc9142b2 = "chorus";
1650
+ const $af8d31735c159a26$export$c53d0f541b41b88e = "none";
1651
+ const $af8d31735c159a26$export$c5a6fe907430212e = "indeterminate";
1652
+ const $af8d31735c159a26$export$f1c9dd0f5207dd5e = "tab";
1653
+ const $af8d31735c159a26$export$27c95a7104c1f7aa = "symbol";
1654
+ const $af8d31735c159a26$export$4d318981b5a83836 = "numeric";
1655
+ const $af8d31735c159a26$export$1321df9b16c30c6a = "numeral";
1664
1656
  const $af8d31735c159a26$export$6145372d252f6576 = [
1665
- 'I',
1666
- 'II',
1667
- 'III',
1668
- 'IV',
1669
- 'V',
1670
- 'VI',
1671
- 'VII'
1657
+ "I",
1658
+ "II",
1659
+ "III",
1660
+ "IV",
1661
+ "V",
1662
+ "VI",
1663
+ "VII"
1672
1664
  ];
1673
1665
 
1674
1666
 
1675
- const $8fcf445ea0999053$var$A = 'A'.charCodeAt(0);
1676
- const $8fcf445ea0999053$var$G = 'G'.charCodeAt(0);
1667
+ const $8fcf445ea0999053$var$A = "A".charCodeAt(0);
1668
+ const $8fcf445ea0999053$var$G = "G".charCodeAt(0);
1677
1669
  const $8fcf445ea0999053$var$TRANSPOSE_DISTANCE_MAJOR = [
1678
1670
  null,
1679
1671
  0,
@@ -1704,14 +1696,14 @@ function $8fcf445ea0999053$var$clamp(note, min, max) {
1704
1696
  return newNote;
1705
1697
  }
1706
1698
  function $8fcf445ea0999053$var$numeralToNumber(numeral) {
1707
- for(let i = 0, count = $af8d31735c159a26$export$6145372d252f6576.length; i < count; i += 1){
1708
- const romanNumeral = $af8d31735c159a26$export$6145372d252f6576[i];
1699
+ for(let i = 0, count = (0, $af8d31735c159a26$export$6145372d252f6576).length; i < count; i += 1){
1700
+ const romanNumeral = (0, $af8d31735c159a26$export$6145372d252f6576)[i];
1709
1701
  if (romanNumeral === numeral || romanNumeral.toLowerCase() === numeral) return i + 1;
1710
1702
  }
1711
1703
  return null;
1712
1704
  }
1713
1705
  function $8fcf445ea0999053$var$numberToNumeral(number) {
1714
- return $af8d31735c159a26$export$6145372d252f6576[number - 1];
1706
+ return (0, $af8d31735c159a26$export$6145372d252f6576)[number - 1];
1715
1707
  }
1716
1708
  class $8fcf445ea0999053$var$Note {
1717
1709
  constructor({ note: note , type: type , minor: minor = false }){
@@ -1722,16 +1714,16 @@ class $8fcf445ea0999053$var$Note {
1722
1714
  static parse(note) {
1723
1715
  if (/^[A-Ga-g]$/.test(note)) return new $8fcf445ea0999053$var$Note({
1724
1716
  note: note.toUpperCase(),
1725
- type: $af8d31735c159a26$export$27c95a7104c1f7aa
1717
+ type: (0, $af8d31735c159a26$export$27c95a7104c1f7aa)
1726
1718
  });
1727
1719
  if (/^[1-7]$/.test(note)) return new $8fcf445ea0999053$var$Note({
1728
1720
  note: parseInt(note, 10),
1729
- type: $af8d31735c159a26$export$4d318981b5a83836
1721
+ type: (0, $af8d31735c159a26$export$4d318981b5a83836)
1730
1722
  });
1731
1723
  const romanNumeralValue = $8fcf445ea0999053$var$numeralToNumber(note);
1732
1724
  if (romanNumeralValue) return new $8fcf445ea0999053$var$Note({
1733
1725
  note: romanNumeralValue,
1734
- type: $af8d31735c159a26$export$1321df9b16c30c6a,
1726
+ type: (0, $af8d31735c159a26$export$1321df9b16c30c6a),
1735
1727
  minor: note.toLowerCase() === note
1736
1728
  });
1737
1729
  throw new Error(`Invalid note ${note}`);
@@ -1739,14 +1731,14 @@ class $8fcf445ea0999053$var$Note {
1739
1731
  toNumeral() {
1740
1732
  if (this.isNumeral()) return this.clone();
1741
1733
  if (this.isNumeric()) return this.set({
1742
- type: $af8d31735c159a26$export$1321df9b16c30c6a
1734
+ type: (0, $af8d31735c159a26$export$1321df9b16c30c6a)
1743
1735
  });
1744
1736
  throw new Error(`Converting a ${this.type} note to numeral is not supported`);
1745
1737
  }
1746
1738
  toNumeric() {
1747
1739
  if (this.isNumeric()) return this.clone();
1748
1740
  if (this.isNumeral()) return this.set({
1749
- type: $af8d31735c159a26$export$4d318981b5a83836
1741
+ type: (0, $af8d31735c159a26$export$4d318981b5a83836)
1750
1742
  });
1751
1743
  throw new Error(`Converting a ${this.type} note to numeric is not supported`);
1752
1744
  }
@@ -1769,13 +1761,13 @@ class $8fcf445ea0999053$var$Note {
1769
1761
  return options.includes(this._note);
1770
1762
  }
1771
1763
  isNumeric() {
1772
- return this.is($af8d31735c159a26$export$4d318981b5a83836);
1764
+ return this.is((0, $af8d31735c159a26$export$4d318981b5a83836));
1773
1765
  }
1774
1766
  isChordSymbol() {
1775
- return this.is($af8d31735c159a26$export$27c95a7104c1f7aa);
1767
+ return this.is((0, $af8d31735c159a26$export$27c95a7104c1f7aa));
1776
1768
  }
1777
1769
  isNumeral() {
1778
- return this.is($af8d31735c159a26$export$1321df9b16c30c6a);
1770
+ return this.is((0, $af8d31735c159a26$export$1321df9b16c30c6a));
1779
1771
  }
1780
1772
  is(noteType) {
1781
1773
  return this.type === noteType;
@@ -1826,121 +1818,121 @@ var $8fcf445ea0999053$export$2e2bcd8739ae039 = $8fcf445ea0999053$var$Note;
1826
1818
 
1827
1819
 
1828
1820
  var $6ebb068142750218$export$2e2bcd8739ae039 = {
1829
- 'Ab': {
1830
- 'B': 'Cb'
1821
+ "Ab": {
1822
+ "B": "Cb"
1831
1823
  },
1832
- 'Cb': {
1833
- 'B': 'Cb',
1834
- 'A#': 'Bb',
1835
- 'E': 'Fb'
1824
+ "Cb": {
1825
+ "B": "Cb",
1826
+ "A#": "Bb",
1827
+ "E": "Fb"
1836
1828
  },
1837
- 'C': {
1838
- 'C#': 'Db',
1839
- 'D#': 'Eb',
1840
- 'F#': 'Gb',
1841
- 'G#': 'Ab',
1842
- 'A#': 'Bb'
1829
+ "C": {
1830
+ "C#": "Db",
1831
+ "D#": "Eb",
1832
+ "F#": "Gb",
1833
+ "G#": "Ab",
1834
+ "A#": "Bb"
1843
1835
  },
1844
- 'C#': {
1845
- 'D#': 'Eb',
1846
- 'A#': 'Bb'
1836
+ "C#": {
1837
+ "D#": "Eb",
1838
+ "A#": "Bb"
1847
1839
  },
1848
- 'Db': {
1849
- 'B': 'Cb',
1850
- 'F#': 'Gb'
1840
+ "Db": {
1841
+ "B": "Cb",
1842
+ "F#": "Gb"
1851
1843
  },
1852
- 'D': {
1853
- 'D#': 'Eb',
1854
- 'A#': 'Bb'
1844
+ "D": {
1845
+ "D#": "Eb",
1846
+ "A#": "Bb"
1855
1847
  },
1856
- 'E': {
1857
- 'Ab': 'G#',
1858
- 'A#': 'Bb',
1859
- 'D#': 'Eb'
1848
+ "E": {
1849
+ "Ab": "G#",
1850
+ "A#": "Bb",
1851
+ "D#": "Eb"
1860
1852
  },
1861
- 'F': {
1862
- 'A#': 'Bb',
1863
- 'F#': 'Gb',
1864
- 'C#': 'Db',
1865
- 'D#': 'Eb',
1866
- 'G#': 'Ab'
1853
+ "F": {
1854
+ "A#": "Bb",
1855
+ "F#": "Gb",
1856
+ "C#": "Db",
1857
+ "D#": "Eb",
1858
+ "G#": "Ab"
1867
1859
  },
1868
- 'F#': {
1869
- 'A#': 'Bb',
1870
- 'D#': 'Eb'
1860
+ "F#": {
1861
+ "A#": "Bb",
1862
+ "D#": "Eb"
1871
1863
  },
1872
- 'Gb': {
1873
- 'A#': 'Bb',
1874
- 'D#': 'Eb',
1875
- 'G#': 'Ab',
1876
- 'B': 'Cb',
1877
- 'E': 'Fb'
1864
+ "Gb": {
1865
+ "A#": "Bb",
1866
+ "D#": "Eb",
1867
+ "G#": "Ab",
1868
+ "B": "Cb",
1869
+ "E": "Fb"
1878
1870
  },
1879
- 'G': {
1880
- 'A#': 'Bb',
1881
- 'D#': 'Eb',
1882
- 'G#': 'Ab'
1871
+ "G": {
1872
+ "A#": "Bb",
1873
+ "D#": "Eb",
1874
+ "G#": "Ab"
1883
1875
  },
1884
- 'G#': {
1885
- 'A#': 'Bb',
1886
- 'D#': 'Eb'
1876
+ "G#": {
1877
+ "A#": "Bb",
1878
+ "D#": "Eb"
1887
1879
  },
1888
- 'Am': {
1889
- 'Gb': 'G',
1890
- 'G#': 'Ab',
1891
- 'F#': 'Gb',
1892
- 'C#': 'Db',
1893
- 'D#': 'Eb',
1894
- 'A#': 'Bb'
1880
+ "Am": {
1881
+ "Gb": "G",
1882
+ "G#": "Ab",
1883
+ "F#": "Gb",
1884
+ "C#": "Db",
1885
+ "D#": "Eb",
1886
+ "A#": "Bb"
1895
1887
  },
1896
- 'Bbm': {
1897
- 'Cb': 'B'
1888
+ "Bbm": {
1889
+ "Cb": "B"
1898
1890
  },
1899
- 'Bm': {
1900
- 'A#': 'Bb',
1901
- 'D#': 'Eb'
1891
+ "Bm": {
1892
+ "A#": "Bb",
1893
+ "D#": "Eb"
1902
1894
  },
1903
- 'C#m': {
1904
- 'A#': 'Bb',
1905
- 'D#': 'Eb'
1895
+ "C#m": {
1896
+ "A#": "Bb",
1897
+ "D#": "Eb"
1906
1898
  },
1907
- 'Cm': {
1908
- 'G#': 'Ab',
1909
- 'A#': 'Bb',
1910
- 'D#': 'Eb',
1911
- 'F#': 'Gb',
1912
- 'C#': 'Db'
1899
+ "Cm": {
1900
+ "G#": "Ab",
1901
+ "A#": "Bb",
1902
+ "D#": "Eb",
1903
+ "F#": "Gb",
1904
+ "C#": "Db"
1913
1905
  },
1914
- 'Dm': {
1915
- 'A#': 'Bb',
1916
- 'D#': 'Eb'
1906
+ "Dm": {
1907
+ "A#": "Bb",
1908
+ "D#": "Eb"
1917
1909
  },
1918
- 'Em': {
1919
- 'A#': 'Bb',
1920
- 'D#': 'Eb'
1910
+ "Em": {
1911
+ "A#": "Bb",
1912
+ "D#": "Eb"
1921
1913
  },
1922
- 'F#m': {
1923
- 'A#': 'Bb',
1924
- 'D#': 'Eb',
1925
- 'Gb': 'F#',
1926
- 'Ab': 'G#',
1927
- 'Db': 'C#'
1914
+ "F#m": {
1915
+ "A#": "Bb",
1916
+ "D#": "Eb",
1917
+ "Gb": "F#",
1918
+ "Ab": "G#",
1919
+ "Db": "C#"
1928
1920
  },
1929
- 'Fm': {
1930
- 'G#': 'Ab',
1931
- 'A#': 'Bb',
1932
- 'D#': 'Eb',
1933
- 'F#': 'Gb',
1934
- 'C#': 'Db'
1921
+ "Fm": {
1922
+ "G#": "Ab",
1923
+ "A#": "Bb",
1924
+ "D#": "Eb",
1925
+ "F#": "Gb",
1926
+ "C#": "Db"
1935
1927
  },
1936
- 'Gm': {
1937
- 'G#': 'Ab',
1938
- 'A#': 'Bb',
1939
- 'D#': 'Eb'
1928
+ "Gm": {
1929
+ "G#": "Ab",
1930
+ "A#": "Bb",
1931
+ "D#": "Eb"
1940
1932
  },
1941
- 'G#m': {
1942
- 'A#': 'Bb',
1943
- 'D#': 'Eb'
1933
+ "G#m": {
1934
+ "A#": "Bb",
1935
+ "D#": "Eb"
1944
1936
  }
1945
1937
  };
1946
1938
 
@@ -1951,47 +1943,39 @@ const $21a34a464e7bc609$export$13215d9ce4923f76 = (collection, Klass)=>{
1951
1943
  collection.push(newObject);
1952
1944
  return newObject;
1953
1945
  };
1954
- const $21a34a464e7bc609$export$d332d76d125f0cbe = (line)=>line.items.some((item)=>!!item.chords
1955
- )
1956
- ;
1957
- const $21a34a464e7bc609$export$e3f63561d52b936d = (item)=>typeof item.evaluate === 'function'
1958
- ;
1946
+ const $21a34a464e7bc609$export$d332d76d125f0cbe = (line)=>line.items.some((item)=>!!item.chords);
1947
+ const $21a34a464e7bc609$export$e3f63561d52b936d = (item)=>typeof item.evaluate === "function";
1959
1948
  const $21a34a464e7bc609$export$bc3bea8325045070 = (str, length)=>{
1960
1949
  let paddedString = str;
1961
- for(let l = str.length; l < length; l += 1, paddedString += ' ');
1950
+ for(let l = str.length; l < length; l += 1, paddedString += " ");
1962
1951
  return paddedString;
1963
1952
  };
1964
- const $21a34a464e7bc609$export$ee27c052bca048fb = (object)=>object && object.length > 0
1965
- ;
1966
- const $21a34a464e7bc609$export$7ee701e290d9865 = (object)=>!$21a34a464e7bc609$export$ee27c052bca048fb(object)
1967
- ;
1968
- const $21a34a464e7bc609$export$ed9b06b5ee264ad3 = (object)=>$21a34a464e7bc609$export$ee27c052bca048fb(object) ? object : null
1969
- ;
1953
+ const $21a34a464e7bc609$export$ee27c052bca048fb = (object)=>object && object.length > 0;
1954
+ const $21a34a464e7bc609$export$7ee701e290d9865 = (object)=>!$21a34a464e7bc609$export$ee27c052bca048fb(object);
1955
+ const $21a34a464e7bc609$export$ed9b06b5ee264ad3 = (object)=>$21a34a464e7bc609$export$ee27c052bca048fb(object) ? object : null;
1970
1956
  function $21a34a464e7bc609$var$dasherize(string) {
1971
- return string.replace(/[A-Z]/g, (match)=>`-${match.toLowerCase()}`
1972
- );
1957
+ return string.replace(/[A-Z]/g, (match)=>`-${match.toLowerCase()}`);
1973
1958
  }
1974
1959
  function $21a34a464e7bc609$export$59d377d2a2e0150a(css, scope) {
1975
1960
  return Object.entries(css).map(([selector, styles])=>{
1976
- const rules = Object.entries(styles).map(([property, value])=>`${$21a34a464e7bc609$var$dasherize(property)}: ${value};`
1977
- ).join('\n ');
1961
+ const rules = Object.entries(styles).map(([property, value])=>`${$21a34a464e7bc609$var$dasherize(property)}: ${value};`).join("\n ");
1978
1962
  const scopedSelector = `${scope} ${selector}`.trim();
1979
1963
  return `
1980
1964
  ${scopedSelector} {
1981
1965
  ${rules}
1982
1966
  }`.substring(1);
1983
- }).join('\n\n');
1967
+ }).join("\n\n");
1984
1968
  }
1985
1969
  function $21a34a464e7bc609$export$b680e6b2c82f8c2f(message) {
1986
1970
  try {
1987
1971
  throw new Error(`DEPRECATION: ${message}`);
1988
1972
  } catch (e) {
1989
- if (typeof $988mA$process === 'object' && typeof $988mA$process.emitWarning === 'function') $988mA$process.emitWarning(`${message}\n${e.stack}`);
1973
+ if (typeof $988mA$process === "object" && typeof $988mA$process.emitWarning === "function") $988mA$process.emitWarning(`${message}\n${e.stack}`);
1990
1974
  else console.warn(`${message}\n${e.stack}`);
1991
1975
  }
1992
1976
  }
1993
1977
  function $21a34a464e7bc609$export$78d1711480f95c3e(string) {
1994
- return string === null || string === undefined || string === '';
1978
+ return string === null || string === undefined || string === "";
1995
1979
  }
1996
1980
  function $21a34a464e7bc609$export$595e981f61839426(string, constructor, regexes) {
1997
1981
  if ($21a34a464e7bc609$export$78d1711480f95c3e(string)) return null;
@@ -2003,8 +1987,8 @@ function $21a34a464e7bc609$export$595e981f61839426(string, constructor, regexes)
2003
1987
  }
2004
1988
 
2005
1989
 
2006
- const $bff5407e03fdc8ee$var$FLAT = 'b';
2007
- const $bff5407e03fdc8ee$var$SHARP = '#';
1990
+ const $bff5407e03fdc8ee$var$FLAT = "b";
1991
+ const $bff5407e03fdc8ee$var$SHARP = "#";
2008
1992
  const $bff5407e03fdc8ee$var$MODIFIER_TRANSPOSITION = {
2009
1993
  [$bff5407e03fdc8ee$var$SHARP]: 1,
2010
1994
  [$bff5407e03fdc8ee$var$FLAT]: -1
@@ -2021,7 +2005,7 @@ class $bff5407e03fdc8ee$var$Key {
2021
2005
  modifier = null;
2022
2006
  minor = false;
2023
2007
  static parse(keyString) {
2024
- return $21a34a464e7bc609$export$595e981f61839426(keyString, $bff5407e03fdc8ee$var$Key, $bff5407e03fdc8ee$var$regexes);
2008
+ return (0, $21a34a464e7bc609$export$595e981f61839426)(keyString, $bff5407e03fdc8ee$var$Key, $bff5407e03fdc8ee$var$regexes);
2025
2009
  }
2026
2010
  static wrap(keyStringOrObject) {
2027
2011
  if (keyStringOrObject instanceof $bff5407e03fdc8ee$var$Key) return keyStringOrObject;
@@ -2044,7 +2028,7 @@ class $bff5407e03fdc8ee$var$Key {
2044
2028
  return delta;
2045
2029
  }
2046
2030
  constructor({ note: note , modifier: modifier = null , minor: minor = false }){
2047
- this.note = note instanceof $8fcf445ea0999053$export$2e2bcd8739ae039 ? note : $8fcf445ea0999053$export$2e2bcd8739ae039.parse(note);
2031
+ this.note = note instanceof (0, $8fcf445ea0999053$export$2e2bcd8739ae039) ? note : (0, $8fcf445ea0999053$export$2e2bcd8739ae039).parse(note);
2048
2032
  this.modifier = modifier || null;
2049
2033
  this.minor = !!minor || false;
2050
2034
  }
@@ -2055,7 +2039,7 @@ class $bff5407e03fdc8ee$var$Key {
2055
2039
  return this.set({});
2056
2040
  }
2057
2041
  toChordSymbol(key) {
2058
- if (this.is($af8d31735c159a26$export$27c95a7104c1f7aa)) return this.clone();
2042
+ if (this.is((0, $af8d31735c159a26$export$27c95a7104c1f7aa))) return this.clone();
2059
2043
  const transposeDistance = this.note.getTransposeDistance(key.minor) + ($bff5407e03fdc8ee$var$MODIFIER_TRANSPOSITION[this.modifier] || 0);
2060
2044
  return key.transpose(transposeDistance).normalize().useModifier(key.modifier);
2061
2045
  }
@@ -2066,13 +2050,13 @@ class $bff5407e03fdc8ee$var$Key {
2066
2050
  return this.note.is(type);
2067
2051
  }
2068
2052
  isNumeric() {
2069
- return this.is($af8d31735c159a26$export$4d318981b5a83836);
2053
+ return this.is((0, $af8d31735c159a26$export$4d318981b5a83836));
2070
2054
  }
2071
2055
  isChordSymbol() {
2072
- return this.is($af8d31735c159a26$export$27c95a7104c1f7aa);
2056
+ return this.is((0, $af8d31735c159a26$export$27c95a7104c1f7aa));
2073
2057
  }
2074
2058
  isNumeral() {
2075
- return this.is($af8d31735c159a26$export$1321df9b16c30c6a);
2059
+ return this.is((0, $af8d31735c159a26$export$1321df9b16c30c6a));
2076
2060
  }
2077
2061
  equals({ note: note , modifier: modifier = null }) {
2078
2062
  return this.note.equals(note) && this.modifier === modifier;
@@ -2092,20 +2076,20 @@ class $bff5407e03fdc8ee$var$Key {
2092
2076
  if (this.isNumeric()) return this.set({
2093
2077
  note: this.note.toNumeral()
2094
2078
  });
2095
- return this.transposeNoteUpToKey('I', key);
2079
+ return this.transposeNoteUpToKey("I", key);
2096
2080
  }
2097
2081
  toNumeralString(key = null) {
2098
2082
  return this.toNumeral(key).toString();
2099
2083
  }
2100
2084
  toString() {
2101
- if (this.isChordSymbol()) return `${this.note}${this.modifier || ''}`;
2102
- return `${this.modifier || ''}${this.note}`;
2085
+ if (this.isChordSymbol()) return `${this.note}${this.modifier || ""}`;
2086
+ return `${this.modifier || ""}${this.note}`;
2103
2087
  }
2104
2088
  transpose(delta) {
2105
2089
  if (delta === 0) return this;
2106
2090
  const originalModifier = this.modifier;
2107
2091
  let transposedKey = this.clone();
2108
- const func = delta < 0 ? 'transposeDown' : 'transposeUp';
2092
+ const func = delta < 0 ? "transposeDown" : "transposeUp";
2109
2093
  for(let i = 0, count = Math.abs(delta); i < count; i += 1)transposedKey = transposedKey[func]();
2110
2094
  return transposedKey.useModifier(originalModifier);
2111
2095
  }
@@ -2113,7 +2097,7 @@ class $bff5407e03fdc8ee$var$Key {
2113
2097
  if (this.modifier === $bff5407e03fdc8ee$var$FLAT) return this.set({
2114
2098
  modifier: null
2115
2099
  });
2116
- if (this.note.isOneOf(3, 7, 'E', 'B')) return this.set({
2100
+ if (this.note.isOneOf(3, 7, "E", "B")) return this.set({
2117
2101
  note: this.note.up()
2118
2102
  });
2119
2103
  if (this.modifier === $bff5407e03fdc8ee$var$SHARP) return this.set({
@@ -2128,7 +2112,7 @@ class $bff5407e03fdc8ee$var$Key {
2128
2112
  if (this.modifier === $bff5407e03fdc8ee$var$SHARP) return this.set({
2129
2113
  modifier: null
2130
2114
  });
2131
- if (this.note.isOneOf(1, 4, 'C', 'F')) return this.set({
2115
+ if (this.note.isOneOf(1, 4, "C", "F")) return this.set({
2132
2116
  note: this.note.down()
2133
2117
  });
2134
2118
  if (this.modifier === $bff5407e03fdc8ee$var$FLAT) return this.set({
@@ -2151,11 +2135,11 @@ class $bff5407e03fdc8ee$var$Key {
2151
2135
  return this.clone();
2152
2136
  }
2153
2137
  normalize() {
2154
- if (this.modifier === $bff5407e03fdc8ee$var$SHARP && this.note.isOneOf(3, 7, 'E', 'B')) return this.set({
2138
+ if (this.modifier === $bff5407e03fdc8ee$var$SHARP && this.note.isOneOf(3, 7, "E", "B")) return this.set({
2155
2139
  note: this.note.up(),
2156
2140
  modifier: null
2157
2141
  });
2158
- if (this.modifier === $bff5407e03fdc8ee$var$FLAT && this.note.isOneOf(1, 4, 'C', 'F')) return this.set({
2142
+ if (this.modifier === $bff5407e03fdc8ee$var$FLAT && this.note.isOneOf(1, 4, "C", "F")) return this.set({
2159
2143
  note: this.note.down(),
2160
2144
  modifier: null
2161
2145
  });
@@ -2164,7 +2148,7 @@ class $bff5407e03fdc8ee$var$Key {
2164
2148
  normalizeEnharmonics(key) {
2165
2149
  if (key) {
2166
2150
  const rootKeyString = key.minor ? `${key}m` : key.toString();
2167
- const enharmonics = $6ebb068142750218$export$2e2bcd8739ae039[rootKeyString];
2151
+ const enharmonics = (0, $6ebb068142750218$export$2e2bcd8739ae039)[rootKeyString];
2168
2152
  const thisKeyString = this.toString();
2169
2153
  if (enharmonics && enharmonics[thisKeyString]) return $bff5407e03fdc8ee$var$Key.parse(enharmonics[thisKeyString]);
2170
2154
  }
@@ -3107,20 +3091,18 @@ var $e12151f977ef7bf6$export$2e2bcd8739ae039 = $e12151f977ef7bf6$var$mapping;
3107
3091
 
3108
3092
 
3109
3093
  function $26f57998457eb2d4$var$normalizeSuffix(suffix) {
3110
- if ($e12151f977ef7bf6$export$2e2bcd8739ae039[suffix] === '[blank]') return null;
3111
- return $e12151f977ef7bf6$export$2e2bcd8739ae039[suffix] || suffix;
3094
+ if ((0, $e12151f977ef7bf6$export$2e2bcd8739ae039)[suffix] === "[blank]") return null;
3095
+ return (0, $e12151f977ef7bf6$export$2e2bcd8739ae039)[suffix] || suffix;
3112
3096
  }
3113
3097
  const $26f57998457eb2d4$var$chordRegex = /^(?<base>[A-G])(?<modifier>#|b)?(?<suffix>[^/\s]*)(\/(?<bassBase>[A-G])(?<bassModifier>#|b)?)?$/i;
3114
3098
  const $26f57998457eb2d4$var$numericChordRegex = /^(?<modifier>#|b)?(?<base>[1-7])(?<suffix>[^/\s]*)(\/(?<bassModifier>#|b)?(?<bassBase>[0-7]))?$/;
3115
3099
  const $26f57998457eb2d4$var$sortedNumerals = [
3116
- ...$af8d31735c159a26$export$6145372d252f6576
3117
- ].sort((numeralA, numeralB)=>numeralB.length - numeralA.length
3118
- );
3100
+ ...(0, $af8d31735c159a26$export$6145372d252f6576)
3101
+ ].sort((numeralA, numeralB)=>numeralB.length - numeralA.length);
3119
3102
  const $26f57998457eb2d4$var$numerals = [
3120
3103
  ...$26f57998457eb2d4$var$sortedNumerals,
3121
- ...$26f57998457eb2d4$var$sortedNumerals.map((numeral)=>numeral.toLowerCase()
3122
- ),
3123
- ].join('|');
3104
+ ...$26f57998457eb2d4$var$sortedNumerals.map((numeral)=>numeral.toLowerCase()),
3105
+ ].join("|");
3124
3106
  const $26f57998457eb2d4$var$numeralChordRegex = // eslint-disable-next-line max-len
3125
3107
  new RegExp(`^(?<modifier>#|b)?(?<base>${$26f57998457eb2d4$var$numerals})(?<suffix>[^/\\s]*)(\\/(?<bassModifier>#|b)?(?<bassBase>${$26f57998457eb2d4$var$numerals}))?$`);
3126
3108
  const $26f57998457eb2d4$var$regexes = [
@@ -3136,7 +3118,7 @@ const $26f57998457eb2d4$var$regexes = [
3136
3118
  * @param chordString the chord string, eg `Esus4/G#` or `1sus4/#3`
3137
3119
  * @returns {null|Chord}
3138
3120
  */ static parse(chordString) {
3139
- return $21a34a464e7bc609$export$595e981f61839426(chordString, $26f57998457eb2d4$var$Chord, $26f57998457eb2d4$var$regexes);
3121
+ return (0, $21a34a464e7bc609$export$595e981f61839426)(chordString, $26f57998457eb2d4$var$Chord, $26f57998457eb2d4$var$regexes);
3140
3122
  }
3141
3123
  /**
3142
3124
  * Returns a deep copy of the chord
@@ -3152,7 +3134,7 @@ const $26f57998457eb2d4$var$regexes = [
3152
3134
  * @returns {Chord} the chord symbol
3153
3135
  */ toChordSymbol(key = null) {
3154
3136
  if (this.isChordSymbol()) return this.clone();
3155
- const keyObj = $bff5407e03fdc8ee$export$2e2bcd8739ae039.wrap(key);
3137
+ const keyObj = (0, $bff5407e03fdc8ee$export$2e2bcd8739ae039).wrap(key);
3156
3138
  const rootKey = this.root.toChordSymbol(keyObj).normalizeEnharmonics(keyObj);
3157
3139
  let chordSymbolChord = new $26f57998457eb2d4$var$Chord({
3158
3140
  suffix: $26f57998457eb2d4$var$normalizeSuffix(this.suffix),
@@ -3176,7 +3158,7 @@ const $26f57998457eb2d4$var$regexes = [
3176
3158
  * Determines whether the chord is a chord symbol
3177
3159
  * @returns {boolean}
3178
3160
  */ isChordSymbol() {
3179
- return this.is($af8d31735c159a26$export$27c95a7104c1f7aa);
3161
+ return this.is((0, $af8d31735c159a26$export$27c95a7104c1f7aa));
3180
3162
  }
3181
3163
  /**
3182
3164
  * Converts the chord to a numeric chord, using the supplied key as a reference.
@@ -3189,7 +3171,7 @@ const $26f57998457eb2d4$var$regexes = [
3189
3171
  root: this.root.toNumeric(),
3190
3172
  bass: this.bass?.toNumeric()
3191
3173
  });
3192
- const keyObj = $bff5407e03fdc8ee$export$2e2bcd8739ae039.wrap(key);
3174
+ const keyObj = (0, $bff5407e03fdc8ee$export$2e2bcd8739ae039).wrap(key);
3193
3175
  return new $26f57998457eb2d4$var$Chord({
3194
3176
  suffix: $26f57998457eb2d4$var$normalizeSuffix(this.suffix),
3195
3177
  root: this.root.toNumeric(keyObj),
@@ -3207,7 +3189,7 @@ const $26f57998457eb2d4$var$regexes = [
3207
3189
  root: this.root.toNumeral(),
3208
3190
  bass: this.bass?.toNumeral()
3209
3191
  });
3210
- const keyObj = $bff5407e03fdc8ee$export$2e2bcd8739ae039.wrap(key);
3192
+ const keyObj = (0, $bff5407e03fdc8ee$export$2e2bcd8739ae039).wrap(key);
3211
3193
  return new $26f57998457eb2d4$var$Chord({
3212
3194
  suffix: $26f57998457eb2d4$var$normalizeSuffix(this.suffix),
3213
3195
  root: this.root.toNumeral(keyObj),
@@ -3227,7 +3209,7 @@ const $26f57998457eb2d4$var$regexes = [
3227
3209
  * Determines whether the chord is numeric
3228
3210
  * @returns {boolean}
3229
3211
  */ isNumeric() {
3230
- return this.is($af8d31735c159a26$export$4d318981b5a83836);
3212
+ return this.is((0, $af8d31735c159a26$export$4d318981b5a83836));
3231
3213
  }
3232
3214
  /**
3233
3215
  * Converts the chord to a numeric chord string, using the supplied kye as a reference.
@@ -3242,13 +3224,13 @@ const $26f57998457eb2d4$var$regexes = [
3242
3224
  * Determines whether the chord is a numeral
3243
3225
  * @returns {boolean}
3244
3226
  */ isNumeral() {
3245
- return this.is($af8d31735c159a26$export$1321df9b16c30c6a);
3227
+ return this.is((0, $af8d31735c159a26$export$1321df9b16c30c6a));
3246
3228
  }
3247
3229
  /**
3248
3230
  * Converts the chord to a string, eg `Esus4/G#` or `1sus4/#3`
3249
3231
  * @returns {string} the chord string
3250
3232
  */ toString() {
3251
- const chordString = this.root.toString() + (this.suffix || '');
3233
+ const chordString = this.root.toString() + (this.suffix || "");
3252
3234
  if (this.bass) return `${chordString}/${this.bass.toString()}`;
3253
3235
  return chordString;
3254
3236
  }
@@ -3268,12 +3250,12 @@ const $26f57998457eb2d4$var$regexes = [
3268
3250
  *
3269
3251
  * @returns {Chord} the normalized chord
3270
3252
  */ normalize(key = null) {
3271
- if ($21a34a464e7bc609$export$7ee701e290d9865(key)) return this.process('normalize').set({
3272
- suffix: $21a34a464e7bc609$export$ed9b06b5ee264ad3($26f57998457eb2d4$var$normalizeSuffix(this.suffix))
3253
+ if ((0, $21a34a464e7bc609$export$7ee701e290d9865)(key)) return this.process("normalize").set({
3254
+ suffix: (0, $21a34a464e7bc609$export$ed9b06b5ee264ad3)($26f57998457eb2d4$var$normalizeSuffix(this.suffix))
3273
3255
  });
3274
3256
  return this.set({
3275
3257
  root: this.root.normalizeEnharmonics(key),
3276
- suffix: $21a34a464e7bc609$export$ed9b06b5ee264ad3($26f57998457eb2d4$var$normalizeSuffix(this.suffix)),
3258
+ suffix: (0, $21a34a464e7bc609$export$ed9b06b5ee264ad3)($26f57998457eb2d4$var$normalizeSuffix(this.suffix)),
3277
3259
  bass: this.bass ? this.bass.normalizeEnharmonics(this.root.toString()) : null
3278
3260
  });
3279
3261
  }
@@ -3282,45 +3264,45 @@ const $26f57998457eb2d4$var$regexes = [
3282
3264
  * @param newModifier the modifier to use: `'#'` or `'b'`
3283
3265
  * @returns {Chord} the new, changed chord
3284
3266
  */ useModifier(newModifier) {
3285
- return this.process('useModifier', newModifier);
3267
+ return this.process("useModifier", newModifier);
3286
3268
  }
3287
3269
  /**
3288
3270
  * Transposes the chord up by 1 semitone. Eg. A becomes A#, Eb becomes E
3289
3271
  * @returns {Chord} the new, transposed chord
3290
3272
  */ transposeUp() {
3291
- return this.process('transposeUp');
3273
+ return this.process("transposeUp");
3292
3274
  }
3293
3275
  /**
3294
3276
  * Transposes the chord down by 1 semitone. Eg. A# becomes A, E becomes Eb
3295
3277
  * @returns {Chord} the new, transposed chord
3296
3278
  */ transposeDown() {
3297
- return this.process('transposeDown');
3279
+ return this.process("transposeDown");
3298
3280
  }
3299
3281
  /**
3300
3282
  * Transposes the chord by the specified number of semitones
3301
3283
  * @param delta de number of semitones
3302
3284
  * @returns {Chord} the new, transposed chord
3303
3285
  */ transpose(delta) {
3304
- return this.process('transpose', delta);
3286
+ return this.process("transpose", delta);
3305
3287
  }
3306
3288
  constructor({ base: base = null , modifier: modifier = null , suffix: suffix = null , bassBase: bassBase = null , bassModifier: bassModifier = null , root: root = null , bass: bass = null , }){
3307
- this.suffix = $21a34a464e7bc609$export$ed9b06b5ee264ad3(suffix);
3308
- this.root = root || new $bff5407e03fdc8ee$export$2e2bcd8739ae039({
3289
+ this.suffix = (0, $21a34a464e7bc609$export$ed9b06b5ee264ad3)(suffix);
3290
+ this.root = root || new (0, $bff5407e03fdc8ee$export$2e2bcd8739ae039)({
3309
3291
  note: base,
3310
3292
  modifier: modifier,
3311
- minor: suffix === 'm'
3293
+ minor: suffix === "m"
3312
3294
  });
3313
3295
  if (bass) this.bass = bass;
3314
- else if (bassBase) this.bass = new $bff5407e03fdc8ee$export$2e2bcd8739ae039({
3296
+ else if (bassBase) this.bass = new (0, $bff5407e03fdc8ee$export$2e2bcd8739ae039)({
3315
3297
  note: bassBase,
3316
3298
  modifier: bassModifier,
3317
- minor: suffix === 'm'
3299
+ minor: suffix === "m"
3318
3300
  });
3319
3301
  else this.bass = null;
3320
3302
  }
3321
3303
  makeMinor() {
3322
- if (!this.suffix || this.suffix[0] !== 'm') return this.set({
3323
- suffix: `m${this.suffix || ''}`
3304
+ if (!this.suffix || this.suffix[0] !== "m") return this.set({
3305
+ suffix: `m${this.suffix || ""}`
3324
3306
  });
3325
3307
  return this.clone();
3326
3308
  }
@@ -3346,7 +3328,7 @@ const $26f57998457eb2d4$var$regexes = [
3346
3328
  }
3347
3329
  }
3348
3330
  function $26f57998457eb2d4$export$621b8187b24d90c6(chordString) {
3349
- $21a34a464e7bc609$export$b680e6b2c82f8c2f('parseChord() is deprecated, please use Chord.parse() instead');
3331
+ (0, $21a34a464e7bc609$export$b680e6b2c82f8c2f)("parseChord() is deprecated, please use Chord.parse() instead");
3350
3332
  return $26f57998457eb2d4$var$Chord.parse(chordString);
3351
3333
  }
3352
3334
  var $26f57998457eb2d4$export$2e2bcd8739ae039 = $26f57998457eb2d4$var$Chord;
@@ -3359,17 +3341,17 @@ var $26f57998457eb2d4$export$2e2bcd8739ae039 = $26f57998457eb2d4$var$Chord;
3359
3341
  * Initialises a ChordLyricsPair
3360
3342
  * @param {string} chords The chords
3361
3343
  * @param {string} lyrics The lyrics
3362
- */ constructor(chords = '', lyrics = ''){
3344
+ */ constructor(chords = "", lyrics = ""){
3363
3345
  /**
3364
3346
  * The chords
3365
3347
  * @member
3366
3348
  * @type {string}
3367
- */ this.chords = chords || '';
3349
+ */ this.chords = chords || "";
3368
3350
  /**
3369
3351
  * The lyrics
3370
3352
  * @member
3371
3353
  * @type {string}
3372
- */ this.lyrics = lyrics || '';
3354
+ */ this.lyrics = lyrics || "";
3373
3355
  }
3374
3356
  /**
3375
3357
  * Indicates whether a ChordLyricsPair should be visible in a formatted chord sheet (except for ChordPro sheets)
@@ -3395,7 +3377,7 @@ var $26f57998457eb2d4$export$2e2bcd8739ae039 = $26f57998457eb2d4$var$Chord;
3395
3377
  });
3396
3378
  }
3397
3379
  transpose(delta, key) {
3398
- const chordObj = $26f57998457eb2d4$export$2e2bcd8739ae039.parse(this.chords);
3380
+ const chordObj = (0, $26f57998457eb2d4$export$2e2bcd8739ae039).parse(this.chords);
3399
3381
  if (chordObj) return this.set({
3400
3382
  chords: chordObj.transpose(delta).normalize(key).toString()
3401
3383
  });
@@ -3420,37 +3402,37 @@ class $cf00b4d3af89fa07$var$AstComponent {
3420
3402
  var $cf00b4d3af89fa07$export$2e2bcd8739ae039 = $cf00b4d3af89fa07$var$AstComponent;
3421
3403
 
3422
3404
 
3423
- const $5e9ede69210ec54a$export$10227cb086d1770c = 'album';
3424
- const $5e9ede69210ec54a$export$17d8dfb3db842bf = 'artist';
3425
- const $5e9ede69210ec54a$export$866f445d49bad88e = 'capo';
3426
- const $5e9ede69210ec54a$export$a29989082612d0d9 = 'comment';
3427
- const $5e9ede69210ec54a$export$98424633dc8c377f = 'composer';
3428
- const $5e9ede69210ec54a$export$4ab8c75045d12480 = 'copyright';
3429
- const $5e9ede69210ec54a$export$bacc88974c736870 = 'duration';
3430
- const $5e9ede69210ec54a$export$473c1a4819e5180b = 'end_of_chorus';
3431
- const $5e9ede69210ec54a$export$66a0ef3ffeab32b7 = 'end_of_tab';
3432
- const $5e9ede69210ec54a$export$640d294ab83f9040 = 'end_of_verse';
3433
- const $5e9ede69210ec54a$export$7167c830cefcb6b5 = 'key';
3434
- const $5e9ede69210ec54a$export$430b1920f5feeae = '_key';
3435
- const $5e9ede69210ec54a$export$a6901bd008617c61 = 'lyricist';
3436
- const $5e9ede69210ec54a$export$4f5168acae064e01 = 'start_of_chorus';
3437
- const $5e9ede69210ec54a$export$8dd1111100e0e88d = 'start_of_tab';
3438
- const $5e9ede69210ec54a$export$deca399f8cd9b7dc = 'start_of_verse';
3439
- const $5e9ede69210ec54a$export$5895c693c74b9cf4 = 'subtitle';
3440
- const $5e9ede69210ec54a$export$bd8d57d0bc5a8478 = 'tempo';
3441
- const $5e9ede69210ec54a$export$a9905336c0111a3a = 'time';
3442
- const $5e9ede69210ec54a$export$f1e53f710478ceb4 = 'title';
3443
- const $5e9ede69210ec54a$export$ae60ab9b4739fc3d = 'transpose';
3444
- const $5e9ede69210ec54a$export$b7627374a6424f68 = 'new_key';
3445
- const $5e9ede69210ec54a$export$90b88dc425a06a95 = 'year';
3446
- const $5e9ede69210ec54a$var$TITLE_SHORT = 't';
3447
- const $5e9ede69210ec54a$var$SUBTITLE_SHORT = 'st';
3448
- const $5e9ede69210ec54a$var$COMMENT_SHORT = 'c';
3449
- const $5e9ede69210ec54a$var$START_OF_CHORUS_SHORT = 'soc';
3450
- const $5e9ede69210ec54a$var$END_OF_CHORUS_SHORT = 'eoc';
3451
- const $5e9ede69210ec54a$var$START_OF_TAB_SHORT = 'sot';
3452
- const $5e9ede69210ec54a$var$END_OF_TAB_SHORT = 'eot';
3453
- const $5e9ede69210ec54a$var$NEW_KEY_SHORT = 'nk';
3405
+ const $5e9ede69210ec54a$export$10227cb086d1770c = "album";
3406
+ const $5e9ede69210ec54a$export$17d8dfb3db842bf = "artist";
3407
+ const $5e9ede69210ec54a$export$866f445d49bad88e = "capo";
3408
+ const $5e9ede69210ec54a$export$a29989082612d0d9 = "comment";
3409
+ const $5e9ede69210ec54a$export$98424633dc8c377f = "composer";
3410
+ const $5e9ede69210ec54a$export$4ab8c75045d12480 = "copyright";
3411
+ const $5e9ede69210ec54a$export$bacc88974c736870 = "duration";
3412
+ const $5e9ede69210ec54a$export$473c1a4819e5180b = "end_of_chorus";
3413
+ const $5e9ede69210ec54a$export$66a0ef3ffeab32b7 = "end_of_tab";
3414
+ const $5e9ede69210ec54a$export$640d294ab83f9040 = "end_of_verse";
3415
+ const $5e9ede69210ec54a$export$7167c830cefcb6b5 = "key";
3416
+ const $5e9ede69210ec54a$export$430b1920f5feeae = "_key";
3417
+ const $5e9ede69210ec54a$export$a6901bd008617c61 = "lyricist";
3418
+ const $5e9ede69210ec54a$export$4f5168acae064e01 = "start_of_chorus";
3419
+ const $5e9ede69210ec54a$export$8dd1111100e0e88d = "start_of_tab";
3420
+ const $5e9ede69210ec54a$export$deca399f8cd9b7dc = "start_of_verse";
3421
+ const $5e9ede69210ec54a$export$5895c693c74b9cf4 = "subtitle";
3422
+ const $5e9ede69210ec54a$export$bd8d57d0bc5a8478 = "tempo";
3423
+ const $5e9ede69210ec54a$export$a9905336c0111a3a = "time";
3424
+ const $5e9ede69210ec54a$export$f1e53f710478ceb4 = "title";
3425
+ const $5e9ede69210ec54a$export$ae60ab9b4739fc3d = "transpose";
3426
+ const $5e9ede69210ec54a$export$b7627374a6424f68 = "new_key";
3427
+ const $5e9ede69210ec54a$export$90b88dc425a06a95 = "year";
3428
+ const $5e9ede69210ec54a$var$TITLE_SHORT = "t";
3429
+ const $5e9ede69210ec54a$var$SUBTITLE_SHORT = "st";
3430
+ const $5e9ede69210ec54a$var$COMMENT_SHORT = "c";
3431
+ const $5e9ede69210ec54a$var$START_OF_CHORUS_SHORT = "soc";
3432
+ const $5e9ede69210ec54a$var$END_OF_CHORUS_SHORT = "eoc";
3433
+ const $5e9ede69210ec54a$var$START_OF_TAB_SHORT = "sot";
3434
+ const $5e9ede69210ec54a$var$END_OF_TAB_SHORT = "eot";
3435
+ const $5e9ede69210ec54a$var$NEW_KEY_SHORT = "nk";
3454
3436
  const $5e9ede69210ec54a$var$RENDERABLE_TAGS = [
3455
3437
  $5e9ede69210ec54a$export$a29989082612d0d9
3456
3438
  ];
@@ -3496,11 +3478,11 @@ const $5e9ede69210ec54a$var$translateTagNameAlias = (name)=>{
3496
3478
  };
3497
3479
  /**
3498
3480
  * Represents a tag/directive. See https://www.chordpro.org/chordpro/chordpro-directives/
3499
- */ class $5e9ede69210ec54a$var$Tag extends $cf00b4d3af89fa07$export$2e2bcd8739ae039 {
3500
- constructor(name, value = '', traceInfo = null){
3481
+ */ class $5e9ede69210ec54a$var$Tag extends (0, $cf00b4d3af89fa07$export$2e2bcd8739ae039) {
3482
+ constructor(name, value = "", traceInfo = null){
3501
3483
  super(traceInfo);
3502
3484
  this.name = name;
3503
- this.value = value || '';
3485
+ this.value = value || "";
3504
3486
  }
3505
3487
  static parse(tag) {
3506
3488
  if (tag instanceof $5e9ede69210ec54a$var$Tag) return tag;
@@ -3618,7 +3600,7 @@ var $2115988b22311cb1$export$2e2bcd8739ae039 = $2115988b22311cb1$var$Comment;
3618
3600
  * Values can be {@link VERSE}, {@link CHORUS} or {@link NONE}
3619
3601
  * @member
3620
3602
  * @type {string}
3621
- */ type = $af8d31735c159a26$export$c53d0f541b41b88e;
3603
+ */ type = (0, $af8d31735c159a26$export$c53d0f541b41b88e);
3622
3604
  /**
3623
3605
  * @ignore
3624
3606
  * @type {ChordLyricsPair}
@@ -3632,7 +3614,7 @@ var $2115988b22311cb1$export$2e2bcd8739ae039 = $2115988b22311cb1$var$Comment;
3632
3614
  * @type {string|null}
3633
3615
  */ transposeKey = null;
3634
3616
  constructor({ type: type , items: items } = {
3635
- type: $af8d31735c159a26$export$c53d0f541b41b88e,
3617
+ type: (0, $af8d31735c159a26$export$c53d0f541b41b88e),
3636
3618
  items: []
3637
3619
  }){
3638
3620
  this.type = type;
@@ -3648,17 +3630,16 @@ var $2115988b22311cb1$export$2e2bcd8739ae039 = $2115988b22311cb1$var$Comment;
3648
3630
  * Adds an item ({@link ChordLyricsPair} or {@link Tag}) to the line
3649
3631
  * @param {ChordLyricsPair|Tag} item The item to be added
3650
3632
  */ addItem(item) {
3651
- if (item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039) this.addTag(item);
3652
- else if (item instanceof $d454f4215ba01af2$export$2e2bcd8739ae039) this.addChordLyricsPair(item);
3653
- else if (item instanceof $2115988b22311cb1$export$2e2bcd8739ae039) this.addComment(item);
3633
+ if (item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)) this.addTag(item);
3634
+ else if (item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039)) this.addChordLyricsPair(item);
3635
+ else if (item instanceof (0, $2115988b22311cb1$export$2e2bcd8739ae039)) this.addComment(item);
3654
3636
  else this.items.push(item);
3655
3637
  }
3656
3638
  /**
3657
3639
  * Indicates whether the line contains items that are renderable
3658
3640
  * @returns {boolean}
3659
3641
  */ hasRenderableItems() {
3660
- return this.items.some((item)=>item.isRenderable()
3661
- );
3642
+ return this.items.some((item)=>item.isRenderable());
3662
3643
  }
3663
3644
  /**
3664
3645
  * Returns a deep copy of the line and all of its items
@@ -3671,8 +3652,7 @@ var $2115988b22311cb1$export$2e2bcd8739ae039 = $2115988b22311cb1$var$Comment;
3671
3652
  clonedLine.items = this.items.map((item)=>{
3672
3653
  const clonedItem = item.clone();
3673
3654
  return func ? func(clonedItem) : clonedItem;
3674
- }).filter((item)=>item
3675
- );
3655
+ }).filter((item)=>item);
3676
3656
  clonedLine.type = this.type;
3677
3657
  return clonedLine;
3678
3658
  }
@@ -3680,13 +3660,13 @@ var $2115988b22311cb1$export$2e2bcd8739ae039 = $2115988b22311cb1$var$Comment;
3680
3660
  * Indicates whether the line type is {@link VERSE}
3681
3661
  * @returns {boolean}
3682
3662
  */ isVerse() {
3683
- return this.type === $af8d31735c159a26$export$4b194284baed1659;
3663
+ return this.type === (0, $af8d31735c159a26$export$4b194284baed1659);
3684
3664
  }
3685
3665
  /**
3686
3666
  * Indicates whether the line type is {@link CHORUS}
3687
3667
  * @returns {boolean}
3688
3668
  */ isChorus() {
3689
- return this.type === $af8d31735c159a26$export$8db6c706fc9142b2;
3669
+ return this.type === (0, $af8d31735c159a26$export$8db6c706fc9142b2);
3690
3670
  }
3691
3671
  /**
3692
3672
  * Indicates whether the line contains items that are renderable. Please use {@link hasRenderableItems}
@@ -3696,8 +3676,8 @@ var $2115988b22311cb1$export$2e2bcd8739ae039 = $2115988b22311cb1$var$Comment;
3696
3676
  return this.hasRenderableItems();
3697
3677
  }
3698
3678
  addChordLyricsPair(chords = null, lyrics = null) {
3699
- if (chords instanceof $d454f4215ba01af2$export$2e2bcd8739ae039) this.currentChordLyricsPair = chords;
3700
- else this.currentChordLyricsPair = new $d454f4215ba01af2$export$2e2bcd8739ae039(chords, lyrics);
3679
+ if (chords instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039)) this.currentChordLyricsPair = chords;
3680
+ else this.currentChordLyricsPair = new (0, $d454f4215ba01af2$export$2e2bcd8739ae039)(chords, lyrics);
3701
3681
  this.items.push(this.currentChordLyricsPair);
3702
3682
  return this.currentChordLyricsPair;
3703
3683
  }
@@ -3713,12 +3693,12 @@ var $2115988b22311cb1$export$2e2bcd8739ae039 = $2115988b22311cb1$var$Comment;
3713
3693
  this.currentChordLyricsPair.lyrics += chr;
3714
3694
  }
3715
3695
  addTag(name, value = null) {
3716
- const tag = name instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039 ? name : new $5e9ede69210ec54a$export$2e2bcd8739ae039(name, value);
3696
+ const tag = name instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) ? name : new (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)(name, value);
3717
3697
  this.items.push(tag);
3718
3698
  return tag;
3719
3699
  }
3720
3700
  addComment(content) {
3721
- const comment = content instanceof $2115988b22311cb1$export$2e2bcd8739ae039 ? content : new $2115988b22311cb1$export$2e2bcd8739ae039(content);
3701
+ const comment = content instanceof (0, $2115988b22311cb1$export$2e2bcd8739ae039) ? content : new (0, $2115988b22311cb1$export$2e2bcd8739ae039)(content);
3722
3702
  this.items.push(comment);
3723
3703
  return comment;
3724
3704
  }
@@ -3750,21 +3730,19 @@ var $bc411321e9739719$export$2e2bcd8739ae039 = $bc411321e9739719$var$Line;
3750
3730
  * If not, it returns {@link INDETERMINATE}
3751
3731
  * @returns {string}
3752
3732
  */ get type() {
3753
- const types = this.lines.map((line)=>line.type
3754
- );
3733
+ const types = this.lines.map((line)=>line.type);
3755
3734
  const uniqueTypes = [
3756
3735
  ...new Set(types)
3757
3736
  ];
3758
3737
  if (uniqueTypes.length === 1) return uniqueTypes[0];
3759
- return $af8d31735c159a26$export$c5a6fe907430212e;
3738
+ return 0, $af8d31735c159a26$export$c5a6fe907430212e;
3760
3739
  }
3761
3740
  /**
3762
3741
  * Indicates whether the paragraph contains lines with renderable items.
3763
3742
  * @see {@link Line.hasRenderableItems}
3764
3743
  * @returns {boolean}
3765
3744
  */ hasRenderableItems() {
3766
- return this.lines.some((line)=>line.hasRenderableItems()
3767
- );
3745
+ return this.lines.some((line)=>line.hasRenderableItems());
3768
3746
  }
3769
3747
  }
3770
3748
  var $0c3420c6a3e8a9d7$export$2e2bcd8739ae039 = $0c3420c6a3e8a9d7$var$Paragraph;
@@ -3777,43 +3755,43 @@ var $0c3420c6a3e8a9d7$export$2e2bcd8739ae039 = $0c3420c6a3e8a9d7$var$Paragraph;
3777
3755
 
3778
3756
  class $59abde4480df2d69$var$MetadataAccessors {
3779
3757
  get key() {
3780
- return this.getMetadata($5e9ede69210ec54a$export$7167c830cefcb6b5);
3758
+ return this.getMetadata((0, $5e9ede69210ec54a$export$7167c830cefcb6b5));
3781
3759
  }
3782
3760
  get title() {
3783
- return this.getMetadata($5e9ede69210ec54a$export$f1e53f710478ceb4);
3761
+ return this.getMetadata((0, $5e9ede69210ec54a$export$f1e53f710478ceb4));
3784
3762
  }
3785
3763
  get subtitle() {
3786
- return this.getMetadata($5e9ede69210ec54a$export$5895c693c74b9cf4);
3764
+ return this.getMetadata((0, $5e9ede69210ec54a$export$5895c693c74b9cf4));
3787
3765
  }
3788
3766
  get capo() {
3789
- return this.getMetadata($5e9ede69210ec54a$export$866f445d49bad88e);
3767
+ return this.getMetadata((0, $5e9ede69210ec54a$export$866f445d49bad88e));
3790
3768
  }
3791
3769
  get duration() {
3792
- return this.getMetadata($5e9ede69210ec54a$export$bacc88974c736870);
3770
+ return this.getMetadata((0, $5e9ede69210ec54a$export$bacc88974c736870));
3793
3771
  }
3794
3772
  get tempo() {
3795
- return this.getMetadata($5e9ede69210ec54a$export$bd8d57d0bc5a8478);
3773
+ return this.getMetadata((0, $5e9ede69210ec54a$export$bd8d57d0bc5a8478));
3796
3774
  }
3797
3775
  get time() {
3798
- return this.getMetadata($5e9ede69210ec54a$export$a9905336c0111a3a);
3776
+ return this.getMetadata((0, $5e9ede69210ec54a$export$a9905336c0111a3a));
3799
3777
  }
3800
3778
  get year() {
3801
- return this.getMetadata($5e9ede69210ec54a$export$90b88dc425a06a95);
3779
+ return this.getMetadata((0, $5e9ede69210ec54a$export$90b88dc425a06a95));
3802
3780
  }
3803
3781
  get album() {
3804
- return this.getMetadata($5e9ede69210ec54a$export$10227cb086d1770c);
3782
+ return this.getMetadata((0, $5e9ede69210ec54a$export$10227cb086d1770c));
3805
3783
  }
3806
3784
  get copyright() {
3807
- return this.getMetadata($5e9ede69210ec54a$export$4ab8c75045d12480);
3785
+ return this.getMetadata((0, $5e9ede69210ec54a$export$4ab8c75045d12480));
3808
3786
  }
3809
3787
  get lyricist() {
3810
- return this.getMetadata($5e9ede69210ec54a$export$a6901bd008617c61);
3788
+ return this.getMetadata((0, $5e9ede69210ec54a$export$a6901bd008617c61));
3811
3789
  }
3812
3790
  get artist() {
3813
- return this.getMetadata($5e9ede69210ec54a$export$17d8dfb3db842bf);
3791
+ return this.getMetadata((0, $5e9ede69210ec54a$export$17d8dfb3db842bf));
3814
3792
  }
3815
3793
  get composer() {
3816
- return this.getMetadata($5e9ede69210ec54a$export$98424633dc8c377f);
3794
+ return this.getMetadata((0, $5e9ede69210ec54a$export$98424633dc8c377f));
3817
3795
  }
3818
3796
  }
3819
3797
  var $59abde4480df2d69$export$2e2bcd8739ae039 = $59abde4480df2d69$var$MetadataAccessors;
@@ -3830,12 +3808,11 @@ function $1406c61233580008$var$appendValue(array, key, value) {
3830
3808
  * metadata.get('author') // => 'John'
3831
3809
  *
3832
3810
  * See {@link Metadata#get}
3833
- */ class $1406c61233580008$var$Metadata extends $59abde4480df2d69$export$2e2bcd8739ae039 {
3811
+ */ class $1406c61233580008$var$Metadata extends (0, $59abde4480df2d69$export$2e2bcd8739ae039) {
3834
3812
  metadata = {};
3835
3813
  constructor(metadata = null){
3836
3814
  super();
3837
- Object.keys(metadata || {}).filter((key)=>!$5e9ede69210ec54a$export$3ef04055cb4a269a(key)
3838
- ).forEach((key)=>{
3815
+ Object.keys(metadata || {}).filter((key)=>!(0, $5e9ede69210ec54a$export$3ef04055cb4a269a)(key)).forEach((key)=>{
3839
3816
  const value = metadata[key];
3840
3817
  if (value instanceof Array) this.metadata[key] = [
3841
3818
  ...value
@@ -3847,7 +3824,7 @@ function $1406c61233580008$var$appendValue(array, key, value) {
3847
3824
  return key in this.metadata;
3848
3825
  }
3849
3826
  add(key, value) {
3850
- if ($5e9ede69210ec54a$export$3ef04055cb4a269a(key)) return;
3827
+ if ((0, $5e9ede69210ec54a$export$3ef04055cb4a269a)(key)) return;
3851
3828
  if (!(key in this.metadata)) {
3852
3829
  this.metadata[key] = value;
3853
3830
  return;
@@ -3893,7 +3870,7 @@ function $1406c61233580008$var$appendValue(array, key, value) {
3893
3870
  * @returns {Array<String>|String} the metadata value(s). If there is only one value, it will return a String,
3894
3871
  * else it returns an array of strings.
3895
3872
  */ get(prop) {
3896
- if (prop === $5e9ede69210ec54a$export$430b1920f5feeae) return this.calculateKeyFromCapo();
3873
+ if (prop === (0, $5e9ede69210ec54a$export$430b1920f5feeae)) return this.calculateKeyFromCapo();
3897
3874
  if (prop in this.metadata) return this.metadata[prop];
3898
3875
  return this.getArrayItem(prop);
3899
3876
  }
@@ -3934,9 +3911,9 @@ function $1406c61233580008$var$appendValue(array, key, value) {
3934
3911
  return new $1406c61233580008$var$Metadata(this.metadata);
3935
3912
  }
3936
3913
  calculateKeyFromCapo() {
3937
- const capo = this.getSingle($5e9ede69210ec54a$export$866f445d49bad88e);
3938
- const key = this.getSingle($5e9ede69210ec54a$export$7167c830cefcb6b5);
3939
- if (capo && key) return $26f57998457eb2d4$export$2e2bcd8739ae039.parse(key).transpose(parseInt(capo, 10)).toString();
3914
+ const capo = this.getSingle((0, $5e9ede69210ec54a$export$866f445d49bad88e));
3915
+ const key = this.getSingle((0, $5e9ede69210ec54a$export$7167c830cefcb6b5));
3916
+ if (capo && key) return (0, $26f57998457eb2d4$export$2e2bcd8739ae039).parse(key).transpose(parseInt(capo, 10)).toString();
3940
3917
  return undefined;
3941
3918
  }
3942
3919
  }
@@ -3968,14 +3945,14 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
3968
3945
 
3969
3946
  /**
3970
3947
  * Represents a song in a chord sheet. Currently a chord sheet can only have one song.
3971
- */ class $6f653df65dfdf4ef$var$Song extends $59abde4480df2d69$export$2e2bcd8739ae039 {
3948
+ */ class $6f653df65dfdf4ef$var$Song extends (0, $59abde4480df2d69$export$2e2bcd8739ae039) {
3972
3949
  /**
3973
3950
  * The {@link Line} items of which the song consists
3974
3951
  * @member {Line[]}
3975
3952
  */ lines = [];
3976
3953
  currentLine = null;
3977
3954
  warnings = [];
3978
- sectionType = $af8d31735c159a26$export$c53d0f541b41b88e;
3955
+ sectionType = (0, $af8d31735c159a26$export$c53d0f541b41b88e);
3979
3956
  currentKey = null;
3980
3957
  transposeKey = null;
3981
3958
  /**
@@ -3983,7 +3960,7 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
3983
3960
  * @param metadata {Object|Metadata} predefined metadata
3984
3961
  */ constructor(metadata = {}){
3985
3962
  super();
3986
- this.metadata = new $1406c61233580008$export$2e2bcd8739ae039(metadata);
3963
+ this.metadata = new (0, $1406c61233580008$export$2e2bcd8739ae039)(metadata);
3987
3964
  }
3988
3965
  get previousLine() {
3989
3966
  const count = this.lines.length;
@@ -3995,7 +3972,7 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
3995
3972
  * if you want to skip the "header lines": the lines that only contain meta data.
3996
3973
  * @returns {Line[]} The song body lines
3997
3974
  */ get bodyLines() {
3998
- return this.selectRenderableItems('_bodyLines', 'lines');
3975
+ return this.selectRenderableItems("_bodyLines", "lines");
3999
3976
  }
4000
3977
  /**
4001
3978
  * Returns the song paragraphs, skipping the paragraphs that only contain empty lines
@@ -4003,7 +3980,7 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4003
3980
  * @see {@link bodyLines}
4004
3981
  * @returns {Paragraph[]}
4005
3982
  */ get bodyParagraphs() {
4006
- return this.selectRenderableItems('_bodyParagraphs', 'paragraphs');
3983
+ return this.selectRenderableItems("_bodyParagraphs", "paragraphs");
4007
3984
  }
4008
3985
  selectRenderableItems(targetProp, sourceProp) {
4009
3986
  if (this[targetProp] === undefined) {
@@ -4023,23 +4000,23 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4023
4000
  this.currentLine.lyrics(chr);
4024
4001
  }
4025
4002
  addLine(line) {
4026
- this.currentLine = line || $21a34a464e7bc609$export$13215d9ce4923f76(this.lines, $bc411321e9739719$export$2e2bcd8739ae039);
4003
+ this.currentLine = line || (0, $21a34a464e7bc609$export$13215d9ce4923f76)(this.lines, (0, $bc411321e9739719$export$2e2bcd8739ae039));
4027
4004
  this.setCurrentLineType(this.sectionType);
4028
4005
  this.currentLine.transposeKey = this.transposeKey ?? this.currentKey;
4029
- this.currentLine.key = this.currentKey || this.metadata.getSingle($5e9ede69210ec54a$export$7167c830cefcb6b5);
4006
+ this.currentLine.key = this.currentKey || this.metadata.getSingle((0, $5e9ede69210ec54a$export$7167c830cefcb6b5));
4030
4007
  return this.currentLine;
4031
4008
  }
4032
4009
  /**
4033
4010
  * The {@link Paragraph} items of which the song consists
4034
4011
  * @member {Paragraph[]}
4035
4012
  */ get paragraphs() {
4036
- let currentParagraph = new $0c3420c6a3e8a9d7$export$2e2bcd8739ae039();
4013
+ let currentParagraph = new (0, $0c3420c6a3e8a9d7$export$2e2bcd8739ae039)();
4037
4014
  const paragraphs = [
4038
4015
  currentParagraph
4039
4016
  ];
4040
4017
  this.lines.forEach((line)=>{
4041
4018
  if (line.isEmpty()) {
4042
- currentParagraph = new $0c3420c6a3e8a9d7$export$2e2bcd8739ae039();
4019
+ currentParagraph = new (0, $0c3420c6a3e8a9d7$export$2e2bcd8739ae039)();
4043
4020
  paragraphs.push(currentParagraph);
4044
4021
  } else if (line.hasRenderableItems()) currentParagraph.addLine(line);
4045
4022
  });
@@ -4052,10 +4029,10 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4052
4029
  if (this.currentLine === null) this.addLine();
4053
4030
  }
4054
4031
  addTag(tagContents) {
4055
- const tag = $5e9ede69210ec54a$export$2e2bcd8739ae039.parse(tagContents);
4032
+ const tag = (0, $5e9ede69210ec54a$export$2e2bcd8739ae039).parse(tagContents);
4056
4033
  if (tag.isMetaTag()) this.setMetadata(tag.name, tag.value);
4057
- else if (tag.name === $5e9ede69210ec54a$export$ae60ab9b4739fc3d) this.transposeKey = tag.value;
4058
- else if (tag.name === $5e9ede69210ec54a$export$b7627374a6424f68) this.currentKey = tag.value;
4034
+ else if (tag.name === (0, $5e9ede69210ec54a$export$ae60ab9b4739fc3d)) this.transposeKey = tag.value;
4035
+ else if (tag.name === (0, $5e9ede69210ec54a$export$b7627374a6424f68)) this.currentKey = tag.value;
4059
4036
  else this.setSectionTypeFromTag(tag);
4060
4037
  this.ensureLine();
4061
4038
  this.currentLine.addTag(tag);
@@ -4063,46 +4040,46 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4063
4040
  }
4064
4041
  setSectionTypeFromTag(tag) {
4065
4042
  switch(tag.name){
4066
- case $5e9ede69210ec54a$export$4f5168acae064e01:
4067
- this.startSection($af8d31735c159a26$export$8db6c706fc9142b2, tag);
4043
+ case 0, $5e9ede69210ec54a$export$4f5168acae064e01:
4044
+ this.startSection((0, $af8d31735c159a26$export$8db6c706fc9142b2), tag);
4068
4045
  break;
4069
- case $5e9ede69210ec54a$export$473c1a4819e5180b:
4070
- this.endSection($af8d31735c159a26$export$8db6c706fc9142b2, tag);
4046
+ case 0, $5e9ede69210ec54a$export$473c1a4819e5180b:
4047
+ this.endSection((0, $af8d31735c159a26$export$8db6c706fc9142b2), tag);
4071
4048
  break;
4072
- case $5e9ede69210ec54a$export$8dd1111100e0e88d:
4073
- this.startSection($af8d31735c159a26$export$f1c9dd0f5207dd5e, tag);
4049
+ case 0, $5e9ede69210ec54a$export$8dd1111100e0e88d:
4050
+ this.startSection((0, $af8d31735c159a26$export$f1c9dd0f5207dd5e), tag);
4074
4051
  break;
4075
- case $5e9ede69210ec54a$export$66a0ef3ffeab32b7:
4076
- this.endSection($af8d31735c159a26$export$f1c9dd0f5207dd5e, tag);
4052
+ case 0, $5e9ede69210ec54a$export$66a0ef3ffeab32b7:
4053
+ this.endSection((0, $af8d31735c159a26$export$f1c9dd0f5207dd5e), tag);
4077
4054
  break;
4078
- case $5e9ede69210ec54a$export$deca399f8cd9b7dc:
4079
- this.startSection($af8d31735c159a26$export$4b194284baed1659, tag);
4055
+ case 0, $5e9ede69210ec54a$export$deca399f8cd9b7dc:
4056
+ this.startSection((0, $af8d31735c159a26$export$4b194284baed1659), tag);
4080
4057
  break;
4081
- case $5e9ede69210ec54a$export$640d294ab83f9040:
4082
- this.endSection($af8d31735c159a26$export$4b194284baed1659, tag);
4058
+ case 0, $5e9ede69210ec54a$export$640d294ab83f9040:
4059
+ this.endSection((0, $af8d31735c159a26$export$4b194284baed1659), tag);
4083
4060
  break;
4084
4061
  default:
4085
4062
  break;
4086
4063
  }
4087
4064
  }
4088
4065
  startSection(sectionType, tag) {
4089
- this.checkCurrentSectionType($af8d31735c159a26$export$c53d0f541b41b88e, tag);
4066
+ this.checkCurrentSectionType((0, $af8d31735c159a26$export$c53d0f541b41b88e), tag);
4090
4067
  this.sectionType = sectionType;
4091
4068
  this.setCurrentLineType(sectionType);
4092
4069
  }
4093
4070
  endSection(sectionType, tag) {
4094
4071
  this.checkCurrentSectionType(sectionType, tag);
4095
- this.sectionType = $af8d31735c159a26$export$c53d0f541b41b88e;
4072
+ this.sectionType = (0, $af8d31735c159a26$export$c53d0f541b41b88e);
4096
4073
  }
4097
4074
  checkCurrentSectionType(sectionType, tag) {
4098
4075
  if (this.sectionType !== sectionType) this.addWarning(`Unexpected tag {${tag.originalName}, current section is: ${this.sectionType}`, tag);
4099
4076
  }
4100
4077
  addWarning(message, { line: line , column: column }) {
4101
- const warning = new $ce1dd7d0f2cd2369$export$2e2bcd8739ae039(message, line, column);
4078
+ const warning = new (0, $ce1dd7d0f2cd2369$export$2e2bcd8739ae039)(message, line, column);
4102
4079
  this.warnings.push(warning);
4103
4080
  }
4104
4081
  addItem(item) {
4105
- if (item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039) this.addTag(item);
4082
+ if (item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)) this.addTag(item);
4106
4083
  else {
4107
4084
  this.ensureLine();
4108
4085
  this.currentLine.addItem(item);
@@ -4112,8 +4089,7 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4112
4089
  * Returns a deep clone of the song
4113
4090
  * @returns {Song} The cloned song
4114
4091
  */ clone() {
4115
- return this.mapItems((item)=>item
4116
- );
4092
+ return this.mapItems((item)=>item);
4117
4093
  }
4118
4094
  setMetadata(name, value) {
4119
4095
  this.metadata.add(name, value);
@@ -4123,7 +4099,7 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4123
4099
  * @deprecated
4124
4100
  * @returns {@link Metadata} The metadata
4125
4101
  */ get metaData() {
4126
- $21a34a464e7bc609$export$b680e6b2c82f8c2f('metaData has been deprecated, please use metadata instead (notice the lowercase "d")');
4102
+ (0, $21a34a464e7bc609$export$b680e6b2c82f8c2f)('metaData has been deprecated, please use metadata instead (notice the lowercase "d")');
4127
4103
  return this.metadata;
4128
4104
  }
4129
4105
  getMetadata(name) {
@@ -4138,7 +4114,7 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4138
4114
  * - remove any `key` directive
4139
4115
  * @returns {Song} The changed song
4140
4116
  */ setKey(key) {
4141
- return this.changeMetadata($5e9ede69210ec54a$export$7167c830cefcb6b5, key);
4117
+ return this.changeMetadata((0, $5e9ede69210ec54a$export$7167c830cefcb6b5), key);
4142
4118
  }
4143
4119
  /**
4144
4120
  * Returns a copy of the song with the key value set to the specified capo. It changes:
@@ -4149,17 +4125,13 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4149
4125
  * - remove any `capo` directive
4150
4126
  * @returns {Song} The changed song
4151
4127
  */ setCapo(capo) {
4152
- return this.changeMetadata($5e9ede69210ec54a$export$866f445d49bad88e, capo);
4128
+ return this.changeMetadata((0, $5e9ede69210ec54a$export$866f445d49bad88e), capo);
4153
4129
  }
4154
4130
  setDirective(name, value) {
4155
- if (value === null) return this.removeItem((item)=>item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039 && item.name === name
4156
- );
4157
- return this.updateItem((item)=>item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039 && item.name === name
4158
- , (item)=>item.set({
4131
+ if (value === null) return this.removeItem((item)=>item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) && item.name === name);
4132
+ return this.updateItem((item)=>item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) && item.name === name, (item)=>item.set({
4159
4133
  value: value
4160
- })
4161
- , (song)=>song.insertDirective(name, value)
4162
- );
4134
+ }), (song)=>song.insertDirective(name, value));
4163
4135
  }
4164
4136
  /**
4165
4137
  * Returns a copy of the song with the key set to the specified key. It changes:
@@ -4171,17 +4143,17 @@ var $ce1dd7d0f2cd2369$export$2e2bcd8739ae039 = $ce1dd7d0f2cd2369$var$ParserWarni
4171
4143
  */ changeKey(newKey) {
4172
4144
  const transpose = this.getTransposeDistance(newKey);
4173
4145
  const updatedSong = this.mapItems((item)=>{
4174
- if (item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039 && item.name === $5e9ede69210ec54a$export$7167c830cefcb6b5) return item.set({
4146
+ if (item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) && item.name === (0, $5e9ede69210ec54a$export$7167c830cefcb6b5)) return item.set({
4175
4147
  value: newKey
4176
4148
  });
4177
- if (item instanceof $d454f4215ba01af2$export$2e2bcd8739ae039) return item.transpose(transpose, newKey);
4149
+ if (item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039)) return item.transpose(transpose, newKey);
4178
4150
  return item;
4179
4151
  });
4180
- updatedSong.metadata.set('key', newKey);
4152
+ updatedSong.metadata.set("key", newKey);
4181
4153
  return updatedSong;
4182
4154
  }
4183
4155
  getTransposeDistance(newKey) {
4184
- const wrappedKey = $bff5407e03fdc8ee$export$2e2bcd8739ae039.wrap(this.key);
4156
+ const wrappedKey = (0, $bff5407e03fdc8ee$export$2e2bcd8739ae039).wrap(this.key);
4185
4157
  if (!wrappedKey) throw new Error(`
4186
4158
  Cannot change song key, the original key is unknown.
4187
4159
 
@@ -4205,10 +4177,8 @@ Or set the song key before changing key:
4205
4177
  return updatedSong;
4206
4178
  }
4207
4179
  insertDirective(name, value, { after: after = null } = {}) {
4208
- const insertIndex = this.lines.findIndex((line)=>line.items.some((item)=>!(item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039) || after && item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039 && item.name === after
4209
- )
4210
- );
4211
- const newLine = new $bc411321e9739719$export$2e2bcd8739ae039();
4180
+ const insertIndex = this.lines.findIndex((line)=>line.items.some((item)=>!(item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)) || after && item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) && item.name === after));
4181
+ const newLine = new (0, $bc411321e9739719$export$2e2bcd8739ae039)();
4212
4182
  newLine.addTag(name, value);
4213
4183
  const clonedSong = this.clone();
4214
4184
  const { lines: lines } = clonedSong;
@@ -4262,8 +4232,7 @@ Or set the song key before changing key:
4262
4232
  const changedLine = func(line);
4263
4233
  if (changedLine) {
4264
4234
  clonedSong.addLine();
4265
- changedLine.items.forEach((item)=>clonedSong.addItem(item)
4266
- );
4235
+ changedLine.items.forEach((item)=>clonedSong.addItem(item));
4267
4236
  }
4268
4237
  });
4269
4238
  return clonedSong;
@@ -4304,7 +4273,7 @@ var $6f653df65dfdf4ef$export$2e2bcd8739ae039 = $6f653df65dfdf4ef$var$Song;
4304
4273
  class $55622b65d99fa8e1$var$EvaluationError extends Error {
4305
4274
  constructor(message, line, column, offset){
4306
4275
  super(`${message} on line ${line} column ${column}`);
4307
- this.name = 'ExpressionError';
4276
+ this.name = "ExpressionError";
4308
4277
  this.line = line;
4309
4278
  this.column = column;
4310
4279
  this.offset = offset;
@@ -4321,16 +4290,14 @@ class $812df3771838671d$var$Composite {
4321
4290
  this.variable = variable;
4322
4291
  }
4323
4292
  evaluate(metadata, metadataSeparator) {
4324
- return this.expressions.map((expression)=>expression.evaluate(metadata, metadataSeparator, this.variable)
4325
- ).join('');
4293
+ return this.expressions.map((expression)=>expression.evaluate(metadata, metadataSeparator, this.variable)).join("");
4326
4294
  }
4327
4295
  isRenderable() {
4328
4296
  return true;
4329
4297
  }
4330
4298
  clone() {
4331
4299
  return new $812df3771838671d$var$Composite({
4332
- expressions: this.expressions.map((expression)=>expression.clone()
4333
- ),
4300
+ expressions: this.expressions.map((expression)=>expression.clone()),
4334
4301
  variable: this.variable
4335
4302
  });
4336
4303
  }
@@ -4339,7 +4306,7 @@ var $812df3771838671d$export$2e2bcd8739ae039 = $812df3771838671d$var$Composite;
4339
4306
 
4340
4307
 
4341
4308
 
4342
- class $b6d84b168638423d$var$Ternary extends $cf00b4d3af89fa07$export$2e2bcd8739ae039 {
4309
+ class $b6d84b168638423d$var$Ternary extends (0, $cf00b4d3af89fa07$export$2e2bcd8739ae039) {
4343
4310
  trueExpression = [];
4344
4311
  falseExpression = [];
4345
4312
  constructor({ variable: variable = null , valueTest: valueTest = null , trueExpression: trueExpression = null , falseExpression: falseExpression = null , line: line = null , column: column = null , offset: offset = null , } = {}){
@@ -4348,7 +4315,7 @@ class $b6d84b168638423d$var$Ternary extends $cf00b4d3af89fa07$export$2e2bcd8739a
4348
4315
  column: column,
4349
4316
  offset: offset
4350
4317
  });
4351
- this.variable = $21a34a464e7bc609$export$ed9b06b5ee264ad3(variable);
4318
+ this.variable = (0, $21a34a464e7bc609$export$ed9b06b5ee264ad3)(variable);
4352
4319
  this.valueTest = valueTest;
4353
4320
  this.trueExpression = trueExpression;
4354
4321
  this.falseExpression = falseExpression;
@@ -4360,7 +4327,7 @@ class $b6d84b168638423d$var$Ternary extends $cf00b4d3af89fa07$export$2e2bcd8739a
4360
4327
  * @returns {string} The evaluated expression
4361
4328
  */ evaluate(metadata, metadataSeparator = null, upperContext = null) {
4362
4329
  if (this.variable) return this.evaluateWithVariable(metadata, metadataSeparator);
4363
- if (!upperContext) throw new $55622b65d99fa8e1$export$2e2bcd8739ae039('Unexpected empty expression', this.line, this.column, this.offset);
4330
+ if (!upperContext) throw new (0, $55622b65d99fa8e1$export$2e2bcd8739ae039)("Unexpected empty expression", this.line, this.column, this.offset);
4364
4331
  return this.evaluateToString(metadata.get(upperContext), metadataSeparator);
4365
4332
  }
4366
4333
  evaluateToString(value, metadataSeparator) {
@@ -4369,12 +4336,12 @@ class $b6d84b168638423d$var$Ternary extends $cf00b4d3af89fa07$export$2e2bcd8739a
4369
4336
  }
4370
4337
  evaluateWithVariable(metadata, metadataSeparator) {
4371
4338
  const value = metadata.get(this.variable);
4372
- if ($21a34a464e7bc609$export$ee27c052bca048fb(value) && (!this.valueTest || value === this.valueTest)) return this.evaluateForTruthyValue(metadata, metadataSeparator, value);
4373
- if (this.falseExpression) return new $812df3771838671d$export$2e2bcd8739ae039(this.falseExpression, this.variable).evaluate(metadata, metadataSeparator);
4374
- return '';
4339
+ if ((0, $21a34a464e7bc609$export$ee27c052bca048fb)(value) && (!this.valueTest || value === this.valueTest)) return this.evaluateForTruthyValue(metadata, metadataSeparator, value);
4340
+ if (this.falseExpression) return new (0, $812df3771838671d$export$2e2bcd8739ae039)(this.falseExpression, this.variable).evaluate(metadata, metadataSeparator);
4341
+ return "";
4375
4342
  }
4376
4343
  evaluateForTruthyValue(metadata, metadataSeparator, value) {
4377
- if (this.trueExpression) return new $812df3771838671d$export$2e2bcd8739ae039(this.trueExpression, this.variable).evaluate(metadata, metadataSeparator);
4344
+ if (this.trueExpression) return new (0, $812df3771838671d$export$2e2bcd8739ae039)(this.trueExpression, this.variable).evaluate(metadata, metadataSeparator);
4378
4345
  return value;
4379
4346
  }
4380
4347
  isRenderable() {
@@ -4384,10 +4351,8 @@ class $b6d84b168638423d$var$Ternary extends $cf00b4d3af89fa07$export$2e2bcd8739a
4384
4351
  return new $b6d84b168638423d$var$Ternary({
4385
4352
  variable: this.variable,
4386
4353
  valueTest: this.valueTest,
4387
- trueExpression: this.trueExpression?.map((part)=>part.clone()
4388
- ),
4389
- falseExpression: this.falseExpression?.map((part)=>part.clone()
4390
- ),
4354
+ trueExpression: this.trueExpression?.map((part)=>part.clone()),
4355
+ falseExpression: this.falseExpression?.map((part)=>part.clone()),
4391
4356
  line: this.line,
4392
4357
  column: this.column,
4393
4358
  offset: this.offset
@@ -4398,12 +4363,12 @@ var $b6d84b168638423d$export$2e2bcd8739ae039 = $b6d84b168638423d$var$Ternary;
4398
4363
 
4399
4364
 
4400
4365
 
4401
- const $1c14afc274b727b7$var$CHORD_SHEET = 'chordSheet';
4402
- const $1c14afc274b727b7$var$CHORD_LYRICS_PAIR = 'chordLyricsPair';
4403
- const $1c14afc274b727b7$var$TAG = 'tag';
4404
- const $1c14afc274b727b7$var$COMMENT = 'comment';
4405
- const $1c14afc274b727b7$var$TERNARY = 'ternary';
4406
- const $1c14afc274b727b7$var$LINE = 'line';
4366
+ const $1c14afc274b727b7$var$CHORD_SHEET = "chordSheet";
4367
+ const $1c14afc274b727b7$var$CHORD_LYRICS_PAIR = "chordLyricsPair";
4368
+ const $1c14afc274b727b7$var$TAG = "tag";
4369
+ const $1c14afc274b727b7$var$COMMENT = "comment";
4370
+ const $1c14afc274b727b7$var$TERNARY = "ternary";
4371
+ const $1c14afc274b727b7$var$LINE = "line";
4407
4372
  /**
4408
4373
  * Serializes a song into een plain object, and deserializes the serialized object back into a {@link Song}
4409
4374
  */ class $1c14afc274b727b7$var$ChordSheetSerializer {
@@ -4414,22 +4379,20 @@ const $1c14afc274b727b7$var$LINE = 'line';
4414
4379
  */ serialize(song) {
4415
4380
  return {
4416
4381
  type: $1c14afc274b727b7$var$CHORD_SHEET,
4417
- lines: song.lines.map((line)=>this.serializeLine(line)
4418
- )
4382
+ lines: song.lines.map((line)=>this.serializeLine(line))
4419
4383
  };
4420
4384
  }
4421
4385
  serializeLine(line) {
4422
4386
  return {
4423
4387
  type: $1c14afc274b727b7$var$LINE,
4424
- items: line.items.map((item)=>this.serializeItem(item)
4425
- )
4388
+ items: line.items.map((item)=>this.serializeItem(item))
4426
4389
  };
4427
4390
  }
4428
4391
  serializeItem(item) {
4429
- if (item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039) return this.serializeTag(item);
4430
- if (item instanceof $d454f4215ba01af2$export$2e2bcd8739ae039) return this.serializeChordLyricsPair(item);
4431
- if (item instanceof $b6d84b168638423d$export$2e2bcd8739ae039) return this.serializeTernary(item);
4432
- if (item instanceof $e1378a714a1834c5$export$2e2bcd8739ae039) return this.serializeLiteral(item);
4392
+ if (item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)) return this.serializeTag(item);
4393
+ if (item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039)) return this.serializeChordLyricsPair(item);
4394
+ if (item instanceof (0, $b6d84b168638423d$export$2e2bcd8739ae039)) return this.serializeTernary(item);
4395
+ if (item instanceof (0, $e1378a714a1834c5$export$2e2bcd8739ae039)) return this.serializeLiteral(item);
4433
4396
  throw new Error(`Don't know how to serialize ${item.constructor.name}`);
4434
4397
  }
4435
4398
  serializeTag(tag) {
@@ -4459,8 +4422,7 @@ const $1c14afc274b727b7$var$LINE = 'line';
4459
4422
  return literal.string;
4460
4423
  }
4461
4424
  serializeExpression(expression) {
4462
- return expression?.map((part)=>this.serializeItem(part)
4463
- );
4425
+ return expression?.map((part)=>this.serializeItem(part));
4464
4426
  }
4465
4427
  /**
4466
4428
  * Deserializes a song that has been serialized using {@link serialize}
@@ -4472,7 +4434,7 @@ const $1c14afc274b727b7$var$LINE = 'line';
4472
4434
  }
4473
4435
  parseAstComponent(astComponent) {
4474
4436
  if (!astComponent) return null;
4475
- if (typeof astComponent === 'string') return new $e1378a714a1834c5$export$2e2bcd8739ae039(astComponent);
4437
+ if (typeof astComponent === "string") return new (0, $e1378a714a1834c5$export$2e2bcd8739ae039)(astComponent);
4476
4438
  const { type: type } = astComponent;
4477
4439
  switch(type){
4478
4440
  case $1c14afc274b727b7$var$CHORD_SHEET:
@@ -4492,9 +4454,8 @@ const $1c14afc274b727b7$var$LINE = 'line';
4492
4454
  }
4493
4455
  parseChordSheet(astComponent) {
4494
4456
  const { lines: lines } = astComponent;
4495
- this.song = new $6f653df65dfdf4ef$export$2e2bcd8739ae039();
4496
- lines.forEach((line)=>this.parseLine(line)
4497
- );
4457
+ this.song = new (0, $6f653df65dfdf4ef$export$2e2bcd8739ae039)();
4458
+ lines.forEach((line)=>this.parseLine(line));
4498
4459
  }
4499
4460
  parseLine(astComponent) {
4500
4461
  const { items: items } = astComponent;
@@ -4506,11 +4467,11 @@ const $1c14afc274b727b7$var$LINE = 'line';
4506
4467
  }
4507
4468
  parseChordLyricsPair(astComponent) {
4508
4469
  const { chords: chords , lyrics: lyrics } = astComponent;
4509
- return new $d454f4215ba01af2$export$2e2bcd8739ae039(chords, lyrics);
4470
+ return new (0, $d454f4215ba01af2$export$2e2bcd8739ae039)(chords, lyrics);
4510
4471
  }
4511
4472
  parseTag(astComponent) {
4512
4473
  const { name: name , value: value , location: { offset: offset = null , line: line = null , column: column = null } = {} , } = astComponent;
4513
- return new $5e9ede69210ec54a$export$2e2bcd8739ae039(name, value, {
4474
+ return new (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)(name, value, {
4514
4475
  line: line,
4515
4476
  column: column,
4516
4477
  offset: offset
@@ -4518,11 +4479,11 @@ const $1c14afc274b727b7$var$LINE = 'line';
4518
4479
  }
4519
4480
  parseComment(astComponent) {
4520
4481
  const { comment: comment } = astComponent;
4521
- return new $2115988b22311cb1$export$2e2bcd8739ae039(comment);
4482
+ return new (0, $2115988b22311cb1$export$2e2bcd8739ae039)(comment);
4522
4483
  }
4523
4484
  parseTernary(astComponent) {
4524
4485
  const { variable: variable , valueTest: valueTest , trueExpression: trueExpression , falseExpression: falseExpression , location: { offset: offset = null , line: line = null , column: column = null } = {} , } = astComponent;
4525
- return new $b6d84b168638423d$export$2e2bcd8739ae039({
4486
+ return new (0, $b6d84b168638423d$export$2e2bcd8739ae039)({
4526
4487
  variable: variable,
4527
4488
  valueTest: valueTest,
4528
4489
  trueExpression: this.parseExpression(trueExpression),
@@ -4533,9 +4494,8 @@ const $1c14afc274b727b7$var$LINE = 'line';
4533
4494
  });
4534
4495
  }
4535
4496
  parseExpression(expression) {
4536
- const parsedParts = (expression || []).map((part)=>this.parseAstComponent(part)
4537
- );
4538
- return $21a34a464e7bc609$export$ed9b06b5ee264ad3(parsedParts);
4497
+ const parsedParts = (expression || []).map((part)=>this.parseAstComponent(part));
4498
+ return (0, $21a34a464e7bc609$export$ed9b06b5ee264ad3)(parsedParts);
4539
4499
  }
4540
4500
  }
4541
4501
  var $1c14afc274b727b7$export$2e2bcd8739ae039 = $1c14afc274b727b7$var$ChordSheetSerializer;
@@ -4549,12 +4509,8 @@ var $1c14afc274b727b7$export$2e2bcd8739ae039 = $1c14afc274b727b7$var$ChordSheetS
4549
4509
  * @param {string} chordProChordSheet the ChordPro chord sheet
4550
4510
  * @returns {Song} The parsed song
4551
4511
  */ parse(chordProChordSheet) {
4552
- /**
4553
- * All warnings raised during parsing the ChordPro chord sheet
4554
- * @member
4555
- * @type {ParserWarning[]}
4556
- */ const ast = $1a506a341538d943$export$98e6a39c04603d36(chordProChordSheet);
4557
- this.song = new $1c14afc274b727b7$export$2e2bcd8739ae039().deserialize(ast);
4512
+ const ast = (0, $1a506a341538d943$export$98e6a39c04603d36)(chordProChordSheet);
4513
+ this.song = new (0, $1c14afc274b727b7$export$2e2bcd8739ae039)().deserialize(ast);
4558
4514
  return this.song;
4559
4515
  }
4560
4516
  /**
@@ -4617,8 +4573,8 @@ const $c049675f48c823b2$var$CHORD_LINE_REGEX = /^\s*((([A-G])(#|b)?([^/\s]*)(\/(
4617
4573
  } else this.chordLyricsPair.lyrics = `${line}`;
4618
4574
  }
4619
4575
  initialize(document, { song: song = null } = {}) {
4620
- this.song = song || new $6f653df65dfdf4ef$export$2e2bcd8739ae039();
4621
- this.lines = document.split('\n');
4576
+ this.song = song || new (0, $6f653df65dfdf4ef$export$2e2bcd8739ae039)();
4577
+ this.lines = document.split("\n");
4622
4578
  this.currentLine = 0;
4623
4579
  this.lineCount = this.lines.length;
4624
4580
  this.processingText = true;
@@ -4644,7 +4600,7 @@ const $c049675f48c823b2$var$CHORD_LINE_REGEX = /^\s*((([A-G])(#|b)?([^/\s]*)(\/(
4644
4600
  const nextChar = chordsLine[c + 1];
4645
4601
  const isWhiteSpace = $c049675f48c823b2$var$WHITE_SPACE.test(chr);
4646
4602
  this.addCharacter(chr, nextChar);
4647
- this.chordLyricsPair.lyrics += lyricsLine[c] || '';
4603
+ this.chordLyricsPair.lyrics += lyricsLine[c] || "";
4648
4604
  this.processingText = !isWhiteSpace;
4649
4605
  }
4650
4606
  }
@@ -4673,30 +4629,30 @@ const $db9c80925e255cd2$var$VERSE_LINE_REGEX = /^\[Verse.*]/;
4673
4629
  const $db9c80925e255cd2$var$CHORUS_LINE_REGEX = /^\[Chorus]/;
4674
4630
  const $db9c80925e255cd2$var$OTHER_METADATA_LINE_REGEX = /^\[([^\]]+)]/;
4675
4631
  const $db9c80925e255cd2$var$startSectionTags = {
4676
- [$af8d31735c159a26$export$4b194284baed1659]: $5e9ede69210ec54a$export$deca399f8cd9b7dc,
4677
- [$af8d31735c159a26$export$8db6c706fc9142b2]: $5e9ede69210ec54a$export$4f5168acae064e01
4632
+ [(0, $af8d31735c159a26$export$4b194284baed1659)]: (0, $5e9ede69210ec54a$export$deca399f8cd9b7dc),
4633
+ [(0, $af8d31735c159a26$export$8db6c706fc9142b2)]: (0, $5e9ede69210ec54a$export$4f5168acae064e01)
4678
4634
  };
4679
4635
  const $db9c80925e255cd2$var$endSectionTags = {
4680
- [$af8d31735c159a26$export$4b194284baed1659]: $5e9ede69210ec54a$export$640d294ab83f9040,
4681
- [$af8d31735c159a26$export$8db6c706fc9142b2]: $5e9ede69210ec54a$export$473c1a4819e5180b
4636
+ [(0, $af8d31735c159a26$export$4b194284baed1659)]: (0, $5e9ede69210ec54a$export$640d294ab83f9040),
4637
+ [(0, $af8d31735c159a26$export$8db6c706fc9142b2)]: (0, $5e9ede69210ec54a$export$473c1a4819e5180b)
4682
4638
  };
4683
4639
  /**
4684
4640
  * Parses an Ultimate Guitar chord sheet with metadata
4685
4641
  * Inherits from {@link ChordSheetParser}
4686
- */ class $db9c80925e255cd2$var$UltimateGuitarParser extends $c049675f48c823b2$export$2e2bcd8739ae039 {
4642
+ */ class $db9c80925e255cd2$var$UltimateGuitarParser extends (0, $c049675f48c823b2$export$2e2bcd8739ae039) {
4687
4643
  parseLine(line) {
4688
4644
  if (this.isSectionEnd()) this.endSection();
4689
4645
  if ($db9c80925e255cd2$var$VERSE_LINE_REGEX.test(line)) {
4690
4646
  this.startNewLine();
4691
- this.startSection($af8d31735c159a26$export$4b194284baed1659);
4647
+ this.startSection((0, $af8d31735c159a26$export$4b194284baed1659));
4692
4648
  } else if ($db9c80925e255cd2$var$CHORUS_LINE_REGEX.test(line)) {
4693
4649
  this.startNewLine();
4694
- this.startSection($af8d31735c159a26$export$8db6c706fc9142b2);
4650
+ this.startSection((0, $af8d31735c159a26$export$8db6c706fc9142b2));
4695
4651
  } else if ($db9c80925e255cd2$var$OTHER_METADATA_LINE_REGEX.test(line)) {
4696
4652
  this.startNewLine();
4697
4653
  this.endSection();
4698
4654
  const comment = line.match($db9c80925e255cd2$var$OTHER_METADATA_LINE_REGEX)[1];
4699
- this.songLine.addTag(new $5e9ede69210ec54a$export$2e2bcd8739ae039($5e9ede69210ec54a$export$a29989082612d0d9, comment));
4655
+ this.songLine.addTag(new (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)((0, $5e9ede69210ec54a$export$a29989082612d0d9), comment));
4700
4656
  } else super.parseLine(line);
4701
4657
  }
4702
4658
  isSectionEnd() {
@@ -4713,14 +4669,14 @@ const $db9c80925e255cd2$var$endSectionTags = {
4713
4669
  if (this.currentSectionType) this.endSection();
4714
4670
  this.currentSectionType = sectionType;
4715
4671
  this.song.setCurrentLineType(sectionType);
4716
- if (sectionType in $db9c80925e255cd2$var$startSectionTags) this.song.addTag(new $5e9ede69210ec54a$export$2e2bcd8739ae039($db9c80925e255cd2$var$startSectionTags[sectionType]));
4672
+ if (sectionType in $db9c80925e255cd2$var$startSectionTags) this.song.addTag(new (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)($db9c80925e255cd2$var$startSectionTags[sectionType]));
4717
4673
  }
4718
4674
  endSection({ addNewLine: addNewLine = true } = {}) {
4719
4675
  if (this.currentSectionType in $db9c80925e255cd2$var$endSectionTags) {
4720
- this.song.addTag(new $5e9ede69210ec54a$export$2e2bcd8739ae039($db9c80925e255cd2$var$endSectionTags[this.currentSectionType]));
4676
+ this.song.addTag(new (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)($db9c80925e255cd2$var$endSectionTags[this.currentSectionType]));
4721
4677
  if (addNewLine) this.startNewLine();
4722
4678
  }
4723
- this.song.setCurrentLineType($af8d31735c159a26$export$c53d0f541b41b88e);
4679
+ this.song.setCurrentLineType((0, $af8d31735c159a26$export$c53d0f541b41b88e));
4724
4680
  this.currentSectionType = null;
4725
4681
  }
4726
4682
  startNewLine() {
@@ -4741,13 +4697,13 @@ var $71c330be198ce421$export$2e2bcd8739ae039 = $71c330be198ce421$var$MetadataCon
4741
4697
 
4742
4698
  class $bbcfd2c49e8e9957$var$Configuration {
4743
4699
  constructor({ evaluate: evaluate = false , metadata: metadata = {
4744
- separator: ','
4700
+ separator: ","
4745
4701
  } }){
4746
4702
  this.evaluate = evaluate;
4747
- this.metadata = new $71c330be198ce421$export$2e2bcd8739ae039(metadata);
4703
+ this.metadata = new (0, $71c330be198ce421$export$2e2bcd8739ae039)(metadata);
4748
4704
  }
4749
4705
  get(key) {
4750
- return ($parcel$interopDefault($988mA$lodashget))(this, key);
4706
+ return (0, ($parcel$interopDefault($988mA$lodashget)))(this, key);
4751
4707
  }
4752
4708
  }
4753
4709
  var $bbcfd2c49e8e9957$export$2e2bcd8739ae039 = $bbcfd2c49e8e9957$var$Configuration;
@@ -4765,7 +4721,7 @@ var $bbcfd2c49e8e9957$export$2e2bcd8739ae039 = $bbcfd2c49e8e9957$var$Configurati
4765
4721
  * @param {string} [configuration.metadata.separator=", "] The separator to be used when rendering a metadata value
4766
4722
  * that has multiple values. See: https://bit.ly/2SC9c2u
4767
4723
  */ constructor(configuration = {}){
4768
- this.configuration = new $bbcfd2c49e8e9957$export$2e2bcd8739ae039(configuration);
4724
+ this.configuration = new (0, $bbcfd2c49e8e9957$export$2e2bcd8739ae039)(configuration);
4769
4725
  }
4770
4726
  }
4771
4727
  var $0055ecb09272ba2d$export$2e2bcd8739ae039 = $0055ecb09272ba2d$var$Formatter;
@@ -4777,33 +4733,33 @@ var $0055ecb09272ba2d$export$2e2bcd8739ae039 = $0055ecb09272ba2d$var$Formatter;
4777
4733
 
4778
4734
 
4779
4735
  var $37d1d6d5b59826cf$exports = {};
4780
- $37d1d6d5b59826cf$exports = JSON.parse("{\"majorKeys\":[\"A\",\"Bb\",\"B\",\"C\",\"C#\",\"Db\",\"D\",\"Eb\",\"E\",\"F\",\"F#\",\"Gb\",\"G\",\"G#\",\"Ab\"],\"minorKeys\":[\"F#m\",\"Gm\",\"G#m\",\"Am\",\"Bbm\",\"Bm\",\"Cm\",\"C#m\",\"Dm\",\"D#m\",\"Ebm\",\"Em\",\"Fm\"],\"capos\":{\"Bb\":{\"1\":\"A\",\"3\":\"G\",\"6\":\"E\",\"8\":\"D\",\"10\":\"C\"},\"D\":{\"2\":\"C\",\"5\":\"A\",\"7\":\"G\",\"10\":\"E\"},\"Eb\":{\"1\":\"D\",\"3\":\"C\",\"6\":\"A\",\"8\":\"G\"},\"Db\":{\"1\":\"C\",\"4\":\"A\",\"6\":\"G\",\"9\":\"E\"},\"C#\":{\"1\":\"C\",\"4\":\"A\",\"6\":\"G\",\"9\":\"E\"},\"E\":{\"2\":\"D\",\"4\":\"C\",\"7\":\"A\",\"9\":\"G\"},\"F\":{\"1\":\"E\",\"3\":\"D\",\"5\":\"C\",\"6\":\"B\",\"8\":\"A\",\"10\":\"G\"},\"F#\":{\"2\":\"E\",\"4\":\"D\",\"6\":\"C\",\"7\":\"B\",\"9\":\"A\"},\"Gb\":{\"2\":\"E\",\"4\":\"D\",\"6\":\"C\",\"7\":\"B\",\"9\":\"A\"},\"G\":{\"3\":\"E\",\"5\":\"D\",\"7\":\"C\",\"8\":\"B\",\"10\":\"A\"},\"G#\":{\"1\":\"G\",\"4\":\"E\",\"6\":\"D\",\"8\":\"C\"},\"Ab\":{\"1\":\"G\",\"4\":\"E\",\"6\":\"D\",\"8\":\"C\"},\"A\":{\"2\":\"G\",\"5\":\"E\",\"7\":\"D\",\"9\":\"C\"},\"B\":{\"2\":\"A\",\"4\":\"G\",\"7\":\"E\",\"9\":\"D\"},\"C\":{\"3\":\"A\",\"5\":\"G\",\"8\":\"E\",\"10\":\"D\"},\"Am\":{\"3\":\"F#m\",\"5\":\"Em\",\"7\":\"Dm\"},\"Bbm\":{\"1\":\"Am\",\"4\":\"F#m\",\"6\":\"Em\",\"8\":\"Dm\"},\"Bm\":{\"2\":\"Am\",\"5\":\"F#m\",\"7\":\"Em\"},\"Cm\":{\"1\":\"Bm\",\"3\":\"Am\",\"6\":\"F#m\",\"8\":\"Em\"},\"C#m\":{\"2\":\"Bm\",\"4\":\"Am\",\"7\":\"F#m\",\"9\":\"Em\"},\"Dm\":{\"3\":\"Bm\",\"5\":\"Am\",\"8\":\"F#m\"},\"Ebm\":{\"1\":\"Dm\",\"4\":\"Bm\",\"6\":\"Am\"},\"D#m\":{\"1\":\"Dm\",\"4\":\"Bm\",\"6\":\"Am\"}}}");
4736
+ $37d1d6d5b59826cf$exports = JSON.parse('{"majorKeys":["A","Bb","B","C","C#","Db","D","Eb","E","F","F#","Gb","G","G#","Ab"],"minorKeys":["F#m","Gm","G#m","Am","Bbm","Bm","Cm","C#m","Dm","D#m","Ebm","Em","Fm"],"capos":{"Bb":{"1":"A","3":"G","6":"E","8":"D","10":"C"},"D":{"2":"C","5":"A","7":"G","10":"E"},"Eb":{"1":"D","3":"C","6":"A","8":"G"},"Db":{"1":"C","4":"A","6":"G","9":"E"},"C#":{"1":"C","4":"A","6":"G","9":"E"},"E":{"2":"D","4":"C","7":"A","9":"G"},"F":{"1":"E","3":"D","5":"C","6":"B","8":"A","10":"G"},"F#":{"2":"E","4":"D","6":"C","7":"B","9":"A"},"Gb":{"2":"E","4":"D","6":"C","7":"B","9":"A"},"G":{"3":"E","5":"D","7":"C","8":"B","10":"A"},"G#":{"1":"G","4":"E","6":"D","8":"C"},"Ab":{"1":"G","4":"E","6":"D","8":"C"},"A":{"2":"G","5":"E","7":"D","9":"C"},"B":{"2":"A","4":"G","7":"E","9":"D"},"C":{"3":"A","5":"G","8":"E","10":"D"},"Am":{"3":"F#m","5":"Em","7":"Dm"},"Bbm":{"1":"Am","4":"F#m","6":"Em","8":"Dm"},"Bm":{"2":"Am","5":"F#m","7":"Em"},"Cm":{"1":"Bm","3":"Am","6":"F#m","8":"Em"},"C#m":{"2":"Bm","4":"Am","7":"F#m","9":"Em"},"Dm":{"3":"Bm","5":"Am","8":"F#m"},"Ebm":{"1":"Dm","4":"Bm","6":"Am"},"D#m":{"1":"Dm","4":"Bm","6":"Am"}}}');
4781
4737
 
4782
4738
 
4783
4739
  function $dfecd32049fa58e9$export$fd31a53e6281557e(transposeKey, songKey) {
4784
4740
  if (/^\d+$/.test(transposeKey)) return parseInt(transposeKey, 10);
4785
- return $bff5407e03fdc8ee$export$2e2bcd8739ae039.distance(songKey, transposeKey);
4741
+ return (0, $bff5407e03fdc8ee$export$2e2bcd8739ae039).distance(songKey, transposeKey);
4786
4742
  }
4787
4743
  function $dfecd32049fa58e9$var$chordTransposeDistance(capo, transposeKey, songKey) {
4788
4744
  let transpose = -1 * (capo || 0);
4789
- if ($21a34a464e7bc609$export$ee27c052bca048fb(transposeKey) && $21a34a464e7bc609$export$ee27c052bca048fb(songKey)) transpose += $dfecd32049fa58e9$export$fd31a53e6281557e(transposeKey, songKey);
4745
+ if ((0, $21a34a464e7bc609$export$ee27c052bca048fb)(transposeKey) && (0, $21a34a464e7bc609$export$ee27c052bca048fb)(songKey)) transpose += $dfecd32049fa58e9$export$fd31a53e6281557e(transposeKey, songKey);
4790
4746
  return transpose;
4791
4747
  }
4792
4748
  function $dfecd32049fa58e9$export$596ec52955da9472(chord, lineKey, transposeKey, song) {
4793
- let chordObj = $26f57998457eb2d4$export$2e2bcd8739ae039.parse(chord);
4749
+ let chordObj = (0, $26f57998457eb2d4$export$2e2bcd8739ae039).parse(chord);
4794
4750
  const { capo: capo , key: songKey } = song;
4795
4751
  if (!chordObj) return chord;
4796
4752
  chordObj = chordObj.transpose($dfecd32049fa58e9$var$chordTransposeDistance(capo, transposeKey, songKey));
4797
- if ($21a34a464e7bc609$export$ee27c052bca048fb(transposeKey)) chordObj = chordObj.useModifier(transposeKey.modifier);
4798
- if ($21a34a464e7bc609$export$ee27c052bca048fb(lineKey)) chordObj = chordObj.normalize(lineKey);
4753
+ if ((0, $21a34a464e7bc609$export$ee27c052bca048fb)(transposeKey)) chordObj = chordObj.useModifier(transposeKey.modifier);
4754
+ if ((0, $21a34a464e7bc609$export$ee27c052bca048fb)(lineKey)) chordObj = chordObj.normalize(lineKey);
4799
4755
  return chordObj.toString();
4800
4756
  }
4801
4757
  function $dfecd32049fa58e9$export$b07b16221c14aaa(key) {
4802
- return $37d1d6d5b59826cf$exports.capos[$bff5407e03fdc8ee$export$2e2bcd8739ae039.toString(key)];
4758
+ return (0, $37d1d6d5b59826cf$exports.capos)[(0, $bff5407e03fdc8ee$export$2e2bcd8739ae039).toString(key)];
4803
4759
  }
4804
4760
  function $dfecd32049fa58e9$export$74743eda5dda3ccf(key) {
4805
- const keyObj = $bff5407e03fdc8ee$export$2e2bcd8739ae039.wrap(key);
4806
- return keyObj.isMinor() ? $37d1d6d5b59826cf$exports.minorKeys : $37d1d6d5b59826cf$exports.majorKeys;
4761
+ const keyObj = (0, $bff5407e03fdc8ee$export$2e2bcd8739ae039).wrap(key);
4762
+ return keyObj.isMinor() ? (0, $37d1d6d5b59826cf$exports.minorKeys) : (0, $37d1d6d5b59826cf$exports.majorKeys);
4807
4763
  }
4808
4764
 
4809
4765
 
@@ -4813,53 +4769,45 @@ function $dfecd32049fa58e9$export$74743eda5dda3ccf(key) {
4813
4769
 
4814
4770
 
4815
4771
 
4816
- const $376e205ced98486b$var$lineHasContents = (line)=>line.items.some((item)=>item.isRenderable()
4817
- )
4818
- ;
4819
- const $376e205ced98486b$export$b8d631d9200974fa = (line)=>line.items.some((item)=>item instanceof $d454f4215ba01af2$export$2e2bcd8739ae039 && item.lyrics || item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039 && item.isRenderable() || $21a34a464e7bc609$export$e3f63561d52b936d(item)
4820
- )
4821
- ;
4822
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('isChordLyricsPair', (item)=>item instanceof $d454f4215ba01af2$export$2e2bcd8739ae039
4823
- );
4824
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('isTag', (item)=>item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039
4825
- );
4826
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('isComment', (item)=>item.name === 'comment'
4827
- );
4828
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('shouldRenderLine', (line, options)=>{
4772
+ const $376e205ced98486b$var$lineHasContents = (line)=>line.items.some((item)=>item.isRenderable());
4773
+ const $376e205ced98486b$export$b8d631d9200974fa = (line)=>line.items.some((item)=>item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039) && item.lyrics || item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) && item.isRenderable() || (0, $21a34a464e7bc609$export$e3f63561d52b936d)(item));
4774
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("isChordLyricsPair", (item)=>item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039));
4775
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("isTag", (item)=>item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039));
4776
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("isComment", (item)=>item.name === "comment");
4777
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("shouldRenderLine", (line, options)=>{
4829
4778
  if (options.data.root.renderBlankLines) return true;
4830
4779
  return $376e205ced98486b$var$lineHasContents(line);
4831
4780
  });
4832
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('hasChordContents', $21a34a464e7bc609$export$d332d76d125f0cbe);
4833
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('hasTextContents', $376e205ced98486b$export$b8d631d9200974fa);
4834
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('lineHasContents', $376e205ced98486b$var$lineHasContents);
4835
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('lineClasses', (line)=>{
4781
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("hasChordContents", (0, $21a34a464e7bc609$export$d332d76d125f0cbe));
4782
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("hasTextContents", $376e205ced98486b$export$b8d631d9200974fa);
4783
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("lineHasContents", $376e205ced98486b$var$lineHasContents);
4784
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("lineClasses", (line)=>{
4836
4785
  const classes = [
4837
- 'row'
4786
+ "row"
4838
4787
  ];
4839
- if (!$376e205ced98486b$var$lineHasContents(line)) classes.push('empty-line');
4840
- return classes.join(' ');
4788
+ if (!$376e205ced98486b$var$lineHasContents(line)) classes.push("empty-line");
4789
+ return classes.join(" ");
4841
4790
  });
4842
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('toUpperCase', (line)=>line.toUpperCase()
4843
- );
4844
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('paragraphClasses', (paragraph)=>{
4791
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("toUpperCase", (line)=>line.toUpperCase());
4792
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("paragraphClasses", (paragraph)=>{
4845
4793
  const classes = [
4846
- 'paragraph'
4794
+ "paragraph"
4847
4795
  ];
4848
- if (paragraph.type !== $af8d31735c159a26$export$c5a6fe907430212e && paragraph.type !== $af8d31735c159a26$export$c53d0f541b41b88e) classes.push(paragraph.type);
4849
- return classes.join(' ');
4796
+ if (paragraph.type !== (0, $af8d31735c159a26$export$c5a6fe907430212e) && paragraph.type !== (0, $af8d31735c159a26$export$c53d0f541b41b88e)) classes.push(paragraph.type);
4797
+ return classes.join(" ");
4850
4798
  });
4851
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('isEvaluatable', $21a34a464e7bc609$export$e3f63561d52b936d);
4852
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('evaluate', (item, metadata, configuration)=>{
4853
- if (!metadata) throw new Error('cannot evaluate, metadata is null');
4854
- return item.evaluate(metadata, configuration.get('metadata.separator'));
4799
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("isEvaluatable", (0, $21a34a464e7bc609$export$e3f63561d52b936d));
4800
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("evaluate", (item, metadata, configuration)=>{
4801
+ if (!metadata) throw new Error("cannot evaluate, metadata is null");
4802
+ return item.evaluate(metadata, configuration.get("metadata.separator"));
4855
4803
  });
4856
- ($parcel$interopDefault($988mA$handlebars)).registerHelper('renderChord', $dfecd32049fa58e9$export$596ec52955da9472);
4804
+ (0, ($parcel$interopDefault($988mA$handlebars))).registerHelper("renderChord", (0, $dfecd32049fa58e9$export$596ec52955da9472));
4857
4805
 
4858
4806
 
4859
4807
 
4860
4808
  /**
4861
4809
  * Formats a song into a plain text chord sheet
4862
- */ class $525b2331e4b0ed83$var$TextFormatter extends $0055ecb09272ba2d$export$2e2bcd8739ae039 {
4810
+ */ class $525b2331e4b0ed83$var$TextFormatter extends (0, $0055ecb09272ba2d$export$2e2bcd8739ae039) {
4863
4811
  /**
4864
4812
  * Formats a song into a plain text chord sheet
4865
4813
  * @param {Song} song The song to be formatted
@@ -4869,77 +4817,71 @@ const $376e205ced98486b$export$b8d631d9200974fa = (line)=>line.items.some((item)
4869
4817
  return [
4870
4818
  this.formatHeader(),
4871
4819
  this.formatParagraphs(),
4872
- ].join('');
4820
+ ].join("");
4873
4821
  }
4874
4822
  formatHeader() {
4875
4823
  const { title: title , subtitle: subtitle } = this.song;
4876
- const separator = title || subtitle ? '\n' : '';
4824
+ const separator = title || subtitle ? "\n" : "";
4877
4825
  return [
4878
4826
  this.formatTitle(title),
4879
4827
  this.formatSubTitle(subtitle),
4880
4828
  separator,
4881
- ].join('');
4829
+ ].join("");
4882
4830
  }
4883
4831
  formatParagraphs() {
4884
4832
  const { bodyParagraphs: bodyParagraphs , metadata: metadata } = this.song;
4885
- return bodyParagraphs.map((paragraph)=>this.formatParagraph(paragraph, metadata)
4886
- ).join('\n\n');
4833
+ return bodyParagraphs.map((paragraph)=>this.formatParagraph(paragraph, metadata)).join("\n\n");
4887
4834
  }
4888
4835
  formatParagraph(paragraph, metadata) {
4889
- return paragraph.lines.filter((line)=>line.hasRenderableItems()
4890
- ).map((line)=>this.formatLine(line, metadata)
4891
- ).join('\n');
4836
+ return paragraph.lines.filter((line)=>line.hasRenderableItems()).map((line)=>this.formatLine(line, metadata)).join("\n");
4892
4837
  }
4893
4838
  formatLine(line, metadata) {
4894
4839
  const parts = [
4895
4840
  this.formatLineTop(line),
4896
4841
  this.formatLineBottom(line, metadata),
4897
4842
  ];
4898
- return parts.filter((i)=>i !== null
4899
- ).map((part)=>part.trimRight()
4900
- ).join('\n');
4843
+ return parts.filter((i)=>i !== null).map((part)=>part.trimRight()).join("\n");
4901
4844
  }
4902
4845
  formatTitle(title) {
4903
4846
  if (title) return `${title.toUpperCase()}\n`;
4904
- return '';
4847
+ return "";
4905
4848
  }
4906
4849
  formatSubTitle(subtitle) {
4907
4850
  if (subtitle) return `${subtitle}\n`;
4908
- return '';
4851
+ return "";
4909
4852
  }
4910
4853
  formatLineTop(line) {
4911
- if ($21a34a464e7bc609$export$d332d76d125f0cbe(line)) return this.formatLineWithFormatter(line, this.formatItemTop);
4854
+ if ((0, $21a34a464e7bc609$export$d332d76d125f0cbe)(line)) return this.formatLineWithFormatter(line, this.formatItemTop);
4912
4855
  return null;
4913
4856
  }
4914
4857
  chordLyricsPairLength(chordLyricsPair, line) {
4915
- const chords = $dfecd32049fa58e9$export$596ec52955da9472(chordLyricsPair.chords, line.key, line.transposeKey, this.song);
4858
+ const chords = (0, $dfecd32049fa58e9$export$596ec52955da9472)(chordLyricsPair.chords, line.key, line.transposeKey, this.song);
4916
4859
  const { lyrics: lyrics } = chordLyricsPair;
4917
- const chordsLength = (chords || '').length;
4918
- const lyricsLength = (lyrics || '').length;
4860
+ const chordsLength = (chords || "").length;
4861
+ const lyricsLength = (lyrics || "").length;
4919
4862
  if (chordsLength >= lyricsLength) return chordsLength + 1;
4920
4863
  return Math.max(chordsLength, lyricsLength);
4921
4864
  }
4922
4865
  formatItemTop(item, metadata, line) {
4923
- if (item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039 && item.isRenderable()) return $21a34a464e7bc609$export$bc3bea8325045070('', item.value);
4924
- if (item instanceof $d454f4215ba01af2$export$2e2bcd8739ae039) {
4925
- const chords = $dfecd32049fa58e9$export$596ec52955da9472(item.chords, line.key, line.transposeKey, this.song);
4926
- return $21a34a464e7bc609$export$bc3bea8325045070(chords, this.chordLyricsPairLength(item, line));
4866
+ if (item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) && item.isRenderable()) return (0, $21a34a464e7bc609$export$bc3bea8325045070)("", item.value);
4867
+ if (item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039)) {
4868
+ const chords = (0, $dfecd32049fa58e9$export$596ec52955da9472)(item.chords, line.key, line.transposeKey, this.song);
4869
+ return (0, $21a34a464e7bc609$export$bc3bea8325045070)(chords, this.chordLyricsPairLength(item, line));
4927
4870
  }
4928
- return '';
4871
+ return "";
4929
4872
  }
4930
4873
  formatLineBottom(line, metadata) {
4931
- if ($376e205ced98486b$export$b8d631d9200974fa(line)) return this.formatLineWithFormatter(line, this.formatItemBottom, metadata);
4874
+ if ((0, $376e205ced98486b$export$b8d631d9200974fa)(line)) return this.formatLineWithFormatter(line, this.formatItemBottom, metadata);
4932
4875
  return null;
4933
4876
  }
4934
4877
  formatLineWithFormatter(line, formatter, metadata = null) {
4935
- return line.items.map((item)=>formatter.call(this, item, metadata, line)
4936
- ).join('');
4878
+ return line.items.map((item)=>formatter.call(this, item, metadata, line)).join("");
4937
4879
  }
4938
4880
  formatItemBottom(item, metadata, line) {
4939
- if (item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039 && item.isRenderable()) return item.value;
4940
- if (item instanceof $d454f4215ba01af2$export$2e2bcd8739ae039) return $21a34a464e7bc609$export$bc3bea8325045070(item.lyrics, this.chordLyricsPairLength(item, line));
4941
- if (typeof item.evaluate === 'function') return item.evaluate(metadata, this.configuration.get('metadata.separator'));
4942
- return '';
4881
+ if (item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039) && item.isRenderable()) return item.value;
4882
+ if (item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039)) return (0, $21a34a464e7bc609$export$bc3bea8325045070)(item.lyrics, this.chordLyricsPairLength(item, line));
4883
+ if (typeof item.evaluate === "function") return item.evaluate(metadata, this.configuration.get("metadata.separator"));
4884
+ return "";
4943
4885
  }
4944
4886
  }
4945
4887
  var $525b2331e4b0ed83$export$2e2bcd8739ae039 = $525b2331e4b0ed83$var$TextFormatter;
@@ -4948,7 +4890,7 @@ var $525b2331e4b0ed83$export$2e2bcd8739ae039 = $525b2331e4b0ed83$var$TextFormatt
4948
4890
 
4949
4891
 
4950
4892
  var $cc306339371360c4$var$template = $988mA$handlebars.template, $cc306339371360c4$var$templates = $988mA$handlebars.templates = $988mA$handlebars.templates || {};
4951
- $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$template({
4893
+ $cc306339371360c4$var$templates["html_table_formatter"] = $cc306339371360c4$var$template({
4952
4894
  "1": function(container, depth0, helpers, partials, data, blockParams) {
4953
4895
  var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
4954
4896
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
@@ -5054,7 +4996,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5054
4996
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5055
4997
  return undefined;
5056
4998
  };
5057
- return "<div class=\"chord-sheet\">" + ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "bodyParagraphs") : depth0, {
4999
+ return '<div class="chord-sheet">' + ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "bodyParagraphs") : depth0, {
5058
5000
  "name": "each",
5059
5001
  "hash": {},
5060
5002
  "fn": container.program(7, data, 1, blockParams),
@@ -5078,7 +5020,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5078
5020
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5079
5021
  return undefined;
5080
5022
  };
5081
- return "<div class=\"" + container.escapeExpression(lookupProperty(helpers, "paragraphClasses").call(alias1, blockParams[0][0], {
5023
+ return '<div class="' + container.escapeExpression(lookupProperty(helpers, "paragraphClasses").call(alias1, blockParams[0][0], {
5082
5024
  "name": "paragraphClasses",
5083
5025
  "hash": {},
5084
5026
  "data": data,
@@ -5093,7 +5035,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5093
5035
  "column": 50
5094
5036
  }
5095
5037
  }
5096
- })) + "\">" + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "lines") : depth0, {
5038
+ })) + '">' + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "lines") : depth0, {
5097
5039
  "name": "each",
5098
5040
  "hash": {},
5099
5041
  "fn": container.program(8, data, 1, blockParams),
@@ -5156,7 +5098,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5156
5098
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5157
5099
  return undefined;
5158
5100
  };
5159
- return "<table class=\"" + container.escapeExpression(lookupProperty(helpers, "lineClasses").call(alias1, blockParams[1][0], {
5101
+ return '<table class="' + container.escapeExpression(lookupProperty(helpers, "lineClasses").call(alias1, blockParams[1][0], {
5160
5102
  "name": "lineClasses",
5161
5103
  "hash": {},
5162
5104
  "data": data,
@@ -5171,7 +5113,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5171
5113
  "column": 48
5172
5114
  }
5173
5115
  }
5174
- })) + "\">" + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "hasChordContents").call(alias1, blockParams[1][0], {
5116
+ })) + '">' + ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(helpers, "hasChordContents").call(alias1, blockParams[1][0], {
5175
5117
  "name": "hasChordContents",
5176
5118
  "hash": {},
5177
5119
  "data": data,
@@ -5305,7 +5247,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5305
5247
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5306
5248
  return undefined;
5307
5249
  };
5308
- return "<td class=\"chord\">" + container.escapeExpression((lookupProperty(helpers, "renderChord") || depth0 && lookupProperty(depth0, "renderChord") || container.hooks.helperMissing).call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "chords") : depth0, (stack1 = blockParams[4][0]) != null ? lookupProperty(stack1, "key") : stack1, (stack1 = blockParams[4][0]) != null ? lookupProperty(stack1, "transposeKey") : stack1, (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song"), {
5250
+ return '<td class="chord">' + container.escapeExpression((lookupProperty(helpers, "renderChord") || depth0 && lookupProperty(depth0, "renderChord") || container.hooks.helperMissing).call(depth0 != null ? depth0 : container.nullContext || {}, depth0 != null ? lookupProperty(depth0, "chords") : depth0, (stack1 = blockParams[4][0]) != null ? lookupProperty(stack1, "key") : stack1, (stack1 = blockParams[4][0]) != null ? lookupProperty(stack1, "transposeKey") : stack1, (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song"), {
5309
5251
  "name": "renderChord",
5310
5252
  "hash": {},
5311
5253
  "data": data,
@@ -5454,7 +5396,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5454
5396
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5455
5397
  return undefined;
5456
5398
  };
5457
- return "<td class=\"lyrics\">" + container.escapeExpression((helper = (helper = lookupProperty(helpers, "lyrics") || (depth0 != null ? lookupProperty(depth0, "lyrics") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
5399
+ return '<td class="lyrics">' + container.escapeExpression((helper = (helper = lookupProperty(helpers, "lyrics") || (depth0 != null ? lookupProperty(depth0, "lyrics") : depth0)) != null ? helper : container.hooks.helperMissing, typeof helper === "function" ? helper.call(depth0 != null ? depth0 : container.nullContext || {}, {
5458
5400
  "name": "lyrics",
5459
5401
  "hash": {},
5460
5402
  "data": data,
@@ -5514,7 +5456,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5514
5456
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5515
5457
  return undefined;
5516
5458
  };
5517
- return "<td 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 || {}, {
5459
+ return '<td 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 || {}, {
5518
5460
  "name": "value",
5519
5461
  "hash": {},
5520
5462
  "data": data,
@@ -5535,7 +5477,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5535
5477
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5536
5478
  return undefined;
5537
5479
  };
5538
- return "<td 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"), (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "configuration"), {
5480
+ return '<td 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"), (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "configuration"), {
5539
5481
  "name": "evaluate",
5540
5482
  "hash": {},
5541
5483
  "data": data,
@@ -5589,7 +5531,7 @@ $cc306339371360c4$var$templates['html_table_formatter'] = $cc306339371360c4$var$
5589
5531
 
5590
5532
  /**
5591
5533
  * Acts as a base class for HTML formatters, taking care of whitelisting prototype property access.
5592
- */ class $d834af97c9a2e4df$var$HtmlFormatter extends $0055ecb09272ba2d$export$2e2bcd8739ae039 {
5534
+ */ class $d834af97c9a2e4df$var$HtmlFormatter extends (0, $0055ecb09272ba2d$export$2e2bcd8739ae039) {
5593
5535
  formatWithTemplate(song, template) {
5594
5536
  return template({
5595
5537
  song: song,
@@ -5610,35 +5552,35 @@ var $d834af97c9a2e4df$export$2e2bcd8739ae039 = $d834af97c9a2e4df$var$HtmlFormatt
5610
5552
 
5611
5553
 
5612
5554
 
5613
- const { html_table_formatter: $5b02ea769c63fd56$var$template } = ($parcel$interopDefault($988mA$handlebars)).templates;
5555
+ const { html_table_formatter: $5b02ea769c63fd56$var$template } = (0, ($parcel$interopDefault($988mA$handlebars))).templates;
5614
5556
  const $5b02ea769c63fd56$export$200cf2de69532aa8 = {
5615
5557
  h1: {
5616
- fontSize: '1.5em'
5558
+ fontSize: "1.5em"
5617
5559
  },
5618
5560
  h2: {
5619
- fontSize: '1.1em'
5561
+ fontSize: "1.1em"
5620
5562
  },
5621
5563
  table: {
5622
- borderSpacing: '0',
5623
- color: 'inherit'
5564
+ borderSpacing: "0",
5565
+ color: "inherit"
5624
5566
  },
5625
5567
  td: {
5626
- padding: '3px 0'
5568
+ padding: "3px 0"
5627
5569
  },
5628
- '.chord:not(:last-child)': {
5629
- paddingRight: '10px'
5570
+ ".chord:not(:last-child)": {
5571
+ paddingRight: "10px"
5630
5572
  },
5631
- '.paragraph': {
5632
- marginBottom: '1em'
5573
+ ".paragraph": {
5574
+ marginBottom: "1em"
5633
5575
  }
5634
5576
  };
5635
5577
  function $5b02ea769c63fd56$export$aa5b6043dd05348b(scope) {
5636
- return $21a34a464e7bc609$export$59d377d2a2e0150a($5b02ea769c63fd56$export$200cf2de69532aa8, scope);
5578
+ return (0, $21a34a464e7bc609$export$59d377d2a2e0150a)($5b02ea769c63fd56$export$200cf2de69532aa8, scope);
5637
5579
  }
5638
5580
  /**
5639
5581
  * Formats a song into HTML. It uses TABLEs to align lyrics with chords, which makes the HTML for things like
5640
5582
  * PDF conversion.
5641
- */ class $5b02ea769c63fd56$var$HtmlTableFormatter extends $d834af97c9a2e4df$export$2e2bcd8739ae039 {
5583
+ */ class $5b02ea769c63fd56$var$HtmlTableFormatter extends (0, $d834af97c9a2e4df$export$2e2bcd8739ae039) {
5642
5584
  /**
5643
5585
  * Formats a song into HTML.
5644
5586
  * @param {Song} song The song to be formatted
@@ -5658,8 +5600,8 @@ function $5b02ea769c63fd56$export$aa5b6043dd05348b(scope) {
5658
5600
  *
5659
5601
  * @param scope the CSS scope to use, for example `.chordSheetViewer`
5660
5602
  * @returns {string} the CSS string
5661
- */ static cssString(scope = '') {
5662
- return $21a34a464e7bc609$export$59d377d2a2e0150a($5b02ea769c63fd56$export$200cf2de69532aa8, scope);
5603
+ */ static cssString(scope = "") {
5604
+ return (0, $21a34a464e7bc609$export$59d377d2a2e0150a)($5b02ea769c63fd56$export$200cf2de69532aa8, scope);
5663
5605
  }
5664
5606
  /**
5665
5607
  * Basic CSS, in object style à la useStyles, to use with output generated by {@link HtmlTableFormatter}
@@ -5682,7 +5624,7 @@ var $5b02ea769c63fd56$export$2e2bcd8739ae039 = $5b02ea769c63fd56$var$HtmlTableFo
5682
5624
 
5683
5625
 
5684
5626
  var $9d647eea0a7973fb$var$template = $988mA$handlebars.template, $9d647eea0a7973fb$var$templates = $988mA$handlebars.templates = $988mA$handlebars.templates || {};
5685
- $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$template({
5627
+ $9d647eea0a7973fb$var$templates["html_div_formatter"] = $9d647eea0a7973fb$var$template({
5686
5628
  "1": function(container, depth0, helpers, partials, data, blockParams) {
5687
5629
  var stack1, alias1 = depth0 != null ? depth0 : container.nullContext || {}, lookupProperty = container.lookupProperty || function(parent, propertyName) {
5688
5630
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
@@ -5722,7 +5664,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
5722
5664
  "column": 11
5723
5665
  }
5724
5666
  }
5725
- })) != null ? stack1 : "") + "<div class=\"chord-sheet\">" + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "bodyParagraphs") : depth0, {
5667
+ })) != null ? stack1 : "") + '<div class="chord-sheet">' + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "bodyParagraphs") : depth0, {
5726
5668
  "name": "each",
5727
5669
  "hash": {},
5728
5670
  "fn": container.program(6, data, 1, blockParams),
@@ -5788,7 +5730,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
5788
5730
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5789
5731
  return undefined;
5790
5732
  };
5791
- return "<div class=\"" + container.escapeExpression(lookupProperty(helpers, "paragraphClasses").call(alias1, blockParams[0][0], {
5733
+ return '<div class="' + container.escapeExpression(lookupProperty(helpers, "paragraphClasses").call(alias1, blockParams[0][0], {
5792
5734
  "name": "paragraphClasses",
5793
5735
  "hash": {},
5794
5736
  "data": data,
@@ -5803,7 +5745,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
5803
5745
  "column": 48
5804
5746
  }
5805
5747
  }
5806
- })) + "\">" + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "lines") : depth0, {
5748
+ })) + '">' + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "lines") : depth0, {
5807
5749
  "name": "each",
5808
5750
  "hash": {},
5809
5751
  "fn": container.program(7, data, 1, blockParams),
@@ -5866,7 +5808,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
5866
5808
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
5867
5809
  return undefined;
5868
5810
  };
5869
- return "<div class=\"" + container.escapeExpression(lookupProperty(helpers, "lineClasses").call(alias1, blockParams[1][0], {
5811
+ return '<div class="' + container.escapeExpression(lookupProperty(helpers, "lineClasses").call(alias1, blockParams[1][0], {
5870
5812
  "name": "lineClasses",
5871
5813
  "hash": {},
5872
5814
  "data": data,
@@ -5881,7 +5823,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
5881
5823
  "column": 44
5882
5824
  }
5883
5825
  }
5884
- })) + "\">" + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "items") : depth0, {
5826
+ })) + '">' + ((stack1 = lookupProperty(helpers, "each").call(alias1, depth0 != null ? lookupProperty(depth0, "items") : depth0, {
5885
5827
  "name": "each",
5886
5828
  "hash": {},
5887
5829
  "fn": container.program(9, data, 1, blockParams),
@@ -6008,7 +5950,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
6008
5950
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
6009
5951
  return undefined;
6010
5952
  };
6011
- 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 = blockParams[3][0]) != null ? lookupProperty(stack1, "transposeKey") : stack1, (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song"), {
5953
+ 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 = blockParams[3][0]) != null ? lookupProperty(stack1, "transposeKey") : stack1, (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "song"), {
6012
5954
  "name": "renderChord",
6013
5955
  "hash": {},
6014
5956
  "data": data,
@@ -6023,7 +5965,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
6023
5965
  "column": 117
6024
5966
  }
6025
5967
  }
6026
- })) + "</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, {
5968
+ })) + '</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, {
6027
5969
  "name": "lyrics",
6028
5970
  "hash": {},
6029
5971
  "data": data,
@@ -6084,7 +6026,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
6084
6026
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
6085
6027
  return undefined;
6086
6028
  };
6087
- 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 || {}, {
6029
+ 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 || {}, {
6088
6030
  "name": "value",
6089
6031
  "hash": {},
6090
6032
  "data": data,
@@ -6105,7 +6047,7 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
6105
6047
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) return parent[propertyName];
6106
6048
  return undefined;
6107
6049
  };
6108
- 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"), (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "configuration"), {
6050
+ 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"), (stack1 = data && lookupProperty(data, "root")) && lookupProperty(stack1, "configuration"), {
6109
6051
  "name": "evaluate",
6110
6052
  "hash": {},
6111
6053
  "data": data,
@@ -6158,27 +6100,27 @@ $9d647eea0a7973fb$var$templates['html_div_formatter'] = $9d647eea0a7973fb$var$te
6158
6100
 
6159
6101
 
6160
6102
 
6161
- const { html_div_formatter: $ee0c149cc33dc156$var$template } = ($parcel$interopDefault($988mA$handlebars)).templates;
6103
+ const { html_div_formatter: $ee0c149cc33dc156$var$template } = (0, ($parcel$interopDefault($988mA$handlebars))).templates;
6162
6104
  const $ee0c149cc33dc156$var$defaultCss = {
6163
- '.chord:not(:last-child)': {
6164
- paddingRight: '10px'
6105
+ ".chord:not(:last-child)": {
6106
+ paddingRight: "10px"
6165
6107
  },
6166
- '.paragraph': {
6167
- marginBottom: '1em'
6108
+ ".paragraph": {
6109
+ marginBottom: "1em"
6168
6110
  },
6169
- '.row': {
6170
- display: 'flex'
6111
+ ".row": {
6112
+ display: "flex"
6171
6113
  },
6172
- '.chord:after': {
6173
- content: '\'\\200b\''
6114
+ ".chord:after": {
6115
+ content: "'\\200b'"
6174
6116
  },
6175
- '.lyrics:after': {
6176
- content: '\'\\200b\''
6117
+ ".lyrics:after": {
6118
+ content: "'\\200b'"
6177
6119
  }
6178
6120
  };
6179
6121
  /**
6180
6122
  * Formats a song into HTML. It uses DIVs to align lyrics with chords, which makes it useful for responsive web pages.
6181
- */ class $ee0c149cc33dc156$var$HtmlDivFormatter extends $d834af97c9a2e4df$export$2e2bcd8739ae039 {
6123
+ */ class $ee0c149cc33dc156$var$HtmlDivFormatter extends (0, $d834af97c9a2e4df$export$2e2bcd8739ae039) {
6182
6124
  /**
6183
6125
  * Formats a song into HTML.
6184
6126
  * @param {Song} song The song to be formatted
@@ -6198,8 +6140,8 @@ const $ee0c149cc33dc156$var$defaultCss = {
6198
6140
  *
6199
6141
  * @param scope the CSS scope to use, for example `.chordSheetViewer`
6200
6142
  * @returns {string} the CSS string
6201
- */ static cssString(scope = '') {
6202
- return $21a34a464e7bc609$export$59d377d2a2e0150a($ee0c149cc33dc156$var$defaultCss, scope);
6143
+ */ static cssString(scope = "") {
6144
+ return (0, $21a34a464e7bc609$export$59d377d2a2e0150a)($ee0c149cc33dc156$var$defaultCss, scope);
6203
6145
  }
6204
6146
  /**
6205
6147
  * Basic CSS, in object style à la useStyles, to use with output generated by {@link HtmlDivFormatter}
@@ -6224,59 +6166,56 @@ var $ee0c149cc33dc156$export$2e2bcd8739ae039 = $ee0c149cc33dc156$var$HtmlDivForm
6224
6166
 
6225
6167
 
6226
6168
 
6227
- const $b601b9602157ea5f$var$NEW_LINE = '\n';
6169
+ const $b601b9602157ea5f$var$NEW_LINE = "\n";
6228
6170
  /**
6229
6171
  * Formats a song into a ChordPro chord sheet
6230
- */ class $b601b9602157ea5f$var$ChordProFormatter extends $0055ecb09272ba2d$export$2e2bcd8739ae039 {
6172
+ */ class $b601b9602157ea5f$var$ChordProFormatter extends (0, $0055ecb09272ba2d$export$2e2bcd8739ae039) {
6231
6173
  /**
6232
6174
  * Formats a song into a ChordPro chord sheet.
6233
6175
  * @param {Song} song The song to be formatted
6234
6176
  * @returns {string} The ChordPro string
6235
6177
  */ format(song) {
6236
6178
  const { lines: lines , metadata: metadata } = song;
6237
- return lines.map((line)=>this.formatLine(line, metadata)
6238
- ).join($b601b9602157ea5f$var$NEW_LINE);
6179
+ return lines.map((line)=>this.formatLine(line, metadata)).join($b601b9602157ea5f$var$NEW_LINE);
6239
6180
  }
6240
6181
  formatLine(line, metadata) {
6241
- return line.items.map((item)=>this.formatItem(item, metadata)
6242
- ).join('');
6182
+ return line.items.map((item)=>this.formatItem(item, metadata)).join("");
6243
6183
  }
6244
6184
  formatItem(item, metadata) {
6245
- if (item instanceof $5e9ede69210ec54a$export$2e2bcd8739ae039) return this.formatTag(item);
6246
- if (item instanceof $d454f4215ba01af2$export$2e2bcd8739ae039) return this.formatChordLyricsPair(item);
6247
- if (typeof item.evaluate === 'function') return this.formatOrEvaluateItem(item, metadata);
6185
+ if (item instanceof (0, $5e9ede69210ec54a$export$2e2bcd8739ae039)) return this.formatTag(item);
6186
+ if (item instanceof (0, $d454f4215ba01af2$export$2e2bcd8739ae039)) return this.formatChordLyricsPair(item);
6187
+ if (typeof item.evaluate === "function") return this.formatOrEvaluateItem(item, metadata);
6248
6188
  throw new Error(`Don't know how to format a ${item.constructor.name}`);
6249
6189
  }
6250
6190
  formatOrEvaluateItem(item, metadata) {
6251
- if (this.configuration.evaluate) return item.evaluate(metadata, this.configuration.get('metadata.separator'));
6252
- if (item instanceof $b6d84b168638423d$export$2e2bcd8739ae039) return this.formatTernary(item);
6253
- if (item instanceof $e1378a714a1834c5$export$2e2bcd8739ae039) return item.evaluate();
6191
+ if (this.configuration.evaluate) return item.evaluate(metadata, this.configuration.get("metadata.separator"));
6192
+ if (item instanceof (0, $b6d84b168638423d$export$2e2bcd8739ae039)) return this.formatTernary(item);
6193
+ if (item instanceof (0, $e1378a714a1834c5$export$2e2bcd8739ae039)) return item.evaluate();
6254
6194
  throw new Error(`Don't know how to format a ${item.constructor.name}`);
6255
6195
  }
6256
6196
  formatTernary(ternary) {
6257
6197
  const { variable: variable , valueTest: valueTest , trueExpression: trueExpression , falseExpression: falseExpression , } = ternary;
6258
6198
  return [
6259
- '%{',
6260
- variable || '',
6199
+ "%{",
6200
+ variable || "",
6261
6201
  this.formatValueTest(valueTest),
6262
6202
  this.formatExpressionRange(trueExpression),
6263
6203
  this.formatExpressionRange(falseExpression),
6264
- '}',
6265
- ].join('');
6204
+ "}",
6205
+ ].join("");
6266
6206
  }
6267
6207
  formatValueTest(valueTest) {
6268
- if (!valueTest) return '';
6208
+ if (!valueTest) return "";
6269
6209
  return `=${valueTest}`;
6270
6210
  }
6271
6211
  formatExpressionRange(expressionRange) {
6272
- if (!expressionRange) return '';
6273
- return `|${expressionRange.map((expression)=>this.formatExpression(expression)
6274
- ).join('')}`;
6212
+ if (!expressionRange) return "";
6213
+ return `|${expressionRange.map((expression)=>this.formatExpression(expression)).join("")}`;
6275
6214
  }
6276
6215
  formatExpression(expression) {
6277
- if (expression instanceof $b6d84b168638423d$export$2e2bcd8739ae039) return this.formatTernary(expression);
6278
- if (expression instanceof $e1378a714a1834c5$export$2e2bcd8739ae039) return expression.string;
6279
- return '';
6216
+ if (expression instanceof (0, $b6d84b168638423d$export$2e2bcd8739ae039)) return this.formatTernary(expression);
6217
+ if (expression instanceof (0, $e1378a714a1834c5$export$2e2bcd8739ae039)) return expression.string;
6218
+ return "";
6280
6219
  }
6281
6220
  formatTag(tag) {
6282
6221
  if (tag.hasValue()) return `{${tag.originalName}: ${tag.value}}`;
@@ -6286,14 +6225,14 @@ const $b601b9602157ea5f$var$NEW_LINE = '\n';
6286
6225
  return [
6287
6226
  this.formatChordLyricsPairChords(chordLyricsPair),
6288
6227
  this.formatChordLyricsPairLyrics(chordLyricsPair),
6289
- ].join('');
6228
+ ].join("");
6290
6229
  }
6291
6230
  formatChordLyricsPairChords(chordLyricsPair) {
6292
6231
  if (chordLyricsPair.chords) return `[${chordLyricsPair.chords}]`;
6293
- return '';
6232
+ return "";
6294
6233
  }
6295
6234
  formatChordLyricsPairLyrics(chordLyricsPair) {
6296
- return chordLyricsPair.lyrics || '';
6235
+ return chordLyricsPair.lyrics || "";
6297
6236
  }
6298
6237
  }
6299
6238
  var $b601b9602157ea5f$export$2e2bcd8739ae039 = $b601b9602157ea5f$var$ChordProFormatter;