From 78ccee6aff3f4d579d952b034150d5163412a7f1 Mon Sep 17 00:00:00 2001 From: infojunkie Date: Sat, 27 Jan 2024 19:04:18 -0800 Subject: [PATCH] Fix #62 invalid ending --- doc/irealpro.md | 4 +- lib/ireal-musicxml.js | 2 +- package-lock.json | 196 +++++++++++++++++++++--------------------- package.json | 2 +- src/musicxml.js | 10 ++- test/bugs.spec.js | 24 +++++- test/data/country.txt | 1 + 7 files changed, 132 insertions(+), 107 deletions(-) create mode 100644 test/data/country.txt diff --git a/doc/irealpro.md b/doc/irealpro.md index 03a13af..4067fc1 100644 --- a/doc/irealpro.md +++ b/doc/irealpro.md @@ -1,7 +1,7 @@ # iReal Pro format and model ## Sources -- iReal Pro [app](https://irealpro.com/), [forum](https://irealb.com/forums/) and [support docs](https://irealpro.com/support/) +- [iReal Pro File Format](https://www.irealpro.com/ireal-pro-file-format) - [`ireal-renderer`](https://github.com/daumling/ireal-renderer) ## Application model and playback algorithm @@ -115,7 +115,7 @@ _I Got Rhythm_, _Like Someone in Love_, _On the Sunny Side of the Street_, _Mist "Kcl" or "XyQKcl" - also repeat previous bar (see _Besame Mucho_, _Butterfly_, _Solar_) "r" - repeat previous 2 bars (see _Mas Que Nada_) "()" - alternative chord written in small (above actual chord) -" " - represents a chord seperator +" " - represents a chord separator "," - equivalent to space, especially for whole notes in 44 "" - Comments and repeat directives (can start with "*yy" to denote a vertical offset of yy units, see _La Fiesta_) "*A" - section A (could be *B, *C, *i, *v, etc.) diff --git a/lib/ireal-musicxml.js b/lib/ireal-musicxml.js index b936485..a3ec0ef 100644 --- a/lib/ireal-musicxml.js +++ b/lib/ireal-musicxml.js @@ -1,2 +1,2 @@ /*! For license information please see ireal-musicxml.js.LICENSE.txt */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.iReal2MusicXML=e():t.iReal2MusicXML=e()}(this,(()=>(()=>{var t={272:(t,e,r)=>{"use strict";var n=r(723),o=[],i=[],a=n.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function u(t){var e;(e=o.length?o.pop():new s).task=t,n(e)}function s(){this.task=null}t.exports=u,s.prototype.call=function(){try{this.task.call()}catch(t){u.onerror?u.onerror(t):(i.push(t),a())}finally{this.task=null,o[o.length]=this}}},723:(t,e,r)=>{"use strict";function n(t){i.length||o(),i[i.length]=t}t.exports=n;var o,i=[],a=0;function u(){for(;a1024){for(var e=0,r=i.length-a;e{var t={8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),i=r(7667),a=r(1327),u=r(1866);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(7040),o=r(4125),i=r(2117),a=r(7518),u=r(4705);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),u=r(5265);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),o=r(619),i=r(2385);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e{var n=r(8407),o=r(7465),i=r(3779),a=r(7599),u=r(4758),s=r(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7412:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r{var n=r(2118);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n{var n=r(2545),o=r(5694),i=r(1469),a=r(4144),u=r(5776),s=r(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&a(t),h=!r&&!l&&!f&&s(t),p=r||l||f||h,d=p?n(t.length,String):[],v=d.length;for(var b in t)!e&&!c.call(t,b)||p&&("length"==b||f&&("offset"==b||"parent"==b)||h&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||u(b,v))||d.push(b);return d}},9932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},4037:(t,e,r)=>{var n=r(8363),o=r(3674);t.exports=function(t,e){return t&&n(e,o(e),t)}},3886:(t,e,r)=>{var n=r(8363),o=r(1704);t.exports=function(t,e){return t&&n(e,o(e),t)}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5990:(t,e,r)=>{var n=r(6384),o=r(7412),i=r(4865),a=r(4037),u=r(3886),s=r(4626),c=r(278),l=r(8805),f=r(1911),h=r(8234),p=r(6904),d=r(4160),v=r(3824),b=r(9148),m=r(8517),y=r(1469),g=r(4144),_=r(6688),j=r(3218),w=r(2928),x=r(3674),O=r(1704),S="[object Arguments]",A="[object Function]",E="[object Object]",k={};k[S]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[E]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[A]=k["[object WeakMap]"]=!1,t.exports=function t(e,r,D,C,P,z){var F,T=1&r,M=2&r,L=4&r;if(D&&(F=P?D(e,C,P,z):D(e)),void 0!==F)return F;if(!j(e))return e;var I=y(e);if(I){if(F=v(e),!T)return c(e,F)}else{var N=d(e),R=N==A||"[object GeneratorFunction]"==N;if(g(e))return s(e,T);if(N==E||N==S||R&&!P){if(F=M||R?{}:m(e),!T)return M?f(e,u(F,e)):l(e,a(F,e))}else{if(!k[N])return P?e:{};F=b(e,N,T)}}z||(z=new n);var q=z.get(e);if(q)return q;z.set(e,F),w(e)?e.forEach((function(n){F.add(t(n,r,D,n,e,z))})):_(e)&&e.forEach((function(n,o){F.set(o,t(n,r,D,o,e,z))}));var G=I?void 0:(L?M?p:h:M?O:x)(e);return o(G||e,(function(n,o){G&&(n=e[o=n]),i(F,o,t(n,r,D,o,e,z))})),F}},3118:(t,e,r)=>{var n=r(3218),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},731:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),a=r(9932),u=r(1717),s=r(4757);t.exports=function(t,e,r,c){var l=-1,f=o,h=!0,p=t.length,d=[],v=e.length;if(!p)return d;r&&(e=a(e,u(r))),c?(f=i,h=!1):e.length>=200&&(f=s,h=!1,e=new n(e));t:for(;++l{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i{var n=r(2488),o=r(7285);t.exports=function t(e,r,i,a,u){var s=-1,c=e.length;for(i||(i=o),u||(u=[]);++s0&&i(l)?r>1?t(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},8483:(t,e,r)=>{var n=r(5063)();t.exports=n},7816:(t,e,r)=>{var n=r(8483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},7786:(t,e,r)=>{var n=r(1811),o=r(327);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),i=r(2333),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,r)=>{var n=r(1848),o=r(2722),i=r(2351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},8975:(t,e,r)=>{var n=r(7816);t.exports=function(t,e,r,o){return n(t,(function(t,n,i){e(o,r(t),n,i)})),o}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),o=r(7005);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},2492:(t,e,r)=>{var n=r(6384),o=r(7114),i=r(8351),a=r(6096),u=r(4160),s=r(1469),c=r(4144),l=r(6719),f="[object Arguments]",h="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,b,m){var y=s(t),g=s(e),_=y?h:u(t),j=g?h:u(e),w=(_=_==f?p:_)==p,x=(j=j==f?p:j)==p,O=_==j;if(O&&c(t)){if(!c(e))return!1;y=!0,w=!1}if(O&&!w)return m||(m=new n),y||l(t)?o(t,e,r,v,b,m):i(t,e,_,r,v,b,m);if(!(1&r)){var S=w&&d.call(t,"__wrapped__"),A=x&&d.call(e,"__wrapped__");if(S||A){var E=S?t.value():t,k=A?e.value():e;return m||(m=new n),b(E,k,r,v,m)}}return!!O&&(m||(m=new n),a(t,e,r,v,b,m))}},5588:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},2958:(t,e,r)=>{var n=r(6384),o=r(939);t.exports=function(t,e,r,i){var a=r.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=r[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?h:u).test(a(t))}},9221:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),i=r(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},7206:(t,e,r)=>{var n=r(1573),o=r(6432),i=r(6557),a=r(1469),u=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},280:(t,e,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:(t,e,r)=>{var n=r(3218),o=r(5726),i=r(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)("constructor"!=u||!e&&a.call(t,u))&&r.push(u);return r}},1573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),o=r(7361),i=r(9095),a=r(5403),u=r(9162),s=r(2634),c=r(327);t.exports=function(t,e){return a(t)&&u(e)?s(c(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},5976:(t,e,r)=>{var n=r(6557),o=r(5357),i=r(61);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6560:(t,e,r)=>{var n=r(5703),o=r(8777),i=r(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{var n=r(2705),o=r(9932),i=r(1469),a=r(3448),u=n?n.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},7561:(t,e,r)=>{var n=r(7990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),a=r(4757),u=r(3593),s=r(1814);t.exports=function(t,e,r){var c=-1,l=o,f=t.length,h=!0,p=[],d=p;if(r)h=!1,l=i;else if(f>=200){var v=e?null:u(t);if(v)return s(v);h=!1,l=a,d=new n}else d=e?[]:p;t:for(;++c{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),o=r(5403),i=r(5514),a=r(9833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},4318:(t,e,r)=>{var n=r(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},4626:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=u?u(r):new t.constructor(r);return t.copy(n),n}},7157:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},419:(t,e,r)=>{var n=r(2705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r{var n=r(4865),o=r(9465);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,s=e.length;++u{var n=r(8363),o=r(9551);t.exports=function(t,e){return n(t,o(t),e)}},1911:(t,e,r)=>{var n=r(8363),o=r(1442);t.exports=function(t,e){return n(t,o(t),e)}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},5063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}},7740:(t,e,r)=>{var n=r(7206),o=r(8612),i=r(3674);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var s=n(r,3);e=i(e),r=function(t){return s(u[t],t,u)}}var c=t(e,r,a);return c>-1?u[s?e[c]:c]:void 0}}},7779:(t,e,r)=>{var n=r(8975);t.exports=function(t,e){return function(r,o){return n(r,t,e(o),{})}}},3593:(t,e,r)=>{var n=r(8525),o=r(308),i=r(1814),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},7114:(t,e,r)=>{var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,a,u,s){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=s.get(t),p=s.get(e);if(h&&p)return h==e&&p==t;var d=-1,v=!0,b=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d{var n=r(2705),o=r(1149),i=r(7813),a=r(7114),u=r(8776),s=r(1814),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,f,h){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=u;case"[object Set]":var d=1&n;if(p||(p=s),t.size!=e.size&&!d)return!1;var v=h.get(t);if(v)return v==e;n|=2,h.set(t,e);var b=a(p(t),p(e),n,c,f,h);return h.delete(t),b;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var s=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!s)return!1;for(var f=l;f--;){var h=c[f];if(!(s?h in e:o.call(e,h)))return!1}var p=u.get(t),d=u.get(e);if(p&&d)return p==e&&d==t;var v=!0;u.set(t,e),u.set(e,t);for(var b=s;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},6904:(t,e,r)=>{var n=r(8866),o=r(1442),i=r(1704);t.exports=function(t){return n(t,i,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),o=r(3674);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},1442:(t,e,r)=>{var n=r(2488),o=r(5924),i=r(9551),a=r(479),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=u},4160:(t,e,r)=>{var n=r(8552),o=r(7071),i=r(3818),a=r(8525),u=r(577),s=r(4239),c=r(346),l="[object Map]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",d="[object DataView]",v=c(n),b=c(o),m=c(i),y=c(a),g=c(u),_=s;(n&&_(new n(new ArrayBuffer(1)))!=d||o&&_(new o)!=l||i&&_(i.resolve())!=f||a&&_(new a)!=h||u&&_(new u)!=p)&&(_=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return d;case b:return l;case m:return f;case y:return h;case g:return p}return e}),t.exports=_},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),o=r(5694),i=r(1469),a=r(5776),u=r(1780),s=r(327);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,f=!1;++c{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},9148:(t,e,r)=>{var n=r(4318),o=r(7157),i=r(3147),a=r(419),u=r(7133);t.exports=function(t,e,r){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(t,r);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},8517:(t,e,r)=>{var n=r(3118),o=r(5924),i=r(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},7285:(t,e,r)=>{var n=r(2705),o=r(5694),i=r(1469),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5357:(t,e,r)=>{var n=r(6874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},61:(t,e,r)=>{var n=r(6560),o=r(1275)(n);t.exports=o},1275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},2351:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},6678:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,4)}},361:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},1966:(t,e,r)=>{var n=r(731),o=r(1078),i=r(5976),a=r(9246),u=i((function(t,e){return a(t)?n(t,o(e,1,a,!0)):[]}));t.exports=u},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3311:(t,e,r)=>{var n=r(7740)(r(998));t.exports=n},998:(t,e,r)=>{var n=r(1848),o=r(7206),i=r(554),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var s=null==r?0:i(r);return s<0&&(s=a(u+s,0)),n(t,o(e,3),s)}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},3137:(t,e,r)=>{var n=r(5703),o=r(7779),i=r(6557),a=Object.prototype.toString,u=o((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=a.call(e)),t[e]=r}),n(i));t.exports=u},5694:(t,e,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},9246:(t,e,r)=>{var n=r(8612),o=r(7005);t.exports=function(t){return o(t)&&n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,r)=>{var n=r(5588),o=r(1717),i=r(1167),a=i&&i.isMap,u=a?o(a):n;t.exports=u},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2928:(t,e,r)=>{var n=r(9221),o=r(1717),i=r(1167),a=i&&i.isSet,u=a?o(a):n;t.exports=u},3448:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),o=r(1717),i=r(1167),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},3674:(t,e,r)=>{var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},1704:(t,e,r)=>{var n=r(4636),o=r(313),i=r(8612);t.exports=function(t){return i(t)?n(t,!0):o(t)}},8306:(t,e,r)=>{var n=r(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},308:t=>{t.exports=function(){}},9601:(t,e,r)=>{var n=r(371),o=r(9152),i=r(5403),a=r(327);t.exports=function(t){return i(t)?n(a(t)):o(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,r)=>{var n=r(4841);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,r)=>{var n=r(8601);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},4841:(t,e,r)=>{var n=r(7561),o=r(3218),i=r(3448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||s.test(t)?c(t.slice(2),r?2:8):a.test(t)?NaN:+t}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},4908:(t,e,r)=>{var n=r(5652);t.exports=function(t){return t&&t.length?n(t):[]}},2569:(t,e,r)=>{var n=r(731),o=r(5976),i=r(9246),a=o((function(t,e){return i(t)?n(t,e):[]}));t.exports=a}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";function t(t,e){return t.reduce((function(t,e){return t?e(t):null}),e)}r.r(n),r.d(n,{chordParserFactory:()=>ke,chordRendererFactory:()=>nr});var e=r(361),o=r.n(e);const i=function(t){if(!Array.isArray(t))throw new TypeError("customFilters should be given as an array");if(t.some((function(t){return"function"!=typeof t})))throw new TypeError("The given filter is not a function");return!0};function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};return{input:{symbol:arguments.length>1?arguments[1]:void 0},normalized:{},formatted:{},parserConfiguration:o()(t)}}function Pt(t){return function(t){if(Array.isArray(t))return zt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0)throw new J(t,a);return n}(e)),e.input.modifiers=r,e.normalized.intervals=function(t,e){return t.includes(ve.power)?["1","5"]:t.includes(ve.bass)?["1"]:$t()(["1"].concat(me(function(t){var e=[];return t.includes(ve.omit3)?[]:(it(t,[ve.sus,ve.sus2])||(we(t)?t.includes(ve.eleventh)||e.push("3"):e.push("b3")),t.includes(ve.add3)&&e.push("3"),e)}(t)),me(function(t){var e=[];return it(t,[ve.sus,ve.add4])&&e.push("4"),e}(t)),me(function(t,e){var r=[];return t.includes(ve.omit5)?[]:((it(t,[ve.dim,ve.halfDim,ve.fifthFlat])||je(t,e,"b5"))&&r.push("b5"),(it(t,[ve.aug,ve.fifthSharp])||je(t,e,"#5"))&&r.push("#5"),r.length||t.includes(ve.thirteenthFlat)||r.push("5"),r)}(t,e)),me(function(t){var e=[];return it(t,[ve.addb6])&&e.push("b6"),!it(t,[ve.add6,ve.add69])||xe(t)||it(t,[ve.halfDim])||e.push("6"),e}(t)),me(function(t){var e=[];return it(t,[ve.alt])&&e.push("b7"),it(t,[ve.seventh,ve.halfDim])?t.includes(ve.dim)?e.push("bb7"):t.includes(ve.halfDim)?e.push("b7"):e.push(_e(t)):it(t,[ve.ninth,ve.eleventh,ve.thirteenth])&&e.push(_e(t)),t.includes(ve.add7)&&e.push("7"),e}(t)),me(function(t,e){var r=[];return it(t,[ve.add69,ve.ninth,ve.eleventh,ve.thirteenth])&&ut(t,[ve.ninthFlat,ve.ninthSharp])&&r.push("9"),it(t,[ve.sus2,ve.add9])&&r.push("9"),(it(t,[ve.ninthFlat])||je(t,e,"b9"))&&r.push("b9"),(it(t,[ve.ninthSharp])||je(t,e,"#9"))&&r.push("#9"),r}(t,e)),me(function(t,e){var r=[];return(it(t,[ve.thirteenth])&&!we(t)||it(t,[ve.eleventh,ve.add11]))&&r.push("11"),(it(t,[ve.eleventhSharp])||je(t,e,"#11"))&&r.push("#11"),r}(t,e)),me(function(t,e){var r=[];return(it(t,[ve.add13,ve.thirteenth])||it(t,[ve.add6,ve.add69])&&xe(t)||it(t,[ve.add6,ve.add69])&&it(t,[ve.halfDim]))&&r.push("13"),(it(t,[ve.thirteenthFlat])||je(t,e,"b13"))&&r.push("b13"),r}(t,e)))).sort((function(t,e){return be[t]-be[e]}))}(r,t),e.normalized.semitones=e.normalized.intervals.map((function(t){return be[t]})).sort((function(t,e){return t-e})),e.normalized.intents=function(t){return{major:we(t),eleventh:t.includes(ve.eleventh),alt:t.includes(ve.alt)}}(r),e}function _e(t){return t.includes(ve.ma)?"7":"b7"}function je(t,e,r){return t.includes(ve.alt)&&e.includes(r)}function we(t){return ut(t,[ve.mi,ve.dim,ve.dim7,ve.halfDim])}function xe(t){return it(t,[ve.seventh,ve.ninth,ve.eleventh,ve.thirteenth])}function Oe(t){return t.replace(/[.\-*+?^${}()|[\]\\]/g,"\\$&")}function Se(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},r=["b5","#5","b9","#9","#11","b13"],n=["english","german","latin"],a=e.notationSystems,u=void 0===a?o()(n):a,s=e.altIntervals,c=void 0===s?o()(r):s,l=e.customFilters,f=void 0===l?[]:l;return function(t,e){Ae("altIntervals",t,e,!0)}(c,r),function(t,e){Ae("notationSystems",t,e)}(u,n),i(f),function(r){var n,i=[];if(!("string"==typeof(n=r)&&n.length>0)){var a=new K;i.push(Ee(a))}var s,l,h,p,d,v=o()(L).filter((function(t){return u.includes(t.name)}));if(!i.length)for(;v.length&&!s;){h=v.shift(),l=[Ct.bind(null,e),oe.bind(null,h.notes),St,ge.bind(null,c),lt,Nt,Jt,jt,ft,It].concat(function(t){if(Array.isArray(t))return Se(t)}(d=f)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(d)||function(t,e){if(t){if("string"==typeof t)return Se(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Se(t,e):void 0}}(d)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());try{(s=t(l,r))?s.input.notationSystem=h.name:i.push((p=h.name,Ee(new Z,p)))}catch(a){i.push(Ee(a,h.name))}}return s||{error:i}}};function De(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ce(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"none",r=arguments.length>1?arguments[1]:void 0;if("none"===e)return r;var n=Be()(r.normalized.intervals,{max:["4","b5","#5","6","bb7","b7","7","b9","9","#9","11","#11","b13","13"],core:["4","b9","9","#9","11","#11","b13","13"]}[e]);return ut(n,["b3","3"])&&n.push(r.normalized.intents.major?"3":"b3"),ut(n,["b5","5","#5"])&&n.push("5"),r.normalized.intervals=n,r.normalized.semitones=n.map((function(t){return be[t]})),r.normalized.intents.eleventh=!1,r.normalized.intents.alt=!1,"max"===e&&delete r.normalized.bassNote,t([Jt,jt,It],r)}var $e=r(3137),We=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],Xe={"C#":"Db","D#":"Eb","F#":"Gb","G#":"Ab","A#":"Bb"},Ve=r.n($e)()(Xe);function Ke(t,e,r){var n=r.normalized,o=n.rootNote,i=n.bassNote,a=Ye(o);if(r.normalized.rootNote=Ze(a,t,e),r.formatted.rootNote=r.normalized.rootNote,i){var u=Ye(i);r.normalized.bassNote=Ze(u,t,e),r.formatted.bassNote=r.normalized.bassNote}return It(r)}function Ze(t,e,r){var n=We.indexOf(t)+e,o=Math.floor(n/12),i=We[n-12*o];return r&&Xe[i]||i}function Ye(t){return Ve[t]||t}var He={german:{Ab:"As",A:"A","A#":"Ais",Bb:"Hes",B:"H",C:"C","C#":"Cis",Db:"Des",D:"D","D#":"Dis",Eb:"Es",E:"E",F:"F","F#":"Fis",Gb:"Ges",G:"G","G#":"Gis"},latin:{Ab:"Lab",A:"La","A#":"La#",Bb:"Sib",B:"Si",C:"Do","C#":"Do#",Db:"Reb",D:"Re","D#":"Re#",Eb:"Mib",E:"Mi",F:"Fa","F#":"Fa#",Gb:"Solb",G:"Sol","G#":"Sol#"}},Je=Object.keys(He);function Qe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"english",e=arguments.length>1?arguments[1]:void 0,r="auto"===t?e.input.notationSystem:t;return"english"===r?e:Je.includes(r)?(e.formatted.rootNote=He[r][e.formatted.rootNote],e.formatted.bassNote&&(e.formatted.bassNote=He[r][e.formatted.bassNote]),e):null}function tr(t){return t&&t.formatted&&t.formatted.symbol?t.formatted.symbol:null}function er(t){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(t)}function rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},r=e.useShortNamings,n=void 0!==r&&r,a=e.simplify,u=void 0===a?"none":a,s=e.transposeValue,c=void 0===s?0:s,l=e.harmonizeAccidentals,f=void 0!==l&&l,h=e.useFlats,p=void 0!==h&&h,d=e.printer,v=void 0===d?"text":d,b=e.notationSystem,m=void 0===b?"english":b,y=e.customFilters,g=void 0===y?[]:y;i(g);var _,j=[];return["max","core"].includes(u)&&j.push(Ue.bind(null,u)),(f||0!==c)&&j.push(Ke.bind(null,c,p)),n&&j.push(qe),j.push.apply(j,[Qe.bind(null,m),ft].concat(function(t){if(Array.isArray(t))return rr(t)}(_=g)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(_)||function(t,e){if(t){if("string"==typeof t)return rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rr(t,e):void 0}}(_)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),function(e){if(!function(t){return t&&"object"===er(t)&&!t.error&&t.input}(e))return null;var r=t(j,o()(e));return"raw"===v?function(t){delete t.parserConfiguration.notationSystems;var e=o()(t),r=tr(t),n=ke(t.parserConfiguration)(r);return e.input=n.input,e}(r):tr(r)}}})(),n})()},t.exports=e()},529:t=>{var e=-1,r=1,n=0;function o(t,v,b,m,y){if(t===v)return t?[[n,t]]:[];if(null!=b){var _=function(t,e,r){var n="number"==typeof r?{index:r,length:0}:r.oldRange,o="number"==typeof r?null:r.newRange,i=t.length,a=e.length;if(0===n.length&&(null===o||0===o.length)){var u=n.index,s=t.slice(0,u),c=t.slice(u),l=o?o.index:null,f=u+a-i;if((null===l||l===f)&&!(f<0||f>a)){var h=e.slice(0,f);if((v=e.slice(f))===c){var p=Math.min(u,f);if((m=s.slice(0,p))===(_=h.slice(0,p)))return g(m,s.slice(p),h.slice(p),c)}}if(null===l||l===u){var d=u,v=(h=e.slice(0,d),e.slice(d));if(h===s){var b=Math.min(i-d,a-d);if((y=c.slice(c.length-b))===(j=v.slice(v.length-b)))return g(s,c.slice(0,c.length-b),v.slice(0,v.length-b),y)}}}if(n.length>0&&o&&0===o.length){var m=t.slice(0,n.index),y=t.slice(n.index+n.length);if(!(a<(p=m.length)+(b=y.length))){var _=e.slice(0,p),j=e.slice(a-b);if(m===_&&y===j)return g(m,t.slice(p,i-b),e.slice(p,a-b),y)}}return null}(t,v,b);if(_)return _}var j=a(t,v),w=t.substring(0,j);j=s(t=t.substring(j),v=v.substring(j));var x=t.substring(t.length-j),O=function(t,u){var c;if(!t)return[[r,u]];if(!u)return[[e,t]];var l=t.length>u.length?t:u,f=t.length>u.length?u:t,h=l.indexOf(f);if(-1!==h)return c=[[r,l.substring(0,h)],[n,f],[r,l.substring(h+f.length)]],t.length>u.length&&(c[0][0]=c[2][0]=e),c;if(1===f.length)return[[e,t],[r,u]];var p=function(t,e){var r=t.length>e.length?t:e,n=t.length>e.length?e:t;if(r.length<4||2*n.length=t.length?[n,o,i,u,f]:null}var i,u,c,l,f,h=o(r,n,Math.ceil(r.length/4)),p=o(r,n,Math.ceil(r.length/2));return h||p?(i=p?h&&h[4].length>p[4].length?h:p:h,t.length>e.length?(u=i[0],c=i[1],l=i[2],f=i[3]):(l=i[0],f=i[1],u=i[2],c=i[3]),[u,c,l,f,i[4]]):null}(t,u);if(p){var d=p[0],v=p[1],b=p[2],m=p[3],y=p[4],g=o(d,b),_=o(v,m);return g.concat([[n,y]],_)}return function(t,n){for(var o=t.length,a=n.length,u=Math.ceil((o+a)/2),s=u,c=2*u,l=new Array(c),f=new Array(c),h=0;ho)b+=2;else if(w>a)v+=2;else if(d&&(S=s+p-_)>=0&&S=(O=o-f[S]))return i(t,n,E,w)}for(var x=-g+m;x<=g-y;x+=2){for(var O,S=s+x,A=(O=x===-g||x!==g&&f[S-1]o)y+=2;else if(A>a)m+=2;else if(!d){var E;if((j=s+p-x)>=0&&j=(O=o-O))return i(t,n,E,w)}}}return[[e,t],[r,n]]}(t,u)}(t=t.substring(0,t.length-j),v=v.substring(0,v.length-j));return w&&O.unshift([n,w]),x&&O.push([n,x]),d(O,y),m&&function(t){for(var o=!1,i=[],a=0,v=null,b=0,m=0,y=0,g=0,_=0;b0?i[a-1]:-1,m=0,y=0,g=0,_=0,v=null,o=!0)),b++;for(o&&d(t),function(t){function e(t,e){if(!t||!e)return 6;var r=t.charAt(t.length-1),n=e.charAt(0),o=r.match(c),i=n.match(c),a=o&&r.match(l),u=i&&n.match(l),s=a&&r.match(f),d=u&&n.match(f),v=s&&t.match(h),b=d&&e.match(p);return v||b?5:s||d?4:o&&!a&&u?3:a||u?2:o||i?1:0}for(var r=1;r=y&&(y=g,v=o,b=i,m=a)}t[r-1][1]!=v&&(v?t[r-1][1]=v:(t.splice(r-1,1),r--),t[r][1]=b,m?t[r+1][1]=m:(t.splice(r+1,1),r--))}r++}}(t),b=1;b=O?(x>=j.length/2||x>=w.length/2)&&(t.splice(b,0,[n,w.substring(0,x)]),t[b-1][1]=j.substring(0,j.length-x),t[b+1][1]=w.substring(x),b++):(O>=j.length/2||O>=w.length/2)&&(t.splice(b,0,[n,j.substring(0,O)]),t[b-1][0]=r,t[b-1][1]=w.substring(0,w.length-O),t[b+1][0]=e,t[b+1][1]=j.substring(O),b++),b++}b++}}(O),O}function i(t,e,r,n){var i=t.substring(0,r),a=e.substring(0,n),u=t.substring(r),s=e.substring(n),c=o(i,a),l=o(u,s);return c.concat(l)}function a(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var r=0,n=Math.min(t.length,e.length),o=n,i=0;rn?t=t.substring(r-n):r=0&&y(t[p][1])){var v=t[p][1].slice(-1);if(t[p][1]=t[p][1].slice(0,-1),f=v+f,h=v+h,!t[p][1]){t.splice(p,1),u--;var b=p-1;t[b]&&t[b][0]===r&&(l++,h=t[b][1]+h,b--),t[b]&&t[b][0]===e&&(c++,f=t[b][1]+f,b--),p=b}}m(t[u][1])&&(v=t[u][1].charAt(0),t[u][1]=t[u][1].slice(1),f+=v,h+=v)}if(u0||h.length>0){f.length>0&&h.length>0&&(0!==(i=a(h,f))&&(p>=0?t[p][1]+=h.substring(0,i):(t.splice(0,0,[n,h.substring(0,i)]),u++),h=h.substring(i),f=f.substring(i)),0!==(i=s(h,f))&&(t[u][1]=h.substring(h.length-i)+t[u][1],h=h.substring(0,h.length-i),f=f.substring(0,f.length-i)));var g=l+c;0===f.length&&0===h.length?(t.splice(u-g,g),u-=g):0===f.length?(t.splice(u-g,g,[r,h]),u=u-g+1):0===h.length?(t.splice(u-g,g,[e,f]),u=u-g+1):(t.splice(u-g,g,[e,f],[r,h]),u=u-g+2)}0!==u&&t[u-1][0]===n?(t[u-1][1]+=t[u][1],t.splice(u,1)):u++,l=0,c=0,f="",h=""}""===t[t.length-1][1]&&t.pop();var _=!1;for(u=1;u=55296&&t<=56319}function b(t){return t>=56320&&t<=57343}function m(t){return b(t.charCodeAt(0))}function y(t){return v(t.charCodeAt(t.length-1))}function g(t,o,i,a){return y(t)||m(a)?null:function(t){for(var e=[],r=0;r0&&e.push(t[r]);return e}([[n,t],[e,o],[r,i],[n,a]])}function _(t,e,r,n){return o(t,e,r,n,!0)}_.INSERT=r,_.DELETE=e,_.EQUAL=n,t.exports=_},308:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=function(t){"use strict";function e(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)return t;var r=new RegExp("(".concat(Object.keys(e).join("|"),")(?!(\\w|#)*;)"),"g");return String(t).replace(r,(function(t,r){return e[r]||""}))},d=function(){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Array.isArray(t)?t.map((function(t){var r=Object.keys(t)[0],n=t[r],o=e?p(n,e):n,i=!0===o?"":'="'.concat(o,'"');return"".concat(r).concat(i)})):Object.keys(t).map((function(r){var n=e?p(t[r],e):t[r],o=!0===t[r]?"":'="'.concat(n,'"');return"".concat(r).concat(o)}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0);if(0===t.length)return"";var e=t.join(" ");return" ".concat(e)},v=["string","number",u],b=function(t){return v.includes(h(t))},m=([].concat(v,[s,c]),function(t){return!t.match("<")}),y={"<":"<",">":">","&":"&"},g=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.depth,s=void 0===i?0:i,c=n.indent,v=n._isFirstItem,g=n._isOutputStart,_=void 0===g||g,j=n.header,w=n.attributesFilter,x=void 0===w?{}:w,O=n.filter,S=void 0===O?{}:O,A="boolean"!=typeof x||x?o(o(o({},y),{'"':"""}),x):{},E="boolean"!=typeof S||S?o(o({},y),S):{},k=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").repeat(t)}(c,s),D=h(r),C=function(t){var e=t.header,r=(t.indent,t.isOutputStart);return e&&r?a(e)===u?'':e:""}({header:j,indent:c,depth:s,isOutputStart:_}),P=_&&!C&&v&&0===s,z="";switch(D){case"special-object":var F=r._name,T=r._content;if(null===T){z=F;break}if(Array.isArray(T)&&T.every(b))return T.map((function(e){return t({_name:F,_content:e},o(o({},n),{},{depth:s,_isOutputStart:!1}))})).join("");if(F.match(f))break;var M=t(T,o(o({},n),{},{depth:s+1,_isOutputStart:P})),L=h(M),I=m(M),N="".concat(c&&!P?"\n":"").concat(k);if("_comment"===F){z+="".concat(N,"\x3c!-- ").concat(T," --\x3e");break}var R="undefined"===L||""===M,q=a(r._selfCloseTag)===u?R&&r._selfCloseTag:R,G=q?"/":"",B=d(r._attrs,A),U="<".concat(F).concat(B).concat(G,">"),$=c&&!I?"\n".concat(k):"",W=q?"":"".concat(M).concat($,"");z+="".concat(N).concat(U).concat(W);break;case"object":var X=Object.keys(r);z=X.map((function(i,a){var u=o(o({},n),{},{_isFirstItem:0===a,_isLastItem:a+1===X.length,_isOutputStart:P}),s={_name:i};if("object"===h(r[i])&&(l.forEach((function(t){var e=r[i][t];void 0!==e&&(s[t]=e,delete r[i][t])})),void 0!==r[i]._content&&Object.keys(r[i]).length>1)){var c=Object.assign({},r[i]);delete c._content,s._content=[].concat(e(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).map((function(e){return{_name:e,_content:t[e]}}))}(c)),[r[i]._content])}return void 0===s._content&&(s._content=r[i]),t(s,u,i)}),n).join("");break;case"function":var V=r(n);z=t(V,n);break;case"array":z=r.map((function(e,i){var a=o(o({},n),{},{_isFirstItem:0===i,_isLastItem:i+1===r.length,_isOutputStart:P});return t(e,a)})).join("");break;default:z=p(r,E)}return"".concat(C).concat(z)};t.toXML=g;var _={toXML:g};t.default=_},void 0===(n=r.apply(e,[e]))||(t.exports=n)},259:(t,e,r)=>{"use strict";t.exports=r(159)},434:(t,e,r)=>{"use strict";var n=r(723);function o(){}var i=null,a={};function u(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("Promise constructor's argument is not a function");this._x=0,this._y=0,this._z=null,this._A=null,t!==o&&p(t,this)}function s(t,e){for(;3===t._y;)t=t._z;if(u._B&&u._B(t),0===t._y)return 0===t._x?(t._x=1,void(t._A=e)):1===t._x?(t._x=2,void(t._A=[t._A,e])):void t._A.push(e);!function(t,e){n((function(){var r=1===t._y?e.onFulfilled:e.onRejected;if(null!==r){var n=function(t,e){try{return t(e)}catch(t){return i=t,a}}(r,t._z);n===a?l(e.promise,i):c(e.promise,n)}else 1===t._y?c(e.promise,t._z):l(e.promise,t._z)}))}(t,e)}function c(t,e){if(e===t)return l(t,new TypeError("A promise cannot be resolved with itself."));if(e&&("object"==typeof e||"function"==typeof e)){var r=function(t){try{return t.then}catch(t){return i=t,a}}(e);if(r===a)return l(t,i);if(r===t.then&&e instanceof u)return t._y=3,t._z=e,void f(t);if("function"==typeof r)return void p(r.bind(e),t)}t._y=1,t._z=e,f(t)}function l(t,e){t._y=2,t._z=e,u._C&&u._C(t,e),f(t)}function f(t){if(1===t._x&&(s(t,t._A),t._A=null),2===t._x){for(var e=0;e{"use strict";var n=r(434);t.exports=n,n.prototype.done=function(t,e){(arguments.length?this.then.apply(this,arguments):this).then(null,(function(t){setTimeout((function(){throw t}),0)}))}},803:(t,e,r)=>{"use strict";var n=r(434);t.exports=n;var o=l(!0),i=l(!1),a=l(null),u=l(void 0),s=l(0),c=l("");function l(t){var e=new n(n._D);return e._y=1,e._z=t,e}n.resolve=function(t){if(t instanceof n)return t;if(null===t)return a;if(void 0===t)return u;if(!0===t)return o;if(!1===t)return i;if(0===t)return s;if(""===t)return c;if("object"==typeof t||"function"==typeof t)try{var e=t.then;if("function"==typeof e)return new n(e.bind(t))}catch(t){return new n((function(e,r){r(t)}))}return l(t)};var f=function(t){return"function"==typeof Array.from?(f=Array.from,Array.from(t)):(f=function(t){return Array.prototype.slice.call(t)},Array.prototype.slice.call(t))};function h(t){return{status:"fulfilled",value:t}}function p(t){return{status:"rejected",reason:t}}function d(t){if(t&&("object"==typeof t||"function"==typeof t)){if(t instanceof n&&t.then===n.prototype.then)return t.then(h,p);var e=t.then;if("function"==typeof e)return new n(e.bind(t)).then(h,p)}return h(t)}function v(t){if("function"==typeof AggregateError)return new AggregateError(t,"All promises were rejected");var e=new Error("All promises were rejected");return e.name="AggregateError",e.errors=t,e}n.all=function(t){var e=f(t);return new n((function(t,r){if(0===e.length)return t([]);var o=e.length;function i(a,u){if(u&&("object"==typeof u||"function"==typeof u)){if(u instanceof n&&u.then===n.prototype.then){for(;3===u._y;)u=u._z;return 1===u._y?i(a,u._z):(2===u._y&&r(u._z),void u.then((function(t){i(a,t)}),r))}var s=u.then;if("function"==typeof s)return void new n(s.bind(u)).then((function(t){i(a,t)}),r)}e[a]=u,0==--o&&t(e)}for(var a=0;a{"use strict";var n=r(434);t.exports=n,n.prototype.finally=function(t){return this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))}))}},159:(t,e,r)=>{"use strict";t.exports=r(434),r(445),r(29),r(803),r(490),r(690)},490:(t,e,r)=>{"use strict";var n=r(434),o=r(272);t.exports=n,n.denodeify=function(t,e){return"number"==typeof e&&e!==1/0?function(t,e){for(var r=[],o=0;o "+e+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+i+";","var res;","switch (argLength) {",r.concat(["extra"]).map((function(t,e){return"case "+e+":res = fn.call("+["self"].concat(r.slice(0,e)).concat("cb").join(",")+");break;"})).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],a)(n,t)}(t)};var i="function (err, res) {if (err) { rj(err); } else { rs(res); }}";n.nodeify=function(t){return function(){var e=Array.prototype.slice.call(arguments),r="function"==typeof e[e.length-1]?e.pop():null,i=this;try{return t.apply(this,arguments).nodeify(r,i)}catch(t){if(null==r)return new n((function(e,r){r(t)}));o((function(){r.call(i,t)}))}}},n.prototype.nodeify=function(t,e){if("function"!=typeof t)return this;this.then((function(r){o((function(){t.call(e,null,r)}))}),(function(r){o((function(){t.call(e,r)}))}))}},690:(t,e,r)=>{"use strict";var n=r(434);t.exports=n,n.enableSynchronous=function(){n.prototype.isPending=function(){return 0==this.getState()},n.prototype.isFulfilled=function(){return 1==this.getState()},n.prototype.isRejected=function(){return 2==this.getState()},n.prototype.getValue=function(){if(3===this._y)return this._z.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._z},n.prototype.getReason=function(){if(3===this._y)return this._z.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._z},n.prototype.getState=function(){return 3===this._y?this._z.getState():-1===this._y||-2===this._y?0:this._y}},n.disableSynchronous=function(){n.prototype.isPending=void 0,n.prototype.isFulfilled=void 0,n.prototype.isRejected=void 0,n.prototype.getValue=void 0,n.prototype.getReason=void 0,n.prototype.getState=void 0}},666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new C(n||[]);return o(a,"_invoke",{value:A(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",b={};function m(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var j=Object.getPrototypeOf,w=j&&j(j(P([])));w&&w!==r&&n.call(w,a)&&(_=w);var x=g.prototype=m.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(t,e,r){var n=h;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return z()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===b)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?v:p,s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{Cell:()=>d,Chord:()=>v,LogLevel:()=>P,MusicXML:()=>z,Playlist:()=>p,Song:()=>b,convert:()=>I,convertSync:()=>L});var t,e=r(259),o=r.n(e),i=r(529),a=r.n(i);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e,r){return(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){for(var r=0;r1&&(this.name=n.pop()),this.songs=n.map((function(t){try{return new b(t,"irealbook"===r[1])}catch(r){var e=t.split("="),n=b.parseTitle(e[0].trim());return console.error("[ireal-musicxml] [".concat(n,"] ").concat(r.toString())),null}})).filter((function(t){return null!==t})).reduce((function(t,e){if(t.length>0){var r=a()(t[t.length-1].title,e.title);if(0===r[0][0]&&r.every((function(t){return 0===t[0]||t[1].match(/^\d+$/)})))return t[t.length-1].cells=t[t.length-1].cells.concat(e.cells),t}return t.push(e),t}),[])})),d=l((function t(){h(this,t),this.annots=[],this.comments=[],this.bars="",this.spacer=0,this.chord=null})),v=l((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;h(this,t),this.note=e,this.modifiers=r,this.over=n,this.alternate=o})),b=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(h(this,t),this.cells=[],this.musicXml="",!e)return this.title="",this.composer="",this.style="",this.key="",this.transpose=0,this.groove="",this.bpm=0,void(this.repeats=0);var n=e.split("=");if(r)this.title=t.parseTitle(n[0].trim()),this.composer=t.parseComposer(n[1].trim()),this.style=n[2].trim(),this.key=n[3],this.cells=this.parse(n[5]);else{this.title=t.parseTitle(n[0].trim()),this.composer=t.parseComposer(n[1].trim()),this.style=n[3].trim(),this.key=n[4],this.transpose=+n[5]||0,this.groove=n[7],this.bpm=+n[8],this.repeats=+n[9]||3;var o=n[6].split("1r34LbKcu7");this.cells=this.parse(function(t){for(var e,r="";t.length>51;)e=t.substring(0,50),t=t.substring(50),r+=m(e);return(r+=t).replace(/Kcl/g,"| x").replace(/LZ/g," |").replace(/XyQ/g," ")}(o[1]))}}return l(t,[{key:"parse",value:function(e){for(var r=e.trim(),n=[];r;){for(var o=!1,i=0;i/,t.chordRegex,t.chordRegex2]);var y=r(308),g=r(13);var _;function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r\n\n ').trim(),indent:" "})}},{key:"convertSong",value:function(){return{_name:"score-partwise",_attrs:{version:"4.0"},_content:[{work:{"work-title":this.song.title}},{identification:[{_name:"creator",_attrs:{type:"composer"},_content:this.song.composer},{encoding:[{software:"@infojunkie/ireal-musicxml ".concat("1.12.0")},{"encoding-date":t.convertDate(new Date)},{_name:"supports",_attrs:{element:"accidental",type:"no"}},{_name:"supports",_attrs:{element:"transpose",type:"no"}},{_name:"supports",_attrs:{attribute:"new-page",element:"print",type:"yes",value:"yes"}},{_name:"supports",_attrs:{attribute:"new-system",element:"print",type:"yes",value:"yes"}}]}]},{defaults:{scaling:{millimeters:7,tenths:40}}},{"part-list":{_name:"score-part",_attrs:{id:"P1"},_content:{_name:"part-name",_attrs:{"print-object":"no"},_content:"Lead sheet"}}},{_name:"part",_attrs:{id:"P1"},_content:this.convertMeasures()}]}}},{key:"convertMeasures",value:function(){var e=this,r=this.song.cells.reduce((function(r,n,o){if((n.bars.match(/\(|\{|\[/)||!e.measure&&(n.chord||n.annots.length||n.comments.length))&&(e.measure&&(e._log(P.Warn,"Starting a new measure over existing measure. Closing current measure first."),e.measure.barlines.push(e.convertBarline("","right")),e.adjustChordsDuration(e.measure)&&r.push(e.measure)),e.measure=new t.Measure(r.length+1),r.length||(e.measure.attributes.push({divisions:e.options.divisions},{clef:[{sign:"G"},{line:2}]},{"measure-style":[{_name:"slash",_attrs:{type:"start","use-stems":"rhythmic"===e.options.notation?"yes":"no"}}]},e.convertKey()),e.song.bpm&&e.measure.body._content.push(e.convertTempo(e.song.bpm)),e.measure.body._content.push(e.convertStyleAndGroove(e.song.style,e.song.groove))),e.measure.barlines.push(e.convertBarline(n.bars,"left")),e.barRepeat&&(e.measure.chords=O(r[r.length-e.barRepeat-1].chords))),!e.measure)return(n.chord||n.annots.length||n.comments.length||n.bars&&")"!==n.bars)&&e._log(P.Warn,"Found non-empty orphan cell ".concat(JSON.stringify(n)),r[r.length-1]),r;if(o>0&&o%16==0&&e.measure.body._content.splice(0,0,{_name:"print",_attrs:{"new-system":"yes"}}),n.chord)switch(n.chord.note){case"x":e.barRepeat=1,e.measure.chords=O(r[r.length-e.barRepeat].chords);break;case"r":e.barRepeat=2,e.measure.chords=O(r[r.length-e.barRepeat].chords);break;case"p":if(e.measure.chords.length){e.measure.chords[e.measure.chords.length-1].spaces++;break}case"W":var i=e.measure;i.chords.length||(i=r.slice().reverse().find((function(t){return t.chords.length})))||e._log(P.Error,"Cannot find any measure with chords prior to ".concat(JSON.stringify(n.chord)));var a=i.chords[i.chords.length-1].ireal;a.over=n.chord.over,a.alternate=n.chord.alternate,e.measure.chords.push(e.convertChord(a));break;case" ":e._log(P.Warn,"Unhandled empty/alternate chord ".concat(JSON.stringify(n.chord)));break;default:e.measure.chords.push(e.convertChord(n.chord))}else e.barRepeat||e.measure.chords.length&&e.measure.chords[e.measure.chords.length-1].spaces++;return n.annots.forEach((function(t){switch(t[0]){case"*":var n=t.slice(1);e.measure.body._content.push(e.convertSection(n));break;case"T":var o=t.slice(1);e.measure.attributes.push(e.convertTime(o));break;case"S":e.measure.body._content.push(e.convertSegno());break;case"N":var i=parseInt(t.slice(1));if(e.measure.barlines[0]._content.push(e.convertEnding(i,"start")),i>1){r[r.length-1].barlines[1]._content.push(e.convertEnding(i-1,"stop"));var a=r.slice().reverse().find((function(t){return t.barEnding===i-1}));a||e._log(P.Error,"Cannot find ending ".concat(i-1," in right barline of any measure"));var u=a.barlines[1]._content.findIndex((function(t){return"ending"===t._name}));-1===u&&e._log(P.Error,"Cannot find ending ".concat(i-1," in right barline"),a),delete a.barlines[1]._content[u]}e.measure.barEnding=i;break;case"Q":e.measure.body._content.push(e.convertToCoda()),e.codas.push(e.measure);break;case"l":case"s":break;case"f":e.measure.chords[e.measure.chords.length-1].fermata=!0;break;case"U":e.measure.body._content.push(e.convertFine("END"));break;default:e._log(P.Warn,'Unhandled annotation "'.concat(t,'"'))}})),n.comments.map((function(t){return t.trim()})).forEach((function(r){var n=e._map(t.mapRepeats,r);n?e.measure.body._content.push(n.call(e,r)):e.measure.body._content.push(e.convertComment(r))})),n.bars.match(/\)|\}|\]|Z/)&&e.measure.chords.length&&(e.measure.barlines.push(e.convertBarline(n.bars,"right")),e.measure.barEnding&&e.measure.barlines[1]._content.push(e.convertEnding(e.measure.barEnding,"discontinue")),e.adjustChordsDuration(e.measure)&&r.push(e.measure),e.measure=null,e.barRepeat&&e.barRepeat--),r}),[]);if(this.codas.length){var n=this.codas[this.codas.length-1],o=n.body._content.findIndex((function(t){return"direction"===t._name&&Array.isArray(t._content)&&t._content.some((function(t){return"sound"===t._name&&Object.keys(t._attrs).includes("tocoda")}))}));-1===o&&this._log(P.Warn,"Cannot find sound direction",n),n.body._content[o]=this.convertCoda()}return r.map((function(t){return t.assemble()}))}},{key:"convertRepeatNx",value:function(t){var e;null!==(e=t.match(/(\d+)x/))&&(this.repeats=e[1])}},{key:"convertFine",value:function(t){return{_name:"direction",_attrs:{placement:"below"},_content:[{"direction-type":{words:t}},{_name:"sound",_attrs:{fine:"yes"}}]}}},{key:"convertDaCapo",value:function(t){return{_name:"direction",_attrs:{placement:"below"},_content:[{"direction-type":{words:t}},{_name:"sound",_attrs:{dacapo:"yes"}}]}}},{key:"convertDalSegno",value:function(t){return{_name:"direction",_attrs:{placement:"below"},_content:[{"direction-type":{words:t}},{_name:"sound",_attrs:{dalsegno:"yes"}}]}}},{key:"convertComment",value:function(t){var e="*"===t[0]?t.slice(3):t;return{_name:"direction",_attrs:{placement:"*"===t[0]?"above":"below"},_content:{"direction-type":{words:e}}}}},{key:"convertEnding",value:function(t,e){return{_name:"ending",_attrs:{number:t,type:e},_content:"".concat(t,".")}}},{key:"convertBarline",value:function(t,e){var r="left"===e?"none":"regular",n=null;return t.match(/\[|\]/)?r="light-light":t.match(/Z/)?r="light-heavy":t.match(/\{|\}/)&&(r="left"===e?"heavy-light":"light-heavy",n="left"===e?"forward":"backward"),"forward"===n&&(this.repeats=2),{_name:"barline",_attrs:{location:e},_content:[{"bar-style":r},x({},n&&{_name:"repeat",_attrs:x({direction:n},"backward"===n&&{times:this.repeats})})]}}},{key:"convertSection",value:function(t){return"i"===t&&(t="Intro"),{_name:"direction",_attrs:{placement:"above"},_content:{"direction-type":{rehearsal:t}}}}},{key:"convertSegno",value:function(){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":{_name:"segno"}},{_name:"sound",_attrs:{segno:"segno"}}]}}},{key:"convertCoda",value:function(){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":{_name:"coda"}},{_name:"sound",_attrs:{coda:"coda"}}]}}},{key:"convertToCoda",value:function(){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":{words:"To Coda"}},{_name:"sound",_attrs:{tocoda:"coda"}}]}}},{key:"convertTempo",value:function(t){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":[{_name:"metronome",_attrs:{parentheses:"no"},_content:[{"beat-unit":this.calculateChordDuration(1)[0].type},{"per-minute":t}]}]},{_name:"sound",_attrs:{tempo:t}}]}}},{key:"convertTime",value:function(t){var e=parseInt(t[0]),r=parseInt(t[1]);return"12"===t&&(e=12,r=8),this.time={beats:e,beatType:r},{time:[{beats:e},{"beat-type":r}]}}},{key:"adjustChordsDuration",value:function(t){var e=this;if(t.chords.length>this.time.beats)return this._log(P.Error,"Too many chords (".concat(t.chords.length," out of ").concat(this.time.beats,")"),t),!0;var r=t.chords.reduce((function(t,e){return t+1+e.spaces}),0);if(!r)return this._log(P.Warn,"No chord found. Skipping current measure.",t),!1;if(r>this.time.beats)for(var n=0;r>this.time.beats;)t.chords[n].spaces>0&&(t.chords[n].spaces--,r--),n=(n+1)%t.chords.length;else for(var o=0;r1?n>0?"stop":"start":null)})),t})),!0}},{key:"calculateChordDuration",value:function(t){var e=this,r={1:[{t:"eighth",d:0,b:1}],2:[{t:"quarter",d:0,b:2}],3:[{t:"quarter",d:1,b:3}],4:[{t:"half",d:0,b:4}],5:[{t:"quarter",d:1,b:3},{t:"quarter",d:0,b:2}],6:[{t:"half",d:1,b:6}],7:[{t:"half",d:2,b:7}],8:[{t:"whole",d:0,b:8}],9:[{t:"half",d:1,b:6},{t:"quarter",d:1,b:3}],10:[{t:"half",d:1,b:6},{t:"half",d:0,b:4}],11:[{t:"half",d:2,b:7},{t:"half",d:0,b:4}],12:[{t:"whole",d:1,b:12}],13:[{t:"half",d:2,b:7},{t:"half",d:1,b:6}],14:[{t:"whole",d:2,b:14}],15:[{t:"whole",d:0,b:8},{t:"half",d:2,b:7}]};if("slash"===this.options.notation){var n=8/this.time.beatType;return Array(t).fill(this._map(r,n,[],"Unexpected beat count 1 for time signature ".concat(this.time.beats,"/").concat(this.time.beatType)).map((function(t){return{duration:t.b*e.options.divisions/2,type:t.t,dots:t.d}}))[0])}var o=8*t/this.time.beatType;return this._map(r,o,[],"Unexpected beat count ".concat(t," for time signature ").concat(this.time.beats,"/").concat(this.time.beatType)).map((function(t){return{duration:t.b*e.options.divisions/2,type:t.t,dots:t.d}}))}},{key:"convertChordNote",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o={_name:"pitch",_content:[{step:this.options.step},{alter:this._map(t.mapFifthsToAlters,this.fifths,[],"Unhandled fifths count=".concat(this.fifths)).includes(this.options.step)?this.fifths>0?1:-1:0},{octave:this.options.octave}]},i=[];return r&&i.push({_name:"fermata"}),n&&i.push({_name:"tied",_attrs:{type:n}}),t.reorderSequence(this.measure,[o,{_name:"cue"},{notehead:this.options.notehead},{duration:e.duration},{voice:1},{_name:"type",_attrs:{size:"full"},_content:e.type},x({},i.length&&{notations:t.reorderSequence(this.measure,i,t.sequenceNotations)})].concat(Array(e.dots).fill({_name:"dot"})),t.sequenceNote)}},{key:"convertChordDegree",value:function(t,e,r){return{_name:"degree",_attrs:{"print-object":"no"},_content:[{"degree-value":t},{"degree-alter":r},{"degree-type":e}]}}},{key:"convertChordSymbol",value:function(e){var r=this,n=this.renderChord(this.parseChord("".concat(e.note).concat(e.modifiers)));if(!n)return this._log(P.Warn,'Unrecognized chord "'.concat(e.note).concat(e.modifiers,'"')),{rootStep:null,rootAlter:null,chordKind:null,chordDegrees:[],chordText:null};var o=n.input.rootNote[0],i=this._map(t.mapAlter,n.input.rootNote[1]||null,null,'Unrecognized accidental in chord "'.concat(n.input.rootNote,'"')),a=n.formatted.descriptor+n.formatted.chordChanges.join(""),u=this._map({major:"major",major6:"major-sixth",major7:"major-seventh",dominant7:"dominant",minor:"minor",minor6:"minor-sixth",minor7:"minor-seventh",minorMajor7:"major-minor",augmented:"augmented",diminished:"diminished",diminished7:"diminished-seventh",power:"power"},n.normalized.quality,"",'Unrecognized chord quality "'.concat(n.normalized.quality,'"'));if(n.normalized.extensions.length){var s=Math.max.apply(Math,O(n.normalized.extensions.map((function(t){return parseInt(t)})))).toString();"dominant-11th"===(u=u.split("-")[0]+this._map({9:"-ninth",11:"-11th",13:"-13th"},s,"","Unhandled extension ".concat(s)))&&(n.normalized.isSuspended=!1)}[{intervals:["1","4","5"],kind:"suspended-fourth",strict:!0},{intervals:["1","5","9"],kind:"suspended-second",strict:!0},{intervals:["1","b3","b5","b7"],kind:"half-diminished",strict:!0},{intervals:["1","3","#5","b7"],kind:"augmented-seventh",strict:!1}].some((function(t){if((!t.strict||n.normalized.intervals.length===t.intervals.length)&&t.intervals.every((function(t,e){return t===n.normalized.intervals[e]})))return u=t.kind,t.intervals.forEach((function(t){n.normalized.alterations=n.normalized.alterations.filter((function(e){return e===t})),n.normalized.adds=n.normalized.adds.filter((function(e){return e===t})),n.normalized.omits=n.normalized.omits.filter((function(e){return e===t}))})),n.normalized.intervals.forEach((function(e){t.intervals.includes(e)||n.normalized.adds.push(e)})),!0}));var c=[];return n.normalized.isSuspended&&!u.includes("suspended")&&(n.normalized.adds.push("4"),n.normalized.adds.includes("3")||n.normalized.omits.push("3")),n.normalized.alterations.forEach((function(e){var o=e.slice(1);c.push(r.convertChordDegree(o,"5"===o||n.normalized.extensions.includes(o)?"alter":"add",r._map(t.mapAlter,e[0],0,'Unrecognized alter symbol in "'.concat(e,'"'))))})),n.normalized.adds.forEach((function(e){var n=Object.keys(t.mapAlter).includes(e[0])?e[0]:null,o=n?e.slice(1):e;c.push(r.convertChordDegree(o,"add",r._map(t.mapAlter,n,0,'Unrecognized alter symbol in "'.concat(e,'"'))))})),n.normalized.omits.forEach((function(e){var n=Object.keys(t.mapAlter).includes(e[0])?e[0]:null,o=n?e.slice(1):e;c.push(r.convertChordDegree(o,"subtract",r._map(t.mapAlter,n,0,'Unrecognized alter symbol in "'.concat(e,'"'))))})),{rootStep:o,rootAlter:i,chordKind:u,chordDegrees:c,chordText:a}}},{key:"convertChord",value:function(e){var r=this,n=null;if("n"===e.note)n=[{root:[{_name:"root-step",_attrs:{text:""},_content:this.options.step}]},{_name:"kind",_attrs:{text:"N.C."},_content:"none"}];else{var o=this.convertChordSymbol(e),i=o.rootStep,a=o.rootAlter,u=o.chordKind,s=o.chordDegrees,c=o.chordText,l=e.over?[{"bass-step":e.over.note[0]},x({},e.over.note[1]&&{"bass-alter":this._map(t.mapAlter,e.over.note[1],null,'Unrecognized accidental in bass note "'.concat(e.over.note,'"'))})]:null;n=[{root:[{"root-step":i},x({},a&&{"root-alter":a})]},{_name:"kind",_attrs:{text:c,"use-symbols":"no"},_content:u},x({},l&&{bass:l})].concat(s)}return e.alternate&&this._log(P.Warn,"Unhandled alternate chord ".concat(JSON.stringify(e.alternate))),new t.Chord(n,this.calculateChordDuration(1).map((function(t){return r.convertChordNote(t)})),e)}},{key:"convertKey",value:function(){return this.fifths=this._map({C:0,G:1,D:2,A:3,E:4,B:5,"F#":6,"C#":7,F:-1,Bb:-2,Eb:-3,Ab:-4,Db:-5,Gb:-6,Cb:-7,"A-":0,"E-":1,"B-":2,"F#-":3,"C#-":4,"G#-":5,"D#-":6,"A#-":7,"D-":-1,"G-":-2,"C-":-3,"F-":-4,"Bb-":-5,"Eb-":-6,"Ab-":-7},this.song.key,0,'Unrecognized key signature "'.concat(this.song.key,'"')),{key:[{fifths:this.fifths},{mode:"-"===this.song.key.slice(-1)?"minor":"major"}]}}},{key:"convertStyleAndGroove",value:function(t,e){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":[{words:t}]},{sound:[{play:[{_name:"other-play",_attrs:{type:"groove"},_content:e||t}]}]}]}}},{key:"_log",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.measure;if(!(t4&&void 0!==arguments[4]?arguments[4]:P.Warn,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.measure;return e?e in t?t[e]:(n&&this._log(o,n,i),r||null):r}}],[{key:"convert",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new t(e,Object.assign({},this.defaultOptions,r)).convert()}},{key:"convertDate",value:function(t){return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().split("T")[0]}},{key:"reorderSequence",value:function(t,e,r){var n=this;return e.filter((function(t){return Object.keys(t).length})).sort((function(e,o){var i=Object.keys(e)[0];"_name"===i&&(i=e[i]);var a=Object.keys(o)[0];"_name"===a&&(a=o[a]);var u=r.indexOf(i),s=r.indexOf(a);return-1===u&&n._log(P.Warn,'Unrecognized element "'.concat(i,'"'),t),-1===s&&n._log(P.Warn,'Unrecognized element "'.concat(a,'"'),t),u-s}))}}]),t}();function F(t){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(t)}function T(){T=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new C(n||[]);return o(a,"_invoke",{value:A(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",b={};function m(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var j=Object.getPrototypeOf,w=j&&j(j(P([])));w&&w!==r&&n.call(w,a)&&(_=w);var x=g.prototype=m.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==F(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=h;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=E(u,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var c=f(e,r,n);if("normal"===c.type){if(o=n.done?v:p,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function E(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function M(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function L(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new p(t);return r.songs.forEach((function(t){t.musicXml=z.convert(t,e)})),r}function I(t){return N.apply(this,arguments)}function N(){var t;return t=T().mark((function t(e){var r,n=arguments;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},t.abrupt("return",new(o())((function(t){return t(L(e,r))})));case 2:case"end":return t.stop()}}),t)})),N=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){M(i,n,o,a,u,"next",t)}function u(t){M(i,n,o,a,u,"throw",t)}a(void 0)}))},N.apply(this,arguments)}_=z,D(z,"defaultOptions",{divisions:768,notation:"rhythmic",step:"B",octave:4,notehead:"slash",logLevel:P.Warn}),D(z,"sequenceAttributes",["divisions","key","time","staves","part-symbol","instruments","clef","staff-details","transpose","directive","measure-style"]),D(z,"sequenceNote",["cue","pitch","rest","unpitched","duration","tie","voice","type","dot","accidental","time-modification","stem","notehead","notehead-text","staff","beam","notations","lyric","play"]),D(z,"sequenceNotations",["accidental-mark","arpeggiate","articulations","dynamics","fermata","glissando","non-arpeggiate","ornaments","other-notation","slide","slur","technical","tied","tuplet"]),D(z,"sequenceBarline",["bar-style","footnote","level","wavy-line","segno","coda","fermata","ending","repeat"]),D(z,"mapAlter",{"#":1,b:-1}),D(z,"mapFifthsToAlters",{0:[],1:["F"],2:["F","C"],3:["F","C","G"],4:["F","C","G","D"],5:["F","C","G","D","A"],6:["F","C","G","D","A","E"],7:["F","C","G","D","A","E","B"],"-1":["B"],"-2":["B","E"],"-3":["B","E","A"],"-4":["B","E","A","D"],"-5":["B","E","A","D","G"],"-6":["B","E","A","D","G","C"],"-7":["B","E","A","D","G","C","F"]}),D(z,"mapRepeats",{"D.C. al Coda":_.prototype.convertDaCapo,"D.C. al Fine":_.prototype.convertDaCapo,"D.C. al 1st End.":_.prototype.convertDaCapo,"D.C. al 2nd End.":_.prototype.convertDaCapo,"D.C. al 3rd End.":_.prototype.convertDaCapo,"D.S. al Coda":_.prototype.convertDalSegno,"D.S. al Fine":_.prototype.convertDalSegno,"D.S. al 1st End.":_.prototype.convertDalSegno,"D.S. al 2nd End.":_.prototype.convertDalSegno,"D.S. al 3rd End.":_.prototype.convertDalSegno,Fine:_.prototype.convertFine,"3x":_.prototype.convertRepeatNx,"4x":_.prototype.convertRepeatNx,"5x":_.prototype.convertRepeatNx,"6x":_.prototype.convertRepeatNx,"7x":_.prototype.convertRepeatNx,"8x":_.prototype.convertRepeatNx}),D(z,"Measure",function(){function t(e){k(this,t),this.body={_name:"measure",_attrs:{number:e},_content:[]},this.attributes=[],this.chords=[],this.barlines=[],this.barEnding=0}return E(t,[{key:"number",value:function(){return this.body._attrs.number}},{key:"assemble",value:function(){var t=this;return this.attributes.length&&this.body._content.push({attributes:_.reorderSequence(this,this.attributes,_.sequenceAttributes)}),this.chords.forEach((function(e){var r;(r=t.body._content).push.apply(r,[{harmony:e.harmony}].concat(O(e.notes.map((function(t){return{note:t}})))))})),this.barlines[0]._content=_.reorderSequence(this,this.barlines[0]._content,_.sequenceBarline),this.body._content.splice(1,0,this.barlines[0]),this.barlines[1]._content=_.reorderSequence(this,this.barlines[1]._content,_.sequenceBarline),this.body._content.push(this.barlines[1]),this.body}}]),t}()),D(z,"Chord",function(){return E((function t(e,r,n){k(this,t),this.harmony=e,this.notes=r,this.ireal=n,this.spaces=0,this.fermata=!1}))}()),r(666)})(),n})())); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.iReal2MusicXML=e():t.iReal2MusicXML=e()}(this,(()=>(()=>{var t={272:(t,e,r)=>{"use strict";var n=r(723),o=[],i=[],a=n.makeRequestCallFromTimer((function(){if(i.length)throw i.shift()}));function u(t){var e;(e=o.length?o.pop():new s).task=t,n(e)}function s(){this.task=null}t.exports=u,s.prototype.call=function(){try{this.task.call()}catch(t){u.onerror?u.onerror(t):(i.push(t),a())}finally{this.task=null,o[o.length]=this}}},723:(t,e,r)=>{"use strict";function n(t){i.length||o(),i[i.length]=t}t.exports=n;var o,i=[],a=0;function u(){for(;a1024){for(var e=0,r=i.length-a;e{var t={8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),i=r(7667),a=r(1327),u=r(1866);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(7040),o=r(4125),i=r(2117),a=r(7518),u=r(4705);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),u=r(5265);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),o=r(619),i=r(2385);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e{var n=r(8407),o=r(7465),i=r(3779),a=r(7599),u=r(4758),s=r(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7412:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r{var n=r(2118);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n{var n=r(2545),o=r(5694),i=r(1469),a=r(4144),u=r(5776),s=r(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&a(t),h=!r&&!l&&!f&&s(t),p=r||l||f||h,d=p?n(t.length,String):[],v=d.length;for(var b in t)!e&&!c.call(t,b)||p&&("length"==b||f&&("offset"==b||"parent"==b)||h&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||u(b,v))||d.push(b);return d}},9932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},4037:(t,e,r)=>{var n=r(8363),o=r(3674);t.exports=function(t,e){return t&&n(e,o(e),t)}},3886:(t,e,r)=>{var n=r(8363),o=r(1704);t.exports=function(t,e){return t&&n(e,o(e),t)}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5990:(t,e,r)=>{var n=r(6384),o=r(7412),i=r(4865),a=r(4037),u=r(3886),s=r(4626),c=r(278),l=r(8805),f=r(1911),h=r(8234),p=r(6904),d=r(4160),v=r(3824),b=r(9148),m=r(8517),y=r(1469),g=r(4144),_=r(6688),j=r(3218),w=r(2928),x=r(3674),O=r(1704),S="[object Arguments]",A="[object Function]",E="[object Object]",k={};k[S]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[E]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[A]=k["[object WeakMap]"]=!1,t.exports=function t(e,r,D,C,P,z){var F,T=1&r,M=2&r,L=4&r;if(D&&(F=P?D(e,C,P,z):D(e)),void 0!==F)return F;if(!j(e))return e;var I=y(e);if(I){if(F=v(e),!T)return c(e,F)}else{var N=d(e),R=N==A||"[object GeneratorFunction]"==N;if(g(e))return s(e,T);if(N==E||N==S||R&&!P){if(F=M||R?{}:m(e),!T)return M?f(e,u(F,e)):l(e,a(F,e))}else{if(!k[N])return P?e:{};F=b(e,N,T)}}z||(z=new n);var q=z.get(e);if(q)return q;z.set(e,F),w(e)?e.forEach((function(n){F.add(t(n,r,D,n,e,z))})):_(e)&&e.forEach((function(n,o){F.set(o,t(n,r,D,o,e,z))}));var G=I?void 0:(L?M?p:h:M?O:x)(e);return o(G||e,(function(n,o){G&&(n=e[o=n]),i(F,o,t(n,r,D,o,e,z))})),F}},3118:(t,e,r)=>{var n=r(3218),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},731:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),a=r(9932),u=r(1717),s=r(4757);t.exports=function(t,e,r,c){var l=-1,f=o,h=!0,p=t.length,d=[],v=e.length;if(!p)return d;r&&(e=a(e,u(r))),c?(f=i,h=!1):e.length>=200&&(f=s,h=!1,e=new n(e));t:for(;++l{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i{var n=r(2488),o=r(7285);t.exports=function t(e,r,i,a,u){var s=-1,c=e.length;for(i||(i=o),u||(u=[]);++s0&&i(l)?r>1?t(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},8483:(t,e,r)=>{var n=r(5063)();t.exports=n},7816:(t,e,r)=>{var n=r(8483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},7786:(t,e,r)=>{var n=r(1811),o=r(327);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),i=r(2333),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,r)=>{var n=r(1848),o=r(2722),i=r(2351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},8975:(t,e,r)=>{var n=r(7816);t.exports=function(t,e,r,o){return n(t,(function(t,n,i){e(o,r(t),n,i)})),o}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),o=r(7005);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},2492:(t,e,r)=>{var n=r(6384),o=r(7114),i=r(8351),a=r(6096),u=r(4160),s=r(1469),c=r(4144),l=r(6719),f="[object Arguments]",h="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,b,m){var y=s(t),g=s(e),_=y?h:u(t),j=g?h:u(e),w=(_=_==f?p:_)==p,x=(j=j==f?p:j)==p,O=_==j;if(O&&c(t)){if(!c(e))return!1;y=!0,w=!1}if(O&&!w)return m||(m=new n),y||l(t)?o(t,e,r,v,b,m):i(t,e,_,r,v,b,m);if(!(1&r)){var S=w&&d.call(t,"__wrapped__"),A=x&&d.call(e,"__wrapped__");if(S||A){var E=S?t.value():t,k=A?e.value():e;return m||(m=new n),b(E,k,r,v,m)}}return!!O&&(m||(m=new n),a(t,e,r,v,b,m))}},5588:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},2958:(t,e,r)=>{var n=r(6384),o=r(939);t.exports=function(t,e,r,i){var a=r.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=r[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?h:u).test(a(t))}},9221:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),i=r(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},7206:(t,e,r)=>{var n=r(1573),o=r(6432),i=r(6557),a=r(1469),u=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},280:(t,e,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:(t,e,r)=>{var n=r(3218),o=r(5726),i=r(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)("constructor"!=u||!e&&a.call(t,u))&&r.push(u);return r}},1573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),o=r(7361),i=r(9095),a=r(5403),u=r(9162),s=r(2634),c=r(327);t.exports=function(t,e){return a(t)&&u(e)?s(c(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},5976:(t,e,r)=>{var n=r(6557),o=r(5357),i=r(61);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6560:(t,e,r)=>{var n=r(5703),o=r(8777),i=r(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{var n=r(2705),o=r(9932),i=r(1469),a=r(3448),u=n?n.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},7561:(t,e,r)=>{var n=r(7990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),a=r(4757),u=r(3593),s=r(1814);t.exports=function(t,e,r){var c=-1,l=o,f=t.length,h=!0,p=[],d=p;if(r)h=!1,l=i;else if(f>=200){var v=e?null:u(t);if(v)return s(v);h=!1,l=a,d=new n}else d=e?[]:p;t:for(;++c{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),o=r(5403),i=r(5514),a=r(9833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},4318:(t,e,r)=>{var n=r(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},4626:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=u?u(r):new t.constructor(r);return t.copy(n),n}},7157:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},419:(t,e,r)=>{var n=r(2705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r{var n=r(4865),o=r(9465);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,s=e.length;++u{var n=r(8363),o=r(9551);t.exports=function(t,e){return n(t,o(t),e)}},1911:(t,e,r)=>{var n=r(8363),o=r(1442);t.exports=function(t,e){return n(t,o(t),e)}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},5063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}},7740:(t,e,r)=>{var n=r(7206),o=r(8612),i=r(3674);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var s=n(r,3);e=i(e),r=function(t){return s(u[t],t,u)}}var c=t(e,r,a);return c>-1?u[s?e[c]:c]:void 0}}},7779:(t,e,r)=>{var n=r(8975);t.exports=function(t,e){return function(r,o){return n(r,t,e(o),{})}}},3593:(t,e,r)=>{var n=r(8525),o=r(308),i=r(1814),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},7114:(t,e,r)=>{var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,a,u,s){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=s.get(t),p=s.get(e);if(h&&p)return h==e&&p==t;var d=-1,v=!0,b=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d{var n=r(2705),o=r(1149),i=r(7813),a=r(7114),u=r(8776),s=r(1814),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,f,h){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=u;case"[object Set]":var d=1&n;if(p||(p=s),t.size!=e.size&&!d)return!1;var v=h.get(t);if(v)return v==e;n|=2,h.set(t,e);var b=a(p(t),p(e),n,c,f,h);return h.delete(t),b;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var s=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!s)return!1;for(var f=l;f--;){var h=c[f];if(!(s?h in e:o.call(e,h)))return!1}var p=u.get(t),d=u.get(e);if(p&&d)return p==e&&d==t;var v=!0;u.set(t,e),u.set(e,t);for(var b=s;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},6904:(t,e,r)=>{var n=r(8866),o=r(1442),i=r(1704);t.exports=function(t){return n(t,i,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),o=r(3674);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},1442:(t,e,r)=>{var n=r(2488),o=r(5924),i=r(9551),a=r(479),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=u},4160:(t,e,r)=>{var n=r(8552),o=r(7071),i=r(3818),a=r(8525),u=r(577),s=r(4239),c=r(346),l="[object Map]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",d="[object DataView]",v=c(n),b=c(o),m=c(i),y=c(a),g=c(u),_=s;(n&&_(new n(new ArrayBuffer(1)))!=d||o&&_(new o)!=l||i&&_(i.resolve())!=f||a&&_(new a)!=h||u&&_(new u)!=p)&&(_=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return d;case b:return l;case m:return f;case y:return h;case g:return p}return e}),t.exports=_},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),o=r(5694),i=r(1469),a=r(5776),u=r(1780),s=r(327);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,f=!1;++c{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},9148:(t,e,r)=>{var n=r(4318),o=r(7157),i=r(3147),a=r(419),u=r(7133);t.exports=function(t,e,r){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(t,r);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},8517:(t,e,r)=>{var n=r(3118),o=r(5924),i=r(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},7285:(t,e,r)=>{var n=r(2705),o=r(5694),i=r(1469),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5357:(t,e,r)=>{var n=r(6874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},61:(t,e,r)=>{var n=r(6560),o=r(1275)(n);t.exports=o},1275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},2351:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},6678:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,4)}},361:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},1966:(t,e,r)=>{var n=r(731),o=r(1078),i=r(5976),a=r(9246),u=i((function(t,e){return a(t)?n(t,o(e,1,a,!0)):[]}));t.exports=u},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3311:(t,e,r)=>{var n=r(7740)(r(998));t.exports=n},998:(t,e,r)=>{var n=r(1848),o=r(7206),i=r(554),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var s=null==r?0:i(r);return s<0&&(s=a(u+s,0)),n(t,o(e,3),s)}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},3137:(t,e,r)=>{var n=r(5703),o=r(7779),i=r(6557),a=Object.prototype.toString,u=o((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=a.call(e)),t[e]=r}),n(i));t.exports=u},5694:(t,e,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},9246:(t,e,r)=>{var n=r(8612),o=r(7005);t.exports=function(t){return o(t)&&n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,r)=>{var n=r(5588),o=r(1717),i=r(1167),a=i&&i.isMap,u=a?o(a):n;t.exports=u},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},2928:(t,e,r)=>{var n=r(9221),o=r(1717),i=r(1167),a=i&&i.isSet,u=a?o(a):n;t.exports=u},3448:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),o=r(1717),i=r(1167),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},3674:(t,e,r)=>{var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},1704:(t,e,r)=>{var n=r(4636),o=r(313),i=r(8612);t.exports=function(t){return i(t)?n(t,!0):o(t)}},8306:(t,e,r)=>{var n=r(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},308:t=>{t.exports=function(){}},9601:(t,e,r)=>{var n=r(371),o=r(9152),i=r(5403),a=r(327);t.exports=function(t){return i(t)?n(a(t)):o(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,r)=>{var n=r(4841);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,r)=>{var n=r(8601);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},4841:(t,e,r)=>{var n=r(7561),o=r(3218),i=r(3448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||s.test(t)?c(t.slice(2),r?2:8):a.test(t)?NaN:+t}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},4908:(t,e,r)=>{var n=r(5652);t.exports=function(t){return t&&t.length?n(t):[]}},2569:(t,e,r)=>{var n=r(731),o=r(5976),i=r(9246),a=o((function(t,e){return i(t)?n(t,e):[]}));t.exports=a}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";function t(t,e){return t.reduce((function(t,e){return t?e(t):null}),e)}r.r(n),r.d(n,{chordParserFactory:()=>ke,chordRendererFactory:()=>nr});var e=r(361),o=r.n(e);const i=function(t){if(!Array.isArray(t))throw new TypeError("customFilters should be given as an array");if(t.some((function(t){return"function"!=typeof t})))throw new TypeError("The given filter is not a function");return!0};function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};return{input:{symbol:arguments.length>1?arguments[1]:void 0},normalized:{},formatted:{},parserConfiguration:o()(t)}}function Pt(t){return function(t){if(Array.isArray(t))return zt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0)throw new J(t,a);return n}(e)),e.input.modifiers=r,e.normalized.intervals=function(t,e){return t.includes(ve.power)?["1","5"]:t.includes(ve.bass)?["1"]:$t()(["1"].concat(me(function(t){var e=[];return t.includes(ve.omit3)?[]:(it(t,[ve.sus,ve.sus2])||(we(t)?t.includes(ve.eleventh)||e.push("3"):e.push("b3")),t.includes(ve.add3)&&e.push("3"),e)}(t)),me(function(t){var e=[];return it(t,[ve.sus,ve.add4])&&e.push("4"),e}(t)),me(function(t,e){var r=[];return t.includes(ve.omit5)?[]:((it(t,[ve.dim,ve.halfDim,ve.fifthFlat])||je(t,e,"b5"))&&r.push("b5"),(it(t,[ve.aug,ve.fifthSharp])||je(t,e,"#5"))&&r.push("#5"),r.length||t.includes(ve.thirteenthFlat)||r.push("5"),r)}(t,e)),me(function(t){var e=[];return it(t,[ve.addb6])&&e.push("b6"),!it(t,[ve.add6,ve.add69])||xe(t)||it(t,[ve.halfDim])||e.push("6"),e}(t)),me(function(t){var e=[];return it(t,[ve.alt])&&e.push("b7"),it(t,[ve.seventh,ve.halfDim])?t.includes(ve.dim)?e.push("bb7"):t.includes(ve.halfDim)?e.push("b7"):e.push(_e(t)):it(t,[ve.ninth,ve.eleventh,ve.thirteenth])&&e.push(_e(t)),t.includes(ve.add7)&&e.push("7"),e}(t)),me(function(t,e){var r=[];return it(t,[ve.add69,ve.ninth,ve.eleventh,ve.thirteenth])&&ut(t,[ve.ninthFlat,ve.ninthSharp])&&r.push("9"),it(t,[ve.sus2,ve.add9])&&r.push("9"),(it(t,[ve.ninthFlat])||je(t,e,"b9"))&&r.push("b9"),(it(t,[ve.ninthSharp])||je(t,e,"#9"))&&r.push("#9"),r}(t,e)),me(function(t,e){var r=[];return(it(t,[ve.thirteenth])&&!we(t)||it(t,[ve.eleventh,ve.add11]))&&r.push("11"),(it(t,[ve.eleventhSharp])||je(t,e,"#11"))&&r.push("#11"),r}(t,e)),me(function(t,e){var r=[];return(it(t,[ve.add13,ve.thirteenth])||it(t,[ve.add6,ve.add69])&&xe(t)||it(t,[ve.add6,ve.add69])&&it(t,[ve.halfDim]))&&r.push("13"),(it(t,[ve.thirteenthFlat])||je(t,e,"b13"))&&r.push("b13"),r}(t,e)))).sort((function(t,e){return be[t]-be[e]}))}(r,t),e.normalized.semitones=e.normalized.intervals.map((function(t){return be[t]})).sort((function(t,e){return t-e})),e.normalized.intents=function(t){return{major:we(t),eleventh:t.includes(ve.eleventh),alt:t.includes(ve.alt)}}(r),e}function _e(t){return t.includes(ve.ma)?"7":"b7"}function je(t,e,r){return t.includes(ve.alt)&&e.includes(r)}function we(t){return ut(t,[ve.mi,ve.dim,ve.dim7,ve.halfDim])}function xe(t){return it(t,[ve.seventh,ve.ninth,ve.eleventh,ve.thirteenth])}function Oe(t){return t.replace(/[.\-*+?^${}()|[\]\\]/g,"\\$&")}function Se(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},r=["b5","#5","b9","#9","#11","b13"],n=["english","german","latin"],a=e.notationSystems,u=void 0===a?o()(n):a,s=e.altIntervals,c=void 0===s?o()(r):s,l=e.customFilters,f=void 0===l?[]:l;return function(t,e){Ae("altIntervals",t,e,!0)}(c,r),function(t,e){Ae("notationSystems",t,e)}(u,n),i(f),function(r){var n,i=[];if(!("string"==typeof(n=r)&&n.length>0)){var a=new K;i.push(Ee(a))}var s,l,h,p,d,v=o()(L).filter((function(t){return u.includes(t.name)}));if(!i.length)for(;v.length&&!s;){h=v.shift(),l=[Ct.bind(null,e),oe.bind(null,h.notes),St,ge.bind(null,c),lt,Nt,Jt,jt,ft,It].concat(function(t){if(Array.isArray(t))return Se(t)}(d=f)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(d)||function(t,e){if(t){if("string"==typeof t)return Se(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Se(t,e):void 0}}(d)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());try{(s=t(l,r))?s.input.notationSystem=h.name:i.push((p=h.name,Ee(new Z,p)))}catch(a){i.push(Ee(a,h.name))}}return s||{error:i}}};function De(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ce(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"none",r=arguments.length>1?arguments[1]:void 0;if("none"===e)return r;var n=Be()(r.normalized.intervals,{max:["4","b5","#5","6","bb7","b7","7","b9","9","#9","11","#11","b13","13"],core:["4","b9","9","#9","11","#11","b13","13"]}[e]);return ut(n,["b3","3"])&&n.push(r.normalized.intents.major?"3":"b3"),ut(n,["b5","5","#5"])&&n.push("5"),r.normalized.intervals=n,r.normalized.semitones=n.map((function(t){return be[t]})),r.normalized.intents.eleventh=!1,r.normalized.intents.alt=!1,"max"===e&&delete r.normalized.bassNote,t([Jt,jt,It],r)}var $e=r(3137),We=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],Xe={"C#":"Db","D#":"Eb","F#":"Gb","G#":"Ab","A#":"Bb"},Ve=r.n($e)()(Xe);function Ke(t,e,r){var n=r.normalized,o=n.rootNote,i=n.bassNote,a=Ye(o);if(r.normalized.rootNote=Ze(a,t,e),r.formatted.rootNote=r.normalized.rootNote,i){var u=Ye(i);r.normalized.bassNote=Ze(u,t,e),r.formatted.bassNote=r.normalized.bassNote}return It(r)}function Ze(t,e,r){var n=We.indexOf(t)+e,o=Math.floor(n/12),i=We[n-12*o];return r&&Xe[i]||i}function Ye(t){return Ve[t]||t}var He={german:{Ab:"As",A:"A","A#":"Ais",Bb:"Hes",B:"H",C:"C","C#":"Cis",Db:"Des",D:"D","D#":"Dis",Eb:"Es",E:"E",F:"F","F#":"Fis",Gb:"Ges",G:"G","G#":"Gis"},latin:{Ab:"Lab",A:"La","A#":"La#",Bb:"Sib",B:"Si",C:"Do","C#":"Do#",Db:"Reb",D:"Re","D#":"Re#",Eb:"Mib",E:"Mi",F:"Fa","F#":"Fa#",Gb:"Solb",G:"Sol","G#":"Sol#"}},Je=Object.keys(He);function Qe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"english",e=arguments.length>1?arguments[1]:void 0,r="auto"===t?e.input.notationSystem:t;return"english"===r?e:Je.includes(r)?(e.formatted.rootNote=He[r][e.formatted.rootNote],e.formatted.bassNote&&(e.formatted.bassNote=He[r][e.formatted.bassNote]),e):null}function tr(t){return t&&t.formatted&&t.formatted.symbol?t.formatted.symbol:null}function er(t){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(t)}function rr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},r=e.useShortNamings,n=void 0!==r&&r,a=e.simplify,u=void 0===a?"none":a,s=e.transposeValue,c=void 0===s?0:s,l=e.harmonizeAccidentals,f=void 0!==l&&l,h=e.useFlats,p=void 0!==h&&h,d=e.printer,v=void 0===d?"text":d,b=e.notationSystem,m=void 0===b?"english":b,y=e.customFilters,g=void 0===y?[]:y;i(g);var _,j=[];return["max","core"].includes(u)&&j.push(Ue.bind(null,u)),(f||0!==c)&&j.push(Ke.bind(null,c,p)),n&&j.push(qe),j.push.apply(j,[Qe.bind(null,m),ft].concat(function(t){if(Array.isArray(t))return rr(t)}(_=g)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(_)||function(t,e){if(t){if("string"==typeof t)return rr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rr(t,e):void 0}}(_)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),function(e){if(!function(t){return t&&"object"===er(t)&&!t.error&&t.input}(e))return null;var r=t(j,o()(e));return"raw"===v?function(t){delete t.parserConfiguration.notationSystems;var e=o()(t),r=tr(t),n=ke(t.parserConfiguration)(r);return e.input=n.input,e}(r):tr(r)}}})(),n})()},t.exports=e()},529:t=>{var e=-1,r=1,n=0;function o(t,v,b,m,y){if(t===v)return t?[[n,t]]:[];if(null!=b){var _=function(t,e,r){var n="number"==typeof r?{index:r,length:0}:r.oldRange,o="number"==typeof r?null:r.newRange,i=t.length,a=e.length;if(0===n.length&&(null===o||0===o.length)){var u=n.index,s=t.slice(0,u),c=t.slice(u),l=o?o.index:null,f=u+a-i;if((null===l||l===f)&&!(f<0||f>a)){var h=e.slice(0,f);if((v=e.slice(f))===c){var p=Math.min(u,f);if((m=s.slice(0,p))===(_=h.slice(0,p)))return g(m,s.slice(p),h.slice(p),c)}}if(null===l||l===u){var d=u,v=(h=e.slice(0,d),e.slice(d));if(h===s){var b=Math.min(i-d,a-d);if((y=c.slice(c.length-b))===(j=v.slice(v.length-b)))return g(s,c.slice(0,c.length-b),v.slice(0,v.length-b),y)}}}if(n.length>0&&o&&0===o.length){var m=t.slice(0,n.index),y=t.slice(n.index+n.length);if(!(a<(p=m.length)+(b=y.length))){var _=e.slice(0,p),j=e.slice(a-b);if(m===_&&y===j)return g(m,t.slice(p,i-b),e.slice(p,a-b),y)}}return null}(t,v,b);if(_)return _}var j=a(t,v),w=t.substring(0,j);j=s(t=t.substring(j),v=v.substring(j));var x=t.substring(t.length-j),O=function(t,u){var c;if(!t)return[[r,u]];if(!u)return[[e,t]];var l=t.length>u.length?t:u,f=t.length>u.length?u:t,h=l.indexOf(f);if(-1!==h)return c=[[r,l.substring(0,h)],[n,f],[r,l.substring(h+f.length)]],t.length>u.length&&(c[0][0]=c[2][0]=e),c;if(1===f.length)return[[e,t],[r,u]];var p=function(t,e){var r=t.length>e.length?t:e,n=t.length>e.length?e:t;if(r.length<4||2*n.length=t.length?[n,o,i,u,f]:null}var i,u,c,l,f,h=o(r,n,Math.ceil(r.length/4)),p=o(r,n,Math.ceil(r.length/2));return h||p?(i=p?h&&h[4].length>p[4].length?h:p:h,t.length>e.length?(u=i[0],c=i[1],l=i[2],f=i[3]):(l=i[0],f=i[1],u=i[2],c=i[3]),[u,c,l,f,i[4]]):null}(t,u);if(p){var d=p[0],v=p[1],b=p[2],m=p[3],y=p[4],g=o(d,b),_=o(v,m);return g.concat([[n,y]],_)}return function(t,n){for(var o=t.length,a=n.length,u=Math.ceil((o+a)/2),s=u,c=2*u,l=new Array(c),f=new Array(c),h=0;ho)b+=2;else if(w>a)v+=2;else if(d&&(S=s+p-_)>=0&&S=(O=o-f[S]))return i(t,n,E,w)}for(var x=-g+m;x<=g-y;x+=2){for(var O,S=s+x,A=(O=x===-g||x!==g&&f[S-1]o)y+=2;else if(A>a)m+=2;else if(!d){var E;if((j=s+p-x)>=0&&j=(O=o-O))return i(t,n,E,w)}}}return[[e,t],[r,n]]}(t,u)}(t=t.substring(0,t.length-j),v=v.substring(0,v.length-j));return w&&O.unshift([n,w]),x&&O.push([n,x]),d(O,y),m&&function(t){for(var o=!1,i=[],a=0,v=null,b=0,m=0,y=0,g=0,_=0;b0?i[a-1]:-1,m=0,y=0,g=0,_=0,v=null,o=!0)),b++;for(o&&d(t),function(t){function e(t,e){if(!t||!e)return 6;var r=t.charAt(t.length-1),n=e.charAt(0),o=r.match(c),i=n.match(c),a=o&&r.match(l),u=i&&n.match(l),s=a&&r.match(f),d=u&&n.match(f),v=s&&t.match(h),b=d&&e.match(p);return v||b?5:s||d?4:o&&!a&&u?3:a||u?2:o||i?1:0}for(var r=1;r=y&&(y=g,v=o,b=i,m=a)}t[r-1][1]!=v&&(v?t[r-1][1]=v:(t.splice(r-1,1),r--),t[r][1]=b,m?t[r+1][1]=m:(t.splice(r+1,1),r--))}r++}}(t),b=1;b=O?(x>=j.length/2||x>=w.length/2)&&(t.splice(b,0,[n,w.substring(0,x)]),t[b-1][1]=j.substring(0,j.length-x),t[b+1][1]=w.substring(x),b++):(O>=j.length/2||O>=w.length/2)&&(t.splice(b,0,[n,j.substring(0,O)]),t[b-1][0]=r,t[b-1][1]=w.substring(0,w.length-O),t[b+1][0]=e,t[b+1][1]=j.substring(O),b++),b++}b++}}(O),O}function i(t,e,r,n){var i=t.substring(0,r),a=e.substring(0,n),u=t.substring(r),s=e.substring(n),c=o(i,a),l=o(u,s);return c.concat(l)}function a(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var r=0,n=Math.min(t.length,e.length),o=n,i=0;rn?t=t.substring(r-n):r=0&&y(t[p][1])){var v=t[p][1].slice(-1);if(t[p][1]=t[p][1].slice(0,-1),f=v+f,h=v+h,!t[p][1]){t.splice(p,1),u--;var b=p-1;t[b]&&t[b][0]===r&&(l++,h=t[b][1]+h,b--),t[b]&&t[b][0]===e&&(c++,f=t[b][1]+f,b--),p=b}}m(t[u][1])&&(v=t[u][1].charAt(0),t[u][1]=t[u][1].slice(1),f+=v,h+=v)}if(u0||h.length>0){f.length>0&&h.length>0&&(0!==(i=a(h,f))&&(p>=0?t[p][1]+=h.substring(0,i):(t.splice(0,0,[n,h.substring(0,i)]),u++),h=h.substring(i),f=f.substring(i)),0!==(i=s(h,f))&&(t[u][1]=h.substring(h.length-i)+t[u][1],h=h.substring(0,h.length-i),f=f.substring(0,f.length-i)));var g=l+c;0===f.length&&0===h.length?(t.splice(u-g,g),u-=g):0===f.length?(t.splice(u-g,g,[r,h]),u=u-g+1):0===h.length?(t.splice(u-g,g,[e,f]),u=u-g+1):(t.splice(u-g,g,[e,f],[r,h]),u=u-g+2)}0!==u&&t[u-1][0]===n?(t[u-1][1]+=t[u][1],t.splice(u,1)):u++,l=0,c=0,f="",h=""}""===t[t.length-1][1]&&t.pop();var _=!1;for(u=1;u=55296&&t<=56319}function b(t){return t>=56320&&t<=57343}function m(t){return b(t.charCodeAt(0))}function y(t){return v(t.charCodeAt(t.length-1))}function g(t,o,i,a){return y(t)||m(a)?null:function(t){for(var e=[],r=0;r0&&e.push(t[r]);return e}([[n,t],[e,o],[r,i],[n,a]])}function _(t,e,r,n){return o(t,e,r,n,!0)}_.INSERT=r,_.DELETE=e,_.EQUAL=n,t.exports=_},308:function(t,e){var r,n;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=function(t){"use strict";function e(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)return t;var r=new RegExp("(".concat(Object.keys(e).join("|"),")(?!(\\w|#)*;)"),"g");return String(t).replace(r,(function(t,r){return e[r]||""}))},d=function(){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Array.isArray(t)?t.map((function(t){var r=Object.keys(t)[0],n=t[r],o=e?p(n,e):n,i=!0===o?"":'="'.concat(o,'"');return"".concat(r).concat(i)})):Object.keys(t).map((function(r){var n=e?p(t[r],e):t[r],o=!0===t[r]?"":'="'.concat(n,'"');return"".concat(r).concat(o)}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0);if(0===t.length)return"";var e=t.join(" ");return" ".concat(e)},v=["string","number",u],b=function(t){return v.includes(h(t))},m=([].concat(v,[s,c]),function(t){return!t.match("<")}),y={"<":"<",">":">","&":"&"},g=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.depth,s=void 0===i?0:i,c=n.indent,v=n._isFirstItem,g=n._isOutputStart,_=void 0===g||g,j=n.header,w=n.attributesFilter,x=void 0===w?{}:w,O=n.filter,S=void 0===O?{}:O,A="boolean"!=typeof x||x?o(o(o({},y),{'"':"""}),x):{},E="boolean"!=typeof S||S?o(o({},y),S):{},k=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").repeat(t)}(c,s),D=h(r),C=function(t){var e=t.header,r=(t.indent,t.isOutputStart);return e&&r?a(e)===u?'':e:""}({header:j,indent:c,depth:s,isOutputStart:_}),P=_&&!C&&v&&0===s,z="";switch(D){case"special-object":var F=r._name,T=r._content;if(null===T){z=F;break}if(Array.isArray(T)&&T.every(b))return T.map((function(e){return t({_name:F,_content:e},o(o({},n),{},{depth:s,_isOutputStart:!1}))})).join("");if(F.match(f))break;var M=t(T,o(o({},n),{},{depth:s+1,_isOutputStart:P})),L=h(M),I=m(M),N="".concat(c&&!P?"\n":"").concat(k);if("_comment"===F){z+="".concat(N,"\x3c!-- ").concat(T," --\x3e");break}var R="undefined"===L||""===M,q=a(r._selfCloseTag)===u?R&&r._selfCloseTag:R,G=q?"/":"",B=d(r._attrs,A),U="<".concat(F).concat(B).concat(G,">"),$=c&&!I?"\n".concat(k):"",W=q?"":"".concat(M).concat($,"");z+="".concat(N).concat(U).concat(W);break;case"object":var X=Object.keys(r);z=X.map((function(i,a){var u=o(o({},n),{},{_isFirstItem:0===a,_isLastItem:a+1===X.length,_isOutputStart:P}),s={_name:i};if("object"===h(r[i])&&(l.forEach((function(t){var e=r[i][t];void 0!==e&&(s[t]=e,delete r[i][t])})),void 0!==r[i]._content&&Object.keys(r[i]).length>1)){var c=Object.assign({},r[i]);delete c._content,s._content=[].concat(e(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).map((function(e){return{_name:e,_content:t[e]}}))}(c)),[r[i]._content])}return void 0===s._content&&(s._content=r[i]),t(s,u,i)}),n).join("");break;case"function":var V=r(n);z=t(V,n);break;case"array":z=r.map((function(e,i){var a=o(o({},n),{},{_isFirstItem:0===i,_isLastItem:i+1===r.length,_isOutputStart:P});return t(e,a)})).join("");break;default:z=p(r,E)}return"".concat(C).concat(z)};t.toXML=g;var _={toXML:g};t.default=_},void 0===(n=r.apply(e,[e]))||(t.exports=n)},259:(t,e,r)=>{"use strict";t.exports=r(159)},434:(t,e,r)=>{"use strict";var n=r(723);function o(){}var i=null,a={};function u(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("Promise constructor's argument is not a function");this._x=0,this._y=0,this._z=null,this._A=null,t!==o&&p(t,this)}function s(t,e){for(;3===t._y;)t=t._z;if(u._B&&u._B(t),0===t._y)return 0===t._x?(t._x=1,void(t._A=e)):1===t._x?(t._x=2,void(t._A=[t._A,e])):void t._A.push(e);!function(t,e){n((function(){var r=1===t._y?e.onFulfilled:e.onRejected;if(null!==r){var n=function(t,e){try{return t(e)}catch(t){return i=t,a}}(r,t._z);n===a?l(e.promise,i):c(e.promise,n)}else 1===t._y?c(e.promise,t._z):l(e.promise,t._z)}))}(t,e)}function c(t,e){if(e===t)return l(t,new TypeError("A promise cannot be resolved with itself."));if(e&&("object"==typeof e||"function"==typeof e)){var r=function(t){try{return t.then}catch(t){return i=t,a}}(e);if(r===a)return l(t,i);if(r===t.then&&e instanceof u)return t._y=3,t._z=e,void f(t);if("function"==typeof r)return void p(r.bind(e),t)}t._y=1,t._z=e,f(t)}function l(t,e){t._y=2,t._z=e,u._C&&u._C(t,e),f(t)}function f(t){if(1===t._x&&(s(t,t._A),t._A=null),2===t._x){for(var e=0;e{"use strict";var n=r(434);t.exports=n,n.prototype.done=function(t,e){(arguments.length?this.then.apply(this,arguments):this).then(null,(function(t){setTimeout((function(){throw t}),0)}))}},803:(t,e,r)=>{"use strict";var n=r(434);t.exports=n;var o=l(!0),i=l(!1),a=l(null),u=l(void 0),s=l(0),c=l("");function l(t){var e=new n(n._D);return e._y=1,e._z=t,e}n.resolve=function(t){if(t instanceof n)return t;if(null===t)return a;if(void 0===t)return u;if(!0===t)return o;if(!1===t)return i;if(0===t)return s;if(""===t)return c;if("object"==typeof t||"function"==typeof t)try{var e=t.then;if("function"==typeof e)return new n(e.bind(t))}catch(t){return new n((function(e,r){r(t)}))}return l(t)};var f=function(t){return"function"==typeof Array.from?(f=Array.from,Array.from(t)):(f=function(t){return Array.prototype.slice.call(t)},Array.prototype.slice.call(t))};function h(t){return{status:"fulfilled",value:t}}function p(t){return{status:"rejected",reason:t}}function d(t){if(t&&("object"==typeof t||"function"==typeof t)){if(t instanceof n&&t.then===n.prototype.then)return t.then(h,p);var e=t.then;if("function"==typeof e)return new n(e.bind(t)).then(h,p)}return h(t)}function v(t){if("function"==typeof AggregateError)return new AggregateError(t,"All promises were rejected");var e=new Error("All promises were rejected");return e.name="AggregateError",e.errors=t,e}n.all=function(t){var e=f(t);return new n((function(t,r){if(0===e.length)return t([]);var o=e.length;function i(a,u){if(u&&("object"==typeof u||"function"==typeof u)){if(u instanceof n&&u.then===n.prototype.then){for(;3===u._y;)u=u._z;return 1===u._y?i(a,u._z):(2===u._y&&r(u._z),void u.then((function(t){i(a,t)}),r))}var s=u.then;if("function"==typeof s)return void new n(s.bind(u)).then((function(t){i(a,t)}),r)}e[a]=u,0==--o&&t(e)}for(var a=0;a{"use strict";var n=r(434);t.exports=n,n.prototype.finally=function(t){return this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))}))}},159:(t,e,r)=>{"use strict";t.exports=r(434),r(445),r(29),r(803),r(490),r(690)},490:(t,e,r)=>{"use strict";var n=r(434),o=r(272);t.exports=n,n.denodeify=function(t,e){return"number"==typeof e&&e!==1/0?function(t,e){for(var r=[],o=0;o "+e+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+i+";","var res;","switch (argLength) {",r.concat(["extra"]).map((function(t,e){return"case "+e+":res = fn.call("+["self"].concat(r.slice(0,e)).concat("cb").join(",")+");break;"})).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],a)(n,t)}(t)};var i="function (err, res) {if (err) { rj(err); } else { rs(res); }}";n.nodeify=function(t){return function(){var e=Array.prototype.slice.call(arguments),r="function"==typeof e[e.length-1]?e.pop():null,i=this;try{return t.apply(this,arguments).nodeify(r,i)}catch(t){if(null==r)return new n((function(e,r){r(t)}));o((function(){r.call(i,t)}))}}},n.prototype.nodeify=function(t,e){if("function"!=typeof t)return this;this.then((function(r){o((function(){t.call(e,null,r)}))}),(function(r){o((function(){t.call(e,r)}))}))}},690:(t,e,r)=>{"use strict";var n=r(434);t.exports=n,n.enableSynchronous=function(){n.prototype.isPending=function(){return 0==this.getState()},n.prototype.isFulfilled=function(){return 1==this.getState()},n.prototype.isRejected=function(){return 2==this.getState()},n.prototype.getValue=function(){if(3===this._y)return this._z.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._z},n.prototype.getReason=function(){if(3===this._y)return this._z.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._z},n.prototype.getState=function(){return 3===this._y?this._z.getState():-1===this._y||-2===this._y?0:this._y}},n.disableSynchronous=function(){n.prototype.isPending=void 0,n.prototype.isFulfilled=void 0,n.prototype.isRejected=void 0,n.prototype.getValue=void 0,n.prototype.getReason=void 0,n.prototype.getState=void 0}},666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new C(n||[]);return o(a,"_invoke",{value:A(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",b={};function m(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var j=Object.getPrototypeOf,w=j&&j(j(P([])));w&&w!==r&&n.call(w,a)&&(_=w);var x=g.prototype=m.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(t,e,r){var n=h;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return z()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===b)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=f(t,e,r);if("normal"===s.type){if(n=r.done?v:p,s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{Cell:()=>d,Chord:()=>v,LogLevel:()=>P,MusicXML:()=>z,Playlist:()=>p,Song:()=>b,convert:()=>I,convertSync:()=>L});var t,e=r(259),o=r.n(e),i=r(529),a=r.n(i);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e,r){return(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){for(var r=0;r1&&(this.name=n.pop()),this.songs=n.map((function(t){try{return new b(t,"irealbook"===r[1])}catch(r){var e=t.split("="),n=b.parseTitle(e[0].trim());return console.error("[ireal-musicxml] [".concat(n,"] ").concat(r.toString())),null}})).filter((function(t){return null!==t})).reduce((function(t,e){if(t.length>0){var r=a()(t[t.length-1].title,e.title);if(0===r[0][0]&&r.every((function(t){return 0===t[0]||t[1].match(/^\d+$/)})))return t[t.length-1].cells=t[t.length-1].cells.concat(e.cells),t}return t.push(e),t}),[])})),d=l((function t(){h(this,t),this.annots=[],this.comments=[],this.bars="",this.spacer=0,this.chord=null})),v=l((function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;h(this,t),this.note=e,this.modifiers=r,this.over=n,this.alternate=o})),b=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(h(this,t),this.cells=[],this.musicXml="",!e)return this.title="",this.composer="",this.style="",this.key="",this.transpose=0,this.groove="",this.bpm=0,void(this.repeats=0);var n=e.split("=");if(r)this.title=t.parseTitle(n[0].trim()),this.composer=t.parseComposer(n[1].trim()),this.style=n[2].trim(),this.key=n[3],this.cells=this.parse(n[5]);else{this.title=t.parseTitle(n[0].trim()),this.composer=t.parseComposer(n[1].trim()),this.style=n[3].trim(),this.key=n[4],this.transpose=+n[5]||0,this.groove=n[7],this.bpm=+n[8],this.repeats=+n[9]||3;var o=n[6].split("1r34LbKcu7");this.cells=this.parse(function(t){for(var e,r="";t.length>51;)e=t.substring(0,50),t=t.substring(50),r+=m(e);return(r+=t).replace(/Kcl/g,"| x").replace(/LZ/g," |").replace(/XyQ/g," ")}(o[1]))}}return l(t,[{key:"parse",value:function(e){for(var r=e.trim(),n=[];r;){for(var o=!1,i=0;i/,t.chordRegex,t.chordRegex2]);var y=r(308),g=r(13);var _;function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function x(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r\n\n ').trim(),indent:" "})}},{key:"convertSong",value:function(){return{_name:"score-partwise",_attrs:{version:"4.0"},_content:[{work:{"work-title":this.song.title}},{identification:[{_name:"creator",_attrs:{type:"composer"},_content:this.song.composer},{encoding:[{software:"@infojunkie/ireal-musicxml ".concat("1.12.2")},{"encoding-date":t.convertDate(new Date)},{_name:"supports",_attrs:{element:"accidental",type:"no"}},{_name:"supports",_attrs:{element:"transpose",type:"no"}},{_name:"supports",_attrs:{attribute:"new-page",element:"print",type:"yes",value:"yes"}},{_name:"supports",_attrs:{attribute:"new-system",element:"print",type:"yes",value:"yes"}}]}]},{defaults:{scaling:{millimeters:7,tenths:40}}},{"part-list":{_name:"score-part",_attrs:{id:"P1"},_content:{_name:"part-name",_attrs:{"print-object":"no"},_content:"Lead sheet"}}},{_name:"part",_attrs:{id:"P1"},_content:this.convertMeasures()}]}}},{key:"convertMeasures",value:function(){var e=this,r=this.song.cells.reduce((function(r,n,o){if((n.bars.match(/\(|\{|\[/)||!e.measure&&(n.chord||n.annots.length||n.comments.length))&&(e.measure&&(e._log(P.Warn,"Starting a new measure over existing measure. Closing current measure first."),e.measure.barlines.push(e.convertBarline("","right")),e.adjustChordsDuration(e.measure)&&r.push(e.measure)),e.measure=new t.Measure(r.length+1),r.length||(e.measure.attributes.push({divisions:e.options.divisions},{clef:[{sign:"G"},{line:2}]},{"measure-style":[{_name:"slash",_attrs:{type:"start","use-stems":"rhythmic"===e.options.notation?"yes":"no"}}]},e.convertKey()),e.song.bpm&&e.measure.body._content.push(e.convertTempo(e.song.bpm)),e.measure.body._content.push(e.convertStyleAndGroove(e.song.style,e.song.groove))),e.measure.barlines.push(e.convertBarline(n.bars,"left")),e.barRepeat&&(e.measure.chords=O(r[r.length-e.barRepeat-1].chords))),!e.measure)return(n.chord||n.annots.length||n.comments.length||n.bars&&")"!==n.bars)&&e._log(P.Warn,"Found non-empty orphan cell ".concat(JSON.stringify(n)),r[r.length-1]),r;if(o>0&&o%16==0&&e.measure.body._content.splice(0,0,{_name:"print",_attrs:{"new-system":"yes"}}),n.chord)switch(n.chord.note){case"x":e.barRepeat=1,e.measure.chords=O(r[r.length-e.barRepeat].chords);break;case"r":e.barRepeat=2,e.measure.chords=O(r[r.length-e.barRepeat].chords);break;case"p":if(e.measure.chords.length){e.measure.chords[e.measure.chords.length-1].spaces++;break}case"W":var i=e.measure;i.chords.length||(i=r.slice().reverse().find((function(t){return t.chords.length})))||e._log(P.Error,"Cannot find any measure with chords prior to ".concat(JSON.stringify(n.chord)));var a=i.chords[i.chords.length-1].ireal;a.over=n.chord.over,a.alternate=n.chord.alternate,e.measure.chords.push(e.convertChord(a));break;case" ":e._log(P.Warn,"Unhandled empty/alternate chord ".concat(JSON.stringify(n.chord)));break;default:e.measure.chords.push(e.convertChord(n.chord))}else e.barRepeat||e.measure.chords.length&&e.measure.chords[e.measure.chords.length-1].spaces++;return n.annots.forEach((function(t){switch(t[0]){case"*":var n=t.slice(1);e.measure.body._content.push(e.convertSection(n));break;case"T":var o=t.slice(1);e.measure.attributes.push(e.convertTime(o));break;case"S":e.measure.body._content.push(e.convertSegno());break;case"N":var i=parseInt(t.slice(1));if(i<1){var a=r.slice().reverse().find((function(t){return!!t.barEnding}));i=a.barEnding+1}if(e.measure.barlines[0]._content.push(e.convertEnding(i,"start")),i>1){r[r.length-1].barlines[1]._content.push(e.convertEnding(i-1,"stop"));var u=r.slice().reverse().find((function(t){return t.barEnding===i-1}));u||e._log(P.Error,"Cannot find ending ".concat(i-1," in right barline of any measure"));var s=u.barlines[1]._content.findIndex((function(t){return"ending"===t._name}));-1===s&&e._log(P.Error,"Cannot find ending ".concat(i-1," in right barline"),u),delete u.barlines[1]._content[s]}e.measure.barEnding=i;break;case"Q":e.measure.body._content.push(e.convertToCoda()),e.codas.push(e.measure);break;case"l":case"s":break;case"f":e.measure.chords[e.measure.chords.length-1].fermata=!0;break;case"U":e.measure.body._content.push(e.convertFine("END"));break;default:e._log(P.Warn,'Unhandled annotation "'.concat(t,'"'))}})),n.comments.map((function(t){return t.trim()})).forEach((function(r){var n=e._map(t.mapRepeats,r);n?e.measure.body._content.push(n.call(e,r)):e.measure.body._content.push(e.convertComment(r))})),n.bars.match(/\)|\}|\]|Z/)&&e.measure.chords.length&&(e.measure.barlines.push(e.convertBarline(n.bars,"right")),e.measure.barEnding&&e.measure.barlines[1]._content.push(e.convertEnding(e.measure.barEnding,"discontinue")),e.adjustChordsDuration(e.measure)&&r.push(e.measure),e.measure=null,e.barRepeat&&e.barRepeat--),r}),[]);if(this.codas.length){var n=this.codas[this.codas.length-1],o=n.body._content.findIndex((function(t){return"direction"===t._name&&Array.isArray(t._content)&&t._content.some((function(t){return"sound"===t._name&&Object.keys(t._attrs).includes("tocoda")}))}));-1===o&&this._log(P.Warn,"Cannot find sound direction",n),n.body._content[o]=this.convertCoda()}return r.map((function(t){return t.assemble()}))}},{key:"convertRepeatNx",value:function(t){var e;null!==(e=t.match(/(\d+)x/))&&(this.repeats=e[1])}},{key:"convertFine",value:function(t){return{_name:"direction",_attrs:{placement:"below"},_content:[{"direction-type":{words:t}},{_name:"sound",_attrs:{fine:"yes"}}]}}},{key:"convertDaCapo",value:function(t){return{_name:"direction",_attrs:{placement:"below"},_content:[{"direction-type":{words:t}},{_name:"sound",_attrs:{dacapo:"yes"}}]}}},{key:"convertDalSegno",value:function(t){return{_name:"direction",_attrs:{placement:"below"},_content:[{"direction-type":{words:t}},{_name:"sound",_attrs:{dalsegno:"yes"}}]}}},{key:"convertComment",value:function(t){var e="*"===t[0]?t.slice(3):t;return{_name:"direction",_attrs:{placement:"*"===t[0]?"above":"below"},_content:{"direction-type":{words:e}}}}},{key:"convertEnding",value:function(t,e){return{_name:"ending",_attrs:{number:t,type:e},_content:"".concat(t,".")}}},{key:"convertBarline",value:function(t,e){var r="left"===e?"none":"regular",n=null;return t.match(/\[|\]/)?r="light-light":t.match(/Z/)?r="light-heavy":t.match(/\{|\}/)&&(r="left"===e?"heavy-light":"light-heavy",n="left"===e?"forward":"backward"),"forward"===n&&(this.repeats=2),{_name:"barline",_attrs:{location:e},_content:[{"bar-style":r},x({},n&&{_name:"repeat",_attrs:x({direction:n},"backward"===n&&{times:this.repeats})})]}}},{key:"convertSection",value:function(t){return"i"===t&&(t="Intro"),{_name:"direction",_attrs:{placement:"above"},_content:{"direction-type":{rehearsal:t}}}}},{key:"convertSegno",value:function(){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":{_name:"segno"}},{_name:"sound",_attrs:{segno:"segno"}}]}}},{key:"convertCoda",value:function(){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":{_name:"coda"}},{_name:"sound",_attrs:{coda:"coda"}}]}}},{key:"convertToCoda",value:function(){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":{words:"To Coda"}},{_name:"sound",_attrs:{tocoda:"coda"}}]}}},{key:"convertTempo",value:function(t){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":[{_name:"metronome",_attrs:{parentheses:"no"},_content:[{"beat-unit":this.calculateChordDuration(1)[0].type},{"per-minute":t}]}]},{_name:"sound",_attrs:{tempo:t}}]}}},{key:"convertTime",value:function(t){var e=parseInt(t[0]),r=parseInt(t[1]);return"12"===t&&(e=12,r=8),this.time={beats:e,beatType:r},{time:[{beats:e},{"beat-type":r}]}}},{key:"adjustChordsDuration",value:function(t){var e=this;if(t.chords.length>this.time.beats)return this._log(P.Error,"Too many chords (".concat(t.chords.length," out of ").concat(this.time.beats,")"),t),!0;var r=t.chords.reduce((function(t,e){return t+1+e.spaces}),0);if(!r)return this._log(P.Warn,"No chord found. Skipping current measure.",t),!1;if(r>this.time.beats)for(var n=0;r>this.time.beats;)t.chords[n].spaces>0&&(t.chords[n].spaces--,r--),n=(n+1)%t.chords.length;else for(var o=0;r1?n>0?"stop":"start":null)})),t})),!0}},{key:"calculateChordDuration",value:function(t){var e=this,r={1:[{t:"eighth",d:0,b:1}],2:[{t:"quarter",d:0,b:2}],3:[{t:"quarter",d:1,b:3}],4:[{t:"half",d:0,b:4}],5:[{t:"quarter",d:1,b:3},{t:"quarter",d:0,b:2}],6:[{t:"half",d:1,b:6}],7:[{t:"half",d:2,b:7}],8:[{t:"whole",d:0,b:8}],9:[{t:"half",d:1,b:6},{t:"quarter",d:1,b:3}],10:[{t:"half",d:1,b:6},{t:"half",d:0,b:4}],11:[{t:"half",d:2,b:7},{t:"half",d:0,b:4}],12:[{t:"whole",d:1,b:12}],13:[{t:"half",d:2,b:7},{t:"half",d:1,b:6}],14:[{t:"whole",d:2,b:14}],15:[{t:"whole",d:0,b:8},{t:"half",d:2,b:7}]};if("slash"===this.options.notation){var n=8/this.time.beatType;return Array(t).fill(this._map(r,n,[],"Unexpected beat count 1 for time signature ".concat(this.time.beats,"/").concat(this.time.beatType)).map((function(t){return{duration:t.b*e.options.divisions/2,type:t.t,dots:t.d}}))[0])}var o=8*t/this.time.beatType;return this._map(r,o,[],"Unexpected beat count ".concat(t," for time signature ").concat(this.time.beats,"/").concat(this.time.beatType)).map((function(t){return{duration:t.b*e.options.divisions/2,type:t.t,dots:t.d}}))}},{key:"convertChordNote",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o={_name:"pitch",_content:[{step:this.options.step},{alter:this._map(t.mapFifthsToAlters,this.fifths,[],"Unhandled fifths count=".concat(this.fifths)).includes(this.options.step)?this.fifths>0?1:-1:0},{octave:this.options.octave}]},i=[];return r&&i.push({_name:"fermata"}),n&&i.push({_name:"tied",_attrs:{type:n}}),t.reorderSequence(this.measure,[o,{_name:"cue"},{notehead:this.options.notehead},{duration:e.duration},{voice:1},{_name:"type",_attrs:{size:"full"},_content:e.type},x({},i.length&&{notations:t.reorderSequence(this.measure,i,t.sequenceNotations)})].concat(Array(e.dots).fill({_name:"dot"})),t.sequenceNote)}},{key:"convertChordDegree",value:function(t,e,r){return{_name:"degree",_attrs:{"print-object":"no"},_content:[{"degree-value":t},{"degree-alter":r},{"degree-type":e}]}}},{key:"convertChordSymbol",value:function(e){var r=this,n=this.renderChord(this.parseChord("".concat(e.note).concat(e.modifiers)));if(!n)return this._log(P.Warn,'Unrecognized chord "'.concat(e.note).concat(e.modifiers,'"')),{rootStep:null,rootAlter:null,chordKind:null,chordDegrees:[],chordText:null};var o=n.input.rootNote[0],i=this._map(t.mapAlter,n.input.rootNote[1]||null,null,'Unrecognized accidental in chord "'.concat(n.input.rootNote,'"')),a=n.formatted.descriptor+n.formatted.chordChanges.join(""),u=this._map({major:"major",major6:"major-sixth",major7:"major-seventh",dominant7:"dominant",minor:"minor",minor6:"minor-sixth",minor7:"minor-seventh",minorMajor7:"major-minor",augmented:"augmented",diminished:"diminished",diminished7:"diminished-seventh",power:"power"},n.normalized.quality,"",'Unrecognized chord quality "'.concat(n.normalized.quality,'"'));if(n.normalized.extensions.length){var s=Math.max.apply(Math,O(n.normalized.extensions.map((function(t){return parseInt(t)})))).toString();"dominant-11th"===(u=u.split("-")[0]+this._map({9:"-ninth",11:"-11th",13:"-13th"},s,"","Unhandled extension ".concat(s)))&&(n.normalized.isSuspended=!1)}[{intervals:["1","4","5"],kind:"suspended-fourth",strict:!0},{intervals:["1","5","9"],kind:"suspended-second",strict:!0},{intervals:["1","b3","b5","b7"],kind:"half-diminished",strict:!0},{intervals:["1","3","#5","b7"],kind:"augmented-seventh",strict:!1}].some((function(t){if((!t.strict||n.normalized.intervals.length===t.intervals.length)&&t.intervals.every((function(t,e){return t===n.normalized.intervals[e]})))return u=t.kind,t.intervals.forEach((function(t){n.normalized.alterations=n.normalized.alterations.filter((function(e){return e===t})),n.normalized.adds=n.normalized.adds.filter((function(e){return e===t})),n.normalized.omits=n.normalized.omits.filter((function(e){return e===t}))})),n.normalized.intervals.forEach((function(e){t.intervals.includes(e)||n.normalized.adds.push(e)})),!0}));var c=[];return n.normalized.isSuspended&&!u.includes("suspended")&&(n.normalized.adds.push("4"),n.normalized.adds.includes("3")||n.normalized.omits.push("3")),n.normalized.alterations.forEach((function(e){var o=e.slice(1);c.push(r.convertChordDegree(o,"5"===o||n.normalized.extensions.includes(o)?"alter":"add",r._map(t.mapAlter,e[0],0,'Unrecognized alter symbol in "'.concat(e,'"'))))})),n.normalized.adds.forEach((function(e){var n=Object.keys(t.mapAlter).includes(e[0])?e[0]:null,o=n?e.slice(1):e;c.push(r.convertChordDegree(o,"add",r._map(t.mapAlter,n,0,'Unrecognized alter symbol in "'.concat(e,'"'))))})),n.normalized.omits.forEach((function(e){var n=Object.keys(t.mapAlter).includes(e[0])?e[0]:null,o=n?e.slice(1):e;c.push(r.convertChordDegree(o,"subtract",r._map(t.mapAlter,n,0,'Unrecognized alter symbol in "'.concat(e,'"'))))})),{rootStep:o,rootAlter:i,chordKind:u,chordDegrees:c,chordText:a}}},{key:"convertChord",value:function(e){var r=this,n=null;if("n"===e.note)n=[{root:[{_name:"root-step",_attrs:{text:""},_content:this.options.step}]},{_name:"kind",_attrs:{text:"N.C."},_content:"none"}];else{var o=this.convertChordSymbol(e),i=o.rootStep,a=o.rootAlter,u=o.chordKind,s=o.chordDegrees,c=o.chordText,l=e.over?[{"bass-step":e.over.note[0]},x({},e.over.note[1]&&{"bass-alter":this._map(t.mapAlter,e.over.note[1],null,'Unrecognized accidental in bass note "'.concat(e.over.note,'"'))})]:null;n=[{root:[{"root-step":i},x({},a&&{"root-alter":a})]},{_name:"kind",_attrs:{text:c,"use-symbols":"no"},_content:u},x({},l&&{bass:l})].concat(s)}return e.alternate&&this._log(P.Warn,"Unhandled alternate chord ".concat(JSON.stringify(e.alternate))),new t.Chord(n,this.calculateChordDuration(1).map((function(t){return r.convertChordNote(t)})),e)}},{key:"convertKey",value:function(){return this.fifths=this._map({C:0,G:1,D:2,A:3,E:4,B:5,"F#":6,"C#":7,F:-1,Bb:-2,Eb:-3,Ab:-4,Db:-5,Gb:-6,Cb:-7,"A-":0,"E-":1,"B-":2,"F#-":3,"C#-":4,"G#-":5,"D#-":6,"A#-":7,"D-":-1,"G-":-2,"C-":-3,"F-":-4,"Bb-":-5,"Eb-":-6,"Ab-":-7},this.song.key,0,'Unrecognized key signature "'.concat(this.song.key,'"')),{key:[{fifths:this.fifths},{mode:"-"===this.song.key.slice(-1)?"minor":"major"}]}}},{key:"convertStyleAndGroove",value:function(t,e){return{_name:"direction",_attrs:{placement:"above"},_content:[{"direction-type":[{words:t}]},{sound:[{play:[{_name:"other-play",_attrs:{type:"groove"},_content:e||t}]}]}]}}},{key:"_log",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.measure;if(!(t4&&void 0!==arguments[4]?arguments[4]:P.Warn,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.measure;return e?e in t?t[e]:(n&&this._log(o,n,i),r||null):r}}],[{key:"convert",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new t(e,Object.assign({},this.defaultOptions,r)).convert()}},{key:"convertDate",value:function(t){return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().split("T")[0]}},{key:"reorderSequence",value:function(t,e,r){var n=this;return e.filter((function(t){return Object.keys(t).length})).sort((function(e,o){var i=Object.keys(e)[0];"_name"===i&&(i=e[i]);var a=Object.keys(o)[0];"_name"===a&&(a=o[a]);var u=r.indexOf(i),s=r.indexOf(a);return-1===u&&n._log(P.Warn,'Unrecognized element "'.concat(i,'"'),t),-1===s&&n._log(P.Warn,'Unrecognized element "'.concat(a,'"'),t),u-s}))}}]),t}();function F(t){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(t)}function T(){T=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new C(n||[]);return o(a,"_invoke",{value:A(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",b={};function m(){}function y(){}function g(){}var _={};c(_,a,(function(){return this}));var j=Object.getPrototypeOf,w=j&&j(j(P([])));w&&w!==r&&n.call(w,a)&&(_=w);var x=g.prototype=m.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==F(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=h;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=E(u,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var c=f(e,r,n);if("normal"===c.type){if(o=n.done?v:p,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function E(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function M(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function L(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new p(t);return r.songs.forEach((function(t){t.musicXml=z.convert(t,e)})),r}function I(t){return N.apply(this,arguments)}function N(){var t;return t=T().mark((function t(e){var r,n=arguments;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},t.abrupt("return",new(o())((function(t){return t(L(e,r))})));case 2:case"end":return t.stop()}}),t)})),N=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){M(i,n,o,a,u,"next",t)}function u(t){M(i,n,o,a,u,"throw",t)}a(void 0)}))},N.apply(this,arguments)}_=z,D(z,"defaultOptions",{divisions:768,notation:"rhythmic",step:"B",octave:4,notehead:"slash",logLevel:P.Warn}),D(z,"sequenceAttributes",["divisions","key","time","staves","part-symbol","instruments","clef","staff-details","transpose","directive","measure-style"]),D(z,"sequenceNote",["cue","pitch","rest","unpitched","duration","tie","voice","type","dot","accidental","time-modification","stem","notehead","notehead-text","staff","beam","notations","lyric","play"]),D(z,"sequenceNotations",["accidental-mark","arpeggiate","articulations","dynamics","fermata","glissando","non-arpeggiate","ornaments","other-notation","slide","slur","technical","tied","tuplet"]),D(z,"sequenceBarline",["bar-style","footnote","level","wavy-line","segno","coda","fermata","ending","repeat"]),D(z,"mapAlter",{"#":1,b:-1}),D(z,"mapFifthsToAlters",{0:[],1:["F"],2:["F","C"],3:["F","C","G"],4:["F","C","G","D"],5:["F","C","G","D","A"],6:["F","C","G","D","A","E"],7:["F","C","G","D","A","E","B"],"-1":["B"],"-2":["B","E"],"-3":["B","E","A"],"-4":["B","E","A","D"],"-5":["B","E","A","D","G"],"-6":["B","E","A","D","G","C"],"-7":["B","E","A","D","G","C","F"]}),D(z,"mapRepeats",{"D.C. al Coda":_.prototype.convertDaCapo,"D.C. al Fine":_.prototype.convertDaCapo,"D.C. al 1st End.":_.prototype.convertDaCapo,"D.C. al 2nd End.":_.prototype.convertDaCapo,"D.C. al 3rd End.":_.prototype.convertDaCapo,"D.S. al Coda":_.prototype.convertDalSegno,"D.S. al Fine":_.prototype.convertDalSegno,"D.S. al 1st End.":_.prototype.convertDalSegno,"D.S. al 2nd End.":_.prototype.convertDalSegno,"D.S. al 3rd End.":_.prototype.convertDalSegno,Fine:_.prototype.convertFine,"3x":_.prototype.convertRepeatNx,"4x":_.prototype.convertRepeatNx,"5x":_.prototype.convertRepeatNx,"6x":_.prototype.convertRepeatNx,"7x":_.prototype.convertRepeatNx,"8x":_.prototype.convertRepeatNx}),D(z,"Measure",function(){function t(e){k(this,t),this.body={_name:"measure",_attrs:{number:e},_content:[]},this.attributes=[],this.chords=[],this.barlines=[],this.barEnding=null}return E(t,[{key:"number",value:function(){return this.body._attrs.number}},{key:"assemble",value:function(){var t=this;return this.attributes.length&&this.body._content.push({attributes:_.reorderSequence(this,this.attributes,_.sequenceAttributes)}),this.chords.forEach((function(e){var r;(r=t.body._content).push.apply(r,[{harmony:e.harmony}].concat(O(e.notes.map((function(t){return{note:t}})))))})),this.barlines[0]._content=_.reorderSequence(this,this.barlines[0]._content,_.sequenceBarline),this.body._content.splice(1,0,this.barlines[0]),this.barlines[1]._content=_.reorderSequence(this,this.barlines[1]._content,_.sequenceBarline),this.body._content.push(this.barlines[1]),this.body}}]),t}()),D(z,"Chord",function(){return E((function t(e,r,n){k(this,t),this.harmony=e,this.notes=r,this.ireal=n,this.spaces=0,this.fermata=!1}))}()),r(666)})(),n})())); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index d2b556b..bd215a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ireal-musicxml", - "version": "1.12.1", + "version": "1.12.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ireal-musicxml", - "version": "1.12.1", + "version": "1.12.2", "license": "GPL-3.0-only", "dependencies": { "chord-symbol": "^3.0.0", @@ -65,9 +65,9 @@ } }, "node_modules/@babel/cli": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.23.4.tgz", - "integrity": "sha512-j3luA9xGKCXVyCa5R7lJvOMM+Kc2JEnAEIgz2ggtjQ/j5YUVgfsg/WsG95bbsgq7YLHuiCOzMnoSasuY16qiCw==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.23.9.tgz", + "integrity": "sha512-vB1UXmGDNEhcf1jNAHKT9IlYk1R+hehVTLFlCLHBi8gfuHQGP6uRjgXVYU0EVlI/qwAWpstqkBdf2aez3/z/5Q==", "dev": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.17", @@ -116,9 +116,9 @@ } }, "node_modules/@babel/core": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.7.tgz", - "integrity": "sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.9.tgz", + "integrity": "sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", @@ -126,11 +126,11 @@ "@babel/generator": "^7.23.6", "@babel/helper-compilation-targets": "^7.23.6", "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.23.7", - "@babel/parser": "^7.23.6", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.7", - "@babel/types": "^7.23.6", + "@babel/helpers": "^7.23.9", + "@babel/parser": "^7.23.9", + "@babel/template": "^7.23.9", + "@babel/traverse": "^7.23.9", + "@babel/types": "^7.23.9", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -201,9 +201,9 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.7.tgz", - "integrity": "sha512-xCoqR/8+BoNnXOY7RVSgv6X+o7pmT5q1d+gGcRlXYkI+9B31glE4jeejhKVpA04O1AtzOt7OSQ6VYKP5FcRl9g==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.9.tgz", + "integrity": "sha512-B2L9neXTIyPQoXDm+NtovPvG6VOLWnaXu3BIeVDWwdKFgG30oNa6CqVGiJPDWQwIAK49t9gnQI9c6K6RzabiKw==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", @@ -241,9 +241,9 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.4.tgz", - "integrity": "sha512-QcJMILQCu2jm5TFPGA3lCpJJTeEP+mqeXooG/NZbg/h5FTFi6V0+99ahlRsW8/kRLyb24LZVCCiclDedhLKcBA==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.5.0.tgz", + "integrity": "sha512-NovQquuQLAQ5HuyjCz7WQP9MjRj7dx++yspwiyUiGl9ZyadHRSql1HZh5ogRd8W8w6YM6EQ/NTB8rgjLt5W65Q==", "dev": true, "dependencies": { "@babel/helper-compilation-targets": "^7.22.6", @@ -466,14 +466,14 @@ } }, "node_modules/@babel/helpers": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.8.tgz", - "integrity": "sha512-KDqYz4PiOWvDFrdHLPhKtCThtIcKVy6avWD2oG4GEvyQ+XDZwHD4YQd+H2vNMnq2rkdxsDkU82T+Vk8U/WXHRQ==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.9.tgz", + "integrity": "sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==", "dev": true, "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.7", - "@babel/types": "^7.23.6" + "@babel/template": "^7.23.9", + "@babel/traverse": "^7.23.9", + "@babel/types": "^7.23.9" }, "engines": { "node": ">=6.9.0" @@ -494,9 +494,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", - "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.9.tgz", + "integrity": "sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -833,9 +833,9 @@ } }, "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.7.tgz", - "integrity": "sha512-PdxEpL71bJp1byMG0va5gwQcXHxuEYC/BgI/e88mGTtohbZN28O5Yit0Plkkm/dBzCF/BxmbNcses1RH1T+urA==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.9.tgz", + "integrity": "sha512-8Q3veQEDGe14dTYuwagbRtwxQDnytyg1JFu4/HwEMETeofocrB0U0ejBJIXoeG/t2oXZ8kzCyI0ZZfbT80VFNQ==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", @@ -1191,9 +1191,9 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz", - "integrity": "sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.9.tgz", + "integrity": "sha512-KDlPRM6sLo4o1FkiSlXoAa8edLXFsKKIda779fbLrvmeuc3itnjCtaO6RrtoaANsIJANj+Vk1zqbZIMhkCAHVw==", "dev": true, "dependencies": { "@babel/helper-hoist-variables": "^7.22.5", @@ -1590,9 +1590,9 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.8.tgz", - "integrity": "sha512-lFlpmkApLkEP6woIKprO6DO60RImpatTQKtz4sUcDjVcK8M8mQ4sZsuxaTMNOZf0sqAq/ReYW1ZBHnOQwKpLWA==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.9.tgz", + "integrity": "sha512-3kBGTNBBk9DQiPoXYS0g0BYlwTQYUTifqgKTjxUwEUkduRT2QOa0FPGBJ+NROQhGyYO5BuTJwGvBnqKDykac6A==", "dev": true, "dependencies": { "@babel/compat-data": "^7.23.5", @@ -1622,7 +1622,7 @@ "@babel/plugin-syntax-top-level-await": "^7.14.5", "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", "@babel/plugin-transform-arrow-functions": "^7.23.3", - "@babel/plugin-transform-async-generator-functions": "^7.23.7", + "@babel/plugin-transform-async-generator-functions": "^7.23.9", "@babel/plugin-transform-async-to-generator": "^7.23.3", "@babel/plugin-transform-block-scoped-functions": "^7.23.3", "@babel/plugin-transform-block-scoping": "^7.23.4", @@ -1644,7 +1644,7 @@ "@babel/plugin-transform-member-expression-literals": "^7.23.3", "@babel/plugin-transform-modules-amd": "^7.23.3", "@babel/plugin-transform-modules-commonjs": "^7.23.3", - "@babel/plugin-transform-modules-systemjs": "^7.23.3", + "@babel/plugin-transform-modules-systemjs": "^7.23.9", "@babel/plugin-transform-modules-umd": "^7.23.3", "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", "@babel/plugin-transform-new-target": "^7.23.3", @@ -1670,9 +1670,9 @@ "@babel/plugin-transform-unicode-regex": "^7.23.3", "@babel/plugin-transform-unicode-sets-regex": "^7.23.3", "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.7", - "babel-plugin-polyfill-corejs3": "^0.8.7", - "babel-plugin-polyfill-regenerator": "^0.5.4", + "babel-plugin-polyfill-corejs2": "^0.4.8", + "babel-plugin-polyfill-corejs3": "^0.9.0", + "babel-plugin-polyfill-regenerator": "^0.5.5", "core-js-compat": "^3.31.0", "semver": "^6.3.1" }, @@ -1723,9 +1723,9 @@ "dev": true }, "node_modules/@babel/runtime": { - "version": "7.23.8", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz", - "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.9.tgz", + "integrity": "sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==", "dev": true, "dependencies": { "regenerator-runtime": "^0.14.0" @@ -1741,23 +1741,23 @@ "dev": true }, "node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.23.9.tgz", + "integrity": "sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.23.9", + "@babel/types": "^7.23.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.7.tgz", - "integrity": "sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.9.tgz", + "integrity": "sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==", "dev": true, "dependencies": { "@babel/code-frame": "^7.23.5", @@ -1766,8 +1766,8 @@ "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.6", - "@babel/types": "^7.23.6", + "@babel/parser": "^7.23.9", + "@babel/types": "^7.23.9", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -1776,9 +1776,9 @@ } }, "node_modules/@babel/types": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", - "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.9.tgz", + "integrity": "sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==", "dev": true, "dependencies": { "@babel/helper-string-parser": "^7.23.4", @@ -2050,9 +2050,9 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.21", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.21.tgz", - "integrity": "sha512-SRfKmRe1KvYnxjEMtxEr+J4HIeMX5YBg/qhRHpxEIGjhX1rshcHlnFUE9K0GazhVKWM7B+nARSkV8LuvJdJ5/g==", + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz", + "integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -2634,13 +2634,13 @@ } }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.7.tgz", - "integrity": "sha512-LidDk/tEGDfuHW2DWh/Hgo4rmnw3cduK6ZkOI1NPFceSK3n/yAGeOsNT7FLnSGHkXj3RHGSEVkN3FsCTY6w2CQ==", + "version": "0.4.8", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.8.tgz", + "integrity": "sha512-OtIuQfafSzpo/LhnJaykc0R/MMnuLSSVjVYy9mHArIZ9qTCSZ6TpWCuEKZYVoN//t8HqBNScHrOtCrIK5IaGLg==", "dev": true, "dependencies": { "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.4.4", + "@babel/helper-define-polyfill-provider": "^0.5.0", "semver": "^6.3.1" }, "peerDependencies": { @@ -2648,25 +2648,25 @@ } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.7", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.7.tgz", - "integrity": "sha512-KyDvZYxAzkC0Aj2dAPyDzi2Ym15e5JKZSK+maI7NAwSqofvuFglbSsxE7wUOvTg9oFVnHMzVzBKcqEb4PJgtOA==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.9.0.tgz", + "integrity": "sha512-7nZPG1uzK2Ymhy/NbaOWTg3uibM2BmGASS4vHS4szRZAIR8R6GwA/xAujpdrXU5iyklrimWnLWU+BLF9suPTqg==", "dev": true, "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.4", - "core-js-compat": "^3.33.1" + "@babel/helper-define-polyfill-provider": "^0.5.0", + "core-js-compat": "^3.34.0" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.4.tgz", - "integrity": "sha512-S/x2iOCvDaCASLYsOOgWOq4bCfKYVqvO/uxjkaYyZ3rVsVE3CeAI/c84NpyuBBymEgNvHgjEot3a9/Z/kXvqsg==", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.5.tgz", + "integrity": "sha512-OJGYZlhLqBh2DDHeqAxWB1XIvr49CxiJ2gIt61/PU55CQK4Z58OzMqjDe1zwQdQk+rBYsRc+1rJmdajM3gimHg==", "dev": true, "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.4" + "@babel/helper-define-polyfill-provider": "^0.5.0" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" @@ -2725,9 +2725,9 @@ "dev": true }, "node_modules/browserslist": { - "version": "4.22.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", - "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", + "version": "4.22.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.3.tgz", + "integrity": "sha512-UAp55yfwNv0klWNapjs/ktHoguxuQNGnOzxYmfnXIS+8AsRDZkSDxg7R1AX3GKzn078SBI5dzwzj/Yx0Or0e3A==", "dev": true, "funding": [ { @@ -2744,8 +2744,8 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001565", - "electron-to-chromium": "^1.4.601", + "caniuse-lite": "^1.0.30001580", + "electron-to-chromium": "^1.4.648", "node-releases": "^2.0.14", "update-browserslist-db": "^1.0.13" }, @@ -2811,9 +2811,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001576", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001576.tgz", - "integrity": "sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg==", + "version": "1.0.30001580", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz", + "integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==", "dev": true, "funding": [ { @@ -2986,9 +2986,9 @@ "dev": true }, "node_modules/core-js-compat": { - "version": "3.35.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.35.0.tgz", - "integrity": "sha512-5blwFAddknKeNgsjBzilkdQ0+YK8L1PfqPYq40NOYMYFSS38qj+hpTcLLWwpIwA2A5bje/x5jmVn2tzUMg9IVw==", + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.35.1.tgz", + "integrity": "sha512-sftHa5qUJY3rs9Zht1WEnmkvXputCyDBczPnr7QDgL8n3qrF3CMXY4VPSYtOLLiOUJcah2WNXREd48iOl6mQIw==", "dev": true, "dependencies": { "browserslist": "^4.22.2" @@ -3090,9 +3090,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.630", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.630.tgz", - "integrity": "sha512-osHqhtjojpCsACVnuD11xO5g9xaCyw7Qqn/C2KParkMv42i8jrJJgx3g7mkHfpxwhy9MnOJr8+pKOdZ7qzgizg==", + "version": "1.4.648", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.648.tgz", + "integrity": "sha512-EmFMarXeqJp9cUKu/QEciEApn0S/xRcpZWuAm32U7NgoZCimjsilKXHRO9saeEW55eHZagIDg6XTUOv32w9pjg==", "dev": true }, "node_modules/emoji-regex": { @@ -6443,9 +6443,9 @@ } }, "node_modules/terser": { - "version": "5.26.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.26.0.tgz", - "integrity": "sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==", + "version": "5.27.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.27.0.tgz", + "integrity": "sha512-bi1HRwVRskAjheeYl291n3JC4GgO/Ty4z1nVs5AAsmonJulGxpSektecnNedrwK9C7vpvVtcX3cw00VSLt7U2A==", "dev": true, "dependencies": { "@jridgewell/source-map": "^0.3.3", @@ -6850,19 +6850,19 @@ } }, "node_modules/webpack": { - "version": "5.89.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.89.0.tgz", - "integrity": "sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==", + "version": "5.90.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.0.tgz", + "integrity": "sha512-bdmyXRCXeeNIePv6R6tGPyy20aUobw4Zy8r0LUS2EWO+U+Ke/gYDgsCh7bl5rB6jPpr4r0SZa6dPxBxLooDT3w==", "dev": true, "dependencies": { "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", + "@types/estree": "^1.0.5", "@webassemblyjs/ast": "^1.11.5", "@webassemblyjs/wasm-edit": "^1.11.5", "@webassemblyjs/wasm-parser": "^1.11.5", "acorn": "^8.7.1", "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", + "browserslist": "^4.21.10", "chrome-trace-event": "^1.0.2", "enhanced-resolve": "^5.15.0", "es-module-lexer": "^1.2.1", @@ -6876,7 +6876,7 @@ "neo-async": "^2.6.2", "schema-utils": "^3.2.0", "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", + "terser-webpack-plugin": "^5.3.10", "watchpack": "^2.4.0", "webpack-sources": "^3.2.3" }, diff --git a/package.json b/package.json index 72628fb..ef9b3a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ireal-musicxml", - "version": "1.12.1", + "version": "1.12.2", "description": "iReal Pro to MusicXML converter", "author": "Karim Ratib (https://github.com/infojunkie)", "license": "GPL-3.0-only", diff --git a/src/musicxml.js b/src/musicxml.js index 0b8e63f..82e2ab6 100644 --- a/src/musicxml.js +++ b/src/musicxml.js @@ -249,7 +249,7 @@ export class MusicXML { this.attributes = []; this.chords = []; this.barlines = []; - this.barEnding = 0; + this.barEnding = null; } number() { @@ -450,7 +450,13 @@ export class MusicXML { } case 'N': { // ending // TODO This assumes a single ending at a time. - const ending = parseInt(annot.slice(1)); + let ending = parseInt(annot.slice(1)); + if (ending < 1) { + // It can happen that the ending number comes as 0 from iRP. + // In this case, we do a best effort of finding the previous ending and incrementing it. + const target = measures.slice().reverse().find(m => !!m.barEnding); + ending = target.barEnding + 1; + } this.measure.barlines[0]['_content'].push(this.convertEnding(ending, 'start')); // End the previous ending at the previous measure's right barline. // Also, remove the 'discontinue' ending from its starting measure since we found an end to it. diff --git a/test/bugs.spec.js b/test/bugs.spec.js index 7486293..eb8e2a6 100644 --- a/test/bugs.spec.js +++ b/test/bugs.spec.js @@ -14,7 +14,7 @@ before(() => { }) describe('Bug Fixes', function() { - it('Checks #18 Cannot read property \'spaces\' of undefined', async () => { + it('checks #18 cannot read property \'spaces\' of undefined', async () => { for (const title of [ "All Or Nothing At All", "Brazilian Suite", @@ -49,7 +49,7 @@ describe('Bug Fixes', function() { } }).timeout(0); - it('Checks #20 Missing measures', async () => { + it('checks #20 missing measures', async () => { for (const test of [ { title: "A Ballad", measures: 41 }, { title: "After You", measures: 32 }, @@ -67,5 +67,23 @@ describe('Bug Fixes', function() { it('doesn\'t crash on empty songs', async () => { const brendan = new Playlist(fs.readFileSync('test/data/brendan.html', 'utf-8')); - }) + }); + + it('checks #54 messy chord timings', async () => { + const song = jazz.songs.find(song => song.title === 'Afro Blue'); + assert.notStrictEqual(song, undefined); + const musicXml = MusicXML.convert(song); + await validateXMLWithXSD(musicXml, 'test/data/musicxml.xsd'); + fs.writeFileSync(`test/output/${song.title}.musicxml`, musicXml); + const doc = new DOMParser().parseFromString(musicXml); + }); + + it('checks #62 invalid file', async () => { + const country = new Playlist(fs.readFileSync('test/data/country.txt', 'utf-8')); + const song = country.songs.find(song => song.title === 'Jackson'); + assert.notStrictEqual(song, undefined); + const musicXml = MusicXML.convert(song); + fs.writeFileSync(`test/output/${song.title}.musicxml`, musicXml); + await validateXMLWithXSD(musicXml, 'test/data/musicxml.xsd'); + }); }); diff --git a/test/data/country.txt b/test/data/country.txt new file mode 100644 index 0000000..3db45d8 --- /dev/null +++ b/test/data/country.txt @@ -0,0 +1 @@ +irealb://Blue%20Eyes%20Crying%20In%20The%20Rain=Willie%20Nelson%20%28Fred%20Rose%29==Slow%20Country=E==1r34LbKcu7%2CA%2FWs4EXyQXE%7C%2CA%20%20E%7CQyXEA%7B%2A%20%20QyXQyX%5D%20%20lcKyQ%7CE%204Ti%2A%5BA%2FWs%20%7ClB7XE%7C%2CA%20%20E%7CQyXEZLl%20cKQyXEZL%20lcKQyXyQ%7CE%2CbB%2FWyXAlB%2C%7ClB7G%2FW%2C%23F%2F7E%2CF%2FW%2CsE%7CQyXEZL%20lcKQyX%23%2C%5D%5B%2AbB%2FW%2C%2A%5B%5D%20%20LZ%20x%20X7BZL%20lcKQyXEl%2C%7C%23F%2FW%2C%23G%2FWs%20AZLyQKcl%20lcKQXE%7C%2CAKcl%20L%20lcKQyX7Bl%2C%7C%2Cb%2FBW%2CA%2FWs%20EZL%20x%20ZLZE%20%20QyXECyQ%7D%20=Pop%2DBluegrass=120=1===Blue%20Moon%20of%20Kentucky=Monroe%20Bill==Country=C==1r34LbKcu7%7B%5D%20%20l4CXyQC%7CQyX7G%7CQyXCZLl%20cKQyX7F%7CQyX7C%7CXyQKc4Ti%2A%5B2N%7C%7D%20Q%7CC7XyX7GZL%20lcKQyXCN1ZL%20lcKQyX7F%7CQyQKcl%20yXCA%2AyXF%7CQG7XyQQyXC%7CQyX7F%7CQyXBF%2A%5B%5DQyX7C%7CQyXC%7C%7CC7Xy%7CQyXC%7CQyXCyQ%7CCXcKQyX7F%7CQyX7C%7CyQXCA%2A%5B%5DQyX7G%7CQyl%20LZ%7CX7F%7CQG7XyQ%7CCXyQKcl%20%20Z%20=Pop%2DCountry=180=1===Boy%20Named%20Sue%2C%20A=Cash%20Johnny==Country=Bb==1r34LbKcu7lcKQy4BbXy%20lcKQyXbBA%2A%7B%5D%20l%20cKQyXbBZL%20lcKQLZEbX4Ti%2A%5BXbBZLXyQKcyXbB%7C%7D%20%3Ex01%3C%20%3EyQX%3ClcKQyXbBZL%20lQKcl%207FZL%20KQyXb%20%20%5D%7B%2AcKQyX7FZL%20lcKQXybEZL%20lcKQyXbBAl%20LZBlcKQyyXbEZx%3E%20%7D%7CQyXbBA%2A%7B%5D%20%20lcKyQXbBZL%20lcKQyXbBKcl%20L8%3C%20lcQKcl%20LZF7XyQKcl%20LZBbXyQKcl%20%20%7D%7CBbXyQZ%20=Pop%2DCountry=205=1===Can%20the%20Circle%20Be%20Unbroken%20%281935%29=The%20Carter%20Family==Country%20Folk=Ab==1r34LbKcu7LF%2FbD4AbXybAZLxZLbAA%2A%7B%5D%20l%20cKQyXbAZL%20lcKQLZxLZ4Ti%2A%5BAB%2A%5B%5DbLZxLAZLxZL7bE44TZL4x2TZLbAZLxZLbAZbLZx%20AZLxZ42TZLZAbLZZLxZLbAZLxZLbALZxZLbD44TZLx42TAbLZxLxZLbLbAZLZT44EZLxZLbAZLxZLbAN1C%2A%5B%5D%20xZLbAZL7bDbLZxL%2C7bELbAZLbLZxLbA2NA%2A%5B%7D%20xZLbALZbEZLbAZLxZLbAZ%2CSLZxAZLxZbAZLxb%2FFLZ44TZLx42TZLbAZxLZLbAZLxZLbAZLxEb7LZDZLxZAZLxZ%5B%2ABAbxZLbAZLxZLbD44ZTLx42TZLbAZLxZLLZAbL%5D%20xZLZLxZLZT24E%5D%20x%3EeniF%20%2080%2A%3CLZbAZL7bE44TZL7b%5B%2ADAbLxZLbAbLZxLZAbLZEbLZ%3C%2A10%20D%2ES%2E%20al%20Fine%3EAbLZx%20Z%20=Pop%2DCountry=190=1===Coal%20Miner%27s%20Daughter=Lynn%20Loretta==Medium%20Country=D==1r34LbKcu7%2A%7B%5D%2C%234DXyQ%2FW%2CA%2FWs%2CD%7CQyXD%7Cl%2C%23C%2FW%2CB%2FWs%207A%7CB%2CW%2FC4Ti%2A%5B%2CE%2FWsGLZDLyXDl%5B%7C%2C%23C%2FWs%2C7ZAL7AZL7EZLDZLxZQ%7CD7%20ZLDlAA%2FWs%2C%7ClGXyDl1N%7C%2C%23C%2FW%2CB%2FW%20s7A%7CQyXD%7CQyXD%7CQXyQ%7CD%2C%23F%2FWZLbElW%2FC%23%2CD%2FW%2CC%2FWs%207bB%7CQXyDl2NZL%20QyXQyX%7D%2C%5D%7B%2AB%2CB%2FW%2CF%2FWs%20bLZxLyXbEl%5B%5D%2CD%2FWs%2C7BbZL7bBZL7FZLbEZQ%7CEb7EZLbAbE%7CQy%7ClAbXN%7C%2CD%2FW%2CC%2FWs%207b%7CBQyXbE%7CQyXbE%7CQy1lEbX%2CG%2FW%2C%7B%5D%2C%23Db%2CW%2FC%2FWs%207B%7CQyXbEl2ZNL%20QyXQyX%7D%2CD%2FW%2CC%23%2CW%2FB%2FWs%2C%2FWs%207ZALZEEl%5B%5D%2C%23D%2FWs%2C7BZ7LBZL7%23FZLEZLxZLXyQ%7CELElC%2AF%23%2CW%2FG%23%2C%7ClAXyQ%7CEXyQ%7CEXyQ%7CB7%20sW%2FC%23%2CW%2FD%23%2C%7DlEXyQZ%20=Pop%2DBluegrass=125=1===Cold%20Cold%20Heart=Williams%20Hank==Slow%20Ballad=D==1r34LbKcu7%5B%5DQyX4DXyQ7AZL%20lcKQyX7A%7CyQX7A%7CQyXDZL%20lcKXyQ%7CD4TA%2A%7BXD1NZQKcl%20AZL%20lcKQyX7A%7CQXyG%7CQyXG%7CQyX7DZL7%20%20QLyXDB%2Ala%20%2EC%20%20%7DN2yXDZL%20lcKQyX7AQ%7CyX7Al%7C%2C%23G%2CGs%20DQ%7C%3CD%2ElcKQy%20Coda%3E%20x%20%20ZY%5BQDXyQZ%20=Pop%2DCountry=93=1===Crazy=Nelson%20Willie==Slow%20Ballad=Bb==1r34LbKcu7l%7C%2C7b4BbXybBA%2A%7B%5D%2031F%207%2DCLZ7%2DD%20bE%7CQyXbE%7CQ%2CppsA4Ti%2A%5BX%7D%207F%7CC%2DXyL7oB%20bB1N%7CQyX7%7CFQyX7F%7CQyX7%2DC%7CQZC%2D7%20QyX7GXbBZL%20LZN2E%7CQyXbEB%2A%5B%5D%20D%2Fb7B%207o%23CZL7%2DC%20bBb%20Eo7QyXQy7bAspb%2CA%2CB%2A%5B%5DQyX7F%7CQyX7FQ%7CyXC%7CQyXCl%7C%2CB%2CbCBb%2CpBs%7CQy%207F%20bXyQ%7CC%20%2DCZL7G%207%2DCZL7D%2D%20bE%7CQyX%2DC%7CQyX%2DF7LZB7Gl%7C%2CZ%20==0=0===Crying=Roy%20Orbison%2DJoe%20Melson==Country%20Ballad=D==1r34LbKcu77AZLD4DLZxQyXQyX%5D%20%2C%2DGZL%2CZGL%2BDZLDZLxZLDZL%20LZN14TA%2A%7BL%2CGZL%20%5D%5B%2ABZL7AZLGZL7AZLGLZ%2D%23FZLDZL%2D%23FZLDDLZD%2B%20x%20ZLZLDB%2AZDLZxL7AZLxZLD2N%7DQyxX%7CQyXDZLxZL7AZLZx%20%5D%5BL%2C%2DGZDZLxZDLZF%23%2DGZL%2CGZL%2BDZLDZ7LAZLGZL7AZLGZL%2D%2CLZDLZL%2D%23FLZB%2DLZGLZA7LZD%2C%20A7LZD%2C%20GLZDLZx%20Z%20=Jazz%2DBallad%20Even=98=3===Dance%2C%20The=Brooks%20Garth==Country=G==1r34LbKcu7yXD%7CQ4E%2D9%20yXGA%2A%7B%5D%20%20x%20ZL%20ZGL%20susDZL%207%5ECZLQ%7CCXy4Ti%2A%5Bl%7C%2CC%2FLZGXy%7CQyXCB%2A%5B%5D%20%23F%2FDE%20%2FC%7CQyXD%7CQyXC%7CQD%20%20sWD%20G%7CQ%20%20x%201Q%7CC%20DGZLD%20C%7CQyX7%2DBl%2C%7CC%2FWs%20%20D%7CQyXCZLXyQ%7CNyX7%2DBX7%5EC%7CyQ%7CD%20E%7B%20%20QyXQyX%5D%20D%20%7CCQyX7%2DBl%7C%2CC%2FWs%20%2D9XyQXC2N%7DyQ%7CDsusXyQ%7CE%2D9%20%20%3C4x%3E%20%7D%20=Pop%2DSlow%20Rock=68=1===Don%27t%20Come%20Home%20Drinkin%27=Lynn%20Loretta==Country=D==1r34LbKcu7XD%7CQy4DXyQ%20lcKQyXDSA%2A%5B%5D%20D%20ZL%20DZL%207AZL%20D%7CLZA7X4Ti%2A%5ByXGZLyQKclQyX7AZL%20lcKQyX%7CDQyX7A%7CQyX7EZL%20%7CD%20D7XD%7CQylcKQyZA7%20LXDZL%20x%20ZL%20lcKQXyGB%2A%5B%5D%20%207DZL%20DZyQ%7CGXL%20D%7CQA%7CQyXyQ%7CA7GZL7D%20D%7CQyX7AZ%20LlcKQyXDC%2A%5B%5DQyXXyQ%7CDXDZL%20A%7CQyXD%20%20Q%20%2CGZL7D%20%2CDl%7CQyXA7ZL%20lcKQyXDD%2A%5B%5DXyQ%7CD%7CQyX77XyQ%7B%3CD%2ES%2E%20al%20Coda%3EDXyQ%7D%5BQD%20LZG%20LZD%20LZA7XyQ%7CD%20%20Z%20=Pop%2DCountry=177=1===Forever%20And%20Ever%20Amen=Randy%20Travis%20%28Overstreet%2DSchlitz%29==Country=D==1r34LbKcu7LDZLx4DXyQxZLDZLGZLDSA%2A%7B%20%5D%20lcKQyXDZL%20lcKLZGLZ4Ti%2A%5BLxZLGLZxLZDZLGZLDB%2A%5B%7D%20xZ7LAZLxZL7EZLxZLDLZxLZGZLxZLGZLxLZGLZGZLDC%2A%5B%5D%20xZL7ALZxZL7EZLxZLDZLxLZDLZxZLDZGZLDZ7LZxLD%2A%5B%5D%20xZLDZL7AZ7LEZLGZLDZLAZLGZGLZALEZLxZEZLGZ7LZA77AZL7EQ%5B%5D%20xZLDa%3EdoC%20la%20%2ES%2ED%3CZLLZB%2DLEZLQ%2C%2DLZAsusLZDLZx%20Z%20==180=1===Friends%20In%20Low%20Places=Garth%20Brooks%20%28Blackwell%2DLee%29==Country%20Ballad=A==1r34LbKcu77%2DB%7CQ4AXyQ%7CQyXASA%2A%5B%5DQyX7%7CEQyX7%2DB%7CQyXobB%7CBboXy4Ti%2A%5BD%7CQyXl%20LZEyXobB%7CQyXAZL%20lKcQyXAZL%20lcKQyX7Q%7CB%2D7cKQyXL%20lcK%7CE7XyL%20lcKQyXAB%2A%7B%5D%20l%20cKQyX7EZL%20lcKQZAXyQQyX6%2D%20lcKQ7XyQKyX7E%7CQyX7%2DB2N%7C%20%7D%20lcKQyX7EZL%20lcQ%7CAXy%2DB1NZ%20%2ES%2EDCAXyQA%7CQyX7E%7CQyX7%2DBLZ%20lcKQyXAZL%20lcKXyQ%7C%3C%2A%5B%5D%20QB2N%7C%7Dda%3E%20xEZLxZL7%2DB1NZLxLZAZLxZLAQB%2A%7B%5D%20%207LZx%20oC%20la%2D7XyQ%7CE7XyQ%7CAXyQKcl%20%20Z%20=Pop%2DCountry=110=1===Galveston=Glen%20Campbell%20%28Jim%20Webb%29==Country%20Rock=F==1r34LbKcu7TZLC%204FXyQ%7CQyXFlA%2AS%7B%5D%2CC%2CBbs%20F%7CQyXFZL%20lcKT24Bb4Ti%2A%5BBZLQ%20Q%7CF%5E7%207%2DGl%7C%2C%2DAs%20%20bB44T%7CQyX7F42T%7CQyXCLZF%20yXF44usCl2G%2D7%20CbBs%20F%7CQyXsusC1%7CNQyXbB%7CQyX7%2DDZL%2CC%2C%7DN%7CQyXbKQyX%2DF%20sBb%20bA%7CQyXbAZLbB%20Ab%7CQyXbAlB%2A%5B%5D%2CC%2CBbLZC%7CQyXsdoC%20lAbXyQD%3C%7CQyX%2DFZL%2DC%20%2D%7CGQyXbEZL7bB%20%2DF%7C%2ES%2E%20aZL%20lcGZL%2DAsBb%2CCC%2FW%207%2DDZLC%207%2DG%7Cl%2CA%2FWs%20%20bBlQ%5B%5D%2CLZBb%20%20%2DF%3Eal%7C%2CC%2CKcl%20L%7CQyXFZL%20lcKQyX%7CF%7CQyXsusC%7CQyXDZF%20sBbQyX7%2DFXyQZ%20=Pop%2DRock=115=1===Gambler%2C%20The=Kenny%20Rogers%20%28Don%20Schlitz%29==Country=Eb==1r34LbKcu7s%20C%2Fb4EbXyW%2CG%2FWs%20G%2FbEl%7C%2CEb%2FW%2CC%2FWs%20C%2FbA%7CQ%2FF%7ClA4Ti%2A%5BxZLbE%2FEb%2C%5DLxZLbEZLxZLbEZCL%2FbAZLxZLbElA%2A%7BZBbLZW%2CC%2FW%5B%20%20x%20EbLZELbB2N%7C%7D%20bEZLbBN1ZLbEZLbE%2FbAZLbZEbLZ%2FbAZLZLbAZZxLZAbAZLxZLbEZLbBZxLZLxZLbEZLbEZLbLZEbLLbEB%2A%2DF%2CbEbLZEbZLxZLbEZLbAZLbZELbAZLxZLbEC%2A%5B%20BbLZsBZLbEEB%2A%7B%7DlEbLZ1%2A%3CbE%7B%20bBZLbEl%2C%7CbA%2CbEsZLbEZLbA64x%3E%20%7C%2CbA%2FC%2A%7B%7D%20ALZELLEZLAZLEZLAZLxLZEZLBZLxZLxZLEZZBLZEZLxZL%7C%2CA%2CEZALZELAZLEl%7C%2CA%2F%2D%23F%2CsEZLBZLxZLEZLAZLZELZsLxZLElELZBLZE%3C%2A183x%3E%20%7D%20=Pop%2DCountry=176=1===Gone%20Country=Alan%20Jackson%20%28Bob%20McDill%29==Country%20Rock=G==1r34LbKcu7ZLC%20D4GXyQZLD%20C%7CQyXGSA%2A%7B%20%7DC%20D%7CQyXGZLC%20D%7CGXyQ%7C4Ti%2A%7BLD%20C%7CC%20DLZLC%20D%7CQyXGZLD%20CQ%7CyXG%7CZLC%20D%7CQyXGZGXyQ%7CQyXGQyXGZ%7CD%20CLQyXGB%2A%5B%5DQyXD%7CQXy%2DE%7CQyXD%7CQyX%2DEZ%7CC%20DLQyXGZ%20Q%2CC%20ZGXyQGZLC%20D%7CQyXGZL%20clKQyX%2DE1NZLD%20C%7CXyQ%7CDLD%20C%7C%2ES%2ED%3C%2DXyQKE2N%7D%20D%20C%7CQyXG1ZNLD%20C%7CQyXG%7B%20%20lc%2DXyQ%7CE2N%7C%7D%20al%20Coda%3E%20x%20%20%5D%7BQGXyQ%7CC%20DLZGXyQ%7CC%20D%3C%2A164x%3E%20%7D%20=Pop%2DRock=122=1===Goodnight%20Irene=Huddie%20Lebetter%2DJohn%20A%2E%20Lomax==Country%20Waltz=G==1r34LbKcu7G%7CZL%204GXyQXGZL%20lcKQyX7DZ%20LlcKQyX7DZL%20lcKyQKcl3TA%2A%5BcKQyXcl%20LZ%20%20lcKQyXGZL%20lcQKyX7DZL%20lcKQyXC%5D%5B%2ABGKQyX7A%2FWs%207XyQKX7G%7CZL%20lcKQyXGLZ%20lcKQyX7DZL%20lcyQ%7CG%2CDZL%20l%2CW%2FB%2C%7ClCXyQKcl%20LZD7XyQKcl%20LZGXyQKcl%20%20Z%20=Jazz%2DBallad%20Even=120=1===He%20Stopped%20Loving%20Her%20Today=George%20Jones%20%28Braddock%2DPutman%29==Country%20Ballad=G==1r34LbKcu7%20%20lcK4GXyQNZL%20lcKQyX7D%7CZ%20LlcKQyXCZL7G%20G%7C1GXyQ4TA%2A%7BL%20lcKyQ%20LZZL7bA%20bA%7CQyXbA%2AA%7B%5DQyXbE%7CQyXG2NDbXyQXQyX%7DlcKQyXyQKc7bA%20bA%7CQyXbAB%2A%7D%5B%20%20lcKQyXbAZL%20lLZDbX7bE%7CZQyXbDb7XyQA%20bA%7CQyXbAA%2A%5B%5D%20%20lcKQyXbAZL%20lcKb7%2CLZE%7CZL%20XbDZLZ%7CEb7A%7CQyXbAB%2A%5B%5D%20%20lKcQyXbAZL%20lcKQyXb%20Ab7L%20lcKyQKcl%20LZ%7CEb7XyQKcl%20LZAbXyQKcl%20%20Z%20=Pop%2DCountry=75=1===I%20Am%20A%20Man%20Of%20Constant%20Sorrow=Stanley%20Carter==Country=F==1r34LbKcu7bB%205F4F5LZFA%2A%7B%5D%20xZL5FZLxLZsusCZLxZL5FZLx5XyQ%7C4Ti%2A%5BF%2FbB%7CXyQKcZL%20lcKQyXsusCZ%20LlcKQyX5bB%7C%5D%20%20lF5XyQ5FZL5%20lcKQyQXyQZL%20lcKQyX5FZL5Bb%205F%7CQyX5FB%2A%5B%20%20Bb5XyX%5DQyX5%3C%20lcsXyQKFZL%20lcKQyXsusCLZ%20lcKQyX5FZL%20lc5XyQKusCZLx%3E%20%7D%20=Pop%2DCountry=165=1===I%20Fall%20To%20Pieces=Patsy%20Cline%20%28Cochran%2DHoward%29==Slow%20Swing=Bb==1r34LbKcu7%7CQyXb4EbXy%5D%2CA%2FW%2CG%2FW%2CF%2FWsb%2CB%7CQyXbB%7CQyXF%7CQ%7B%2AAlB4Ti%2A%5ByXbBB%7CFXyQlcKQyXbB%7CQyXF%7CyQXbEl%7C%7C%2CE%2CFs%20F%7C%20%20%7D%5B%2AQyXbEF%7CQyXLZEbXbB%20bB%7CQyXbBZL%20clKQyXF%7CZL%20lcKQy7LZEb%20lcKQ%3EadoCbXyQ%7CC%2ED%3C%7CQyXbB%7CQyX%7CFQyXbE%7CZL7bB%20bB%2E%20al%20B%7CQyX%20x%20Q%20%5D%5BQEbXyQ%7CFXyQ%7CBbXyQKcl%20%20Z%20=Jazz%2DSlow%20Swing=116=1===I%20Walk%20The%20line=Cash%20Johnny==Medium%20Country=F==1r34LbKcu7xZLF%7B4BbLZZLxZL7CZLxZLFZxLZLbBZLxZLbEZLxFLZx%204Ti%2A%5B7CZLxx%20%7D%7B%2AxZLbBZL7FZLF2N%20%7DxZLF1NZLxZL7CALZFLZZLFZLbBZLbFLZF7xZLbB1NZLxZL7F%2AB%7B%7D%20%3Ex4%3CxZLbB%7B%20%20%7DN2BZLxZL7bBC%2ALZxLZ4%3CxZLbE%7B%207bBZLBbZLxZL7FZLxZLbBx%3E%20%7D%7BbEZL7LbEZLN1EbLBZLxZLbEZLxZLbZAL7bEZLbE2N%7D%20xZb7LZxZLxZLLxZLbbLZx%3CBZLbB2N%7D%20xZLbBN1ZLxZL7FD%2A%7B%7D%20%3E4b7LZEB%7B%20xZ%7D%20xZLxLZF7xZL7CA%2A%7B%7D%20%3Ex4%3CZxLF%7B%20xZLbBZLxZLLZN1FZLbBZ%20x%3EedF7LZl%3CZLFZLxZLF%7B%20xZ7LCZLxZLFZLxZLbB%2A14FaZLF2N%7D%20=Pop%2DCountry=200=1===I%27m%20So%20Lonesome%20I%20Could%20Cry=Williams%20Hank==Country%20Waltz=E==1r34LbKcu7ZL%20lc4EXyQZL%20lcKQyXEA%2A%7B%5D%20%20lcKQyXE%7CQyX7B%7CEXyQK3Ti%2A%5B7B%7CQyKcl%20L%20lcKQyXEZL%20lcKyQXA%7CQyX7E%7CQyXEZLZ%7CEXQyXE%7CXyQ%7CEXyQKcl%20%3C6x%3E%20%7D%20==0=0===It%20Wasn%27t%20God%20Who%20Made%20Honky%20Tonk%20Angels=Kitty%20Wells%20%28J%2ED%2E%20Miller%29==Country%20Ballad=Bb==1r34LbKcu7%7CQyXb4F7Xy%5D%2CA%2FW%2CG%2FW%2CF%2FWsb%2CB%7CQyXbBZL%20lcKQ%7B%2AAlB4Ti%2A%5BA%2FW%2CGQ%7CEbXWs%2CbB%7CQyXbBZL%20clKQyX7FZL%20lcKQy%2FF%2CW%2FyX7bBB%7CQyXlBbXyL%20lcKQyX7FZL%20lKcQyXbE%7CQyX7bB%7CQZN1BbB%2A%7B%7D%2Cx%20%3EenF%2CW%2FG%20%2EC%2ED%3C%7CQyXbBl2ZNL%20QyXQyX%7D%2CA%2FW%2Cal%20Fi%2FWs%2Cb%20%20Z%20=Pop%2DCountry=110=1===Jackson=Johnny%20Cash%2DJune%20Carter%20%28Leiber%2DWheeler%29==Country=C==1r34LbKcu7LCZLx4CXyQxZLCZLxZLCSA%2A%7B%20%7D%20lcKQyXCZL%20lcKLZCLZ4Ti%2A%7BQxZLCLZxLZFZLxZLFB%2A%5B%5D%207CLZCZLxZL7CZLxZLCLZxLZCZLxZCZLxZLZxLZxZLF%7CQyXC2N%7D%20xLZCZLxZL7GZLxZLFLZG7LC1NZLLFZLxN3CLZ4%2006%2A%3C0N%7D%20xZLCLZxZL7GZLxZLFZLx%2E%3ECLZ%7D%20xZLLxZLF7LZxLCQ%5B%5D%20xZLC%3EadoCl%20a%20%2ES%2ED%3CZLxZLCZLZxLZGZLxZZG7LZxLZCLZxLZ%7BCLZxLZCLZx%20%7DCXyQZ%20=Pop%2DCountry=235=1===Jambalaya%20%28On%20The%20Bayou%29=Williams%20Hank==Country=C==1r34LbKcu7%20lcKQ4G7XyL%20lcKQyXCSA%2A%7B%5D%20%20lcKQyXCZL%20lcKQZG7Xy4Ti%2A%5BX7GZLyQKclyX7GZL%20lcKQyXC%2AB%7B%7D%20%20lcKQyXCZL%20QKcl%20X7GZLlcKQy%20LZCX%20lcKQyX7GZL%20lcQKyXCC%2A%7B%7D%20%20lcKQyLZG7XlcKQyL%20lcKyQ%7C%3CDZL%20lcKQyXCQ%5B%7D%20%20Qx%20%3EadoC%20la%20%2ES%2EG7XyQXCZL%20yX7GZQKcl%20QyX7GZL%20lcKQyXBC%2A%7B%5D%20%20lcKQyXCZLKcl%20LyX7GZQKcl%20LZCXyQKcl%20%20%7D%20=Pop%2DCountry=159=1===Jolene=Parton%20Dolly==Country=C%23%2D==1r34LbKcu7yXE%7CQ4C%23%2D9B%2AS%7B%7DQyX%2D%23C%7CQy9X%2D%23C%7CQyX%2D%23C%7CQyXC%23%2DXy4Ti%2A%7BC%7CQyX%23XyQ%7CyX9%2D%23CZL%20lcKQyBX%7CQyX%2D%23C%7CQyX%2D%23CQ%7CC%23%2DD%2FB%7CQXB%7CQyQ%7CC%23%2DQyX%23D%2FB%7CQyXE%7CQXy%2D%23CA%2A%7B%20QyX%7DQyX%7CC%23%2DXyX9%2D%23%23C%3Ead%20LZC%23%20%2ES%2ED40%2A%3C%7CQyX9%23%2DC%7CQyX%2D%23C%7CQyX9%2Dal%20ColcKQyyX%2D%23C%2A444xD%2FB%7CQyXE%7CQyX%2D%23QCA%2A%5B%20%20QyXQyX%7D%20%3E%23XyQ%7C%3CQ%20%20%2DB%7CQyXxLZC%23%2D%23CB%2A%7B%5D%20%20%2D%23CZL9%20%2D%23CZL%20%2D%23CZL%209%2DXyQ%7CEZLB%7CQ9%2D%23C%7CQ%7CC%23%2DC%7CQyX9%2D%23CZL%20lcQKyXB%7CQyX%2D%23C%7CQyX%23%2DXyQyX%23D%2FXyQ%7CC%23%2DXyQ%7D%7B%3C%2A08%20Fade%3EC%23%2D%20%20%3C%2A204x%3E%20%7D%20=Pop%2DCountry=215=1===Keep%20On%20The%20Sunny%20Side=The%20Carter%20Family%20%28Blenkhorn%2DEntwisle%29==Country=B==1r34LbKcu7L7%23FZ4BLZEZLxZL7%23FZLxZL7F%23ZLxZLBZLxZLBZLBLZxL4Ti%2A%7B%23G%2FW%2CLZx%20%5D%20B%7CQyXBZL%20lcKQXyB%7CQyXE%7CQyXBA%2A%5BsW%2FA%23BZLxZFZL%20l7XyQKBl%7C%2C%23A%2FW%2C%23G%2FWs7%20%23F%7CQyX7%23FZL%20lcXyQKc%23Fl%7C%2C%20lcKQ%7CF%237%20TB%2A%5B%5D%20%20x%2042T%7CQXyBl%7C%2C%23A%2FW%2C%23G%2FWs44BXyQyX7%23yXBZLQ%7CT247%23F44TZLB42TZLl%20cKQyXB44TZL%20x%20%20LZx%20yXEZLBC%2A%5B%7DLZEXy1%2A%3C%20lcKQyXB%7CQy7X%23F%7CQyXB%7CQyXB%7CQ03x%3E%20%20lcKQZLBZLBLZxLFZLxZLBZLxZL7%23ZFLxZL7%23FZLxZLBZ%237LZxZLEZLx%20Z%20=Pop%2DBluegrass=224=1===King%20Of%20The%20Road=Miller%20Roger==Slow%20Country=Bb==1r34LbKcu7BlA%2A%7B4Bb%20B%2CD%2FW%2CbE%2FW%2C7Fs%7CyQX7F%7CQyXbEZLD%2FbW%2FC%2C%5D4Ti%2A%5BW%2C7FsDLZEb7F%7CQyXbE%7CQyXbBQ%7CyXbB%7CQyX7F%7CQyX%2Cn%20LZ%2FbB%20bEZL7b%2FD%2CW%2FQyXbB%7CQyX7F%7CQybXEZLD%2FbB%20bBl%7C%2CC%7CBb%20BW%2CbE%2F%20BB%2A%7BN1F7%2C%20nZL%20n%2C7F2NZL%20yQXQyX%7DQyXbBZL%20nF%237%20%5D%7CQyXb%2CE%2FW%2CZEXyQL%20n%2C7%23F%7CQyXE%7CQXyB%7CQyXB%7CQyX7%23F%7CZsF%237L%23D%2FBF%7CQyXW%2FC%23%2C%20B%7CQyXB%7CQyX7%23FQ%7CyXEZL%23D%2FB%20Bl%7C%7DB7LZE%2C%23D%2FW%237%2Cn%20LZBXyQ%5D%5BB%20B%2FD%23LZEXyQ%7CF%237XyQ%7CBXyQZ%20=Jazz%2DSlow%20Swing=113=1===Legend%20Of%20Bonnie%20And%20Clyde%2C%20The=Haggard%20Merle==Country=Eb==1r34LbKcu7%20bEZL4Eb%20LL%20x%20ZL%20bEA%2A%7B%5D%20x%20%20ZLQyXbEZL%20x%20ZZBb7%204Ti%2A%5BL%20bEZZEb%20LL%20x%20ZL%20bEZL%20xZ%20LbEZL%207bBZL%20x%20ZZAb%20LL%20xZLEZLQ%20Eb%20LZZLQyXQyX%7D%20%20xZLb%20EZL%207bB1NZL%20x%20N2Bb7ZL%20xZa%20%2EC%2Ex%20%20%7DX%20n%2CbEZL%20bDZL%20bZEL%207bB3NZLQyXQyLZ%3C%20DZL%20%2CbyXbE%7Ca%3E%20n%20%7CQyXbE%7CQyXbD%7CQXybEQ%5B%20%20QyXQyXZ%20DbXyQdoC%20lQKcl%20LZEbXyQKcl%20U%20Z%20=Pop%2DCountry=215=1===Long%20Black%20Veil%2C%20The=Lefty%20Frizzell%20%28Wilkin%2DDill%29==Country%20Ballad=D==1r34LbKcu7AZLxZ4EXyQxZLEZLxZLESA%2A%7B%20%5D%20lcKQyXEZL%20lcKLZB7L4Ti%2A%5Bx%7CQyX%7CELZxyXx%7CQyXE1N%7CQyXZALxZL7BZLxZLEZLQ%7DN2EZLEZL%2A%5B%5D%20x%2ABAXyyXA%7CQyXE%7CQyXA%7CyQXE%7CQyXA%7CQyXE%7CQQ%7CELZ%5B%5DQyX%20la%20%2EKcl%20LyX20%2A%3C%20E%7CQyX7BQ%7CyXA%7CQyXE%7CQyXAZQ%20D%2ESQyXEC2nd%20End%2E%3E%20LZ%20x%20%20%5D%7BQAXyQ%7CB7XyQ%7CEXyQKcl%20%20%7D%7CEXyQZ%20=Pop%2DCountry=125=1===Lost%20Highway=Williams%20Hank==Slow%20Country=D==1r34LbKcu7L%20lcK4DXyQLG%207D%7CQyXDA%2A%7B%5D%20%20lcKQyXDZL7A%20D%7CZDXyQ4Ti%2A%5BA%20D%7CQKcl%20L%20lcKQyXDZL%20lcKyQXGZL%20lcKQyX7AZLZDXyQyXDZ7LZDXyQKcl%20%3C5x%3E%20%7D%20=Pop%2DCountry=115=1===Mama%20Tried=Haggard%20Merle==Country=D==1r34LbKcu7LDlSA4D5LZ%2CsusDsZL5D%7D%20D%20ussDZL5DZLD%20susDD%2C%5D%7B%2A4Ti%2A%7B%5B%7D%20QxLZGLZ7AZLDZLGZLDZLGLZDZLxZL7AZLxZLDLZDLZDZLGZZLDZLxLZGLZLDZLGZLxZLDZLZxL7AZLxZL%2DBZLDZxLZA7ZLDB%2AZLD%3EaCD5LZa%20%2ES%2ED%3CZL7AZLDLZxZLGl%7C%2CD%2CsusDsl%20Cod%2A%5B%5D%20xAZLxZ%2ABQDLZLxZLDZLxZL7AZxLZL%2DBZLDZLGZLxZGLZDL%5BY%5D%20xQyXDZLZsDssD%7CQyX5DZLD%20suDs%7CQyX5Dl%5B%5D%2CD%2Csuus%20DL5DZL7Z%20=Pop%2DCountry=187=1===Mammas%20Don%27t%20Let%20Your%20Babies%20Grow%20Up%20to%20Be%20Cowboys=Willie%20and%20Waylon%28Bruce%2DBruce%29==Country%20Waltz=D==1r34LbKcu7LxZL74DLZxLGZLxZLGZLxZLDLZxZLDA%2A%7B%20xZLDZLZxLZA3Ti%2A%5BxZLDZxLZN1B%2A%7B%7D%20xZLD%7B%20xZLA72N%7D%20xZLDZLxZLDDLZxLZL7AZN%7D%20xZxLZGL7AZLxZL%207A1NZLZxL7AZLxZL7AZLxZ%20LZDLZLGZLL7BZLxLZDLLxZLAZLxZLEZLxLZEC%2A%7B%5D%20xZLDZLxZZALZxZL7A2%20xZLE7LZxLEZL%20lcKQyX7B2N%7D%7C%20xZLEZLxZLE1NZLZxLZBZLxZxZL%207LZxLZxZL7BZLxZL7BZLZxLAZLxZLAZLxZLELZN1BED%2A%7B%5DLZB7%20LZELZx%20%7DN2B7LZxLZEXyQKcl%20%20Z%20=Pop%2DCountry=170=1===Mind%20Your%20Own%20Business=Williams%20Hank==Medium%20Country=E==1r34LbKcu7QyX7E4B7XyZL%20lcKQyXEA%2A%7B%5D%20%20lcKQyXEZL%20lcKQEXyQ%7C4Ti%2A%5B%7CA7XyQKcl%20LZEXyQKcl%20LZ%7CB7XyQKcl%20LZEXyQKcl%20%20%7D%20=Pop%2DCountry=139=1===Move%20It%20On%20Over=Williams%20Hank==Medium%20Country=E==1r34LbKcu7ZL%20lc4B7XyZL%20lcKQyXEA%2A%7B%5D%20%20lcKQyXEZL%20lcKQEXyQK4Ti%2A%5BA7XyQKcl%20LZEXyQKcl%20LZB7XyQKcl%20LZEXyQKcl%20%3C8x%3E%20%7D%20=Pop%2DBluegrass=181=1===Okie%20From%20Muskogee=Merle%20Haggard%2DRoy%20E%2E%20Burris==Country=E==1r34LbKcu7ZL%20lc4B7XyZL%20lcKQyXEA%2A%7B%5D%20%20lcKQyXEZL%20lcKQEXyQK4Ti%2A%5BKQyX7Kcl%20LcKQyX7BZL%20lcKQXy7BZL%20lcKQyX7BZl%20LZBQyXE%7CQyXFBN1EXyX7C%7CQyXE3N%7D%20%20lKcQyXE2N%7C%7D%20%20lcKQyQ%5D%7B%2AZL%20lc7CZL%20ZFXyQX7CZL%20lcKQyX7CLZ%20lcKQyXFZL%20lcKyQKclL%20lcKcKQyXl%20LZCcKQyX7CC%2A%5B%7D%20%20lKcQyXFZL%20lcKQyX7l%20LZFcKQyXl%20LZC7XyQKcl%20LZFXyQKcl%20%20Z%20=Pop%2DCountry=140=1===Ring%20of%20Fire=Cash%28Carter%2DKilgore%29%20Johnny==Country=G==1r34LbKcu7yXGSA4GLZTZLG44TZL7D42TZGLZLxZLG44TZLC42x%20%5D%7B%2A4Ti%2A%5B4TZL7LZGLZLGZL7D%20G%7CQyXG1ZNLxZLG44TZLC42TZT24DC%20G%7CQZLCZL%20%7D%7CN2B%2A%7B%5D%20%20lcKQyXG4T4%7CQyX7D42T%7CQyXGD7LZxxZLG4TZLC4yQKclC%2A%7B%5D%20QxZLGZL7DG%20%7CQyXGZL7D%20GZL%20GLZT2XG%7D%20GlcKQyxLZGLZLCZLxZL7DB%2A%7B%7Dx%20ZLG44TZL7D42TZG%20%7DGXZLG44L7DB%2AD7LZGZLG%3EadoC%20la%20%2ESD%2E40%2A%3CZL7D%20G%7CQyXx%20%5D%7BQ%20GZL%20KQyXGLZG%20%7DLGZL7D%20G%7CQyXGZ7LD%20GZL%20lcKQyXG%7BZx%20%7D%7CCZLxZcl%20%20Z%20=Pop%2DCountry=195=1===Save%20The%20Last%20Dance%20For%20Me%201=Emmylou%20Harris%20%28Pomus%2DShuman%29==Country=Bb==1r34LbKcu7FZLxZ4EbXybBZLxZLbBA%2A%7B%5D%20l%20cKQyXbBZL%20lcKQLZF7L4Ti%2A%5BZL7FZZF7LZBZL7F%20bE%7CQyXbE%2AB%5B%207bB%20bB%7CQyXbBbLZxLLxZL7QyX7FXyQKcbBZLxZLbE%7D%20xZLBbZLxZL7FC%2A%7B%7D%20%20lLZxLZbBZLxZL%2DDZZBb%20sGZLCZLxZLCA%2A%5B%5D7%20G%20%2CsusGl%7C%2CbA%2CA7LZxLL%20lcKxZL7G%2D%5E7LZCZL7G%20F%7CQyXFB%2A%20%7B7CZLCZL7G%207%2DDlLZxLZDs%20%2DDKQyXCXyQ%7CCF%7CQyXG%5B%20xZLCl%7CG%2C%2CFsZLF2N%7C%7D%207C%20%20G7LZC1NZLcl%20LZC%20%20G%2C%7CUCXyQZ%20=Pop%2DCountry=115=1===She%27s%20Got%20You=Patsy%20Cline%20%28Hank%20Cochran%29==Country%20Ballad=F==1r34LbKcu7ZLbBZ8FXyQFZL7CZLFSA%2A%7B%5DQXy%2DD%7CQyXF%7CQyX%2DD%7CLZF7L6Ti%2A%5BF2N%7D%20LZxLZyXF1N%7CQyX7C%7CQyFXZL%2DDZLFZL%2DDZLFQKcl%20bBZLxCZL%2077XyQ%5DZL%207GZL%20lcKQyXBbZL%20lcKQyXbBB%2A%5B%20xLZGF%7CQyXLxZLbS%2E%20alZLFZL7CZLFA%2A%5B%5D%20%20x%20ZL%3E%2EdnE%20dn2%20F7LZB%2ED%3C%207ZBbLZxLZFLZD%2DLZFLZD%2DLZFLZC7LZFLZD%2DLZFXyQZ%20=Pop%2DRock%2012%2F8=60=1===Sing%20Me%20Back%20Home=Haggard%20Merle==Country=A==1r34LbKcu7QyXE%7C4A%20sAA%2A%7B%5D%20%20lcKA%2CsussA%20AlZL%20lcKA%2CsuslAXyQ4Ti%2A%5BXE%7CQy%7CA%20sAx%20ZL%297B%28%20%207EZLl%20cKQyXAl%7C%2CA%2Csus%20LZAXQyXD%7CXD%7CQyyQ%7CAXXAB%2A%5B%5D%20%20lcKQyX%7CAQyX%2C7E%7CQyXA%7CQyyQ%7CEXXD%7CQyXA%7CQyyQ%7CAXXE%7CQyXAZL%20x%20ZL7%29B%28%20%207EZL%20lcKQyyQ%7CDXXA%7CQyusAs%20yQ%7CE7%2C7E%7CQyXAl%5B%7D%20%20lKcA%2CsusAs%20A%7CQyX%2CXyQ%7CAXA%7CQys%2CAKcl%20LZ%7ClA%20sAsus%2CA%2C%7ClAXyQZ%20=Pop%2DCountry=110=1===Sixteen%20Tons%20%281947%29=Travis%20Merle==Country%20Swing=E%2D==1r34LbKcu7EZL%23F4E%2D%20B%7CQyX%2DESA%2A%7B%20%20QyQXyX%5DQyX%2DEZL%23F%2F7G%20B7%2F4Ti%2A%5B%207C%7CQG%20B7%2F%2A%5B%5D%20%20n%20ZL%20n%2C7BQ%7CyX%2DA%7CQyX%2DEZL%23FBE%2DXy%7CQyX%2D%2F7B%20%2D%2DXyQ%7CQ%20n%20ZL%20n%2C%2DE%7CQy%2DXA%7CQyX%2DEZL7B%207CLZN1EEZL7BZL%20lc%2DXyQ%7D3N%7DQyX%2DEZL%23F%2F7%20B%2DEZL%20lcKQyXA2NAXyQKEZL%23F%20la%20%2EE%2D%20%20sL%23F%2F7B%20%2DEZL%20n%2CB7%7CQyX%23F%2F7Bl%7C%2C7CZ%3CD%2ES%7CQyXGCoda%3EE%2DXyQ%5DXyQXyQ%20%20Y%5BQE%2DXyQZ%20=Jazz%2DGypsy%20Jazz=165=1===Stand%20By%20Your%20Man=Tammy%20Wynette%2D%20Billy%20Sherrill==Country=A==1r34LbKcu7QyXAl4AXyQ%23G%2FW%2C%23F%2FWs%20%2C7EQ%7CyXE%2FA%7CQyX%23F%2FD%7C%2C%5D%7B%2AA4Ti%2A%5B%2C%23C%2FWZE7Xy%20A%7CQyXA%7CQyX7EZ%2DLB%20%23F%2F%2DBZL%20lcKQsW%2FB%2CL%20lcKF%2FWs%20yQKclyX7EZL%20lcKQyX7ZBL%20lcKQyXA1NZL%20Q%7CE7%2CXDl%7C%7CX7%23C%7C%23%2C%7D%7CNB%2A%7B%5DQyXAZLD%20AZ7LEZLE%2FAZLDZLAl2SAXyQG%2FW%2C%232N%7C%7DQyQ%7CD%20QyX7B%7CQyX7%23F%7CQXyAl1N%7C%2C%2DBQ%2C%2D%23Cs%7CE7XyXD%7CQy%20la%20%2EE7XyQLD%20A%7CQyX7E%7CQyX%7CDQyX7%23F%7CQyX7%23C%7CZ%3CD%2ES%7CQyXA%23F%2FD%20AXyQ%5D7EZL%20D%7CQyX7%23FZ%20L7%23CZL%207EZL%20AQ%5BXyQ%7CA%3EadoCLZA%2FE%20sB%2D7%2CE7%2C%7ClAXyQZ%20=Pop%2DCountry=105=1===Sunday%20Morning%20Coming%20Down=Kristofferson%20Kris==Medium%20Country=A==1r34LbKcu7XAZL%204AXyQXA%7CQyXD%7CQyXASA%7B%2A%20%20QyXQyX%5D%20%20lcKyQKcl4Ti%2A%5BB%7CQyX%2DXyQ%7CyX%2D%23F%7CQyXA%7CQyX%7CDQyXAZL%20lcKQyXEQ%7CN1D%23F%7CQycKQyXE7XyQ%20%20lcKQyXAZL7E%20ZDL%2DB%20D2N%7C%7D%20%20lcK%5D%7B%2ABD%7CQyX%2Dx%20ZL%3EXyQKcdn2%20la%20%2ES%2ED%3C%20%20ZAL%20lcKQyX7EZL%20l%20End%2EAZL%20l%20%20%7D%5B%2ACDXyQKcl%20LZAXyQKcl%20LZE7XyQKcl%20LZAXyQKcl%20%20Z%20=Pop%2DRock=82=1===Tennessee%20Flat%20Top%20Box=Rosanne%20Cash%20%28Johnny%20Cash%29==Country=Bb==1r34LbKcu77F%7CQy4BbXy%20lcKQyXbBA%2A%5B%5D%20l%20cKQyXbBZL%20lcKQLZBbX4Ti%2A%5B%7CQyXb7XyQK%2044T%7CQyXbB42T%7CyQXbB%7CQyX7FZL%20lcx%20LZBF%7CQyXyX7F%7C%7CF7XyZL%20lcKQyXbB%7CZLl%20cKQyX7FZL%20lcKQBbXyQQyX7FyXbB%7CLZ%20xLZL%20lcKQyXbEB%2A%7B%20%5D%20bBZL%20x%20ZL%207FZEbXyQ%207F%7CQQ%7CBbXyQKcl%20LZBbXyQ%7CEbXyQ%7D%5BBbXyQKcl%20LZBbXyQKcl%20%20%5D%20=Pop%2DCountry=185=1===Tennessee%20Waltz=Patti%20Page%20%28Stewart%2DKing%29==Bluegrass=F==1r34LbKcu7%7CQyX74F%20%20scKQyXFA%2A%5B%5D%20%20lcQKyXF%7CQyX7Cl%7C%2CbBl%20LZF3Ti%2A%5BF%7CQyX%7CFXyQX7FZL%20lcKQyXFZ%20LlcKQyX7CZL%20lcKyQ%7CBbQyXbBKQyXF7XyQ%7C%7CQyXbB%7CQyX7A%7CQXyFB%2A%7B%5D%20%20lcKQyXFFXyQ%7CC%7CQyXF%7CQyXC7XyQXF%7CQyXbB%7CQyX7FLZ%20lcKQyXFZL%20lcKyQ%7CC7ZL%20lcXyQKcl%20%20%7D%20=Pop%2DBluegrass=80=1===Wabash%20Cannoball=Roy%20Scuff%20%28J%2EA%2E%20Roff%29==Country=A==1r34LbKcu7%5D%20xZL4AXyQZL%20AZLxZLxZL7ELZ%20lcKQyXDZL%20lcKxLZA%204Ti%2A%5BKQyXAXyQKcZL%20x%20ZL%20lcKQyXE7ZL%20lcKQyXDZL%20lAXyQ%7CASA%2A%7B85%2A%3CxDXyQK%20%2040%2A%3CZL%20AZL%20xZ%20L%20x%20ZL%207EZL%20lcFine%3EZL%20lc%3CZLxZ%5B%2AiALZLAZLxZL7EZL%207ZEL%20x%20ZL%20DZL%20x%20ZxLZAL%7D%20%3Ex5D%2ES%2E%20al%20Fine%3EALZx%20Z%20=Pop%2DCountry=195=1===Walkin%27%20After%20Midnight=Patsy%20Cline%20%28Block%2DHecht%29==Medium%20Country=C==1r34LbKcu7lcKQy4CXyQ%20lcKQyXCA%2A%7B%5D%207%20GC%7CQyXCZL7G%207F%7CLZF7X4Ti%2A%5B%5D%207C%20yQ%7CF7C2NZL%20QyXQyX%7D%20G7%20C%7CQyXC1NZL7G%20XyQ%7CCXCZL%20%2A%5B%5DQy7XyQKyXCZL%20lcKQyX7FLZ7C%20C%7CQyXCZL%20lcQ%7CG7XFSB%2A%5BC%2A%5B%5D%20%7CC7XyyXCZLQ%2C7G%207F%7CQXyCZL%20lcKQyX7F%7CQQKcl%20QyXCAD%2C7GsF7%20G7CQ%5B%5DQyX7C%3EadoCl%20a%20%2ES%2ED%3C%7CQyXCZL%20F7LZ%7CQyXCb7%2ClC%20Z%20==100=1===Year%20That%20Clayton%20Delaney%20Died%2C%20The=Hall%20Tom==Medium%20Country=D==1r34LbKcu7D%20D%7CQ4DXyQyX7A%7CQyXDA%2A%7B%5DQXy7A%7CQyXD%7CQyX7A%7CQ%7CDXy4Ti%2A%5BA%7CQyXyQKclD%7CQyXGZL%20lcKQyGXZL7D%20D%7CQyXDZL%20XyQ%7CDXGZL77XyQ%7CDXyQKcl%20%3C5x%3E%20%7D%5BDXyQ%7CA7XyQ%7CDXyQKcl%20%20Z%20=Pop%2DCountry=130=1===You%20Are%20My%20Sunshine=Gene%20Autrey%20%28Jimmie%20Davis%29==Country=D==1r34LbKcu7QyX7D4DXyQZL%20lcKQyXDA%2A%7B%5D%20%20lcKQyXD%7CQyX7A%7CDXyQ%7C4Ti%2A%5BX7A%7CQKcl%20L%20lcKQyXDZL%20lcKyQXGZL7D%20D%7CQyXDZLZDXyQyXG%7CyQ%7CDXyQKcl%20%3C5x%3E%20%7D%20=Pop%2DCountry=180=1===You%20Don%27t%20Know%20Me=Eddy%20Arnold%2DCindy%20Walker==Slow%20Country=Bb==1r34LbKcu7EZL7b4Bb%2FFZL7%5EbB%20bBA%2A%7B%20%20yQXQyX%5DQyX7F%7CQyXBb6%20B4Ti%2A%5BF%207%2DC7LZEbs%20%20bB1NZL%2C7F%207C%2DZL7G%20bBZL7oE%206Bo%2C%7Cl%5EbE%20b7%2DC%7CQN2Bb%20%7CQyXbEB%2A%5B%20%20QyXyQX%5D%207bB%20bBZL6bED%2D7Xy%7CY%7D%207BZL7%5EBbXyQA%2A%5B%7CQyX7F%7CQyX7%7CCQyX7%2DD%7CQyX7%2DG%7CBb%20BbZL9F%20%23F%7CQy7LZEb%2C7F%207%2DCZL7G%20bBLZ7oE%206bEZL7%5EbE%20LZBbXbB%206bF%207%2D%23%5B%2ACB%20G%20BZL7oF%206EZL7E%5E%20EZL7B%206BZL7%5EB%237LZC%5DQyX7%237%2CLZBXyQZ%20=Jazz%2DBallad%20Swing=73=1===Your%20Cheatin%27%20Heart=Williams%20Hank==Country=C==1r34LbKcu7%20lcKQ4G7XyyX7C%7CQyXCA%2A%7B%5DQXy7G%7CQyXCZL%20lcKQQ%7CFXy4Ti%2A%5B%2A%5B%5DQyyQKclyXC2NZL%20QyXQyXQ%7DyX7G%7CQyXC1NZL%20Q%7CC7XX7GZLQyXCAKcl%20LX7G%7CQyXGZL%20lcKyQX7DZL%20lcKQyXCZyQ%5D%5B%2AQyXFB%7CC7XyQ%7CFXyQKcl%20LZG7XyQKcl%20LZCXyQKcl%20%20Z%20=Pop%2DCountry=131=3===Country%2050 \ No newline at end of file