-
Notifications
You must be signed in to change notification settings - Fork 28
/
abcjs-basic-eskin-min.js
1 lines (1 loc) · 541 KB
/
abcjs-basic-eskin-min.js
1
var gSamplesOnline=!0,gAllowOfflineInstruments=!1,gSoundsCacheABCJS={},gRhythmPatternOverrides={},gAddSwing=!1,gSwingFactor=.25,gAddABCJSSwing=!1,gABCJSSwingFactor=50,gGraceDuration=.045,gGraceTuneType="",gGraceMissingTempo=!1,gLoopCallback=null,gStartPlayCallback=null,gPreStartPlayCallback=null,gPlayerInPause=!1,gRollUseOriginalRollSolution=!1,gRollUseRollForIrishRoll=!1,gForceRollUseRollForIrishRoll=!1,gForceRollUseRollForIrishRollDisable=!1,gRoll2Duration1=.95,gRoll2Duration2=.8,gRoll2Fraction1=1,gRoll2Fraction2=.75,gRoll2Fraction3=.9,gRoll2Volume1=1,gRoll2Volume2=.75,gRoll2Volume3=1,gRoll3Duration1=1.45,gRoll3Duration2=.6,gRoll3Fraction1=1,gRoll3Fraction2=.75,gRoll3Fraction3=.9,gRoll3Volume1=1,gRoll3Volume2=.75,gRoll3Volume3=1,gOrnamentDivider=32,gOrnamentOffset=2,gForceLeftJustifyTitles=!1,gTheSolfegeABC=null,gPitchToNoteNameSharp={21:"A0",22:"As0",23:"B0",24:"C1",25:"Cs1",26:"D1",27:"Ds1",28:"E1",29:"F1",30:"Fs1",31:"G1",32:"Gs1",33:"A1",34:"As1",35:"B1",36:"C2",37:"Cs2",38:"D2",39:"Ds2",40:"E2",41:"F2",42:"Fs2",43:"G2",44:"Gs2",45:"A2",46:"As2",47:"B2",48:"C3",49:"Cs3",50:"D3",51:"Ds3",52:"E3",53:"F3",54:"Fs3",55:"G3",56:"Gs3",57:"A3",58:"As3",59:"B3",60:"C4",61:"Cs4",62:"D4",63:"Ds4",64:"E4",65:"F4",66:"Fs4",67:"G4",68:"Gs4",69:"A4",70:"As4",71:"B4",72:"C5",73:"Cs5",74:"D5",75:"Ds5",76:"E5",77:"F5",78:"Fs5",79:"G5",80:"Gs5",81:"A5",82:"As5",83:"B5",84:"C6",85:"Cs6",86:"D6",87:"Ds6",88:"E6",89:"F6",90:"Fs6",91:"G6",92:"Gs6",93:"A6",94:"As6",95:"B6",96:"C7",97:"Cs7",98:"D7",99:"Ds7",100:"E7",101:"F7",102:"Fs7",103:"G7",104:"Gs7",105:"A7",106:"As7",107:"B7",108:"C8",109:"Cs8",110:"D8",111:"Ds8",112:"E8",113:"F8",114:"Fs8",115:"G8",116:"Gs8",117:"A8",118:"As8",119:"B8",120:"C9",121:"Cs9"},gSequenceCallback=null,gTabFirstStaffOnly=!1,gTabSecondStaffOnly=!1,gEnableReverb=!1,gReverbStyle=null,gReverbDry=.7,gReverbWet=.3,gReverbNode=null,gReverbKernels=[],gBackupBoomFraction=.5,gBackupChickFraction=.5,gStrumChords=!1,gStrumChordsDivider=8,gBassOctaveShift=0,gChordOctaveShift=0,gUseGChord=!1,gLastRenderedTuneName="",gABCJSRenderingParams=null,gExtendDuration=0;function ScanTuneForABCJSRenderingParams(e){var t=e.match(/^%abcjs_render_params.*$/gm);if(t&&t.length>0){var $=t[0].replace("%abcjs_render_params","");$=$.trim();try{return JSON.parse($)}catch(r){}}return null}!function e(t,$){"object"==typeof exports&&"object"==typeof module?module.exports=$():"function"==typeof define&&define.amd?define([],$):"object"==typeof exports?exports.abcjs=$():t.ABCJS=$()}(this,function(){var e,t;return e={"./index.js":function(e,t,$){var r=$(/*! ./version */ "./version.js"),n=$(/*! ./src/api/abc_animation */ "./src/api/abc_animation.js"),a=$(/*! ./src/api/abc_tunebook */ "./src/api/abc_tunebook.js"),s=$(/*! ./src/synth/abc_midi_sequencer */ "./src/synth/abc_midi_sequencer.js"),i=$(/*! ./src/str/output */ "./src/str/output.js"),o={};o.signature="abcjs-basic v"+r,Object.keys(n).forEach(function(e){o[e]=n[e]}),Object.keys(a).forEach(function(e){o[e]=a[e]}),o.renderAbc=$(/*! ./src/api/abc_tunebook_svg */ "./src/api/abc_tunebook_svg.js"),o.TimingCallbacks=$(/*! ./src/api/abc_timing_callbacks */ "./src/api/abc_timing_callbacks.js");var c=$(/*! ./src/write/creation/glyphs */ "./src/write/creation/glyphs.js");o.setGlyph=c.setSymbol,o.strTranspose=i;var l=$(/*! ./src/synth/create-synth */ "./src/synth/create-synth.js"),_=$(/*! ./src/synth/instrument-index-to-name */ "./src/synth/instrument-index-to-name.js"),h=$(/*! ./src/synth/pitch-to-note-name */ "./src/synth/pitch-to-note-name.js"),u=$(/*! ./src/synth/synth-sequence */ "./src/synth/synth-sequence.js"),d=$(/*! ./src/synth/create-synth-control */ "./src/synth/create-synth-control.js"),f=$(/*! ./src/synth/register-audio-context */ "./src/synth/register-audio-context.js"),p=$(/*! ./src/synth/active-audio-context */ "./src/synth/active-audio-context.js"),m=$(/*! ./src/synth/supports-audio */ "./src/synth/supports-audio.js"),g=$(/*! ./src/synth/play-event */ "./src/synth/play-event.js"),v=$(/*! ./src/synth/synth-controller */ "./src/synth/synth-controller.js"),b=$(/*! ./src/synth/get-midi-file */ "./src/synth/get-midi-file.js");o.synth={CreateSynth:l,instrumentIndexToName:_,pitchToNoteName:h,SynthController:v,SynthSequence:u,CreateSynthControl:d,registerAudioContext:f,activeAudioContext:p,supportsAudio:m,playEvent:g,getMidiFile:b,sequence:s},o.Editor=$(/*! ./src/edit/abc_editor */ "./src/edit/abc_editor.js"),o.EditArea=$(/*! ./src/edit/abc_editarea */ "./src/edit/abc_editarea.js"),e.exports=o},"./src/api/abc_animation.js":function(e,t,$){var r,n,a=$(/*! ./abc_timing_callbacks */ "./src/api/abc_timing_callbacks.js"),s={};s.startAnimation=function(e,t,$){var s;function i(e){for(var t=0;t<e.length;t++){var $=e[t];$.classList.contains("abcjs-bar")||($.style.display="none")}}r&&(r.stop(),r=void 0),!$.showCursor||(n=e.querySelector(".abcjs-cursor"))||((n=document.createElement("DIV")).className="abcjs-cursor cursor",n.style.position="absolute",e.appendChild(n),e.style.position="relative"),(r=new a(t,{qpm:$.bpm,eventCallback:function t(a){if(a){if(a.measureStart){var o,c=".abcjs-l"+(o=a).line+".abcjs-m"+o.measureNumber;c&&function t(r){var n,a;if($.hideCurrentMeasure){n=r,i(e.querySelectorAll(n))}else{$.hideFinishedMeasures&&(a=r,s&&i(e.querySelectorAll(s)),s=a)}}(c)}n&&(n.style.left=a.left+"px",n.style.top=a.top+"px",n.style.width=a.width+"px",n.style.height=a.height+"px")}else r.stop(),r=void 0}})).start()},s.pauseAnimation=function(e){r&&(e?r.pause():r.start())},s.stopAnimation=function(){r&&(r.stop(),r=void 0)},e.exports=s},"./src/api/abc_tablatures.js":function(e,t,$){var r=$(/*! ../tablatures/instruments/violin/tab-violin */ "./src/tablatures/instruments/violin/tab-violin.js"),n=$(/*! ../tablatures/instruments/guitar/tab-guitar */ "./src/tablatures/instruments/guitar/tab-guitar.js"),a=$(/*! ../tablatures/instruments/fivestring/tab-fivestring */ "./src/tablatures/instruments/violin/tab-fivestring.js"),s={violin:"ViolinTab",fiddle:"ViolinTab",mandolin:"ViolinTab",guitar:"GuitarTab",fivestring:"FiveStringTab"};e.exports={inited:!1,plugins:{},register:function e(t){var $=t.name,r=t.tablature;this.plugins[$]=r},setError:function e(t,$){t.warnings?t.warning.push($):t.warnings=[$]},preparePlugins:function e(t,$,r){var n=null,a=0;if(r.tablature){var i=r.tablature;n=[];for(var o=0;o<i.length;o++){var c=i[o],l=c.instrument;if(null==l){this.setError(t,"tablature 'instrument' is missing");break}var _=s[l],h=null;if(_&&(h=this.plugins[_]),h){0!=r.visualTranspose&&(c.visualTranspose=r.visualTranspose),c.abcSrc=r.tablature.abcSrc;var u={classz:h,tuneNumber:$,params:c,instance:null};n.push(u),a++}else if(""===l)n.push(null);else{this.setError(t,"Undefined tablature plugin: "+l);break}}}return n},layoutTablatures:function e(t,$){for(var r=$.tablatures,n=0;n<$.lines.length;n++){var a=$.lines[n],s=a.staff;if(s){var i=s.length,o=s.length,c=0;if(gTabFirstStaffOnly)o=1;else if(gTabSecondStaffOnly){if(!(o>1))return;c=1}for(var l=c;l<o;l++)if(r[l]&&l<i){var _=r[l];null==_.instance&&(_.instance=new _.classz,_.instance.init($,_.tuneNumber,_.params,l)),_.instance.render(t,a,l)}}}},init:function e(){this.inited||(this.register(new r),this.register(new n),this.register(new a),this.inited=!0)}}},"./src/api/abc_timing_callbacks.js":function(e){var t=function e(t,$){var r=this;if($||($={}),r.qpm=$.qpm?parseInt($.qpm,10):null,!r.qpm){var n=t.metaText?t.metaText.tempo:null;r.qpm=t.getBpm(n)}r.extraMeasuresAtBeginning=$.extraMeasuresAtBeginning?parseInt($.extraMeasuresAtBeginning,10):0,r.beatCallback=$.beatCallback,r.eventCallback=$.eventCallback,r.lineEndCallback=$.lineEndCallback,r.lineEndAnticipation=$.lineEndAnticipation?parseInt($.lineEndAnticipation,10):0,r.beatSubdivisions=$.beatSubdivisions?parseInt($.beatSubdivisions,10):1,r.joggerTimer=null,r.replaceTarget=function(e){r.noteTimings=e.setTiming(r.qpm,r.extraMeasuresAtBeginning),0===e.noteTimings.length&&(r.noteTimings=e.setTiming(0,0)),r.lineEndCallback&&(r.lineEndTimings=function e(t,$){for(var r=[],n=null,a=0;a<t.length;a++){var s=t[a];"end"!==s.type&&s.top!==n&&(r.push({measureNumber:s.measureNumber,milliseconds:s.milliseconds-$,top:s.top,bottom:s.top+s.height}),n=s.top)}return r}(e.noteTimings,r.lineEndAnticipation)),r.startTime=null,r.currentBeat=0,r.currentEvent=0,r.currentLine=0,r.currentTime=0,r.isPaused=!1,r.isRunning=!1,r.pausedPercent=null,r.justUnpaused=!1,r.newSeekPercent=0,r.lastTimestamp=0,0!==r.noteTimings.length&&(r.millisecondsPerBeat=1e3/(r.qpm/60)/r.beatSubdivisions,r.lastMoment=r.noteTimings[r.noteTimings.length-1].milliseconds,r.totalBeats=Math.round(r.lastMoment/r.millisecondsPerBeat))},r.replaceTarget(t),r.doTiming=function(e){if(r.lastTimestamp!==e&&(r.lastTimestamp=e,r.startTime||(r.startTime=e),!r.isPaused&&r.isRunning)){for(r.currentTime=e-r.startTime,r.currentTime+=16;r.noteTimings.length>r.currentEvent&&r.noteTimings[r.currentEvent].milliseconds<r.currentTime;){if(r.eventCallback&&"event"===r.noteTimings[r.currentEvent].type){var t=r.startTime;r.eventCallback(r.noteTimings[r.currentEvent]),t!==r.startTime&&(r.currentTime=e-r.startTime)}r.currentEvent++}if(r.lineEndCallback&&r.lineEndTimings.length>r.currentLine&&r.lineEndTimings[r.currentLine].milliseconds<r.currentTime&&r.currentEvent<r.noteTimings.length){var $=r.noteTimings[r.currentEvent].milliseconds===r.currentTime?r.noteTimings[r.currentEvent]:r.noteTimings[r.currentEvent-1];r.lineEndCallback(r.lineEndTimings[r.currentLine],$,{line:r.currentLine,endTimings:r.lineEndTimings,currentTime:r.currentTime}),r.currentLine++}if(r.currentTime<r.lastMoment){if(requestAnimationFrame(r.doTiming),r.currentBeat*r.millisecondsPerBeat<r.currentTime){var n=r.doBeatCallback(e);null!==n&&(r.currentTime=n)}}else if(r.currentBeat<=r.totalBeats&&r.beatCallback){var a=r.doBeatCallback(e);null!==a&&(r.currentTime=a),requestAnimationFrame(r.doTiming)}if(r.currentTime>=r.lastMoment){if(r.eventCallback){var s=r.eventCallback(null);r.shouldStop(s).then(function(e){e&&r.stop()})}else r.stop()}}},r.shouldStop=function(e){return new Promise(function(t){return e?"continue"===e?t(!1):void(e.then&&e.then(function(e){t("continue"!==e)})):t(!0)})},r.doBeatCallback=function(e){if(r.beatCallback){for(var t,$,n=r.currentEvent;n<r.noteTimings.length&&null===r.noteTimings[n].left;)n++;if(n<r.noteTimings.length){for(t=r.noteTimings[n].milliseconds,n=Math.max(0,r.currentEvent-1);n>=0&&null===r.noteTimings[n].left;)n--;$=r.noteTimings[n]}var a={},s={};if($){a.top=$.top,a.height=$.height;var i=Math.max(0,e-r.startTime-$.milliseconds),o=t-$.milliseconds,c=$.endX-$.left,l=o?i*c/o:0;a.left=$.left+l,0===r.currentEvent&&$.milliseconds>e-r.startTime&&(a.left=void 0),s={timestamp:e,startTime:r.startTime,ev:$,endMs:t,offMs:i,offPx:l,gapMs:o,gapPx:c}}else s={timestamp:e,startTime:r.startTime};var _=r.startTime;if(r.beatCallback(r.currentBeat/r.beatSubdivisions,r.totalBeats/r.beatSubdivisions,r.lastMoment,a,s),_!==r.startTime)return e-r.startTime;r.currentBeat++}return null},r.animationJogger=function(){r.isRunning&&(r.doTiming(performance.now()),r.joggerTimer=setTimeout(r.animationJogger,60))},r.start=function(e,t){if(r.isRunning=!0,r.isPaused&&(r.isPaused=!1,void 0===e&&(r.justUnpaused=!0)),e)r.setProgress(e,t);else if(0===e)r.reset();else if(null!==r.pausedPercent){var $=performance.now();r.currentTime=r.lastMoment*r.pausedPercent,r.startTime=$-r.currentTime,r.pausedPercent=null,r.reportNext=!0}requestAnimationFrame(r.doTiming),r.joggerTimer=setTimeout(r.animationJogger,60)},r.pause=function(){r.isPaused=!0;var e=performance.now();r.pausedPercent=(e-r.startTime)/r.lastMoment,r.isRunning=!1,r.joggerTimer&&(clearTimeout(r.joggerTimer),r.joggerTimer=null)},r.currentMillisecond=function(){return r.currentTime},r.reset=function(){r.currentBeat=0,r.currentEvent=0,r.currentLine=0,r.startTime=null,r.pausedPercent=null},r.stop=function(){r.pause(),r.reset()},r.setProgress=function(e,t){switch(t){case"seconds":r.currentTime=1e3*e,r.currentTime<0&&(r.currentTime=0),r.currentTime>r.lastMoment&&(r.currentTime=r.lastMoment),$=r.currentTime/r.lastMoment;break;case"beats":r.currentTime=e*r.millisecondsPerBeat*r.beatSubdivisions,r.currentTime<0&&(r.currentTime=0),r.currentTime>r.lastMoment&&(r.currentTime=r.lastMoment),$=r.currentTime/r.lastMoment;break;default:($=e)<0&&($=0),$>1&&($=1),r.currentTime=r.lastMoment*$}r.isRunning||(r.pausedPercent=$);var $,n=performance.now();for(r.startTime=n-r.currentTime,r.currentEvent,r.currentEvent=0;r.noteTimings.length>r.currentEvent&&r.noteTimings[r.currentEvent].milliseconds<r.currentTime;)r.currentEvent++;if(r.lineEndCallback)for(r.currentLine=0;r.lineEndTimings.length>r.currentLine&&r.lineEndTimings[r.currentLine].milliseconds+r.lineEndAnticipation<r.currentTime;)r.currentLine++;var a=r.currentBeat;r.currentBeat=Math.floor(r.currentTime/r.millisecondsPerBeat),r.beatCallback&&a!==r.currentBeat&&r.doBeatCallback(r.startTime+r.currentTime),r.eventCallback&&r.currentEvent>=0&&"event"===r.noteTimings[r.currentEvent].type&&r.eventCallback(r.noteTimings[r.currentEvent]),r.lineEndCallback&&r.lineEndCallback(r.lineEndTimings[r.currentLine],r.noteTimings[r.currentEvent],{line:r.currentLine,endTimings:r.lineEndTimings}),r.joggerTimer=setTimeout(r.animationJogger,60)}};e.exports=t},"./src/api/abc_tunebook.js":function(e,t,$){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=$(/*! ../parse/abc_parse */ "./src/parse/abc_parse.js"),a=$(/*! ../parse/abc_parse_book */ "./src/parse/abc_parse_book.js"),s=$(/*! ./abc_tablatures */ "./src/api/abc_tablatures.js"),i={};(function(){"use strict";i.numberOfTunes=function(e){var t=e.split("\nX:").length;return 0===t&&(t=1),t};var e=i.TuneBook=function(e){var t=a(e);this.header=t.header,this.tunes=t.tunes};function t(e){for(var t=[],$=0;$<e.lines.length;$++){var r=e.lines[$];if(r.staff)for(var n=0;n<r.staff.length;n++){var a=r.staff[n];if(t[n])for(var s=0;s<a.voices.length;s++)t[n].voices[s]&&(t[n].voices[s]=t[n].voices[s].concat(a.voices[s]));else t[n]=a}}return t}function $(e,t){for(var $=[],r=null,n=null,a=null,s=!1,i=0;i<e.voices.length;i++){var o=e.voices[i];$.push([]);for(var c=0;c<o.length;c++){var l=o[c];if(null===a&&l.startChar>=0&&(a=l.startChar,n=void 0===l.chord?r:null),l.chord&&(r=l),"bar"===l.el_type){if(s){var _={abc:t.abc.substring(a,l.endChar)};(r=n&&n.chord&&n.chord.length>0?n.chord[0].name:null)&&(_.lastChord=r),l.startEnding&&(_.startEnding=l.startEnding),l.endEnding&&(_.endEnding=l.endEnding),$[i].push(_),a=null,s=!1}}else"note"===l.el_type&&(s=!0)}}return $}e.prototype.getTuneById=function(e){for(var t=0;t<this.tunes.length;t++)if(this.tunes[t].id===""+e)return this.tunes[t];return null},e.prototype.getTuneByTitle=function(e){for(var t=0;t<this.tunes.length;t++)if(this.tunes[t].title===e)return this.tunes[t];return null},i.parseOnly=function(e,t){for(var $=i.numberOfTunes(e),r=[],n=0;n<$;n++)r.push(1);return i.renderEngine(function e(){},r,e,t)},i.renderEngine=function(t,$,a,i){var o=[];if(void 0!==$&&void 0!==a){(!(c=$)||c.propertyIsEnumerable("length")||"object"!==r(c)||"number"!=typeof c.length)&&($=[$]),void 0===i&&(i={});var c,l=i.startingTune?parseInt(i.startingTune,10):0,_=new e(a),h=new n;gLastRenderedTuneName="";for(var u=0;u<$.length;u++){var d=$[u];if("*"===d||"string"==typeof d&&(d=document.getElementById(d)),d){if(l>=0&&l<_.tunes.length){gLastRenderedTuneName=_.tunes[u].title,gShowABCJSRenderProgress&&console.log("Before render - Tune #"+u+" - "+_.tunes[u].title);var f=i;gABCJSRenderingParams=null,(gABCJSRenderingParams=ScanTuneForABCJSRenderingParams(_.tunes[l].abc))&&(f=Object.assign({},i),Object.keys(gABCJSRenderingParams).forEach(e=>{f[e]=gABCJSRenderingParams[e]})),h.parse(_.tunes[l].abc,f,_.tunes[l].startPos-_.header.length);var p=h.getTune();f.tablature&&(s.init(),p.tablatures=s.preparePlugins(p,l,f));var m=h.getWarnings();m&&(p.warnings=m);var g=t(d,p,u,_.tunes[l].abc);o.push(g||p)}else d.innerHTML&&(d.innerHTML="")}l++}return o}},i.extractMeasures=function(t){for(var $=[],r=new e(t),n=0;n<r.tunes.length;n++){for(var a=r.tunes[n],s=a.abc.split("K:"),o=s[1].split("\n"),c=s[0]+"K:"+o[0]+"\n",l=null,_=null,h=null,u=[],d=!1,f=i.parseOnly(a.abc)[0],p=f.getPickupLength()>0,m=0;m<f.lines.length;m++){var g=f.lines[m];if(g.staff)for(var v=0;v<1;v++)for(var b=g.staff[v],y=0;y<1;y++)for(var k=b.voices[y],w=0;w<k.length;w++){var x=k[w];if(null===h&&x.startChar>=0&&(h=x.startChar,_=void 0===x.chord?l:null),x.chord&&(l=x),"bar"===x.el_type){if(d){var C={abc:a.abc.substring(h,x.endChar)};(l=_&&_.chord&&_.chord.length>0?_.chord[0].name:null)&&(C.lastChord=l),x.startEnding&&(C.startEnding=x.startEnding),x.endEnding&&(C.endEnding=x.endEnding),u.push(C),h=null,d=!1}}else"note"===x.el_type&&(d=!0)}}$.push({header:c,measures:u,hasPickup:p})}return $}})(),e.exports=i},"./src/api/abc_tunebook_svg.js":function(e,t,$){var r=$(/*! ./abc_tunebook */ "./src/api/abc_tunebook.js");$(/*! ../data/abc_tune */ "./src/data/abc_tune.js");var n=$(/*! ../write/engraver-controller */ "./src/write/engraver-controller.js"),a=$(/*! ../parse/abc_parse */ "./src/parse/abc_parse.js"),s=$(/*! ../parse/wrap_lines */ "./src/parse/wrap_lines.js"),i={};function o(){var e=window.innerWidth;for(var t in i)if(i.hasOwnProperty(t)){var $=i[t];e-=2*$.offsetLeft,$.style.width=e+"px"}}try{window.addEventListener("resize",o),window.addEventListener("orientationChange",o)}catch(c){}function l(e,t,$,r,a){$.viewportHorizontal?(e.innerHTML='<div class="abcjs-inner"></div>',$.scrollHorizontal?(e.style.overflowX="auto",e.style.overflowY="hidden"):e.style.overflow="hidden",i[e.id]=e,e=e.children[0]):$.viewportVertical?(e.innerHTML='<div class="abcjs-inner scroll-amount"></div>',e.style.overflowX="hidden",e.style.overflowY="auto",e=e.children[0]):e.innerHTML="";var s=new n(e,$);s.engraveABC(t,r,a),t.engraver=s,($.viewportVertical||$.viewportHorizontal)&&(e.parentNode.style.width=e.style.width)}var _=function e(t,$,i,o,c){var _,h={};if(i){for(_ in i)i.hasOwnProperty(_)&&(h[_]=i[_]);h.warnings_id&&h.tablature&&(h.tablature.warning_id=h.warnings_id)}if(o)for(_ in o)o.hasOwnProperty(_)&&("listener"===_?o[_].highlight&&(h.clickListener=o[_].highlight):h[_]=o[_]);if(c)for(_ in c)c.hasOwnProperty(_)&&(h[_]=c[_]);return r.renderEngine(function e(t,$,r,i){gShowABCJSRenderProgress&&console.log("After render - Tune #"+r+" - "+$.metaText.title);var o=!1;"*"===t&&(o=!0,(t=document.createElement("div")).setAttribute("style","visibility: hidden;"),document.body.appendChild(t));var c=h;return(gABCJSRenderingParams&&(c=Object.assign({},h),Object.keys(gABCJSRenderingParams).forEach(e=>{c[e]=gABCJSRenderingParams[e]})),!o&&c.wrap&&c.staffwidth)?$=function e(t,$,r,i,o){var c=new n(t,o).getMeasureWidths($),_=s.calcLineWraps($,c,o);if(_.reParse){var h=new a;h.parse(i,_.revisedParams),$=h.getTune();var u=h.getWarnings();u&&($.warnings=u)}return o.afterParsing&&o.afterParsing($,r,i),l(t,$,_.revisedParams,r,0),$.explanation=_.explanation,$}(t,$,r,i,c):(c.afterParsing&&c.afterParsing($,r,i),l(t,$,c,r,0),o&&t.parentNode.removeChild(t),null)},t,$,h)};e.exports=_},"./src/const/key-accidentals.js":function(e,t,$){var r=$(/*! ./relative-major */ "./src/const/relative-major.js").relativeMajor,n={acc:"sharp",note:"f"},a={acc:"sharp",note:"c"},s={acc:"sharp",note:"g"},i={acc:"sharp",note:"d"},o={acc:"sharp",note:"A"},c={acc:"sharp",note:"e"},l={acc:"flat",note:"B"},_={acc:"flat",note:"e"},h={acc:"flat",note:"A"},u={acc:"flat",note:"d"},d={acc:"flat",note:"G"},f={acc:"flat",note:"c"},p={"C#":[n,a,s,i,o,c,{acc:"sharp",note:"B"}],"F#":[n,a,s,i,o,c],B:[n,a,s,i,o],E:[n,a,s,i],A:[n,a,s],D:[n,a],G:[n],C:[],F:[l],Bb:[l,_],Eb:[l,_,h],Cm:[l,_,h],Ab:[l,_,h,u],Db:[l,_,h,u,d],Gb:[l,_,h,u,d,f],Cb:[l,_,h,u,d,f,{acc:"flat",note:"F"}],"A#":[l,_],"B#":[],"D#":[l,_,h],"E#":[l],"G#":[l,_,h,u],none:[]};e.exports=function e(t){var $=p[r(t)];return $?JSON.parse(JSON.stringify($)):null}},"./src/const/relative-major.js":function(e){var t={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},$=null;e.exports={relativeMajor:function e(r){$||function e(){$={};for(var r=Object.keys(t),n=0;n<r.length;n++){var a=t[r[n]];$[r[n].toLowerCase()]=r[n];for(var s=0;s<a.modes.length;s++)$[a.modes[s].toLowerCase()]=r[n]}}();var n=r.toLowerCase().match(/([a-g][b#]?)(maj|min|mix|dor|phr|lyd|loc|m)?/);if(!n||!n[2])return r;var a=$[n=n[1]+n[2]];return a||r},relativeMode:function e($,r){var n=t[$];if(!n||""===r)return $;var a=r.toLowerCase().match(/^(maj|min|mix|dor|phr|lyd|loc|m)/);if(!a)return $;for(var s=a[1],i=0;i<n.modes.length;i++){var o=n.modes[i],c=o.toLowerCase().indexOf(s);if(-1!==c&&c===o.length-s.length)return o.substring(0,o.length-s.length)}return $},transposeKey:function e($,r){var n=t[$];if(!n)return $;for(;r<0;)r+=12;for(var a=(n.stepsFromC+r)%12,s=0;s<Object.keys(t).length;s++){var i=Object.keys(t)[s];if(t[i].stepsFromC===a)return i}return $}}},"./src/data/abc_tune.js":function(e,t,$){var r=$(/*! ../parse/abc_common */ "./src/parse/abc_common.js"),n=$(/*! ../write/helpers/spacing */ "./src/write/helpers/spacing.js"),a=$(/*! ../synth/abc_midi_sequencer */ "./src/synth/abc_midi_sequencer.js"),s=$(/*! ../synth/abc_midi_flattener */ "./src/synth/abc_midi_flattener.js"),i=$(/*! ./deline-tune */ "./src/data/deline-tune.js"),o=function e(){function t(e,t,$,r){for(var n=0;n<r.length;n++)e[$][r[n]]=t[$][r[n]]}function $(e,t){for(;t<e.length&&null===e[t].left;)t++;return e[t]}this.reset=function(){this.version="1.1.0",this.media="screen",this.metaText={},this.metaTextInfo={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0,this.runningFonts={},delete this.visualTranspose},this.reset(),this.copyTopInfo=function(e){var $=["tempo","title","header","rhythm","origin","composer","author","partOrder"];t(this,e,"metaText",$),t(this,e,"metaTextInfo",$)},this.copyBottomInfo=function(e){var $=["unalignedWords","book","source","discography","notes","transcription","history","abc-copyright","abc-creator","abc-edited-by","footer"];t(this,e,"metaText",$),t(this,e,"metaTextInfo",$)},this.getBeatLength=function(){var e=this.getMeterFraction(),t=1;return 6===e.num||9===e.num||12===e.num?t=3:3===e.num&&8===e.den&&(t=3),t/e.den},this.getPickupLength=function(){var e=this.getBarLength(),t=function e(t,$){for(var r=0,n=0;n<t.length;n++)if(t[n].staff)for(var a=0;a<t[n].staff.length;a++)for(var s=0;s<t[n].staff[a].voices.length;s++)for(var i=t[n].staff[a].voices[s],o=1,c=0;c<i.length;c++){var l=i[c].rest&&"spacer"===i[c].rest.type;if(i[c].startTriplet&&(o=i[c].tripletMultiplier),i[c].duration&&!l&&"tempo"!==i[c].el_type&&(r+=i[c].duration*o),i[c].endTriplet&&(o=1),r>=$&&(r-=$),"bar"===i[c].el_type)return r}return r}(this.lines,e);return t<1e-8||e-t<1e-8?0:t},this.getBarLength=function(){var e=this.getMeterFraction();return e.num/e.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(e){if(e)t=e;else{var t,$=this.metaText?this.metaText.tempo:null;t=this.getBpm($)}return t<=0&&(t=1),6e4*(this.getBeatsPerMeasure()/t)},this.getBeatsPerMeasure=function(){var e=this.getBeatLength();return this.getBarLength()/e},this.getMeter=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var $=0;$<t.staff.length;$++){var r=t.staff[$].meter;if(r)return r}}return{type:"common_time"}},this.getMeterFraction=function(){var e=this.getMeter(),t=4,$=4;return e&&("specified"===e.type?(t=parseInt(e.value[0].num,10),$=parseInt(e.value[0].den,10)):"cut_time"===e.type?(t=2,$=2):"common_time"===e.type&&(t=4,$=4)),this.meter={num:t,den:$},this.meter},this.getKeySignature=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff){for(var $=0;$<t.staff.length;$++)if(t.staff[$].key)return t.staff[$].key}}return{}},this.getElementFromChar=function(e){for(var t=0;t<this.lines.length;t++){var $=this.lines[t];if($.staff)for(var r=0;r<$.staff.length;r++)for(var n=$.staff[r],a=0;a<n.voices.length;a++)for(var s=n.voices[a],i=0;i<s.length;i++){var o=s[i];if(o.startChar&&o.endChar&&o.startChar<=e&&o.endChar>e)return o}}return null},this.addElementToEvents=function(e,t,$,n,a,s,i,o,c,l){if(t.hint)return{isTiedState:void 0,duration:0};var _=t.durationClass?t.durationClass:t.duration;if(t.abcelem.rest&&"spacer"===t.abcelem.rest.type&&(_=0),_>0){for(var h=[],u=0;u<t.elemset.length;u++)null!==t.elemset[u]&&h.push(t.elemset[u]);var d=t.startTie;if(void 0!==c)e["event"+c].elements.push(h),l&&(e["event"+$]||(e["event"+$]={type:"event",milliseconds:$,line:s,measureNumber:i,top:n,height:a,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),e["event"+$].measureStart=!0,l=!1),d||(c=void 0);else{if(e["event"+$]){if(e["event"+$].left?e["event"+$].left=Math.min(e["event"+$].left,t.x):e["event"+$].left=t.x,e["event"+$].elements.push(h),e["event"+$].startCharArray.push(t.abcelem.startChar),e["event"+$].endCharArray.push(t.abcelem.endChar),null===e["event"+$].startChar&&(e["event"+$].startChar=t.abcelem.startChar),null===e["event"+$].endChar&&(e["event"+$].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length){e["event"+$].midiPitches||(e["event"+$].midiPitches=[]);for(var u=0;u<t.abcelem.midiPitches.length;u++)e["event"+$].midiPitches.push(t.abcelem.midiPitches[u])}if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){e["event"+$].midiGraceNotePitches||(e["event"+$].midiGraceNotePitches=[]);for(var f=0;f<t.abcelem.midiGraceNotePitches.length;f++)e["event"+$].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[f])}}else e["event"+$]={type:"event",milliseconds:$,line:s,measureNumber:i,top:n,height:a,left:t.x,width:t.w,elements:[h],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?r.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(e["event"+$].midiGraceNotePitches=r.cloneArray(t.abcelem.midiGraceNotePitches));l&&(e["event"+$].measureStart=!0,l=!1),d&&(c=$)}}return{isTiedState:c,duration:_/o,nextIsBar:l||"bar"===t.type}},this.makeVoicesArray=function(){for(var e=[],t=[],$={},r=0;r<this.engraver.staffgroups.length;r++){var a=this.engraver.staffgroups[r];if(a&&a.staffs&&a.staffs.length>0){for(var s=a.staffs[0],i=s.absoluteY,o=i-s.top*n.STEP,c=a.staffs[a.staffs.length-1],l=(i=c.absoluteY)-c.bottom*n.STEP-o,_=a.voices,h=0;h<_.length;h++)if(!_[h].staff||!_[h].staff.isTabStaff){var u=!1;e[h]||(e[h]=[]),void 0===t[h]&&(t[h]=0);for(var d=_[h].children,f=0;f<d.length;f++)"tempo"===d[f].type&&($[t[h]]=this.getBpm(d[f].abcelem)),e[h].push({top:o,height:l,line:a.line,measureNumber:t[h],elem:d[f]}),"bar"===d[f].type&&u&&t[h]++,("note"===d[f].type||"rest"===d[f].type)&&(u=!0)}}}return this.tempoLocations=$,e},this.setupEvents=function(e,t,r,n){n||(n=1);for(var a=[],s={},i=e,o=!0,c=this.makeVoicesArray(),l=0,_=0;_<c.length;_++){var h=i,u=Math.round(1e3*h),d=0,f=-1,p=c[_],m=r;t=this.getBeatLength()*m/60;for(var g=-1,v=0;v<p.length;v++){var b,y,k=p[v].measureNumber;g!==k&&this.tempoLocations[k]&&(m=this.tempoLocations[k],t=n*this.getBeatLength()*m/60,g=k);var w=p[v].elem,x=this.addElementToEvents(s,w,u,p[v].top,p[v].height,p[v].line,p[v].measureNumber,t,b,o);if(b=x.isTiedState,o=x.nextIsBar,h+=x.duration,w.duration>0&&s["event"+u]&&(y="event"+u),u=Math.round(1e3*h),"bar"===w.type){var C=w.abcelem.type,T="bar_right_repeat"===C||"bar_dbl_repeat"===C,S="1"===w.abcelem.startEnding,E="bar_left_repeat"===C||"bar_dbl_repeat"===C||"bar_right_repeat"===C;if(T){v>0&&(s[y].endX=w.x),-1===f&&(f=v);var A=0;g=-1;for(var B=d;B<f;B++){g!==(k=p[B].measureNumber)&&this.tempoLocations[k]&&(m=this.tempoLocations[k],t=n*this.getBeatLength()*m/60,g=k);var N=p[B].elem;b=(x=this.addElementToEvents(s,N,u,p[B].top,p[B].height,p[B].line,p[B].measureNumber,t,b,o)).isTiedState,o=x.nextIsBar,h+=x.duration,A=u,u=Math.round(1e3*h)}s["event"+A]&&(s["event"+A].endX=p[f].elem.x),o=!0,f=-1}S&&(f=v),E&&(d=v)}}l=Math.max(l,u)}return function e(t){for(var $,r,n,a,s=t.length-1;s>=0;s--){var i=t[s];"bar"===i.type?(i.top=n,i.nextTop=$,$=n,i.bottom=a,i.nextBottom=r,r=a):"event"===i.type&&(n=i.top,a=i.top+i.height)}}(a=function e(t){var $=[];for(var r in t)t.hasOwnProperty(r)&&$.push(t[r]);return $.sort(function(e,t){var $=e.milliseconds-t.milliseconds;return 0!==$?$:"bar"===e.type?-1:1})}(s)),function e(t,r){if(!(r.length<1)){for(var n=0;n<r.length-1;n++){var a=r[n],s=$(r,n+1);if(null!==a.left){var i=s&&a.top===s.top?s.left:t[a.line].staffGroup.w;void 0!==a.endX?i>a.left&&(a.endX=Math.min(a.endX,i)):a.endX=i}}var o=r[r.length-1];o.endX=t[o.line].staffGroup.w}}(this.lines,a),a.push({type:"end",milliseconds:l}),this.addUsefulCallbackInfo(a,m*n),a},this.addUsefulCallbackInfo=function(e,t){for(var $=this.millisecondsPerMeasure(t),r=0;r<e.length;r++)e[r].millisecondsPerMeasure=$},this.getBpm=function(e){var t;if(e){t=e.bpm;var $=this.getBeatLength();t=t*(e.duration&&e.duration.length>0?e.duration[0]:$)/$}if(!t){t=180;var r=this.getMeterFraction();r&&2==r.num&&2===r.den?t=90:r&&3!==r.num&&r.num%3==0&&(t=120)}return t},this.setTiming=function(e,t){if(t=t||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var $=this.metaText?this.metaText.tempo:null,r=this.getBpm($),n=1;e?$&&(n=e/r):e=r;var a=this.getBeatLength(),s=e/60,i=this.getBarLength()/a*t/s;return i&&(i-=this.getPickupLength()/a/s),this.noteTimings=this.setupEvents(i,a*s,e,n),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*s):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(e){e||(e={});var t=a(this,e);return s(t,e,this.formatting.percmap,this.formatting.midi)},this.deline=function(e){return i(this.lines,e)}};e.exports=o},"./src/data/deline-tune.js":function(e){function t(e,t){return"abselem"===e?"abselem":t}function $(e,t){e.el_type="meter",e.startChar=-1,e.endChar=-1;for(var $=0;$<t.length;$++)t[$].unshift(e)}function r(e,t){e.el_type="key",e.startChar=-1,e.endChar=-1;for(var $=0;$<t.length;$++)t[$].unshift(e)}function n(e,t){e.el_type="clef",e.startChar=-1,e.endChar=-1;for(var $=0;$<t.length;$++)t[$].unshift(e)}function a(e,t,$){e.el_type="font",e.type=$,e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function s(e,$){if(!e)return!0;var r=JSON.stringify(e,t),n=JSON.stringify($,t);return r===n}function i(e){for(var t={},$=Object.keys(e),r=0;r<$.length;r++)if("staff"!==$[r])t[$[r]]=e[$[r]];else{t.staff=[];for(var n=0;n<e.staff.length;n++){for(var a={},s=Object.keys(e.staff[n]),i=0;i<s.length;i++)if("voices"!==s[i])a[s[i]]=e.staff[n][s[i]];else{a.voices=[];for(var o=0;o<e.staff[n].voices.length;o++)a.voices.push([].concat(e.staff[n].voices[o]))}t.staff.push(a)}}return t}e.exports=function e(t,o){o||(o={});for(var c=!!o.lineBreaks,l=[],_=!1,h=[],u=[],d=[],f=[],p=[],m=[],g=[],v=0;v<t.length;v++){var b=t[v];if(b.staff){if(_&&!b.vskip)for(var y=l[l.length-1],k=0;k<y.staff.length;k++){var w=b.staff[k],x=y.staff[k];if(w&&(s(w.meter,h[k])||($(w.meter,w.voices),h[k]=w.meter,delete w.meter),s(w.key,u[k])||(r(w.key,w.voices),u[k]=w.key,delete w.key),w.title&&(x.abbrevTitle=w.title),s(w.clef,d[k])||(n(w.clef,w.voices),d[k]=w.clef,delete w.clef),s(w.vocalfont,f[k])||(a(w.vocalfont,w.voices,"vocalfont"),f[k]=w.vocalfont,delete w.vocalfont),s(w.gchordfont,p[k])||(a(w.gchordfont,w.voices,"gchordfont"),p[k]=w.gchordfont,delete w.gchordfont),s(w.tripletfont,m[k])||(a(w.tripletfont,w.voices,"tripletfont"),m[k]=w.tripletfont,delete w.tripletfont),s(w.annotationfont,g[k])||(a(w.annotationfont,w.voices,"annotationfont"),g[k]=w.annotationfont,delete w.annotationfont)),w)for(var C=0;C<x.voices.length;C++){var T=x.voices[C],S=w.voices[C];c&&T.push({el_type:"break"}),S&&(x.voices[C]=T.concat(S))}}else{for(var E=0;E<b.staff.length;E++)u[E]=b.staff[E].key,h[E]=b.staff[E].meter,d[E]=b.staff[E].clef;l.push(i(b))}_=!0}else _=!1,l.push(b)}return l}},"./src/edit/abc_editarea.js":function(e){try{if("function"!=typeof window.CustomEvent){var t=function e(t,$){$=$||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,$.bubbles,$.cancelable,$.detail),r};t.prototype=window.Event.prototype,window.CustomEvent=t}}catch($){}var r=function e(t){this.textarea=document.getElementById(t),this.initialText=this.textarea.value,this.isDragging=!1};r.prototype.addSelectionListener=function(e){this.textarea.onmousemove=function(t){this.isDragging&&e.fireSelectionChanged()}},r.prototype.addChangeListener=function(e){this.changelistener=e,this.textarea.onkeyup=function(){e.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,e.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,e.fireChanged()},this.textarea.onchange=function(){e.fireChanged()}},r.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},r.prototype.setSelection=function(e,t){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(e,t);else if(this.textarea.createTextRange){var $=this.textarea.createTextRange();$.collapse(!0),$.moveEnd("character",t),$.moveStart("character",e),$.select()}this.textarea.focus()},r.prototype.getString=function(){return this.textarea.value},r.prototype.setString=function(e){this.textarea.value=e,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},r.prototype.getElem=function(){return this.textarea},e.exports=r},"./src/edit/abc_editor.js":function(e,t,$){var r=$(/*! ../parse/abc_common */ "./src/parse/abc_common.js"),n=$(/*! ../synth/synth-controller */ "./src/synth/synth-controller.js"),a=$(/*! ../synth/supports-audio */ "./src/synth/supports-audio.js"),s=$(/*! ../api/abc_tunebook_svg */ "./src/api/abc_tunebook_svg.js"),i=$(/*! ./abc_editarea */ "./src/edit/abc_editarea.js"),o=function e(t,$){this.abcjsParams=function e(t){var $,r={};if(t.abcjsParams)for($ in t.abcjsParams)t.abcjsParams.hasOwnProperty($)&&(r[$]=t.abcjsParams[$]);if(t.midi_options)for($ in t.midi_options)t.midi_options.hasOwnProperty($)&&(r[$]=t.midi_options[$]);if(t.parser_options)for($ in t.parser_options)t.parser_options.hasOwnProperty($)&&(r[$]=t.parser_options[$]);if(t.render_options)for($ in t.render_options)t.render_options.hasOwnProperty($)&&(r[$]=t.render_options[$]);return r.tablature&&t.warnings_id&&(r.tablature.warnings_id=t.warnings_id),r}($),$.indicate_changed&&(this.indicate_changed=!0),"string"==typeof t?this.editarea=new i(t):this.editarea=t,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),$.canvas_id?this.div=$.canvas_id:$.paper_id?this.div=$.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),"string"==typeof this.div&&(this.div=document.getElementById(this.div)),$.selectionChangeCallback&&(this.selectionChangeCallback=$.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),$.synth&&a()&&(this.synth={el:$.synth.el,cursorControl:$.synth.cursorControl,options:$.synth.options}),$.generate_midi&&(this.generate_midi=$.generate_midi,this.abcjsParams.generateDownload&&("string"==typeof $.midi_download_id?this.downloadMidi=document.getElementById($.midi_download_id):$.midi_download_id&&(this.downloadMidi=$.midi_download_id)),!1!==this.abcjsParams.generateInline&&("string"==typeof $.midi_id?this.inlineMidi=document.getElementById($.midi_id):$.midi_id&&(this.inlineMidi=$.midi_id))),$.warnings_id?"string"==typeof $.warnings_id?this.warningsdiv=document.getElementById($.warnings_id):this.warningsdiv=$.warnings_id:$.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=$.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(e,t){var $,r,n;return $=e,r=t,!((n=$.className).length>0&&(n===r||RegExp("(^|\\s)"+r+"(\\s|$)").test(n)))&&(e.className+=(e.className?" ":"")+t),e},this.removeClassName=function(e,t){return e.className=r.strip(e.className.replace(RegExp("(^|\\s+)"+t+"(\\s+|$)")," ")),e},this.setReadOnly=function(e){var t="abc_textarea_readonly",$=this.editarea.getElem();e?($.setAttribute("readonly","yes"),this.addClassName($,t)):($.removeAttribute("readonly"),this.removeClassName($,t))}};o.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var e=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(e)}if(this.synth){var t=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new n,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],t,this.synth.options)}},o.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=s(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(e){console.error("ABCJS error: ",e),this.warnings||(this.warnings=[]),this.warnings.push(e.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("<br />"):"No errors"),this.updateSelection(),this.bReentry=!1}},o.prototype.paramChanged=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this.abcjsParams[t]=e[t]);this.currentAbc="",this.fireChanged()},o.prototype.synthParamChanged=function(e){if(this.synth){if(this.synth.options={},e)for(var t in e)e.hasOwnProperty(t)&&(this.synth.options[t]=e[t]);this.currentAbc="",this.fireChanged()}},o.prototype.parseABC=function(){var e=this.editarea.getString();return e===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=e,!0)},o.prototype.updateSelection=function(){var e=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(e.start,e.end)}catch(t){}this.selectionChangeCallback&&this.selectionChangeCallback(e.start,e.end)},o.prototype.fireSelectionChanged=function(){this.updateSelection()},o.prototype.setDirtyStyle=function(e){if(void 0!==this.indicate_changed){var t,$,n,a,s,i,o,c="abc_textarea_dirty",l=this.editarea.getElem();if(e){t=l,$=c,n=t,a=$,(s=n.className).length>0&&(s===a||RegExp("(^|\\s)"+a+"(\\s|$)").test(s))||(t.className+=(t.className?" ":"")+$)}else i=l,o=c,i.className=r.strip(i.className.replace(RegExp("(^|\\s+)"+o+"(\\s+|$)")," "))}},o.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var e=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){e.modelChanged()},300);var t=this.isDirty();this.wasDirty!==t&&(this.wasDirty=t,this.setDirtyStyle(t)),this.onchangeCallback&&this.onchangeCallback(this)}},o.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},o.prototype.isDirty=function(){return void 0!==this.indicate_changed&&this.editarea.initialText!==this.editarea.getString()},o.prototype.highlight=function(e,t,$,r,n,a){this.editarea.setSelection(e.startChar,e.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(e.startChar,e.endChar),this.clientClickListener&&this.clientClickListener(e,t,$,r,n,a)},o.prototype.pause=function(e){this.bIsPaused=e,e||this.fireChanged()},o.prototype.millisecondsPerMeasure=function(){return this.synth&&this.synth.synthControl&&this.synth.synthControl.visualObj?this.synth.synthControl.visualObj.millisecondsPerMeasure():0},o.prototype.pauseMidi=function(e){this.midiPause=e,e||this.redrawMidi()},e.exports=o},"./src/midi/abc_midi_create.js":function(e,t,$){var r,n=$(/*! ../synth/abc_midi_renderer */ "./src/synth/abc_midi_renderer.js");(function(){"use strict";function e(e,t,$){for(var r=Object.keys(t),n=0;n<r.length;n++)r[n]=parseFloat(r[n]);r.sort(function(e,t){return e-t});for(var a=0,s=0;s<r.length;s++){var i=t[r[s]];if(r[s]>a){var o=(r[s]-a)*$;e.addRest(o),a=r[s]}for(var c=0;c<i.length;c++){var l=i[c];l.volume?e.startNote(l.pitch,l.volume,l.cents):e.endNote(l.pitch)}}}r=function t($,r){void 0===r&&(r={});var a=$.setUpAudio(r),s=n(),i=$.metaText?$.metaText.title:void 0;i&&i.length>128&&(i=i.substring(0,124)+"...");var o=$.getKeySignature(),c=$.getMeterFraction(),l=a.tempo,_=l/60;8==c.den&&(_=(l=6e4/($.millisecondsPerMeasure()/c.num)/2)/60),s.setGlobalInfo(l,i,o,c);for(var h=0;h<a.tracks.length;h++){s.startTrack();for(var u={},d=0;d<a.tracks[h].length;d++){var f=a.tracks[h][d];switch(f.cmd){case"text":s.setText(f.type,f.text);break;case"program":var p=0;if(r.pan&&r.pan.length>h&&(p=r.pan[h]),128===f.instrument)s.setChannel(9,p),s.setInstrument(0);else if(148==f.instrument)s.setChannelMute(f.channel,p),s.setInstrument(0);else if(f.instrument>128){var m=0;switch(f.instrument){case 129:case 130:case 131:case 132:case 143:m=109;break;case 133:case 134:m=22;break;case 135:m=21;break;case 136:m=52;break;case 137:m=24;break;case 138:case 139:case 140:case 141:m=25;break;case 142:m=117;break;case 144:case 145:case 146:case 147:m=74;break;default:m=0}s.setChannel(f.channel,p),s.setInstrument(m)}else s.setChannel(f.channel,p),s.setInstrument(f.instrument);break;case"note":var g=f.gap*_,v=f.start,b=v+f.duration-g;u[v]||(u[v]=[]),u[v].push({pitch:f.pitch,volume:f.volume,cents:f.cents}),u[b]||(u[b]=[]),u[b].push({pitch:f.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+f.cmd)}}e(s,u,1920),s.endTrack()}return s.getData()}})(),e.exports=r},"./src/parse/abc_common.js":function(e){var t={};t.clone=function(e){var t={};for(var $ in e)e.hasOwnProperty($)&&(t[$]=e[$]);return t},t.cloneArray=function(e){for(var $=[],r=0;r<e.length;r++)$.push(t.clone(e[r]));return $},t.cloneHashOfHash=function(e){var $={};for(var r in e)e.hasOwnProperty(r)&&($[r]=t.clone(e[r]));return $},t.cloneHashOfArrayOfHash=function(e){var $={};for(var r in e)e.hasOwnProperty(r)&&($[r]=t.cloneArray(e[r]));return $},t.strip=function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")},t.startsWith=function(e,t){return 0===e.indexOf(t)},t.endsWith=function(e,t){var $=e.length-t.length;return $>=0&&e.lastIndexOf(t)===$},t.last=function(e){return 0===e.length?null:e[e.length-1]},e.exports=t},"./src/parse/abc_parse.js":function(e,t,$){var r=$(/*! ./abc_common */ "./src/parse/abc_common.js"),n=$(/*! ./abc_parse_directive */ "./src/parse/abc_parse_directive.js"),a=$(/*! ./abc_parse_header */ "./src/parse/abc_parse_header.js"),s=$(/*! ./abc_parse_music */ "./src/parse/abc_parse_music.js"),i=$(/*! ./abc_tokenizer */ "./src/parse/abc_tokenizer.js"),o=$(/*! ./wrap_lines */ "./src/parse/wrap_lines.js"),c=$(/*! ../data/abc_tune */ "./src/data/abc_tune.js"),l=$(/*! ../parse/tune-builder */ "./src/parse/tune-builder.js"),_=function e(){"use strict";var t,$,_,h=new c,u=new l(h),d="",f="";function p(e,t,$){e.positioning||(e.positioning={}),e.positioning[t]=$}function m(e,t,$){e.fonts||(e.fonts={}),e.fonts[t]=$}this.getTune=function(){var e={formatting:h.formatting,lines:h.lines,media:h.media,metaText:h.metaText,metaTextInfo:h.metaTextInfo,version:h.version,addElementToEvents:h.addElementToEvents,addUsefulCallbackInfo:h.addUsefulCallbackInfo,getTotalTime:h.getTotalTime,getTotalBeats:h.getTotalBeats,getBarLength:h.getBarLength,getBeatLength:h.getBeatLength,getBeatsPerMeasure:h.getBeatsPerMeasure,getBpm:h.getBpm,getMeter:h.getMeter,getMeterFraction:h.getMeterFraction,getPickupLength:h.getPickupLength,getKeySignature:h.getKeySignature,getElementFromChar:h.getElementFromChar,makeVoicesArray:h.makeVoicesArray,millisecondsPerMeasure:h.millisecondsPerMeasure,setupEvents:h.setupEvents,setTiming:h.setTiming,setUpAudio:h.setUpAudio,deline:h.deline};return h.lineBreaks&&(e.lineBreaks=h.lineBreaks),h.visualTranspose&&(e.visualTranspose=h.visualTranspose),e};var g={reset:function e(){for(var t in this)this.hasOwnProperty(t)&&"function"!=typeof this[t]&&delete this[t];this.iChar=0,this.key={accidentals:[],root:"none",acc:"",mode:""},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:"treble",verticalPos:0},this.octave=0,this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.partForNextLine={},this.tempoForNextLine=[],this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.ignoredDecorations=[],this.score_is_present=!1,this.inEnding=!1,this.inTie=[],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[],this.freegchord=!1,this.endingHoldOver={}},differentFont:function e(t,$){return this[t].decoration!==$[t].decoration||this[t].face!==$[t].face||this[t].size!==$[t].size||this[t].style!==$[t].style||this[t].weight!==$[t].weight},addFormattingOptions:function e(t,$,r){"note"===r?("auto"!==this.vocalPosition&&p(t,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&p(t,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&p(t,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&p(t,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&p(t,"volumePosition",this.volumePosition),this.differentFont("annotationfont",$)&&m(t,"annotationfont",this.annotationfont),this.differentFont("gchordfont",$)&&m(t,"gchordfont",this.gchordfont),this.differentFont("vocalfont",$)&&m(t,"vocalfont",this.vocalfont),this.differentFont("tripletfont",$)&&m(t,"tripletfont",this.tripletfont)):"bar"===r&&("auto"!==this.dynamicPosition&&p(t,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&p(t,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&p(t,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&p(t,"volumePosition",this.volumePosition),this.differentFont("measurefont",$)&&m(t,"measurefont",this.measurefont),this.differentFont("repeatfont",$)&&m(t,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function e(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var t=0;t<this.inTie.length;t++)if(this.endingHoldOver.inTie.push([]),this.inTie[t])for(var $=0;$<this.inTie[t].length;$++)this.endingHoldOver.inTie[t].push(this.inTie[t][$]);for(var r in this.inTieChord)this.inTieChord.hasOwnProperty(r)&&(this.endingHoldOver.inTieChord[r]=this.inTieChord[r])},restoreStartEndingHoldOvers:function e(){if(this.endingHoldOver.inTie){this.inTie=[],this.inTieChord={};for(var t=0;t<this.endingHoldOver.inTie.length;t++){this.inTie.push([]);for(var $=0;$<this.endingHoldOver.inTie[t].length;$++)this.inTie[t].push(this.endingHoldOver.inTie[t][$])}for(var r in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(r)&&(this.inTieChord[r]=this.endingHoldOver.inTieChord[r])}}},v=function e(t){g.warnings||(g.warnings=[]),g.warnings.push(t)},b=function e(t){g.warningObjects||(g.warningObjects=[]),g.warningObjects.push(t)},y=function e(t){var $=t.replace(/\x12/g," ");return($=($=$.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")},k=function e($,r,n){r||(r=" ");var a=r[n];" "!==a&&a||(a="SPACE");var s=y(r.substring(n-64,n))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+a+"</span>"+y(r.substring(n+1).substring(0,64));v("Music Line:"+t.lineIndex+":"+(n+1)+": "+$+": "+s),b({message:$,line:r,startChar:g.iChar+n,column:n})};this.getWarnings=function(){return g.warnings},this.getWarningObjects=function(){return g.warningObjects};var w=function e($,n){if(n.indexOf("\x12")>=0){d+=n;return}if(n=d+n,d="",!$){k("Can't add words before the first line of music",$,0);return}"-"!==(n=r.strip(n))[n.length-1]&&(n+=" ");for(var a=[],s=0,i=!1,o=function e($){var o=r.strip(n.substring(s,$));if(o=o.replace(/\\([-_*|~])/g,"$1"),s=$+1,o.length>0){i&&(o=o.replace(/~/g," "));var c=n[$];return"_"!==c&&"-"!==c&&(c=" "),a.push({syllable:t.translateString(o),divider:c}),i=!1,!0}return!1},c=!1,l=0;l<n.length;l++){switch(n[l]){case" ":case"\x12":o(l);break;case"-":c||o(l)||!(a.length>0)||(r.last(a).divider="-",a.push({skip:!0,to:"next"}));break;case"_":c||(o(l),a.push({skip:!0,to:"slur"}));break;case"*":c||(o(l),a.push({skip:!0,to:"next"}));break;case"|":c||(o(l),a.push({skip:!0,to:"bar"}));break;case"~":c||(i=!0)}c="\\"===n[l]}$.forEach(function(e){if(0!==a.length){if(a[0].skip){switch(a[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&a.shift();break;case"bar":"bar"===e.el_type&&a.shift()}"bar"!==e.el_type&&(void 0===e.lyric?e.lyric=[{syllable:"",divider:" "}]:e.lyric.push({syllable:"",divider:" "}))}else if("note"===e.el_type&&void 0===e.rest){var t=a.shift();t.syllable&&(t.syllable=t.syllable.replace(/ +/g,"\xa0")),void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}})},x=function e($,n){if(n.indexOf("\x12")>=0){f+=n;return}if(n=f+n,f="",!$){k("Can't add symbols before the first line of music",$,0);return}"-"!==(n=r.strip(n))[n.length-1]&&(n+=" ");for(var a=[],s=0,i=!1,o=function e($){var o=r.strip(n.substring(s,$));if(s=$+1,o.length>0){i&&(o=o.replace(/~/g," "));var c=n[$];return"_"!==c&&"-"!==c&&(c=" "),a.push({syllable:t.translateString(o),divider:c}),i=!1,!0}return!1},c=0;c<n.length;c++)switch(n[c]){case" ":case"\x12":o(c);break;case"-":!o(c)&&a.length>0&&(r.last(a).divider="-",a.push({skip:!0,to:"next"}));break;case"_":o(c),a.push({skip:!0,to:"slur"});break;case"*":o(c),a.push({skip:!0,to:"next"});break;case"|":o(c),a.push({skip:!0,to:"bar"});break;case"~":i=!0}$.forEach(function(e){if(0!==a.length){if(a[0].skip)switch(a[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&a.shift();break;case"bar":"bar"===e.el_type&&a.shift()}else if("note"===e.el_type&&void 0===e.rest){var t=a.shift();void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}})},C=function e(t){if(r.startsWith(t,"%%")){var a=n.addDirective(t.substring(2));a&&k(a,t,2);return}var s=t.indexOf("%");if(s>=0&&(t=t.substring(0,s)),0!==(t=t.replace(/\s+$/,"")).length){if(d){w(u.getCurrentVoice(),t.substring(2));return}if(f){x(u.getCurrentVoice(),t.substring(2));return}if(t.length<2||":"!==t[1]||_.lineContinuation){_.parseMusic(t);return}var i=$.parseHeader(t);i.regular&&_.parseMusic(t),i.newline&&_.startNewLine(),i.words&&w(u.getCurrentVoice(),t.substring(2)),i.symbols&&x(u.getCurrentVoice(),t.substring(2))}};function T(e,t){e.push({el_type:"hint"});for(var $=0;$<t.length;$++){var n=t[$],a=r.clone(n);if(e.push(a),"bar"===n.el_type)return}}function S(e,t){for(var $=0;$<e.length;$++){var r=e[$],n=t[$];if(n)for(var a=0;a<n.voices.length;a++){var s=n.voices[a],i=r.voices[a];i&&T(i,s)}}}this.parse=function(e,c,l){c||(c={}),l||(l=0),h.reset();var p=(e=e.replace(/\r\n?/g,"\n")+"\n").split("\n\\");if(p.length>1){for(var m=1;m<p.length;m++)for(;p[m].length>0&&"\n"!==p[m][0];)p[m]=p[m].substr(1),p[m-1]+=" ";e=p.join(" ")}var v=(e=e.replace(/\\([ \t]*)(%.*)*\n/g,function(e,t,$){var r=$?Array($.length+1).join(" "):"";return t+"\x12"+r+"\n"})).split("\n");0===r.last(v).length&&v.pop(),t=new i(v,g),$=new a(t,k,g,h,u),_=new s(t,k,g,h,u,$),c.print&&(h.media="print"),g.reset(),g.iChar=l,c.visualTranspose?(g.globalTranspose=parseInt(c.visualTranspose),0===g.globalTranspose?g.globalTranspose=void 0:u.setVisualTranspose(c.visualTranspose)):g.globalTranspose=void 0,c.lineBreaks&&(g.lineBreaks=c.lineBreaks),$.reset(t,k,g,h);try{c.format&&n.globalFormatting(c.format);for(var b=t.nextLine();b;){if(c.header_only&&!1===g.is_in_header||c.stop_on_warning&&g.warnings)throw"normal_abort";var y=g.is_in_header;C(b),y&&!g.is_in_header&&(u.setRunningFont("annotationfont",g.annotationfont),u.setRunningFont("gchordfont",g.gchordfont),u.setRunningFont("tripletfont",g.tripletfont),u.setRunningFont("vocalfont",g.vocalfont)),b=t.nextLine()}d&&w(u.getCurrentVoice(),""),f&&x(u.getCurrentVoice(),""),g.openSlurs=u.cleanUp(g.barsperstaff,g.staffnonote,g.openSlurs)}catch(T){if("normal_abort"!==T)throw T}var E=792,A=612;switch(g.papersize){case"legal":E=1008,A=612;break;case"A4":E=842.4,A=597.6}if(g.landscape){var B=E;E=A,A=B}h.formatting.pagewidth||(h.formatting.pagewidth=A),h.formatting.pageheight||(h.formatting.pageheight=E),c.hint_measures&&function e(){for(var t=0;t<h.lines.length;t++){var $=h.lines[t].staff;if($){for(var r=t+1;r<h.lines.length&&void 0===h.lines[r].staff;)r++;r<h.lines.length&&S($,h.lines[r].staff)}}}(),o.wrapLines(h,g.lineBreaks,g.barNumbers)}};e.exports=_},"./src/parse/abc_parse_book.js":function(e,t,$){var r=$(/*! ./abc_common */ "./src/parse/abc_common.js"),n=function e(t){"use strict";for(var $="",n=t.match(/(\s*)/),a=(t=r.strip(t)).split("\nX:"),s=1;s<a.length;s++)a[s]="X:"+a[s];var i=n?n[0].length:0,o=[];a.forEach(function(e){o.push({abc:e,startPos:i}),i+=e.length+1}),o.length>1&&!r.startsWith(o[0].abc,"X:")&&o.shift().abc.split("\n").forEach(function(e){r.startsWith(e,"%%")&&($+=e+"\n")});var c=$;return o.forEach(function(e){var t=e.abc.indexOf("\n\n");t>0&&(e.abc=e.abc.substring(0,t)),e.pure=e.abc,e.abc=$+e.abc,e.title="";var n=e.pure.split("T:");n.length>1&&(n=n[1].split("\n"),e.title=r.strip(n[0]));var a=e.pure.substring(2,e.pure.indexOf("\n"));e.id=r.strip(a)}),{header:c,tunes:o}};e.exports=n},"./src/parse/abc_parse_directive.js":function(e,t,$){var r=$(/*! ./abc_common */ "./src/parse/abc_common.js"),n={};(function(){"use strict";n.initialize=function(r,n,i,o,c){e=r,t=n,$=i,a=o,s=c,$.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},$.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},$.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},$.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},$.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},$.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},$.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},$.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},$.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},$.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},$.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},a.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},a.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},a.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},a.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},a.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},a.formatting.tablabelfont={face:'"Trebuchet MS"',size:14,weight:"normal",style:"normal",decoration:"none"},a.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},a.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},a.formatting.annotationfont=$.annotationfont,a.formatting.gchordfont=$.gchordfont,a.formatting.historyfont=$.historyfont,a.formatting.infofont=$.infofont,a.formatting.measurefont=$.measurefont,a.formatting.partsfont=$.partsfont,a.formatting.repeatfont=$.repeatfont,a.formatting.textfont=$.textfont,a.formatting.tripletfont=$.tripletfont,a.formatting.vocalfont=$.vocalfont,a.formatting.wordsfont=$.wordsfont};var e,t,$,a,s,i={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},o=function e(t){switch(t){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}},c=function e($,r,n,a,s){function c(){var e=parseInt($[0].token);return($.shift(),r)?0===$.length?{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:e}:1===$.length&&"box"===$[0].token&&i[s]?{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:e,box:!0}:(t("Extra parameters in font definition.",n,a),{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:e}):(t("Can't set just the size of the font since there is no default value.",n,a),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:e})}if("*"===$[0].token){if($.shift(),"number"===$[0].type)return c();t("Expected font size number after *.",n,a)}if("number"===$[0].type)return c();for(var l,_=[],h="normal",u="normal",d="none",f=!1,p="face",m=!1;$.length;){var g=$.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?_.length>0&&"-"===g.token?(m=!0,_[_.length-1]=_[_.length-1]+g.token):m?(m=!1,_[_.length-1]=_[_.length-1]+g.token):_.push(g.token):"number"===g.type?(l?t("Font size specified twice in font definition.",n,a):l=g.token,p="modifier"):"bold"===v?h="bold":"italic"===v?u="italic":"underline"===v?d="underline":"box"===v?(i[s]?f=!0:t('This font style doesn\'t support "box"',n,a),p="finished"):"utf"===v?(g=$.shift(),p="size"):t("Unknown parameter "+g.token+" in font definition.",n,a);break;case"size":"number"===g.type?l?t("Font size specified twice in font definition.",n,a):l=g.token:t("Expected font size in font definition.",n,a),p="modifier";break;case"modifier":"bold"===v?h="bold":"italic"===v?u="italic":"underline"===v?d="underline":"box"===v?(i[s]?f=!0:t('This font style doesn\'t support "box"',n,a),p="finished"):t("Unknown parameter "+g.token+" in font definition.",n,a);break;case"finished":t('Extra characters found after "box" in font definition.',n,a)}}void 0===l?r?l=r.size:(t("Must specify the size of the font since there is no default value.",n,a),l=12):l=parseFloat(l),""===(_=_.join(" "))&&(r?_=r.face:(t("Must specify the name of the font since there is no default value.",n,a),_="sans-serif"));var b=o(_),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=l,f&&(y.box=!0),y):(y.face=_,y.weight=h,y.style=u,y.decoration=d,y.size=l,f&&(y.box=!0),y)},l=function e(t,r,n){return 0===r.length?'Directive "'+t+'" requires a font as a parameter.':($[t]=c(r,$[t],n,0,t),$.is_in_header&&(a.formatting[t]=$[t]),null)},_=function e(t,$){var r="";$.forEach(function(e){r+=e.token});var n=parseFloat(r);if(isNaN(n)||0===n)return'Directive "'+t+'" requires a number as a parameter.';a.formatting.scale=n},h=["acoustic-bass-drum","bass-drum-1","side-stick","acoustic-snare","hand-clap","electric-snare","low-floor-tom","closed-hi-hat","high-floor-tom","pedal-hi-hat","low-tom","open-hi-hat","low-mid-tom","hi-mid-tom","crash-cymbal-1","high-tom","ride-cymbal-1","chinese-cymbal","ride-bell","tambourine","splash-cymbal","cowbell","crash-cymbal-2","vibraslap","ride-cymbal-2","hi-bongo","low-bongo","mute-hi-conga","open-hi-conga","low-conga","high-timbale","low-timbale","high-agogo","low-agogo","cabasa","maracas","short-whistle","long-whistle","short-guiro","long-guiro","claves","hi-wood-block","low-wood-block","mute-cuica","open-cuica","mute-triangle","open-triangle"],u=function e(t){var $=t.split(/\s+/);if(2!==$.length&&3!==$.length)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var r=$[0],n=parseInt($[1],10);if((isNaN(n)||n<35||n>81)&&$[1]&&(n=h.indexOf($[1].toLowerCase())+35),isNaN(n)||n<35||n>81)return{error:'Expected drum name, received "'+$[1]+'"'};var a={sound:n};return 3===$.length&&(a.noteHead=$[2]),{key:r,value:a}},d=function t($,r){var n=e.getMeasurement(r);return 0===n.used||0!==r.length?{error:'Directive "'+$+'" requires a measurement as a parameter.'}:n.value},f=function t($,r){var n=e.getMeasurement(r);return 0===n.used||0!==r.length?'Directive "'+$+'" requires a measurement as a parameter.':(a.formatting[$]=n.value,null)},p=function e(t,r,n,a,s){if(1!==n.length||"number"!==n[0].type)return'Directive "'+r+'" requires a number as a parameter.';var i=n[0].intt;return void 0!==a&&i<a?'Directive "'+r+'" requires a number greater than or equal to '+a+" as a parameter.":void 0!==s&&i>s?'Directive "'+r+'" requires a number less than or equal to '+s+" as a parameter.":($[t]=i,null)},m=function e(t,r,n){if(1===n.length&&("true"===n[0].token||"false"===n[0].token))return $[t]="true"===n[0].token,null;var a=p(t,r,n,0,1);return null!==a?a:($[t]=1===$[t],null)},g=function e(t,r,n,a){if(1!==n.length)return'Directive "'+r+'" requires one of [ '+a.join(", ")+" ] as a parameter.";for(var s=n[0].token,i=!1,o=0;!i&&o<a.length;o++)a[o]===s&&(i=!0);return i?($[t]=s,null):'Directive "'+r+'" requires one of [ '+a.join(", ")+" ] as a parameter."},v=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],b=["ptstress","beatstring","abctt:strum_chords"],y=["bassvol","chordvol","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","vol","volinc","abctt:boomchick_fraction","abctt:boom_fraction","abctt:chick_fraction","abctt:strum_chords_divider","abctt:swing","swing","gchordbars"],k=["program"],w=["bassprog","chordprog"],x=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],C=["beat"],T=["drone"],S=["portamento"],E=["expand","grace","trim"],A=["drum","chordname"],B=["abctt:gchordstress","abctt:gchorddurationscale","gchordstress","gchordduration"],N=["gchord"],P=["abctt:boomchick"],M=function e($,r,n){var a=$.shift().token,i=[];if(v.indexOf(a)>=0)0!==$.length&&t("Unexpected parameter in MIDI "+a,n,0);else if(b.indexOf(a)>=0)1!==$.length?t("Expected one parameter in MIDI "+a,n,0):i.push($[0].token),"abctt:strum_chords"==a&&(a="strum_chords");else if(y.indexOf(a)>=0)"abctt:boomchick_fraction"==a?a="boomchick_fraction":"abctt:boom_fraction"==a?a="boom_fraction":"abctt:chick_fraction"==a?a="chick_fraction":"abctt:strum_chords_divider"==a?a="strum_chords_divider":"abctt:swing"==a&&(a="abcttswing"),1!==$.length?t("Expected one parameter in MIDI "+a,n,0):"number"!==$[0].type||void 0==$[0].intt?t("Expected one integer parameter in MIDI "+a,n,0):i.push($[0].intt);else if(k.indexOf(a)>=0)"program"==a&&1==$.length&&"alpha"==$[0].type&&"mute"==$[0].token.toLowerCase()&&($[0].type="number",$[0].token="148",$[0].intt=148,$[0].floatt=148,$[0].continueId=!1,$[0].start=8,$[0].end=11),1!==$.length&&2!==$.length?t("Expected one or two parameters in MIDI "+a,n,0):"number"!==$[0].type?t("Expected integer parameter in MIDI "+a,n,0):2===$.length&&"number"!==$[1].type?t("Expected integer parameter in MIDI "+a,n,0):i.push($[0].intt);else if(x.indexOf(a)>=0)2!==$.length?t("Expected two parameters in MIDI "+a,n,0):"number"!==$[0].type||"number"!==$[1].type?t("Expected two integer parameters in MIDI "+a,n,0):(i.push($[0].intt),i.push($[1].intt));else if(S.indexOf(a)>=0)2!==$.length?t("Expected two parameters in MIDI "+a,n,0):"alpha"!==$[0].type||"number"!==$[1].type?t("Expected one string and one integer parameters in MIDI "+a,n,0):(i.push($[0].token),i.push($[1].intt));else if("drummap"===a)2===$.length&&"alpha"===$[0].type&&"number"===$[1].type?(r.formatting||(r.formatting={}),r.formatting.midi||(r.formatting.midi={}),r.formatting.midi.drummap||(r.formatting.midi.drummap={}),r.formatting.midi.drummap[$[0].token]=$[1].intt,i=r.formatting.midi.drummap):3===$.length&&"punct"===$[0].type&&"alpha"===$[1].type&&"number"===$[2].type?(r.formatting||(r.formatting={}),r.formatting.midi||(r.formatting.midi={}),r.formatting.midi.drummap||(r.formatting.midi.drummap={}),r.formatting.midi.drummap[$[0].token+$[1].token]=$[2].intt,i=r.formatting.midi.drummap):t("Expected one note name and one integer parameter in MIDI "+a,n,0);else if(E.indexOf(a)>=0)3!==$.length?t("Expected fraction parameter in MIDI "+a,n,0):"number"!==$[0].type||"/"!==$[1].token||"number"!==$[2].type?t("Expected fraction parameter in MIDI "+a,n,0):(i.push($[0].intt),i.push($[2].intt));else if(C.indexOf(a)>=0)4!==$.length?t("Expected four parameters in MIDI "+a,n,0):"number"!==$[0].type||"number"!==$[1].type||"number"!==$[2].type||"number"!==$[3].type?t("Expected four integer parameters in MIDI "+a,n,0):(i.push($[0].intt),i.push($[1].intt),i.push($[2].intt),i.push($[3].intt));else if(T.indexOf(a)>=0)5!==$.length?t("Expected five parameters in MIDI "+a,n,0):"number"!==$[0].type||"number"!==$[1].type||"number"!==$[2].type||"number"!==$[3].type||"number"!==$[4].type?t("Expected five integer parameters in MIDI "+a,n,0):(i.push($[0].intt),i.push($[1].intt),i.push($[2].intt),i.push($[3].intt),i.push($[4].intt));else if(k.indexOf(a)>=0)1!==$.length||4!==$.length?t("Expected one or two parameters in MIDI "+a,n,0):"number"!==$[0].type?t("Expected integer parameter in MIDI "+a,n,0):4===$.length?("octave"!==$[1].token&&t("Expected octave parameter in MIDI "+a,n,0),"="!==$[2].token&&t("Expected octave parameter in MIDI "+a,n,0),"number"!==$[3].type&&t("Expected integer parameter for octave in MIDI "+a,n,0)):(i.push($[0].intt),4===$.length&&i.push($[3].intt));else if(A.indexOf(a)>=0){if($.length<2)t("Expected string parameter and at least one integer parameter in MIDI "+a,n,0);else if("alpha"!==$[0].type)t("Expected string parameter and at least one integer parameter in MIDI "+a,n,0);else{var o=$.shift();for(i.push(o.token);$.length>0;)"number"!==(o=$.shift()).type&&t("Expected integer parameter in MIDI "+a,n,0),i.push(o.intt)}}else if(N.indexOf(a)>=0){if($.length>0){var o=$.shift();if(i.push(o.token),$.length>0)for(;$.length>0;)"number"!==(o=$.shift()).type&&t("Expected integer parameter in MIDI "+a,n,0),i.push(o.intt)}}else if(P.indexOf(a)>=0){if($.length<4)t("Expected time signature and abctt:boomchick string in MIDI "+a,n,0);else if("number"!==$[0].type||"/"!==$[1].token||"number"!==$[2].type||"alpha"!==$[3].type)t("Expected time signature and abctt:boomchick string in the MIDI "+a,n,0);else{var c="",l=$.length;c+=$.shift().token,c+=$.shift().token,c+=$.shift().token,c+=" ",c+=$.shift().token,5==l&&(c+=" ",c+=$.shift().token),i.push(c),a="boomchick"}}else if(w.indexOf(a)>=0){if("chordprog"==a&&1==$.length&&"alpha"==$[0].type&&"mute"==$[0].token.toLowerCase()?($[0].type="number",$[0].token="148",$[0].intt=148,$[0].floatt=148,$[0].continueId=!1,$[0].start=10,$[0].end=13):"bassprog"==a&&1==$.length&&"alpha"==$[0].type&&"mute"==$[0].token.toLowerCase()&&($[0].type="number",$[0].token="148",$[0].intt=148,$[0].floatt=148,$[0].continueId=!1,$[0].start=9,$[0].end=12),1!==$.length&&2!==$.length)t("Expected one or two parameters in MIDI "+a,n,0);else if("number"!==$[0].type)t("Expected integer parameter in MIDI "+a,n,0);else if(2===$.length&&"alpha"!==$[1].type)t("Expected alpha parameter in MIDI "+a,n,0);else if(i.push($[0].intt),2===$.length){var _=$[1].token;-1!=_.indexOf("octave=")?(_=parseInt(_=_.replace("octave=","")),isNaN(_)||(_<-1&&(_=-1),_>3&&(_=3),i.push(_))):t("Expected octave= in MIDI")}}else if(B.indexOf(a)>=0){if($.length<1)t("Expected least one float parameter in MIDI "+a,n,0);else{for(var h=[];$.length>0;)"number"!==(o=$.shift()).type&&t("Expected number parameter in MIDI "+a,n,0),h.push(o.floatt);"abctt:gchordstress"==a?a="gchordstress":"abctt:gchorddurationscale"==a&&(a="gchordduration"),i.push(h)}}s.hasBeginMusic()?s.appendElement("midi",-1,-1,{cmd:a,params:i}):(void 0===r.formatting.midi&&(r.formatting.midi={}),r.formatting.midi[a]=i)};n.parseFontChangeLine=function(e){var t=e.split("$");if(t.length>1&&$.setfont){for(var r=[{text:t[0]}],n=1;n<t.length;n++)"0"===t[n][0]?r.push({text:t[n].substring(1)}):"1"===t[n][0]&&$.setfont[1]?r.push({font:$.setfont[1],text:t[n].substring(1)}):"2"===t[n][0]&&$.setfont[2]?r.push({font:$.setfont[2],text:t[n].substring(1)}):"3"===t[n][0]&&$.setfont[3]?r.push({font:$.setfont[3],text:t[n].substring(1)}):"4"===t[n][0]&&$.setfont[4]?r.push({font:$.setfont[4],text:t[n].substring(1)}):r[r.length-1].text+="$"+t[n];if(r.length>1)return r}return e};var L=["auto","above","below","hidden"];function D(e){if(0===e.length)return{value:1};if(1===e.length){if("number"===e[0].type){if(e[0].floatt>=0||e[0].floatt<=1)return{value:e[0].floatt}}else if("false"===e[0].token)return{value:0};else if("true"===e[0].token)return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+e[0].token+")"}}n.addDirective=function(i){var o=e.tokenize(i,0,i.length);if(0===o.length||"alpha"!==o[0].type)return null;var h=i.substring(i.indexOf(o[0].token)+o[0].token.length);h=e.stripComment(h);var v=o.shift().token.toLowerCase(),b="";switch(v){case"noexpandtowidest":a.formatting.noexpandtowidest=!0;break;case"bagpipes":a.formatting.bagpipes=!0;break;case"flatbeams":a.formatting.flatbeams=!0;break;case"jazzchords":a.formatting.jazzchords=!0;break;case"germanAlphabet":a.formatting.germanAlphabet=!0;break;case"landscape":$.landscape=!0;break;case"papersize":$.papersize=h;break;case"graceslurs":if(1!==o.length)return"Directive graceslurs requires one parameter: 0 or 1";if("0"===o[0].token||"false"===o[0].token)a.formatting.graceSlurs=!1;else{if("1"!==o[0].token&&"true"!==o[0].token)return"Directive graceslurs requires one parameter: 0 or 1 (received "+o[0].token+")";a.formatting.graceSlurs=!0}break;case"lineThickness":var y=D(o);if(void 0!==y.value&&(a.formatting.lineThickness=y.value),y.error)return y.error;break;case"stretchlast":var k=D(o);if(void 0!==k.value&&(a.formatting.stretchlast=k.value),k.error)return k.error;break;case"titlecaps":$.titlecaps=!0;break;case"titleleft":a.formatting.titleleft=!0;break;case"measurebox":a.formatting.measurebox=!0;break;case"vocal":return g("vocalPosition",v,o,L);case"dynamic":return g("dynamicPosition",v,o,L);case"gchord":return g("chordPosition",v,o,L);case"ornament":return g("ornamentPosition",v,o,L);case"volume":return g("volumePosition",v,o,L);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return f(v,o);case"voicescale":if(1!==o.length||"number"!==o[0].type)return"voicescale requires one float as a parameter";var w=o.shift();$.currentVoice&&($.currentVoice.scale=w.floatt,s.changeVoiceScale($.currentVoice.scale));break;case"voicecolor":if(1!==o.length)return"voicecolor requires one string as a parameter";var x=o.shift();$.currentVoice&&($.currentVoice.color=x.token,s.changeVoiceColor($.currentVoice.color));break;case"vskip":var C=Math.round(d(v,o));if(C.error)return C.error;s.addSpacing(C);break;case"scale":_(v,o);break;case"sep":if(0===o.length)s.addSeparator(14,14,85,{startChar:$.iChar,endChar:$.iChar+5});else{var T=e.getMeasurement(o);if(0===T.used)return'Directive "'+v+'" requires 3 numbers: space above, space below, length of line';var S=T.value;if(0===(T=e.getMeasurement(o)).used)return'Directive "'+v+'" requires 3 numbers: space above, space below, length of line';var E=T.value;if(0===(T=e.getMeasurement(o)).used||0!==o.length)return'Directive "'+v+'" requires 3 numbers: space above, space below, length of line';var A=T.value;s.addSeparator(S,E,A,{startChar:$.iChar,endChar:$.iChar+h.length})}break;case"barsperstaff":if(null!==(b=p("barsperstaff",v,o)))return b;break;case"staffnonote":if(1!==o.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===o[0].token)$.staffnonote=!0;else{if("1"!==o[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+o[0].token+")";$.staffnonote=!1}break;case"printtempo":if(null!==(b=m("printTempo",v,o)))return b;break;case"partsbox":if(null!==(b=m("partsBox",v,o)))return b;$.partsfont.box=$.partsBox;break;case"freegchord":if(null!==(b=m("freegchord",v,o)))return b;break;case"measurenb":case"barnumbers":if(null!==(b=p("barNumbers",v,o)))return b;break;case"setbarnb":if(1!==o.length||"number"!==o[0].type)return"Directive setbarnb requires a number as a parameter.";$.currBarNumber=s.setBarNumberImmediate(o[0].intt);break;case"begintext":var B="";for(J=e.nextLine();J&&0!==J.indexOf("%%endtext");)r.startsWith(J,"%%")?B+=J.substring(2)+"\n":B+=J+"\n",J=e.nextLine();s.addText(B,{startChar:$.iChar,endChar:$.iChar+B.length+7});break;case"continueall":$.continueall=!0;break;case"beginps":for(J=e.nextLine();J&&0!==J.indexOf("%%endps");)e.nextLine();t("Postscript ignored",i,0);break;case"deco":h.length>0&&$.ignoredDecorations.push(h.substring(0,h.indexOf(" "))),t("Decoration redefinition ignored",i,0);break;case"text":var N=e.translateString(h);s.addText(n.parseFontChangeLine(N),{startChar:$.iChar,endChar:$.iChar+h.length+7});break;case"center":var P=e.translateString(h);s.addCentered(n.parseFontChangeLine(P));break;case"font":break;case"setfont":var O=e.tokenize(h,0,h.length);if(O.length>=4&&"-"===O[0].token&&"number"===O[1].type){var z=parseInt(O[1].token);z>=1&&z<=4&&($.setfont||($.setfont=[]),O.shift(),O.shift(),$.setfont[z]=c(O,$.setfont[z],i,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return l(v,o,i);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":case"tablabelfont":case"tabnumberfont":case"tabgracefont":return U=v,X=o,K=i,0===X.length?'Directive "'+U+'" requires a font as a parameter.':(a.formatting[U]=c(X,a.formatting[U],K,0,U),null);case"barlabelfont":case"barnumberfont":case"barnumfont":return l("measurefont",o,i);case"staves":case"score":$.score_is_present=!0;for(var F=!1,H=!1,I=!1,q=!1,G=!1,R=!1,V=!1,Y=function e(){if(V=!0,Q){var t="start";Q.staffNum>0&&("start"===$.staves[Q.staffNum-1].connectBarLines||"continue"===$.staves[Q.staffNum-1].connectBarLines)&&(t="continue"),$.staves[Q.staffNum].connectBarLines=t}};o.length;){var W=o.shift();switch(W.token){case"(":F?t("Can't nest parenthesis in %%score",i,W.start):(F=!0,q=!0);break;case")":!F||q?t("Unexpected close parenthesis in %%score",i,W.start):F=!1;break;case"[":H?t("Can't nest brackets in %%score",i,W.start):(H=!0,G=!0);break;case"]":!H||G?t("Unexpected close bracket in %%score",i,W.start):(H=!1,$.staves[Q.staffNum].bracket="end");break;case"{":I?t("Can't nest braces in %%score",i,W.start):(I=!0,R=!0);break;case"}":!I||R?t("Unexpected close brace in %%score",i,W.start):(I=!1,$.staves[Q.staffNum].brace="end");break;case"|":Y();break;default:for(var U,X,K,J,Q,Z="";"alpha"===W.type||"number"===W.type;)if(Z+=W.token,W.continueId)W=o.shift();else break;(function e(t,n,a,s,i){(n||0===$.staves.length)&&$.staves.push({index:$.staves.length,numVoices:0});var o=r.last($.staves);void 0!==a&&void 0===o.bracket&&(o.bracket=a),void 0!==s&&void 0===o.brace&&(o.brace=s),i&&(o.connectBarLines="end"),void 0===$.voices[t]&&($.voices[t]={staffNum:o.index,index:o.numVoices},o.numVoices++)})(Z,!F||q,G?"start":H?"continue":void 0,R?"start":I?"continue":void 0,V),q=!1,G=!1,R=!1,V=!1,Q=$.voices[Z],"staves"===v&&Y()}}break;case"newpage":var ee=e.getInt(h);s.addNewPage(0===ee.digits?-1:ee.value);break;case"abc":var et=h.split(" ");switch(et[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var e$=et.shift();s.addMetaText(v+e$,et.join(" "),{startChar:$.iChar,endChar:$.iChar+h.length+5});break;default:return"Unknown directive: "+v+et[0]}break;case"header":case"footer":var er=e.getMeat(h,0,h.length);'"'===(er=h.substring(er.start,er.end))[0]&&'"'===er[er.length-1]&&(er=er.substring(1,er.length-1));var en=er.split(" "),ea={};ea=1===en.length?{left:"",center:en[0],right:""}:2===en.length?{left:en[0],center:en[1],right:""}:{left:en[0],center:en[1],right:en[2]},en.length>3&&t("Too many tabs in "+v+": "+en.length+" found.",h,0),s.addMetaTextObj(v,ea,{startChar:$.iChar,endChar:$.iChar+i.length});break;case"midi":var es=e.tokenize(h,0,h.length,!0);es.length>0&&"="===es[0].token&&es.shift(),0===es.length?t("Expected midi command",h,0):M(es,a,h);break;case"percmap":var ei=u(h);ei.error?t(ei.error,i,8):(a.formatting.percmap||(a.formatting.percmap={}),a.formatting.percmap[ei.key]=ei.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":a.formatting[v]=h;break;default:return"Unknown directive: "+v}return null},n.globalFormatting=function(r){for(var n in r)if(r.hasOwnProperty(n)){var s,i=""+r[n],o=e.tokenize(i,0,i.length);switch(n){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":case"tablabelfont":case"tabnumberfont":case"tabgracefont":l(n,o,i);break;case"scale":_(n,o);break;case"partsbox":null!==(s=m("partsBox",n,o))&&t(s),$.partsfont.box=$.partsBox;break;case"freegchord":null!==(s=m("freegchord",n,o))&&t(s);break;case"fontboxpadding":(1!==o.length||"number"!==o[0].type)&&t('Directive "'+n+'" requires a number as a parameter.'),a.formatting.fontboxpadding=o[0].floatt;break;case"stretchlast":var c=D(o);if(void 0!==c.value&&(a.formatting.stretchlast=c.value),c.error)return c.error;break;default:t("Formatting directive unrecognized: ",n,0)}}}})(),e.exports=n},"./src/parse/abc_parse_header.js":function(e,t,$){var r=$(/*! ./abc_common */ "./src/parse/abc_common.js"),n=$(/*! ./abc_parse_directive */ "./src/parse/abc_parse_directive.js"),a=$(/*! ./abc_parse_key_voice */ "./src/parse/abc_parse_key_voice.js"),s=function e(t,$,s,i,o){this.reset=function(e,t,$,r){a.initialize(e,t,$,r,o),n.initialize(e,t,$,r,o)},this.reset(t,$,s,i),this.setTitle=function(e){if(s.hasMainTitle)o.addSubtitle(t.translateString(t.stripComment(e)),{startChar:s.iChar,endChar:s.iChar+e.length+2});else{var $=t.translateString(t.theReverser(t.stripComment(e)));s.titlecaps&&($=$.toUpperCase()),o.addMetaText("title",$,{startChar:s.iChar,endChar:s.iChar+e.length+2}),s.hasMainTitle=!0}},this.setMeter=function(e){if("C"===(e=t.stripComment(e)))return!0===s.havent_set_length&&(s.default_length=.125,s.havent_set_length=!1),{type:"common_time"};if("C|"===e)return!0===s.havent_set_length&&(s.default_length=.125,s.havent_set_length=!1),{type:"cut_time"};if("o"===e)return!0===s.havent_set_length&&(s.default_length=.125,s.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===e)return!0===s.havent_set_length&&(s.default_length=.125,s.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===e)return!0===s.havent_set_length&&(s.default_length=.125,s.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};else if("c."===e)return!0===s.havent_set_length&&(s.default_length=.125,s.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};else if(0===e.length||"none"===e.toLowerCase())!0===s.havent_set_length&&(s.default_length=.125,s.havent_set_length=!1);else{var r=t.tokenize(e,0,e.length);try{var n=function e(){var t={value:0,num:""},$=r.shift();for("("===$.token&&($=r.shift());;){if("number"!==$.type)throw"Expected top number of meter";if(t.value+=parseInt($.token),t.num+=$.token,0===r.length||"/"===r[0].token)break;if($=r.shift(),")"===$.token){if(0===r.length||"/"===r[0].token)return t;throw"Unexpected paren in meter"}if("."!==$.token&&"+"!==$.token||(t.num+=$.token,0===r.length))throw"Expected top number of meter";$=r.shift()}return t};if(0===r.length)throw"Expected meter definition in M: line";for(var a={type:"specified",value:[]},i=0;;){var o=function e(){var t=n();if(0===r.length)return t;var $=r.shift();if("/"!==$.token)throw"Expected slash in meter";if($=r.shift(),"number"!==$.type)throw"Expected bottom number of meter";return t.den=$.token,t.value=t.value/parseInt(t.den),t}();i+=o.value;var c={num:o.num};if(void 0!==o.den&&(c.den=o.den),a.value.push(c),0===r.length)break}return!0===s.havent_set_length&&(s.default_length=i<.75?.0625:.125,s.havent_set_length=!1),a}catch(l){$(l,e,0)}}return null},this.calcTempo=function(e){var t=1/4;s.meter&&"specified"===s.meter.type?t=1/parseInt(s.meter.value[0].den):s.origMeter&&"specified"===s.origMeter.type&&(t=1/parseInt(s.origMeter.value[0].den));for(var $=0;$<e.duration;$++)e.duration[$]=t*e.duration[$];return e},this.resolveTempo=function(){s.tempo&&(this.calcTempo(s.tempo),i.metaText.tempo=s.tempo,delete s.tempo)},this.addUserDefinition=function(e,t,n){var a=e.indexOf("=",t);if(-1===a){$("Need an = in a macro definition",e,t);return}var i=r.strip(e.substring(t,a)),o=r.strip(e.substring(a+1));if(1!==i.length){$("Macro definitions can only be one character",e,t);return}if(-1==="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(i)){$("Macro definitions must be H-Y, h-w, or tilde",e,t);return}if(0===o.length){$("Missing macro definition",e,t);return}void 0===s.macros&&(s.macros={}),s.macros[i]=o},this.setDefaultLength=function(e,t,$){var r=e.substring(t,$).replace(/ /g,"").split("/");if(2===r.length){var n=parseInt(r[0]),a=parseInt(r[1]);a>0&&(s.default_length=n/a,s.havent_set_length=!1)}else 1===r.length&&"1"===r[0]&&(s.default_length=1,s.havent_set_length=!1)};var c={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(e,r,n,a){try{var i=t.tokenize(e,r,n);if(0===i.length)throw"Missing parameter in Q: field";var o={startChar:a+r-2,endChar:a+n},l=!0,_=i.shift();if("quote"===_.type&&(o.preString=_.token,_=i.shift(),0===i.length))return c[o.preString.toLowerCase()]&&(o.bpm=c[o.preString.toLowerCase()],o.suppressBpm=!0),{type:"immediate",tempo:o};if("alpha"===_.type&&"C"===_.token){if(0===i.length)throw"Missing tempo after C in Q: field";if(_=i.shift(),"punct"===_.type&&"="===_.token){if(0===i.length)throw"Missing tempo after = in Q: field";if(_=i.shift(),"number"!==_.type)throw"Expected number after = in Q: field";o.duration=[1],o.bpm=parseInt(_.token)}else if("number"===_.type){if(o.duration=[parseInt(_.token)],0===i.length)throw"Missing = after duration in Q: field";if(_=i.shift(),"punct"!==_.type||"="!==_.token)throw"Expected = after duration in Q: field";if(0===i.length)throw"Missing tempo after = in Q: field";if(_=i.shift(),"number"!==_.type)throw"Expected number after = in Q: field";o.bpm=parseInt(_.token)}else throw"Expected number or equal after C in Q: field"}else if("number"===_.type){var h=parseInt(_.token);if(0===i.length||"quote"===i[0].type)o.duration=[1],o.bpm=h;else{if(l=!1,_=i.shift(),"punct"!==_.type&&"/"!==_.token||(_=i.shift(),"number"!==_.type))throw"Expected fraction in Q: field";var u=parseInt(_.token);for(o.duration=[h/u];i.length>0&&"="!==i[0].token&&"quote"!==i[0].type;){if(_=i.shift(),"number"!==_.type||(h=parseInt(_.token),_=i.shift(),"punct"!==_.type&&"/"!==_.token)||(_=i.shift(),"number"!==_.type))throw"Expected fraction in Q: field";u=parseInt(_.token),o.duration.push(h/u)}if(_=i.shift(),"punct"!==_.type&&"="!==_.token)throw"Expected = in Q: field";if(_=i.shift(),"number"!==_.type)throw"Expected tempo in Q: field";o.bpm=parseInt(_.token)}}else throw"Unknown value in Q: field";if(0!==i.length&&(_=i.shift(),"quote"===_.type&&(o.postString=_.token,_=i.shift()),0!==i.length))throw"Unexpected string at end of Q: field";return!1===s.printTempo&&(o.suppress=!0),{type:l?"delaySet":"immediate",tempo:o}}catch(d){return $(d,e,r),{type:"none"}}},this.letter_to_inline_header=function(e,r,c){var l=t.eatWhiteSpace(e,r);if(r+=l,e.length>=r+5&&"["===e[r]&&":"===e[r+2]){var _=e.indexOf("]",r),h=s.iChar+r,u=s.iChar+_+1;switch(e.substring(r,r+3)){case"[I:":var d=n.addDirective(e.substring(r+3,_));return d&&$(d,e,r),[_-r+1+l];case"[M:":var f=this.setMeter(e.substring(r+3,_));return o.hasBeginMusic()&&f?o.appendStartingElement("meter",h,u,f):s.meter=f,[_-r+1+l];case"[K:":var p=a.parseKey(e.substring(r+3,_),!0);return p.foundClef&&o.hasBeginMusic()&&o.appendStartingElement("clef",h,u,s.clef),p.foundKey&&o.hasBeginMusic()&&o.appendStartingElement("key",h,u,a.fixKey(s.clef,s.key)),[_-r+1+l];case"[P:":return c||i.lines.length<=i.lineNum?s.partForNextLine={title:e.substring(r+3,_),startChar:h,endChar:u}:o.appendElement("part",h,u,{title:e.substring(r+3,_)}),[_-r+1+l];case"[L:":return this.setDefaultLength(e,r+3,_),[_-r+1+l];case"[Q:":if(_>0){var m=this.setTempo(e,r+3,_,s.iChar);return"delaySet"===m.type?o.hasBeginMusic()?o.appendElement("tempo",h,u,this.calcTempo(m.tempo)):s.tempoForNextLine=["tempo",h,u,this.calcTempo(m.tempo)]:"immediate"===m.type&&(!c&&o.hasBeginMusic()?o.appendElement("tempo",h,u,m.tempo):s.tempoForNextLine=["tempo",h,u,m.tempo]),[_-r+1+l,e[r+1],e.substring(r+3,_)]}break;case"[V:":if(_>0)return a.parseVoice(e,r+3,_),[_-r+1+l,e[r+1],e.substring(r+3,_)];break;case"[r:":return[_-r+1+l]}}return[0]},this.letter_to_body_header=function(e,t){if(e.length>=t+3)switch(e.substring(t,t+2)){case"I:":var i=n.addDirective(e.substring(t+2));return i&&$(i,e,t),[e.length];case"M:":var c=this.setMeter(e.substring(t+2));return o.hasBeginMusic()&&c&&o.appendStartingElement("meter",s.iChar+t,s.iChar+e.length,c),[e.length];case"K:":var l=a.parseKey(e.substring(t+2),o.hasBeginMusic());return l.foundClef&&o.hasBeginMusic()&&o.appendStartingElement("clef",s.iChar+t,s.iChar+e.length,s.clef),l.foundKey&&o.hasBeginMusic()&&o.appendStartingElement("key",s.iChar+t,s.iChar+e.length,a.fixKey(s.clef,s.key)),[e.length];case"P:":return o.hasBeginMusic()&&o.appendElement("part",s.iChar+t,s.iChar+e.length,{title:e.substring(t+2)}),[e.length];case"L:":return this.setDefaultLength(e,t+2,e.length),[e.length];case"Q:":var _=e.indexOf("\x12",t+2);-1===_&&(_=e.length);var h=this.setTempo(e,t+2,_,s.iChar);return"delaySet"===h.type?o.appendElement("tempo",s.iChar+t,s.iChar+e.length,this.calcTempo(h.tempo)):"immediate"===h.type&&o.appendElement("tempo",s.iChar+t,s.iChar+e.length,h.tempo),[_,e[t],r.strip(e.substring(t+2))];case"V:":return a.parseVoice(e,t+2,e.length),[e.length,e[t],r.strip(e.substring(t+2))]}return[0]};var l={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(e){var r=l[e[0]];if(void 0!==r)"unalignedWords"===r?o.addMetaTextArray(r,n.parseFontChangeLine(t.translateString(t.stripComment(e.substring(2)))),{startChar:s.iChar,endChar:s.iChar+e.length}):o.addMetaText(r,t.translateString(t.stripComment(e.substring(2))),{startChar:s.iChar,endChar:s.iChar+e.length});else{var c=s.iChar,_=c+e.length;switch(e[0]){case"H":for(o.addMetaText("history",t.translateString(t.stripComment(e.substring(2))),{startChar:s.iChar,endChar:s.iChar+e.length}),e=t.peekLine();e&&":"!==e[1];)t.nextLine(),o.addMetaText("history",t.translateString(t.stripComment(e)),{startChar:s.iChar,endChar:s.iChar+e.length}),e=t.peekLine();break;case"K":this.resolveTempo();var h=a.parseKey(e.substring(2),!1);!s.is_in_header&&o.hasBeginMusic()&&(h.foundClef&&o.appendStartingElement("clef",c,_,s.clef),h.foundKey&&o.appendStartingElement("key",c,_,a.fixKey(s.clef,s.key))),s.is_in_header=!1;break;case"L":this.setDefaultLength(e,2,e.length);break;case"M":s.origMeter=s.meter=this.setMeter(e.substring(2));break;case"P":s.is_in_header?o.addMetaText("partOrder",t.translateString(t.stripComment(e.substring(2))),{startChar:s.iChar,endChar:s.iChar+e.length}):s.partForNextLine={title:t.translateString(t.stripComment(e.substring(2))),startChar:c,endChar:_};break;case"Q":var u=this.setTempo(e,2,e.length,s.iChar);"delaySet"===u.type?s.tempo=u.tempo:"immediate"===u.type&&(i.metaText.tempo?s.tempoForNextLine=["tempo",c,_,u.tempo]:i.metaText.tempo=u.tempo);break;case"T":this.setTitle(e.substring(2));break;case"U":this.addUserDefinition(e,2,e.length);break;case"V":if(a.parseVoice(e,2,e.length),!s.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":$("Ignored header",e,0);break;default:return{regular:!0}}}return{}}};e.exports=s},"./src/parse/abc_parse_key_voice.js":function(e,t,$){var r,n,a,s,i,o,c,l,_,h,u,d=$(/*! ./abc_common */ "./src/parse/abc_common.js"),f=$(/*! ./abc_parse_directive */ "./src/parse/abc_parse_directive.js"),p=$(/*! ./abc_transpose */ "./src/parse/abc_transpose.js"),m={};m.initialize=function(e,t,$,o,c){r=e,n=t,a=$,s=o,i=c},m.standardKey=function(e,t,$,r){return p.keySignature(a,e,t,$,r)},o={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},c=function e(t,$){var r=o[t];return(r?r.mid:0)+$},m.fixClef=function(e){var t=o[e.type];t&&(e.clefPos=t.pitch,e.type=t.clef)},m.deepCopyKey=function(e){var t={accidentals:[],root:e.root,acc:e.acc,mode:e.mode};return e.accidentals.forEach(function(e){t.accidentals.push(d.clone(e))}),t},l={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11},m.addPosToKey=function(e,t){var $=e.verticalPos;t.accidentals.forEach(function(e){var t=l[e.note];t-=$,e.verticalPos=t}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){var t=l[e.note];t-=$,e.verticalPos=t}),$<-10?(t.accidentals.forEach(function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),("G"===e.note||"F"===e.note)&&"flat"===e.acc&&(e.verticalPos-=7)}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),("G"===e.note||"F"===e.note)&&"flat"===e.acc&&(e.verticalPos-=7)})):$<-4?(t.accidentals.forEach(function(e){e.verticalPos-=7,-8===$&&("f"===e.note||"g"===e.note)&&"sharp"===e.acc&&(e.verticalPos-=7)}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos-=7,-8===$&&("f"===e.note||"g"===e.note)&&"sharp"===e.acc&&(e.verticalPos-=7)})):$>=7&&(t.accidentals.forEach(function(e){e.verticalPos+=7}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos+=7}))},m.fixKey=function(e,t){var $=d.clone(t);return m.addPosToKey(e,$),$},_=function e(t){var $=0,r=t[$++];("^"===r||"_"===r)&&(r=t[$++]);var n=l[r];for(void 0===n&&(n=6);$<t.length;$++)if(","===t[$])n-=7;else if("'"===t[$])n+=7;else break;return{mid:n-6,str:t.substring($)}},h=function e(t){for(var $=0;$<t.length;$++)"b"===t[$].note?t[$].note="B":"a"===t[$].note?t[$].note="A":"F"===t[$].note?t[$].note="f":"E"===t[$].note?t[$].note="e":"D"===t[$].note?t[$].note="d":"C"===t[$].note?t[$].note="c":"G"===t[$].note&&"sharp"===t[$].acc?t[$].note="g":"g"===t[$].note&&"flat"===t[$].acc&&(t[$].note="G")},m.parseKey=function(e,t){0===e.length&&(e="none");var $,s=r.tokenize(e,0,e.length),i={};if(0===s.length)return n("Must pass in key signature.",e,0),i;switch(s[0].token){case"HP":f.addDirective("bagpipes"),a.key={root:"HP",accidentals:[],acc:"",mode:""},i.foundKey=!0,s.shift();break;case"Hp":f.addDirective("bagpipes"),a.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},i.foundKey=!0,s.shift();break;case"none":a.key={root:"none",accidentals:[],acc:"",mode:""},i.foundKey=!0,s.shift();break;default:var o=r.getKeyPitch(s[0].token);if(o.len>0){i.foundKey=!0;var l,_,u="",d="";s[0].token.length>1?s[0].token=s[0].token.substring(1):s.shift();var p=o.token;if(s.length>0){var g=r.getSharpFlat(s[0].token);if(g.len>0&&(s[0].token.length>1?s[0].token=s[0].token.substring(1):s.shift(),p+=g.token,u=g.token),s.length>0){var v=r.getMode(s[0].token);v.len>0&&(s.shift(),p+=v.token,d=v.token)}if(void 0===m.standardKey(p,o.token,u,0))return n("Unsupported key signature: "+p,e,0),i}var b=m.deepCopyKey(a.key),y=!t&&a.globalTranspose?-a.globalTranspose:0;if(t&&(l=a.globalTransposeOrigKeySig),a.key=m.deepCopyKey(m.standardKey(p,o.token,u,y)),t&&(a.globalTransposeOrigKeySig=l),a.key.mode=d,b){for(var k=0;k<a.key.accidentals.length;k++)for(_=0;_<b.accidentals.length;_++)b.accidentals[_].note&&a.key.accidentals[k].note.toLowerCase()===b.accidentals[_].note.toLowerCase()&&(b.accidentals[_].note=null);for(_=0;_<b.accidentals.length;_++)b.accidentals[_].note&&(a.key.impliedNaturals||(a.key.impliedNaturals=[]),a.key.impliedNaturals.push({acc:"natural",note:b.accidentals[_].note}))}}}if(0===s.length||("exp"===s[0].token&&s.shift(),0===s.length)||("oct"===s[0].token&&s.shift(),0===s.length))return i;var w=r.getKeyAccidentals2(s);if(w.warn&&n(w.warn,e,0),w.accs){i.foundKey||(i.foundKey=!0,a.key={root:"none",acc:"",mode:"",accidentals:[]}),h(w.accs);for(var x=0;x<w.accs.length;x++){for(var C=!1,T=0;T<a.key.accidentals.length&&!C;T++)a.key.accidentals[T].note===w.accs[x].note&&(C=!0,a.key.accidentals[T].acc!==w.accs[x].acc&&(a.key.accidentals[T].acc=w.accs[x].acc,a.key.explicitAccidentals||(a.key.explicitAccidentals=[]),a.key.explicitAccidentals.push(w.accs[x])));if(!C&&(a.key.explicitAccidentals||(a.key.explicitAccidentals=[]),a.key.explicitAccidentals.push(w.accs[x]),a.key.accidentals.push(w.accs[x]),a.key.impliedNaturals))for(var S=0;S<a.key.impliedNaturals.length;S++)a.key.impliedNaturals[S].note===w.accs[x].note&&a.key.impliedNaturals.splice(S,1)}}for(;s.length>0;)switch(s[0].token){case"m":case"middle":if(s.shift(),0===s.length)return n("Expected = after middle",e,0),i;if("="!==($=s.shift()).token){n("Expected = after middle",e,$.start);break}if(0===s.length)return n("Expected parameter after middle=",e,0),i;var E=r.getPitchFromTokens(s);E.warn&&n(E.warn,e,0),E.position&&(a.clef.verticalPos=E.position-6);break;case"transpose":if(s.shift(),0===s.length)return n("Expected = after transpose",e,0),i;if("="!==($=s.shift()).token){n("Expected = after transpose",e,$.start);break}if(0===s.length)return n("Expected parameter after transpose=",e,0),i;if("number"!==s[0].type){n("Expected number after transpose",e,s[0].start);break}a.clef.transpose=s[0].intt,s.shift();break;case"stafflines":if(s.shift(),0===s.length)return n("Expected = after stafflines",e,0),i;if("="!==($=s.shift()).token){n("Expected = after stafflines",e,$.start);break}if(0===s.length)return n("Expected parameter after stafflines=",e,0),i;if("number"!==s[0].type){n("Expected number after stafflines",e,s[0].start);break}a.clef.stafflines=s[0].intt,s.shift();break;case"staffscale":if(s.shift(),0===s.length)return n("Expected = after staffscale",e,0),i;if("="!==($=s.shift()).token){n("Expected = after staffscale",e,$.start);break}if(0===s.length)return n("Expected parameter after staffscale=",e,0),i;if("number"!==s[0].type){n("Expected number after staffscale",e,s[0].start);break}a.clef.staffscale=s[0].floatt,s.shift();break;case"octave":if(s.shift(),0===s.length)return n("Expected = after octave",e,0),i;if("="!==($=s.shift()).token){n("Expected = after octave",e,$.start);break}if(0===s.length)return n("Expected parameter after octave=",e,0),i;if("number"!==s[0].type){n("Expected number after octave",e,s[0].start);break}a.octave=s[0].intt,s.shift();break;case"style":if(s.shift(),0===s.length)return n("Expected = after style",e,0),i;if("="!==($=s.shift()).token){n("Expected = after style",e,$.start);break}if(0===s.length)return n("Expected parameter after style=",e,0),i;switch(s[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":case"sn_do":case"sn_re":case"sn_mi":case"sn_fa":case"sn_fa_l":case"sn_fa_r":case"sn_so":case"sn_la":case"sn_ti":a.style=s[0].token,s.shift();break;default:n("error parsing style element: "+s[0].token,e,s[0].start)}break;case"clef":if(s.shift(),0===s.length)return n("Expected = after clef",e,0),i;if("="!==($=s.shift()).token){n("Expected = after clef",e,$.start);break}if(0===s.length)return n("Expected parameter after clef=",e,0),i;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var A=s.shift();switch(A.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":case"c":A.token="alto";break;case"F":case"f":A.token="bass";break;case"G":case"g":A.token="treble";break;default:n("Expected clef name. Found "+A.token,e,A.start)}s.length>0&&"number"===s[0].type&&(A.token+=s[0].token,s.shift()),s.length>1&&("-"===s[0].token||"+"===s[0].token||"^"===s[0].token||"_"===s[0].token)&&"8"===s[1].token&&(A.token+=s[0].token+s[1].token,s.shift(),s.shift()),a.clef={type:A.token,verticalPos:c(A.token,0)},a.currentVoice&&void 0!==a.currentVoice.transpose&&(a.clef.transpose=a.currentVoice.transpose),i.foundClef=!0;break;default:n("Unknown parameter: "+s[0].token,e,s[0].start),s.shift()}return i},u=function e(t){a.currentVoice=a.voices[t],i.setCurrentVoice(a.currentVoice.staffNum,a.currentVoice.index)},m.parseVoice=function(e,t,$){var s=r.getMeat(e,t,$),i=s.start,o=s.end,l=r.getToken(e,i,o);if(0===l.length){n("Expected a voice id",e,i);return}var h=!1;void 0===a.voices[l]&&(a.voices[l]={},h=!0,a.score_is_present&&n("Can't have an unknown V: id when the %score directive is present",e,i)),i+=l.length,i+=r.eatWhiteSpace(e,i);for(var d={startStaff:h},f=function t($){var a=r.getVoiceToken(e,i,o);void 0!==a.warn?n("Expected value for "+$+" in voice: "+a.warn,e,i):void 0!==a.err?n("Expected value for "+$+" in voice: "+a.err,e,i):0===a.token.length&&'"'!==e[i]?n("Expected value for "+$+" in voice",e,i):d[$]=a.token,i+=a.len},p=function t($,s,c){var l=r.getVoiceToken(e,i,o);void 0!==l.warn?n("Expected value for "+s+" in voice: "+l.warn,e,i):void 0!==l.err?n("Expected value for "+s+" in voice: "+l.err,e,i):0===l.token.length&&'"'!==e[i]?n("Expected value for "+s+" in voice",e,i):("number"===c&&(l.token=parseFloat(l.token)),a.voices[$][s]=l.token),i+=l.len};i<o;){var m=r.getVoiceToken(e,i,o);if(i+=m.len,m.warn)n("Error parsing voice: "+m.warn,e,i);else{var g=null;switch(m.token){case"clef":case"cl":f("clef");var v=0;void 0!==d.clef&&(d.clef=d.clef.replace(/[',]/g,""),-1!==d.clef.indexOf("+16")&&(v+=14,d.clef=d.clef.replace("+16","")),d.verticalPos=c(d.clef,v));break;case"treble":case"bass":case"tenor":case"alto":case"perc":case"none":case"treble'":case"bass'":case"tenor'":case"alto'":case"none'":case"treble''":case"bass''":case"tenor''":case"alto''":case"none''":case"treble,":case"bass,":case"tenor,":case"alto,":case"none,":case"treble,,":case"bass,,":case"tenor,,":case"alto,,":case"none,,":d.clef=m.token.replace(/[',]/g,""),d.verticalPos=c(d.clef,0),a.voices[l].clef=m.token;break;case"staves":case"stave":case"stv":f("staves");break;case"brace":case"brc":f("brace");break;case"bracket":case"brk":f("bracket");break;case"name":case"nm":f("name");break;case"subname":case"sname":case"snm":f("subname");break;case"merge":d.startStaff=!1;break;case"stem":case"stems":void 0!==(g=r.getVoiceToken(e,i,o)).warn?n("Expected value for stems in voice: "+g.warn,e,i):void 0!==g.err?n("Expected value for stems in voice: "+g.err,e,i):"up"===g.token||"down"===g.token||"auto"===g.token?a.voices[l].stem=g.token:n("Expected up, down, or auto for voice stem",e,i),i+=g.len;break;case"up":case"down":a.voices[l].stem=m.token;break;case"middle":case"m":f("verticalPos"),d.verticalPos=_(d.verticalPos).mid;break;case"gchords":case"gch":a.voices[l].suppressChords=!0,"0"===(g=r.getVoiceToken(e,i,o)).token&&(i+=g.len);break;case"space":case"spc":f("spacing");break;case"scale":p(l,"scale","number");break;case"score":!function t($,s){var c=r.getVoiceToken(e,i,o);if(void 0!==c.warn)n("Expected one of (_B, _E, _b, _e) for "+s+" in voice: "+c.warn,e,i);else if(0===c.token.length&&'"'!==e[i])n("Expected one of (_B, _E, _b, _e) for "+s+" in voice",e,i);else{var l={_B:2,_E:9,_b:-10,_e:-3}[c.token];l?a.voices[$][s]=l:n("Expected one of (_B, _E, _b, _e) for "+s+" in voice",e,i)}i+=c.len}(l,"scoreTranspose");break;case"transpose":p(l,"transpose","number");break;case"stafflines":p(l,"stafflines","number");break;case"staffscale":p(l,"staffscale","number");break;case"octave":p(l,"octave","number");break;case"volume":p(l,"volume","number");break;case"cue":"on"===function t($,a){var s=r.getVoiceToken(e,i,o);if(void 0!==s.warn)n("Expected value for "+$+" in voice: "+s.warn,e,i);else if(void 0!==s.err)n("Expected value for "+$+" in voice: "+s.err,e,i);else{if(0!==s.token.length||'"'===e[i])return"number"===a&&(s.token=parseFloat(s.token)),s.token;n("Expected value for "+$+" in voice",e,i)}i+=s.len}("cue","string")?a.voices[l].scale=.6:a.voices[l].scale=1;break;case"style":void 0!==(g=r.getVoiceToken(e,i,o)).warn?n("Expected value for style in voice: "+g.warn,e,i):void 0!==g.err?n("Expected value for style in voice: "+g.err,e,i):"normal"===g.token||"harmonic"===g.token||"rhythm"===g.token||"x"===g.token||"triangle"===g.token||"sn_do"===g.token||"sn_re"===g.token||"sn_mi"===g.token||"sn_fa"===g.token||"sn_fa_l"===g.token||"sn_fa_r"===g.token||"sn_so"===g.token||"sn_la"===g.token||"sn_ti"===g.token?a.voices[l].style=g.token:n("Expected one of [normal, harmonic, rhythm, x, triangle, sn_*] for voice style",e,i),i+=g.len}}i+=r.eatWhiteSpace(e,i)}if((d.startStaff||0===a.staves.length)&&(a.staves.push({index:a.staves.length,meter:a.origMeter}),a.score_is_present||(a.staves[a.staves.length-1].numVoices=0)),void 0===a.voices[l].staffNum){a.voices[l].staffNum=a.staves.length-1;var b=0;for(var y in a.voices)a.voices.hasOwnProperty(y)&&a.voices[y].staffNum===a.voices[l].staffNum&&b++;a.voices[l].index=b-1}var k=a.staves[a.voices[l].staffNum];!a.score_is_present&&k.numVoices++,d.clef&&(k.clef={type:d.clef,verticalPos:d.verticalPos}),d.spacing&&(k.spacing_below_offset=d.spacing),d.verticalPos&&(k.verticalPos=d.verticalPos),d.name&&(k.name?k.name.push(d.name):k.name=[d.name]),d.subname&&(k.subname?k.subname.push(d.subname):k.subname=[d.subname]),u(l)},e.exports=m},"./src/parse/abc_parse_music.js":function(e,t,$){var r,n,a,s,i,o,c=$(/*! ./abc_common */ "./src/parse/abc_common.js"),l=$(/*! ./abc_parse_key_voice */ "./src/parse/abc_parse_key_voice.js"),_=$(/*! ./abc_transpose */ "./src/parse/abc_transpose.js"),h=$(/*! ./abc_parse_settings */ "./src/parse/abc_parse_settings.js"),u=h.legalAccents,d=h.volumeDecorations,f=h.dynamicDecorations,p=h.accentPseudonyms,m=h.accentDynamicPseudonyms,g=h.nonDecorations,v=h.durations,b=h.pitches,y=h.rests,k=h.accMap,w=h.tripletQ,x=function e(t,$,c,l,_,h){r=t,n=$,a=c,s=l,i=_,o=h,this.lineContinuation=!1},C=function e(t,$,r){if(void 0===t.inTie[$])return!1;var n=t.currentVoice?100*t.currentVoice.staffNum+t.currentVoice.index:0;return!!t.inTie[$][n]&&(void 0!==r.pitches||"spacer"!==r.rest.type)},T={};x.prototype.parseMusic=function(e){o.resolveTempo(),a.is_in_header=!1;for(var t=0,$=a.iChar;r.isWhiteSpace(e[t])&&t<e.length;)t++;if(t!==e.length&&"%"!==e[t]){var c=a.start_new_line;void 0===a.continueall?a.start_new_line=!0:a.start_new_line=!1;var l=0,_=o.letter_to_body_header(e,t);_[0]>0&&(t+=_[0],"V"===_[1]&&this.startNewLine());for(var h=0;t<e.length;){var u=t;if("%"===e[t])break;var d=o.letter_to_inline_header(e,t,c);if(d[0]>0)t+=d[0],"V"===d[1]&&(c=!0);else{for(i.hasBeginMusic()&&(!c||this.lineContinuation)||(this.startNewLine(),c=!1);;)if((f=r.eatWhiteSpace(e,t))>0&&(t+=f),t>0&&"\x12"===e[t-1]&&(f=o.letter_to_body_header(e,t))[0]>0&&("V"===f[1]&&this.startNewLine(),t=f[0],a.start_new_line=!1),(f=M(e,t))[0]>0&&(t+=f[0]),(f=E(e,t))[0]>0){T.chord||(T.chord=[]);var f,p=r.translateString(f[1]);p=p.replace(/;/g,"\n");for(var m=!1,b=0;b<T.chord.length;b++)T.chord[b].position===f[2]&&(m=!0,T.chord[b].name+="\n"+p);!1===m&&(null===f[2]&&f[3]?T.chord.push({name:p,rel_position:f[3]}):T.chord.push({name:p,position:f[2]})),t+=f[0];var y=r.skipWhiteSpace(e.substring(t));y>0&&(T.force_end_beam_last=!0),t+=y}else if((f=-1===g.indexOf(e[t])?P(e,t):[0])[0]>0)null===f[1]?t+1<e.length&&this.startNewLine():f[1].length>0&&(0===f[1].indexOf("style=")?T.style=f[1].substr(6):(void 0===T.decoration&&(T.decoration=[]),"beambr1"===f[1]?T.beambr=1:"beambr2"===f[1]?T.beambr=2:T.decoration.push(f[1]))),t+=f[0];else if((f=A(e,t))[0]>0)T.gracenotes=f[1],t+=f[0];else break;if((f=L(e,t))[0]>0){h=0,void 0!==T.gracenotes&&(T.rest={type:"spacer"},T.duration=.125,a.addFormattingOptions(T,s.formatting,"note"),i.appendElement("note",$+t,$+t+f[0],T),a.measureNotEmpty=!0,T={});var k={type:f[1]};0===k.type.length?n("Unknown bar type",e,t):(a.inEnding&&"bar_thin"!==k.type&&(k.endEnding=!0,a.inEnding=!1),f[2]&&(k.startEnding=f[2],a.inEnding&&(k.endEnding=!0),a.inEnding=!0,"bar_right_repeat"===f[1]?a.restoreStartEndingHoldOvers():a.duplicateStartEndingHoldOvers()),void 0!==T.decoration&&(k.decoration=T.decoration),void 0!==T.chord&&(k.chord=T.chord),k.startEnding&&void 0===a.barFirstEndingNum?a.barFirstEndingNum=a.currBarNumber:k.startEnding&&k.endEnding&&a.barFirstEndingNum?a.currBarNumber=a.barFirstEndingNum:k.endEnding&&(a.barFirstEndingNum=void 0),"bar_invisible"!==k.type&&a.measureNotEmpty&&(void 0===a.currentVoice||0===a.currentVoice.staffNum&&0===a.currentVoice.index)&&(a.currBarNumber++,a.barNumbers&&a.currBarNumber%a.barNumbers==0&&(k.barNumber=a.currBarNumber)),a.addFormattingOptions(T,s.formatting,"bar"),i.appendElement("bar",$+u,$+t+f[0],k),a.measureNotEmpty=!1,T={}),t+=f[0]}else if("&"===e[t])(f=B(e,t))[0]>0&&(i.appendElement("overlay",$,$+1,{}),t+=1,h++);else{if((f=D(e,t)).consumed>0&&(void 0!==f.startSlur&&(T.startSlur=f.startSlur),f.dottedSlur&&(T.dottedSlur=!0),void 0!==f.triplet&&(l>0?n("Can't nest triplets",e,t):(T.startTriplet=f.triplet,T.tripletMultiplier=f.tripletQ/f.triplet,T.tripletR=f.num_notes,l=void 0===f.num_notes?f.triplet:f.num_notes)),t+=f.consumed),"["===e[t]){t++;for(var w=null,x=!1,H=!1;!H;){var I=P(e,t);I[0]>0&&(t+=I[0]);var q=z(e,t,{},!1);if(null!==q&&void 0!==q.pitch)I[0]>0&&0!==I[1].indexOf("style=")&&(void 0===T.decoration&&(T.decoration=[]),T.decoration.push(I[1])),q.end_beam&&(T.end_beam=!0,delete q.end_beam),void 0===T.pitches?(T.duration=q.duration,T.pitches=[q]):T.pitches.push(q),delete q.duration,I[0]>0&&0===I[1].indexOf("style=")&&(T.pitches[T.pitches.length-1].style=I[1].substr(6)),a.inTieChord[T.pitches.length]&&(q.endTie=!0,a.inTieChord[T.pitches.length]=void 0),q.startTie&&(a.inTieChord[T.pitches.length]=!0),t=q.endChar,delete q.endChar;else if(" "===e[t])n("Spaces are not allowed in chords",e,t),t++;else{if(t<e.length&&"]"===e[t]){t++,0!==a.next_note_duration&&(T.duration=T.duration*a.next_note_duration,a.next_note_duration=0),C(a,h,T)&&(T.pitches.forEach(function(e){e.endTie=!0}),S(a,h,!1)),l>0&&!(T.rest&&"spacer"===T.rest.type)&&0==--l&&(T.endTriplet=!0);for(var G=!1;t<e.length&&!G;){switch(e[t]){case" ":case" ":O(T);break;case")":void 0===T.endSlur?T.endSlur=1:T.endSlur++;break;case"-":T.pitches.forEach(function(e){e.startTie={}}),S(a,h,!0);break;case">":case"<":var R=F(e,t);t+=R[0]-1,a.next_note_duration=R[2],w?w*=R[1]:w=R[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var V=r.getFraction(e,t);w=V.value;var Y=e[t=V.index];" "===Y&&(x=!0),"-"===Y||")"===Y||" "===Y||"<"===Y||">"===Y?t--:G=!0;break;default:G=!0}!G&&t++}}else n("Expected ']' to end the chords",e,t);void 0!==T.pitches&&(null!==w&&(T.duration=T.duration*w,x&&O(T)),a.addFormattingOptions(T,s.formatting,"note"),i.appendElement("note",$+u,$+t,T),a.measureNotEmpty=!0,T={}),H=!0}}}else{var W={},U=z(e,t,W,!0);void 0!==W.endTie&&S(a,h,!0),null!==U&&(void 0!==U.pitch?(T.pitches=[{}],void 0!==U.accidental&&(T.pitches[0].accidental=U.accidental),T.pitches[0].pitch=U.pitch,T.pitches[0].name=U.name,(U.midipitch||0===U.midipitch)&&(T.pitches[0].midipitch=U.midipitch),void 0!==U.endSlur&&(T.pitches[0].endSlur=U.endSlur),void 0!==U.endTie&&(T.pitches[0].endTie=U.endTie),void 0!==U.startSlur&&(T.pitches[0].startSlur=U.startSlur),void 0!==T.startSlur&&(T.pitches[0].startSlur=T.startSlur),void 0!==T.dottedSlur&&(T.pitches[0].dottedSlur=!0),void 0!==U.startTie&&(T.pitches[0].startTie=U.startTie),void 0!==T.startTie&&(T.pitches[0].startTie=T.startTie)):(T.rest=U.rest,void 0!==U.endSlur&&(T.endSlur=U.endSlur),void 0!==U.endTie&&(T.rest.endTie=U.endTie),void 0!==U.startSlur&&(T.startSlur=U.startSlur),void 0!==U.startTie&&(T.rest.startTie=U.startTie),void 0!==T.startTie&&(T.rest.startTie=T.startTie)),void 0!==U.chord&&(T.chord=U.chord),void 0!==U.duration&&(T.duration=U.duration),void 0!==U.decoration&&(T.decoration=U.decoration),void 0!==U.graceNotes&&(T.graceNotes=U.graceNotes),delete T.startSlur,delete T.dottedSlur,C(a,h,T)&&(void 0!==T.pitches?T.pitches[0].endTie=!0:"spacer"!==T.rest.type&&(T.rest.endTie=!0),S(a,h,!1)),(U.startTie||T.startTie)&&S(a,h,!0),t=U.endChar,l>0&&!(U.rest&&"spacer"===U.rest.type)&&0==--l&&(T.endTriplet=!0),U.end_beam&&O(T),T.rest&&"rest"===T.rest.type&&1===T.duration&&1>=N(a)&&(T.rest.type="whole",T.duration=N(a)),T.duration<1&&-1===v.indexOf(T.duration)&&0!==T.duration&&(!T.rest||"spacer"!==T.rest.type)&&n("Duration not representable: "+e.substring(u,t),e,t),a.addFormattingOptions(T,s.formatting,"note"),i.appendElement("note",$+u,$+t,T),a.measureNotEmpty=!0,T={})}t===u&&(" "!==e[t]&&"`"!==e[t]&&n("Unknown character ignored",e,t),t++)}}}this.lineContinuation=e.indexOf("\x12")>=0||_[0]>0,this.lineContinuation||(T={})}};var S=function e(t,$,r){var n=t.currentVoice?100*t.currentVoice.staffNum+t.currentVoice.index:0;void 0===t.inTie[$]&&(t.inTie[$]=[]),t.inTie[$][n]=r},E=function e(t,$){if('"'===t[$]){var s=r.getBrackettedSubstring(t,$,5);if(s[2]||n("Missing the closing quote while parsing the chord symbol",t,$),s[0]>0&&s[1].length>0&&"^"===s[1][0])s[1]=s[1].substring(1),s[2]="above";else if(s[0]>0&&s[1].length>0&&"_"===s[1][0])s[1]=s[1].substring(1),s[2]="below";else if(s[0]>0&&s[1].length>0&&"<"===s[1][0])s[1]=s[1].substring(1),s[2]="left";else if(s[0]>0&&s[1].length>0&&">"===s[1][0])s[1]=s[1].substring(1),s[2]="right";else if(s[0]>0&&s[1].length>0&&"@"===s[1][0]){s[1]=s[1].substring(1);var i=r.getFloat(s[1]);if(0===i.digits)return n("Missing first position in absolutely positioned annotation.",t,$),s[1]=s[1].replace("@",""),s[2]="above",s;if(s[1]=s[1].substring(i.digits),","!==s[1][0])return n("Missing comma absolutely positioned annotation.",t,$),s[1]=s[1].replace("@",""),s[2]="above",s;s[1]=s[1].substring(1);var o=r.getFloat(s[1]);if(0===o.digits)return n("Missing second position in absolutely positioned annotation.",t,$),s[1]=s[1].replace("@",""),s[2]="above",s;s[1]=s[1].substring(o.digits);var c=r.skipWhiteSpace(s[1]);s[1]=s[1].substring(c),s[2]=null,s[3]={x:i.value,y:o.value}}else!0!==a.freegchord&&(s[1]=s[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),s[1]=s[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),s[1]=s[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2\xb0$3"),s[1]=s[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2\xb0"),s[1]=s[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2\xf8$3"),s[1]=s[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),s[2]="default",s[1]=_.chordName(a,s[1]);return s}return[0,""]},A=function(e,t){if("{"===e[t]){var $=r.getBrackettedSubstring(e,t,1,"}");$[2]||n("Missing the closing '}' while parsing grace note",e,t),")"===e[t+$[0]]&&($[0]++,$[1]+=")");for(var s=[],i=0,o=!1;i<$[1].length;){var c=!1;"/"===$[1][i]&&(c=!0,i++);var l=z($[1],i,{},!1);null!==l?(l.duration=l.duration/(8*a.default_length),c&&(l.acciaccatura=!0),l.rest?n("Rests not allowed as grace notes '"+$[1][i]+"' while parsing grace note",e,t):s.push(l),o&&(l.endTie=!0,o=!1),l.startTie&&(o=!0),i=l.endChar,delete l.endChar,l.end_beam&&(l.endBeam=!0,delete l.end_beam)):(" "===$[1][i]?s.length>0&&(s[s.length-1].endBeam=!0):n("Unknown character '"+$[1][i]+"' while parsing grace note",e,t),i++)}if(s.length)return[$[0],s]}return[0]};function B(e,t){if("&"===e[t]){for(var $=t;e[t]&&":"!==e[t]&&"|"!==e[t];)t++;return[t-$,e.substring($+1,t)]}return[0]}function N(e){var t=e.origMeter;return t&&"specified"===t.type&&t.value&&0!==t.value.length?parseInt(t.value[0].num,10)/parseInt(t.value[0].den,10):1}var P=function e(t,$){var s=a.macros[t[$]];if(void 0!==s)return(("!"===s[0]||"+"===s[0])&&(s=s.substring(1)),("!"===s[s.length-1]||"+"===s[s.length-1])&&(s=s.substring(0,s.length-1)),u.includes(s))?[1,s]:d.includes(s)?("hidden"===a.volumePosition&&(s=""),[1,s]):f.includes(s)?("hidden"===a.dynamicPosition&&(s=""),[1,s]):(a.ignoredDecorations.includes(s)||n("Unknown macro: "+s,t,$),[1,""]);switch(t[$]){case".":if("("===t[$+1]||"-"===t[$+1])break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":if((gRollUseRollForIrishRoll||gForceRollUseRollForIrishRoll)&&!gForceRollUseRollForIrishRollDisable)return[1,"roll"];return[1,"irishroll"];case"!":case"+":var i=r.getBrackettedSubstring(t,$,5);if(i[1].length>1&&("^"===i[1][0]||"_"===i[1][0])&&(i[1]=i[1].substring(1)),u.includes(i[1]))return i;if(d.includes(i[1]))return"hidden"===a.volumePosition&&(i[1]=""),i;if(f.includes(i[1]))return"hidden"===a.dynamicPosition&&(i[1]=""),i;var o=p.findIndex(function(e){return i[1]===e[0]});if(o>=0)return i[1]=p[o][1],i;if((o=m.findIndex(function(e){return i[1]===e[0]}))>=0)return i[1]=m[o][1],"hidden"===a.dynamicPosition&&(i[1]=""),i;if("!"===t[$]&&(1===i[0]||"!"!==t[$+i[0]-1]))return[1,null];return n("Unknown decoration: "+i[1],t,$),i[1]="",i;case"H":return[1,"fermata"];case"J":return[1,"slide"];case"j":return[1,"slidedown"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"];case"t":return[1,"trillh"]}return[0,0]},M=function e(t,$){for(var n=$;r.isWhiteSpace(t[$]);)$++;return[$-n]},L=function e(t,$){var a=r.getBarLine(t,$);if(0===a.len)return[0,""];if(a.warn)return n(a.warn,t,$),[a.len,""];for(var s=0;s<t.length&&" "===t[$+a.len+s];s++);var i=a.len;if("["===t[$+a.len+s]&&(a.len+=s+1),'"'===t[$+a.len]&&"["===t[$+a.len-1]){var o=r.getBrackettedSubstring(t,$+a.len,5);return[a.len+o[0],a.token,o[1]]}var c=r.getTokenOf(t.substring($+a.len),"1234567890-,");return 0===c.len||"-"===c.token[0]?[i,a.token]:[a.len+c.len,a.token,c.token]},D=function e(t,$){var a={},s=$;for("."===t[$]&&"("===t[$+1]&&(a.dottedSlur=!0,$++);"("===t[$]||r.isWhiteSpace(t[$]);)"("===t[$]&&($+1<t.length&&t[$+1]>="2"&&t[$+1]<="9"?(void 0!==a.triplet?n("Can't nest triplets",t,$):(a.triplet=t[$+1]-"0",a.tripletQ=w[a.triplet],a.num_notes=a.triplet,$+2<t.length&&":"===t[$+2]&&($+3<t.length&&":"===t[$+3]?$+4<t.length&&t[$+4]>="1"&&t[$+4]<="9"?(a.num_notes=t[$+4]-"0",$+=3):n("expected number after the two colons after the triplet to mark the duration",t,$):$+3<t.length&&t[$+3]>="1"&&t[$+3]<="9"?(a.tripletQ=t[$+3]-"0",$+4<t.length&&":"===t[$+4]?$+5<t.length&&t[$+5]>="1"&&t[$+5]<="9"&&(a.num_notes=t[$+5]-"0",$+=4):$+=2):n("expected number after the triplet to mark the duration",t,$))),$++):void 0===a.startSlur?a.startSlur=1:a.startSlur++),$++;return a.consumed=$-s,a};x.prototype.startNewLine=function(){var e={startChar:-1,endChar:-1};a.partForNextLine.title&&(e.part=a.partForNextLine),e.clef=a.currentVoice&&void 0!==a.staves[a.currentVoice.staffNum].clef?c.clone(a.staves[a.currentVoice.staffNum].clef):c.clone(a.clef);var t=a.currentVoice?a.currentVoice.scoreTranspose:0;if(e.key=l.standardKey(a.key.root+a.key.acc+a.key.mode,a.key.root,a.key.acc,t),e.key.mode=a.key.mode,a.key.impliedNaturals&&(e.key.impliedNaturals=a.key.impliedNaturals),a.key.explicitAccidentals)for(var $=0;$<a.key.explicitAccidentals.length;$++){for(var r=!1,n=0;n<e.key.accidentals.length;n++)e.key.accidentals[n].note===a.key.explicitAccidentals[$].note&&(e.key.accidentals[n].acc=a.key.explicitAccidentals[$].acc,r=!0);r||e.key.accidentals.push(a.key.explicitAccidentals[$])}if(a.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,l.addPosToKey(e.clef,e.key),null!==a.meter?(a.currentVoice?(a.staves.forEach(function(e){e.meter=a.meter}),e.meter=a.staves[a.currentVoice.staffNum].meter,a.staves[a.currentVoice.staffNum].meter=null):e.meter=a.meter,a.meter=null):a.currentVoice&&a.staves[a.currentVoice.staffNum].meter&&(e.meter=a.staves[a.currentVoice.staffNum].meter,a.staves[a.currentVoice.staffNum].meter=null),a.currentVoice&&a.currentVoice.name&&(e.name=a.currentVoice.name),a.vocalfont&&(e.vocalfont=a.vocalfont),a.tripletfont&&(e.tripletfont=a.tripletfont),a.gchordfont&&(e.gchordfont=a.gchordfont),a.style&&(e.style=a.style),a.currentVoice){var s=a.staves[a.currentVoice.staffNum];s.brace&&(e.brace=s.brace),s.bracket&&(e.bracket=s.bracket),s.connectBarLines&&(e.connectBarLines=s.connectBarLines),s.name&&(e.name=s.name[a.currentVoice.index]),s.subname&&(e.subname=s.subname[a.currentVoice.index]),a.currentVoice.stem&&(e.stem=a.currentVoice.stem),a.currentVoice.stafflines&&(e.stafflines=a.currentVoice.stafflines),a.currentVoice.staffscale&&(e.staffscale=a.currentVoice.staffscale),a.currentVoice.scale&&(e.scale=a.currentVoice.scale),a.currentVoice.color&&(e.color=a.currentVoice.color),a.currentVoice.style&&(e.style=a.currentVoice.style),a.currentVoice.transpose&&(e.clef.transpose=a.currentVoice.transpose)}var o=void 0===a.currentVoice||0===a.currentVoice.staffNum&&0===a.currentVoice.index;0===a.barNumbers&&o&&1!==a.currBarNumber&&(e.barNumber=a.currBarNumber),i.startNewLine(e),a.key.impliedNaturals&&delete a.key.impliedNaturals,a.partForNextLine={},4===a.tempoForNextLine.length&&i.appendElement(a.tempoForNextLine[0],a.tempoForNextLine[1],a.tempoForNextLine[2],a.tempoForNextLine[3]),a.tempoForNextLine=[]};var O=function e(t){return void 0!==t.duration&&t.duration<.25&&(t.end_beam=!0),t},z=function e(t,$,n,o){var c,l=function e(t){return"octave"===t||"duration"===t||"Zduration"===t||"broken_rhythm"===t||"end_slur"===t};"."===t[$]&&"-"===t[$+1]&&(c=!0,$++);for(var h="startSlur",u=!1;;){switch(t[$]){case"(":if("startSlur"===h)void 0===n.startSlur?n.startSlur=1:n.startSlur++;else if(l(h))return n.endChar=$,n;else return null;break;case")":if(!l(h))return null;void 0===n.endSlur?n.endSlur=1:n.endSlur++;break;case"^":if("startSlur"===h)n.accidental="sharp",h="sharp2";else if("sharp2"===h)n.accidental="dblsharp",h="pitch";else if(l(h))return n.endChar=$,n;else return null;break;case"_":if("startSlur"===h)n.accidental="flat",h="flat2";else if("flat2"===h)n.accidental="dblflat",h="pitch";else if(l(h))return n.endChar=$,n;else return null;break;case"=":if("startSlur"===h)n.accidental="natural",h="pitch";else if(l(h))return n.endChar=$,n;else return null;break;case"A":case"B":case"C":case"D":case"E":case"F":case"G":case"a":case"b":case"c":case"d":case"e":case"f":case"g":if("startSlur"===h||"sharp2"===h||"flat2"===h||"pitch"===h){if(n.pitch=b[t[$]],n.pitch+=7*(a.currentVoice&&void 0!==a.currentVoice.octave?a.currentVoice.octave:a.octave),n.name=t[$],n.accidental&&(n.name=k[n.accidental]+n.name),_.note(a,n),h="octave",o&&0!==a.next_note_duration?(n.duration=a.default_length*a.next_note_duration,a.next_note_duration=0,u=!0):n.duration=a.default_length,a.clef&&"perc"===a.clef.type||a.currentVoice&&"perc"===a.currentVoice.clef){var d=t[$];n.accidental&&(d=k[n.accidental]+d),s.formatting&&s.formatting.midi&&s.formatting.midi.drummap&&(n.midipitch=s.formatting.midi.drummap[d])}}else if(l(h))return n.endChar=$,n;else return null;break;case",":if("octave"===h)n.pitch-=7,n.name+=",";else if(l(h))return n.endChar=$,n;else return null;break;case"'":if("octave"===h)n.pitch+=7,n.name+="'";else if(l(h))return n.endChar=$,n;else return null;break;case"x":case"X":case"y":case"z":case"Z":if("startSlur"===h)n.rest={type:y[t[$]]},delete n.accidental,delete n.startSlur,delete n.startTie,delete n.endSlur,delete n.endTie,delete n.end_beam,delete n.grace_notes,n.rest.type.indexOf("multimeasure")>=0?(n.duration=s.getBarLength(),n.rest.text=1,h="Zduration"):(o&&0!==a.next_note_duration?(n.duration=a.default_length*a.next_note_duration,a.next_note_duration=0,u=!0):n.duration=a.default_length,h="duration");else if(l(h))return n.endChar=$,n;else return null;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if("octave"===h||"duration"===h){var f=r.getFraction(t,$);for(n.duration=n.duration*f.value,n.endChar=f.index;f.index<t.length&&(r.isWhiteSpace(t[f.index])||"-"===t[f.index]);)"-"===t[f.index]?n.startTie={}:n=O(n),f.index++;$=f.index-1,h="broken_rhythm"}else if("sharp2"===h)n.accidental="quartersharp",h="pitch";else if("flat2"===h)n.accidental="quarterflat",h="pitch";else{if("Zduration"!==h)return null;var p=r.getNumber(t,$);return n.duration=p.num*s.getBarLength(),n.rest.text=p.num,n.endChar=p.index,n}break;case"-":if("startSlur"===h)i.addTieToLastNote(c),n.endTie=!0;else if("octave"===h||"duration"===h||"end_slur"===h){if(n.startTie={},u||!o)return r.isWhiteSpace(t[$+1])&&O(n),n.endChar=$+1,n;h="broken_rhythm"}else if("broken_rhythm"===h)return n.endChar=$,n;else return null;break;case" ":case" ":if(!l(h))return null;n.end_beam=!0,c=!1;do"."===t[$]&&"-"===t[$+1]&&(c=!0,$++),"-"===t[$]&&(n.startTie={},c&&(n.startTie.style="dotted")),$++;while($<t.length&&(r.isWhiteSpace(t[$])||"-"===t[$])||"."===t[$]&&"-"===t[$+1]);if(n.endChar=$,u||!o||"<"!==t[$]&&">"!==t[$])return n;$--,h="broken_rhythm";break;case">":case"<":if(!l(h))return null;if(!o)return n.endChar=$,n;var m=F(t,$);$+=m[0]-1,a.next_note_duration=m[2],n.duration=m[1]*n.duration,h="end_slur";break;default:if(l(h))return n.endChar=$,n;return null}if(++$===t.length){if(l(h))return n.endChar=$,n;break}}return null},F=function e(t,$){switch(t[$]){case">":if($<t.length-2&&">"===t[$+1]&&">"===t[$+2])return[3,1.875,.125];if($<t.length-1&&">"===t[$+1])return[2,1.75,.25];return[1,1.5,.5];case"<":if($<t.length-2&&"<"===t[$+1]&&"<"===t[$+2])return[3,.125,1.875];if($<t.length-1&&"<"===t[$+1])return[2,.25,1.75];return[1,.5,1.5]}return null};e.exports=x},"./src/parse/abc_parse_settings.js":function(e){e.exports.legalAccents=["trill","trillh","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","beambr1","beambr2","slide","slideup","slidedown","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x","style=triangle","style=sn_do","style=sn_re","style=sn_mi","style=sn_fa","style=sn_fa_l","style=sn_fa_r","style=sn_so","style=sn_la","style=sn_ti","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"],e.exports.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz","ppppp"],e.exports.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"],e.exports.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],e.exports.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],e.exports.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",e.exports.durations=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875],e.exports.pitches={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11},e.exports.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"},e.exports.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"},e.exports.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2}},"./src/parse/abc_tokenizer.js":function(e,t,$){var r=$(/*! ./abc_common */ "./src/parse/abc_common.js"),n=function e(t,$){this.lineIndex=0,this.lines=t,this.multilineVars=$,this.skipWhiteSpace=function(e){for(var t=0;t<e.length;t++)if(!this.isWhiteSpace(e[t]))return t;return e.length};var n=function e(t,$){return $>=t.length};this.eatWhiteSpace=function(e,t){for(var $=t;$<e.length&&this.isWhiteSpace(e[$]);$++);return $-t},this.getKeyPitch=function(e){var t=this.skipWhiteSpace(e);if(n(e,t))return{len:0};switch(e[t]){case"A":return{len:t+1,token:"A"};case"B":return{len:t+1,token:"B"};case"C":return{len:t+1,token:"C"};case"D":return{len:t+1,token:"D"};case"E":return{len:t+1,token:"E"};case"F":return{len:t+1,token:"F"};case"G":return{len:t+1,token:"G"}}return{len:0}},this.getSharpFlat=function(e){if("bass"===e)return{len:0};switch(e[0]){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(e){var t=function e(t,$){for(;$<t.length&&(t[$]>="a"&&t[$]<="z"||t[$]>="A"&&t[$]<="Z");)$++;return $},$=this.skipWhiteSpace(e);if(n(e,$))return{len:0};var r=e.substring($,$+3).toLowerCase();switch((r.length>1&&" "===r[1]||"^"===r[1]||"_"===r[1]||"="===r[1])&&(r=r[0]),r){case"mix":return{len:t(e,$),token:"Mix"};case"dor":return{len:t(e,$),token:"Dor"};case"phr":return{len:t(e,$),token:"Phr"};case"lyd":return{len:t(e,$),token:"Lyd"};case"loc":return{len:t(e,$),token:"Loc"};case"aeo":case"min":case"m":return{len:t(e,$),token:"m"};case"maj":case"ion":return{len:t(e,$),token:""}}return{len:0}},this.getClef=function(e,t){var $=e,a=this.skipWhiteSpace(e);if(n(e,a))return{len:0};var s=!1,i=e.substring(a);if(r.startsWith(i,"clef=")&&(s=!0,i=i.substring(5),a+=5),0===i.length&&s)return{len:a+5,warn:"No clef specified: "+$};var o=this.skipWhiteSpace(i);if(n(i,o))return{len:0};o>0&&(a+=o,i=i.substring(o));var c=null;if(r.startsWith(i,"treble"))c="treble";else if(r.startsWith(i,"bass3"))c="bass3";else if(r.startsWith(i,"bass"))c="bass";else if(r.startsWith(i,"tenor"))c="tenor";else if(r.startsWith(i,"alto2"))c="alto2";else if(r.startsWith(i,"alto1"))c="alto1";else if(r.startsWith(i,"alto"))c="alto";else if(!t&&s&&r.startsWith(i,"none"))c="none";else if(r.startsWith(i,"perc"))c="perc";else if(!t&&s&&r.startsWith(i,"C"))c="tenor";else if(!t&&s&&r.startsWith(i,"F"))c="bass";else{if(!(!t&&s&&r.startsWith(i,"G")))return{len:a+5,warn:"Unknown clef specified: "+$};c="treble"}return i=i.substring(c.length),(o=this.isMatch(i,"+8"))>0?c+="+8":(o=this.isMatch(i,"-8"))>0&&(c+="-8"),{len:a+c.length,token:c,explicit:s}},this.getBarLine=function(e,t){switch(e[t]){case"]":switch(e[++t]){case"|":return{len:2,token:"bar_thick_thin"};case"[":if(e[++t]>="1"&&e[t]<="9"||'"'===e[t])return{len:2,token:"bar_invisible"};return{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(e[++t]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(e[++t]){case"]":if("|"===e[++t]&&":"===e[++t])return{len:5,token:"bar_dbl_repeat"};return{len:3,token:"bar_right_repeat"};case"|":if(":"===e[++t])return{len:4,token:"bar_dbl_repeat"};return{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}break;default:return{len:1,warn:"Unknown bar symbol"}}break;case"[":if("|"===e[++t])switch(e[++t]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}else if(e[t]>="1"&&e[t]<="9"||'"'===e[t])return{len:1,token:"bar_invisible"};break;case"|":switch(e[++t]){case"]":return{len:2,token:"bar_thin_thick"};case"|":if(":"===e[++t])return{len:3,token:"bar_left_repeat"};return{len:2,token:"bar_thin_thin"};case":":for(var $=0;":"===e[t+$];)$++;return{len:1+$,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(e,t){for(var $=0;$<e.length;$++)if(0>t.indexOf(e[$]))return{len:$,token:e.substring(0,$)};return{len:$,token:e}},this.getToken=function(e,t,$){for(var r=t;r<$&&!this.isWhiteSpace(e[r]);)r++;return e.substring(t,r)},this.isMatch=function(e,t){var $=this.skipWhiteSpace(e);return n(e,$)?0:r.startsWith(e.substring($),t)?$+t.length:0},this.getPitchFromTokens=function(e){var t={};if(t.position=({A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11})[e[0].token],void 0===t.position)return{warn:"Pitch expected. Found: "+e[0].token};for(e.shift();e.length;)switch(e[0].token){case",":t.position-=7,e.shift();break;case"'":t.position+=7,e.shift();break;default:return t}return t},this.getKeyAccidentals2=function(e){for(var t,$;e.length>0;){if("^"===e[0].token){if($="sharp",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+$};switch(e[0].token){case"^":$="dblsharp",e.shift();break;case"/":$="quartersharp",e.shift()}}else if("="===e[0].token)$="natural",e.shift();else if("_"===e[0].token){if($="flat",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+$};switch(e[0].token){case"_":$="dblflat",e.shift();break;case"/":$="quarterflat",e.shift()}}else break;if(0===e.length)return{accs:t,warn:"Expected note name after "+$};switch(e[0].token[0]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":void 0===t&&(t=[]),t.push({acc:$,note:e[0].token[0]}),1===e[0].token.length?e.shift():e[0].token=e[0].token.substring(1);break;default:return{accs:t,warn:"Expected note name after "+$+" Found: "+e[0].token}}}return{accs:t}},this.getKeyAccidental=function(e){var t={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},$=this.skipWhiteSpace(e);if(n(e,$))return{len:0};var r=null;switch(e[$]){case"^":case"_":case"=":r=e[$];break;default:return{len:0}}if(n(e,++$))return{len:1,warn:"Expected note name after accidental"};switch(e[$]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:$+1,token:{acc:t[r],note:e[$]}};case"^":case"_":case"/":if(r+=e[$],n(e,++$))return{len:2,warn:"Expected note name after accidental"};switch(e[$]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:$+1,token:{acc:t[r],note:e[$]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(e){return" "===e||" "===e||"\x12"===e},this.getMeat=function(e,t,$){var r=e.indexOf("%",t);for(r>=0&&r<$&&($=r);t<$&&(" "===e[t]||" "===e[t]||"\x12"===e[t]);)t++;for(;t<$&&(" "===e[$-1]||" "===e[$-1]||"\x12"===e[$-1]);)$--;return{start:t,end:$}};var a=function e(t){return t>="A"&&t<="Z"||t>="a"&&t<="z"},s=function e(t){return t>="0"&&t<="9"};this.tokenize=function(e,t,$,r){var n,i=this.getMeat(e,t,$);t=i.start,$=i.end;for(var o=[];t<$;){if('"'===e[t]){for(n=t+1;n<$&&'"'!==e[n];)n++;o.push({type:"quote",token:e.substring(t+1,n),start:t+1,end:n}),n++}else if(a(e[t])){if(n=t+1,r)for(;n<$&&!this.isWhiteSpace(e[n]);)n++;else for(;n<$&&a(e[n]);)n++;o.push({type:"alpha",token:e.substring(t,n),continueId:s(e[n]),start:t,end:n}),t=n+1}else if("."===e[t]&&s(e[n+1])){n=t+1;for(var c=null;n<$&&s(e[n]);)n++;c=parseFloat(e.substring(t,n)),o.push({type:"number",token:e.substring(t,n),intt:null,floatt:c,continueId:a(e[n]),start:t,end:n}),t=n+1}else if(s(e[t])||"-"===e[t]&&s(e[n+1])){n=t+1;for(var l=null,_=null;n<$&&s(e[n]);)n++;if("."===e[n]&&s(e[n+1]))for(n++;n<$&&s(e[n]);)n++;else l=parseInt(e.substring(t,n));_=parseFloat(e.substring(t,n)),o.push({type:"number",token:e.substring(t,n),intt:l,floatt:_,continueId:a(e[n]),start:t,end:n}),t=n+1}else" "===e[t]||" "===e[t]||o.push({type:"punct",token:e[t],start:t,end:t+1}),n=t+1;t=n}return o},this.getVoiceToken=function(e,t,$){for(var r=t;r<$&&this.isWhiteSpace(e[r])||"="===e[r];)r++;if('"'===e[r]){var n=e.indexOf('"',r+1);return -1===n||n>=$?{len:1,err:"Missing close quote"}:{len:n-t+1,token:this.translateString(e.substring(r+1,n))}}for(var a=r;a<$&&!this.isWhiteSpace(e[a])&&"="!==e[a];)a++;return{len:a-t+1,token:e.substring(r,a)}};var i={"`a":"\xe0","'a":"\xe1","^a":"\xe2","~a":"\xe3",'"a':"\xe4",oa:"\xe5",aa:"\xe5","=a":"ā",ua:"ă",";a":"ą","`e":"\xe8","'e":"\xe9","^e":"\xea",'"e':"\xeb","=e":"ē",ue:"ĕ",";e":"ę",".e":"ė","`i":"\xec","'i":"\xed","^i":"\xee",'"i':"\xef","=i":"ī",ui:"ĭ",";i":"į","`o":"\xf2","'o":"\xf3","^o":"\xf4","~o":"\xf5",'"o':"\xf6","=o":"ō",uo:"ŏ","/o":"\xf8","`u":"\xf9","'u":"\xfa","^u":"\xfb","~u":"ũ",'"u':"\xfc",ou:"ů","=u":"ū",uu:"ŭ",";u":"ų","`A":"\xc0","'A":"\xc1","^A":"\xc2","~A":"\xc3",'"A':"\xc4",oA:"\xc5",AA:"\xc5","=A":"Ā",uA:"Ă",";A":"Ą","`E":"\xc8","'E":"\xc9","^E":"\xca",'"E':"\xcb","=E":"Ē",uE:"Ĕ",";E":"Ę",".E":"Ė","`I":"\xcc","'I":"\xcd","^I":"\xce","~I":"Ĩ",'"I':"\xcf","=I":"Ī",uI:"Ĭ",";I":"Į",".I":"İ","`O":"\xd2","'O":"\xd3","^O":"\xd4","~O":"\xd5",'"O':"\xd6","=O":"Ō",uO:"Ŏ","/O":"\xd8","`U":"\xd9","'U":"\xda","^U":"\xdb","~U":"Ũ",'"U':"\xdc",oU:"Ů","=U":"Ū",uU:"Ŭ",";U":"Ų",ae:"\xe6",AE:"\xc6",oe:"œ",OE:"Œ",ss:"\xdf","'c":"ć","^c":"ĉ",uc:"č",cc:"\xe7",".c":"ċ",cC:"\xc7","'C":"Ć","^C":"Ĉ",uC:"Č",".C":"Ċ","~N":"\xd1","~n":"\xf1","=s":"š",vs:"š",DH:"\xd0",dh:"\xf0",HO:"Ő",Ho:"ő",HU:"Ű",Hu:"ű","'Y":"\xdd","'y":"\xfd","^Y":"Ŷ","^y":"ŷ",'"Y':"Ÿ",'"y':"\xff",vS:"Š",vZ:"Ž",vz:"ž"},o={"#":"♯",b:"♭","=":"♮"},c={201:"♯",202:"♭",203:"♮",241:"\xa1",242:"\xa2",252:"a",262:"2",272:"o",302:"\xc2",312:"\xca",322:"\xd2",332:"\xda",342:"\xe2",352:"\xea",362:"\xf2",372:"\xfa",243:"\xa3",253:"\xab",263:"3",273:"\xbb",303:"\xc3",313:"\xcb",323:"\xd3",333:"\xdb",343:"\xe3",353:"\xeb",363:"\xf3",373:"\xfb",244:"\xa4",254:"\xac",264:" ́",274:"1⁄4",304:"\xc4",314:"\xcc",324:"\xd4",334:"\xdc",344:"\xe4",354:"\xec",364:"\xf4",374:"\xfc",245:"\xa5",255:"-",265:"μ",275:"1⁄2",305:"\xc5",315:"\xcd",325:"\xd5",335:"\xdd",345:"\xe5",355:"\xed",365:"\xf5",375:"\xfd",246:"\xa6",256:"\xae",266:"\xb6",276:"3⁄4",306:"\xc6",316:"\xce",326:"\xd6",336:"\xde",346:"\xe6",356:"\xee",366:"\xf6",376:"\xfe",247:"\xa7",257:" ̄",267:"\xb7",277:"\xbf",307:"\xc7",317:"\xcf",327:"\xd7",337:"\xdf",347:"\xe7",357:"\xef",367:"\xf7",377:"\xff",250:" ̈",260:"\xb0",270:" ̧",300:"\xc0",310:"\xc8",320:"\xd0",330:"\xd8",340:"\xe0",350:"\xe8",360:"\xf0",370:"\xf8",251:"\xa9",261:"\xb1",271:"1",301:"\xc1",311:"\xc9",321:"\xd1",331:"\xd9",341:"\xe1",351:"\xe9",361:"\xf1",371:"\xf9"};this.translateString=function(e){var t=e.split("\\");if(1===t.length)return e;var $=null;return t.forEach(function(e){if(null===$)$=e;else{var t=i[e.substring(0,2)];void 0!==t?$+=t+e.substring(2):void 0!==(t=c[e.substring(0,3)])?$+=t+e.substring(3):void 0!==(t=o[e.substring(0,1)])?$+=t+e.substring(1):$+="\\"+e}}),$},this.getNumber=function(e,t){for(var $=0;t<e.length;)switch(e[t]){case"0":$*=10,t++;break;case"1":$=10*$+1,t++;break;case"2":$=10*$+2,t++;break;case"3":$=10*$+3,t++;break;case"4":$=10*$+4,t++;break;case"5":$=10*$+5,t++;break;case"6":$=10*$+6,t++;break;case"7":$=10*$+7,t++;break;case"8":$=10*$+8,t++;break;case"9":$=10*$+9,t++;break;default:return{num:$,index:t}}return{num:$,index:t}},this.getFraction=function(e,t){var $=1,r=1;if("/"!==e[t]){var n=this.getNumber(e,t);$=n.num,t=n.index}if("/"===e[t]){if("/"===e[++t]){for(var a=.5;"/"===e[t++];)a/=2;return{value:$*a,index:t-1}}var s=t,i=this.getNumber(e,t);0===i.num&&s===t&&(i.num=2),0!==i.num&&(r=i.num),t=i.index}return{value:$/r,index:t}},this.theReverser=function(e){function t(t){let $=/^(\d+)\./.exec(e);if(!$)return null;{let r=$[1];return r}}if(r.endsWith(e,", The")||r.endsWith(e,", the")){var $=t(e);$&&(e=(e=e.replace($+".","")).trim());var n="The "+e.substring(0,e.length-5);return $&&(n=$+". "+n),n}if(r.endsWith(e,", A")||r.endsWith(e,", a")){var $=t(e);$&&(e=(e=e.replace($+".","")).trim());var n="A "+e.substring(0,e.length-3);return $&&(n=$+". "+n),n}if(r.endsWith(e,", Da")){var $=t(e);$&&(e=(e=e.replace($+".","")).trim());var n="Da "+e.substring(0,e.length-4);return $&&(n=$+". "+n),n}return e},this.stripComment=function(e){var t=e.indexOf("%");return t>=0?r.strip(e.substring(0,t)):r.strip(e)},this.getInt=function(e){var t=parseInt(e);if(isNaN(t))return{digits:0};var $=""+t;return{value:t,digits:e.indexOf($)+$.length}},this.getFloat=function(e){var t=parseFloat(e);if(isNaN(t))return{digits:0};var $=""+t;return{value:t,digits:e.indexOf($)+$.length}},this.getMeasurement=function(e){if(0===e.length)return{used:0};var t=1,$="";if("-"===e[0].token)e.shift(),$="-",t++;else if("number"!==e[0].type)return{used:0};if($+=e.shift().token,0===e.length)return{used:1,value:parseInt($)};var r=e.shift();if("."===r.token){if(t++,0===e.length)return{used:t,value:parseInt($)};if("number"===e[0].type&&($=$+"."+(r=e.shift()).token,t++,0===e.length))return{used:t,value:parseFloat($)};r=e.shift()}switch(r.token){case"pt":case"px":return{used:t+1,value:parseFloat($)};case"cm":return{used:t+1,value:parseFloat($)/2.54*72};case"in":return{used:t+1,value:72*parseFloat($)};default:return e.unshift(r),{used:t,value:parseFloat($)}}};var l=function e(t){return t=(t=t.replace(/\\n/g,"\n")).replace(/\\"/g,'"')};this.getBrackettedSubstring=function(e,t,$,r){for(var n=r||e[t],a=t+1,s=!1;a<e.length&&(s||e[a]!==n);)s="\\"===e[a],++a;return e[a]===n?[a-t+1,l(e.substring(t+1,a)),!0]:((a=t+$)>e.length-1&&(a=e.length-1),[a-t+1,l(e.substring(t+1,a)),!1])}};n.prototype.peekLine=function(){return this.lines[this.lineIndex]},n.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex<this.lines.length){var e=this.lines[this.lineIndex];return this.lineIndex++,e}return null},e.exports=n},"./src/parse/abc_transpose.js":function(e,t,$){var r=$(/*! ./all-notes */ "./src/parse/all-notes.js"),n=$(/*! ../parse/transpose-chord */ "./src/parse/transpose-chord.js"),a=$(/*! ../const/key-accidentals */ "./src/const/key-accidentals.js"),s={},i={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},o=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],c=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];s.keySignature=function(e,t,$,r,n){if("perc"===e.clef.type||"none"===e.clef.type)return{accidentals:a(t),root:$,acc:r};n||(n=0),e.localTransposeVerticalMovement=0,e.localTransposePreferFlats=!1;var s=a(t);if(!s)return e.key;if(e.localTranspose=(e.globalTranspose?e.globalTranspose:0)+n,!e.localTranspose)return{accidentals:s,root:$,acc:r};if(e.globalTransposeOrigKeySig=s,e.localTranspose%12==0)return e.localTransposeVerticalMovement=e.localTranspose/12*7,{accidentals:s,root:$,acc:r};var l=t[0];"b"===t[1]||"#"===t[1]?(l+=t[1],t=t.substr(2)):t=t.substr(1);var _=i[l],h=void 0!==_;h||(_=0,l="C",t="");for(var u=_+e.localTranspose;u<0;)u+=12;u>11&&(u%=12);var d="m"===t[0]?c[u]:o[u],f=d+t,p=a(f);p.length>0&&"flat"===p[0].acc&&(e.localTransposePreferFlats=!0);var m=f.charCodeAt(0)-l.charCodeAt(0);return(e.localTranspose>0?m<0?m+=7:0===m&&("#"===l[1]||"b"===f[1])&&(m+=7):e.localTranspose<0&&(m>0?m-=7:0===m&&("b"===l[1]||"#"===f[1])&&(m-=7)),e.localTranspose>0?e.localTransposeVerticalMovement=m+7*Math.floor(e.localTranspose/12):e.localTransposeVerticalMovement=m+7*Math.ceil(e.localTranspose/12),h)?{accidentals:p,root:d[0],acc:d.length>1?d[1]:""}:{accidentals:[],root:$,acc:r}},s.chordName=function(e,t){return n(t,e.localTranspose,e.localTransposePreferFlats,e.freegchord)};var l=["c","d","e","f","g","a","b"],_={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},h={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},u={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};s.note=function(e,t){if(e.localTranspose&&"perc"!==e.clef.type){var $=t.pitch;if(e.localTransposeVerticalMovement&&(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.name)){var n=t.accidental?t.name.substring(1):t.name,a=t.accidental?t.name[0]:"",s=r.pitchIndex(n);t.name=a+r.noteName(s+e.localTransposeVerticalMovement)}if(t.accidental){var i=function e(t,$,r,n,a){for(var s=l[(t+49)%7],i=0,o=0;o<n.length;o++)n[o].note.toLowerCase()===s&&(i=_[n[o].acc]);for(var c=_[r]-i,h=l[($+49)%7],u=0,d=0;d<a.accidentals.length;d++)a.accidentals[d].note.toLowerCase()===h&&(u=_[a.accidentals[d].acc]);var f=c+u;return f<-2&&($--,f+="c"===h||"f"===h?1:2),f>2&&($++,f-="b"===h||"e"===h?1:2),[$,f]}($,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=i[0],t.accidental=h[i[1]],t.name&&(t.name=u[i[1]]+t.name.replace(/[_^=]/g,""))}}},e.exports=s},"./src/parse/all-notes.js":function(e){var t={},$=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];t.pitchIndex=function(e){return $.indexOf(e)},t.noteName=function(e){return $[e]},e.exports=t},"./src/parse/transpose-chord.js":function(e){var t=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],$=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],r=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],n=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];e.exports=function e(a,s,i,o){if(!s||s%12==0)return a;for(;s<0;)s+=12;s>11&&(s%=12);var c=a.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!c)return a;var l=c[1],_=c[2],h=c[3],u=c[4],d=t.indexOf(l);if(d<0&&(d=$.indexOf(l)),d<0&&(d=r.indexOf(l)),d<0&&(d=n.indexOf(l)),d<0)return a;if(d+=s,d%=12,a=i?o?n[d]:$[d]:o?r[d]:t[d],_&&(a+=_),h){var d=t.indexOf(h);d<0&&(d=$.indexOf(h)),d<0&&(d=r.indexOf(h)),d<0&&(d=n.indexOf(h)),a+="/",d>=0?(d+=s,d%=12,i?o?a+=n[d]:a+=$[d]:o?a+=r[d]:a+=t[d]):a+=h}return u&&(a+=u),a}},"./src/parse/tune-builder.js":function(e,t,$){var r=$(/*! ../parse/abc_parse_key_voice */ "./src/parse/abc_parse_key_voice.js"),n=$(/*! ../parse/abc_common */ "./src/parse/abc_common.js"),a=function e(t){var $=this;function a(e,t){for(var $=t-1;$>0&&"bar"!==e[$].el_type;$--);return $}this.setVisualTranspose=function(e){e&&(t.visualTranspose=e)},this.resolveOverlays=function(){for(var e=!1,$=[],r=0;r<t.lines.length;r++){var s=t.lines[r];if(s.staff)for(var i=0;i<s.staff.length;i++){for(var o=s.staff[i],c=[],l=0;l<o.voices.length;l++){var _=o.voices[l];c.push({hasOverlay:!1,voice:[],snip:[]}),$[r]=0;for(var h=0,u=!1,d=0,f=-1,p=0;p<_.length;p++){var m=_[p];if("overlay"!==m.el_type||u)"bar"===m.el_type?(u?(u=!1,c[l].snip.push({start:f,len:p-f}),c[l].voice.push(m)):(h>0&&c[l].voice.push({el_type:"note",duration:h,rest:{type:"invisible"},startChar:m.startChar,endChar:m.endChar}),c[l].voice.push(m)),h=0):"note"===m.el_type?u?c[l].voice.push(m):(h+=m.duration,$[r]+=m.duration):("scale"===m.el_type||"stem"===m.el_type||"overlay"===m.el_type||"style"===m.el_type||"transpose"===m.el_type||"color"===m.el_type)&&c[l].voice.push(m);else{e=!0,u=!0,f=p,c[l].hasOverlay=!0,0===d&&(d=$[r]);for(var g=0;g<r;g++)$[g]&&t.lines[g].staff&&o.voices.length>=t.lines[g].staff[0].voices.length&&t.lines[g].staff[0].voices.push([{el_type:"note",duration:$[g],rest:{type:"invisible"},startChar:m.startChar,endChar:m.endChar}])}}c[l].hasOverlay&&0===c[l].snip.length&&c[l].snip.push({start:f,len:_.length-f})}for(l=0;l<c.length;l++){var v=c[l];if(v.hasOverlay){v.voice.splice(0,0,{el_type:"stem",direction:"down"}),o.voices.push(v.voice);for(var b=v.snip.length-1;b>=0;b--){var y=v.snip[b];o.voices[l].splice(y.start,y.len),o.voices[l].splice(y.start+1,0,{el_type:"stem",direction:"auto"});var k=a(o.voices[l],y.start);o.voices[l].splice(k,0,{el_type:"stem",direction:"up"})}for(b=0;b<o.voices[o.voices.length-1].length;b++){o.voices[o.voices.length-1][b]=n.clone(o.voices[o.voices.length-1][b]);var w=o.voices[o.voices.length-1][b];"bar"===w.el_type&&w.startEnding&&delete w.startEnding,"bar"===w.el_type&&w.endEnding&&delete w.endEnding}}}}}return e},this.cleanUp=function(e,$,a){this.closeLine(),delete t.runningFonts,t.metaText.tempo&&t.metaText.tempo.bpm&&!t.metaText.tempo.duration&&(t.metaText.tempo.duration=[t.getBeatLength()]);var s,i,o,c=!1;for(s=0;s<t.lines.length;s++)if(void 0!==t.lines[s].staff){var l=!1;for(i=0;i<t.lines[s].staff.length;i++)if(void 0===t.lines[s].staff[i])c=!0,t.lines[s].staff[i]=null;else for(o=0;o<t.lines[s].staff[i].voices.length;o++)void 0===t.lines[s].staff[i].voices[o]?t.lines[s].staff[i].voices[o]=[]:this.containsNotes(t.lines[s].staff[i].voices[o])&&(l=!0);l||(t.lines[s]=null,c=!0)}if(c&&(t.lines=t.lines.filter(function(e){return!!e}),t.lines.forEach(function(e){e.staff&&(e.staff=e.staff.filter(function(e){return!!e}))})),e)for(;d(t.lines,e););if($){for(s=0,c=!1;s<t.lines.length;s++)if(void 0!==t.lines[s].staff)for(i=0;i<t.lines[s].staff.length;i++){var _=!1;for(o=0;o<t.lines[s].staff[i].voices.length;o++)this.containsNotesStrict(t.lines[s].staff[i].voices[o])&&(_=!0);_||(c=!0,t.lines[s].staff[i]=null)}c&&t.lines.forEach(function(e){e.staff&&(e.staff=e.staff.filter(function(e){return!!e}))})}for(function e(t){for(var $=!0,r=0;r<t.length;r++){var n=t[r];if(n.staff){for(var a=0;a<n.staff.length;a++){var s=n.staff[a];if(s.title){for(var i=!1,o=0;o<s.title.length;o++)s.title[o]?(s.title[o]=$?s.title[o].name:s.title[o].subname,s.title[o]?i=!0:s.title[o]=""):s.title[o]="";i||delete s.title}}$=!1}}}(t.lines),s=0;s<t.lines.length;s++)if(t.lines[s].staff)for(i=0;i<t.lines[s].staff.length;i++)delete t.lines[s].staff[i].workingClef;for(;this.resolveOverlays(););function h(e,t,$){a[t]||(a[t]=[]),a[t][$]||(a[t][$]=[]);for(var r,n=function e(n,s,i){if(void 0===a[t][$][i]){for(r=0;r<a[t][$].length;r++)if(void 0!==a[t][$][r]){i=r;break}if(void 0===a[t][$][i]){var o,c=100*i+1;n.endSlur.forEach(function(e){c===e&&--c}),a[t][$][i]=[c]}}for(var l=0;l<s;l++)o=a[t][$][i].pop(),n.endSlur.push(o);return 0===a[t][$][i].length&&delete a[t][$][i],o},s=function e(r,n,s,i){r.startSlur=[],void 0===a[t][$][s]&&(a[t][$][s]=[]);for(var o=100*s+1,c=0;c<n;c++)i&&(i.forEach(function(e){o===e&&++o}),i.forEach(function(e){o===e&&++o}),i.forEach(function(e){o===e&&++o})),a[t][$][s].forEach(function(e){o===e&&++o}),a[t][$][s].forEach(function(e){o===e&&++o}),a[t][$][s].push(o),r.startSlur.push({label:o}),r.dottedSlur&&(r.startSlur[r.startSlur.length-1].style="dotted",delete r.dottedSlur),o++},i=0;i<e.length;i++){var o=e[i];if("note"===o.el_type){if(o.gracenotes)for(var c=0;c<o.gracenotes.length;c++){if(o.gracenotes[c].endSlur){var l=o.gracenotes[c].endSlur;o.gracenotes[c].endSlur=[];for(var _=0;_<l;_++)n(o.gracenotes[c],1,20)}o.gracenotes[c].startSlur&&(r=o.gracenotes[c].startSlur,s(o.gracenotes[c],r,20))}if(o.endSlur&&(r=o.endSlur,o.endSlur=[],n(o,r,0)),o.startSlur&&(r=o.startSlur,s(o,r,0)),o.pitches){for(var h=[],u=0;u<o.pitches.length;u++)if(o.pitches[u].endSlur){var d=o.pitches[u].endSlur;o.pitches[u].endSlur=[];for(var f=0;f<d;f++){var p=n(o.pitches[u],1,u+1);h.push(p)}}for(u=0;u<o.pitches.length;u++)o.pitches[u].startSlur&&(r=o.pitches[u].startSlur,s(o.pitches[u],r,u+1,h));o.gracenotes&&o.pitches[0].endSlur&&100===o.pitches[0].endSlur[0]&&o.pitches[0].startSlur&&(o.gracenotes[0].endSlur?o.gracenotes[0].endSlur.push(o.pitches[0].startSlur[0].label):o.gracenotes[0].endSlur=[o.pitches[0].startSlur[0].label],1===o.pitches[0].endSlur.length?delete o.pitches[0].endSlur:100===o.pitches[0].endSlur[0]?o.pitches[0].endSlur.shift():100===o.pitches[0].endSlur[o.pitches[0].endSlur.length-1]&&o.pitches[0].endSlur.pop(),1===a[t][$][1].length?delete a[t][$][1]:a[t][$][1].pop())}}}}function u(e){r.fixClef(e)}function d(e,t){for(s=0;s<e.length;s++)if(void 0!==e[s].staff)for(i=0;i<e[s].staff.length;i++){var $=[];for(o=0;o<e[s].staff[i].voices.length;o++)for(var r=e[s].staff[i].voices[o],a=0,c=0;c<r.length;c++)if("bar"===r[c].el_type){if(++a>=t&&c<r.length-1){var l=f(e,s);if(!l){var _=JSON.parse(JSON.stringify(e[s]));e.push(n.clone(_)),l=e[e.length-1];for(var h=0;h<l.staff.length;h++)for(var u=0;u<l.staff[h].voices.length;u++)l.staff[h].voices[u]=[]}var d=c+1,p=e[s].staff[i].voices[o].slice(d);return e[s].staff[i].voices[o]=e[s].staff[i].voices[o].slice(0,d),l.staff[i].voices[o]=$.concat(p.concat(l.staff[i].voices[o])),!0}}else r[c].duration||$.push(r[c])}return!1}function f(e,t){for(t++;e.length>t;){if(e[t].staff)return e[t];t++}return null}for(t.lineNum=0;t.lineNum<t.lines.length;t.lineNum++){var p=t.lines[t.lineNum].staff;if(p)for(t.staffNum=0;t.staffNum<p.length;t.staffNum++)for(p[t.staffNum].clef&&u(p[t.staffNum].clef),t.voiceNum=0;t.voiceNum<p[t.staffNum].voices.length;t.voiceNum++){var m=p[t.staffNum].voices[t.voiceNum];h(m,t.staffNum,t.voiceNum);for(var g=0;g<m.length;g++)"clef"===m[g].el_type&&u(m[g]);if(m.length>0&&m[m.length-1].barNumber){var v=f(t.lines,t.lineNum);v&&(v.staff[0].barNumber=m[m.length-1].barNumber),delete m[m.length-1].barNumber}}}return delete t.staffNum,delete t.voiceNum,delete t.lineNum,delete t.potentialStartBeam,delete t.potentialEndBeam,delete t.vskipPending,a},t.reset(),this.getLastNote=function(){if(t.lines[t.lineNum]&&t.lines[t.lineNum].staff&&t.lines[t.lineNum].staff[t.staffNum]&&t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum])for(var e=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum].length-1;e>=0;e--){var $=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum][e];if("note"===$.el_type)return $}return null},this.addTieToLastNote=function(e){var t=this.getLastNote();return!!t&&!!t.pitches&&t.pitches.length>0&&(t.pitches[0].startTie={},e&&(t.pitches[0].startTie.style="dotted"),!0)},this.getDuration=function(e){return e.duration?e.duration:0},this.closeLine=function(){t.potentialStartBeam&&t.potentialEndBeam&&(t.potentialStartBeam.startBeam=!0,t.potentialEndBeam.endBeam=!0),delete t.potentialStartBeam,delete t.potentialEndBeam},this.appendElement=function(e,r,n,a){var s=t;a.el_type=e,null!==r&&(a.startChar=r),null!==n&&(a.endChar=n);var i=function e(){void 0!==s.potentialStartBeam&&void 0!==s.potentialEndBeam&&(s.potentialStartBeam.startBeam=!0,s.potentialEndBeam.endBeam=!0),delete s.potentialStartBeam,delete s.potentialEndBeam};"note"===e?$.getDuration(a)>=.25?i():a.force_end_beam_last&&void 0!==s.potentialStartBeam?i():a.end_beam&&void 0!==s.potentialStartBeam?void 0===a.rest?(s.potentialStartBeam.startBeam=!0,a.endBeam=!0,delete s.potentialStartBeam,delete s.potentialEndBeam):i():void 0!==a.rest||(void 0===s.potentialStartBeam?a.end_beam||(s.potentialStartBeam=a,delete s.potentialEndBeam):s.potentialEndBeam=a):i(),delete a.end_beam,delete a.force_end_beam_last,function e(t){var $=s.lines[s.lineNum].staff[s.staffNum];if($){if(void 0!==t.pitches){var r=$.workingClef.verticalPos;t.pitches.forEach(function(e){e.verticalPos=e.pitch-r})}if(void 0!==t.gracenotes){var n=$.workingClef.verticalPos;t.gracenotes.forEach(function(e){e.verticalPos=e.pitch-n})}$.voices[s.voiceNum].push(t)}}(a)},this.appendStartingElement=function(e,$,r,a){this.closeLine(),"key"===e&&(s=a.impliedNaturals,delete a.impliedNaturals,delete a.explicitAccidentals);var s,i=n.clone(a);if(t.lines[t.lineNum]&&t.lines[t.lineNum].staff){t.lines[t.lineNum].staff.length<=t.staffNum&&(t.lines[t.lineNum].staff[t.staffNum]={},t.lines[t.lineNum].staff[t.staffNum].clef=n.clone(t.lines[t.lineNum].staff[0].clef),t.lines[t.lineNum].staff[t.staffNum].key=n.clone(t.lines[t.lineNum].staff[0].key),t.lines[t.lineNum].staff[0].meter&&(t.lines[t.lineNum].staff[t.staffNum].meter=n.clone(t.lines[t.lineNum].staff[0].meter)),t.lines[t.lineNum].staff[t.staffNum].workingClef=n.clone(t.lines[t.lineNum].staff[0].workingClef),t.lines[t.lineNum].staff[t.staffNum].voices=[[]]),"clef"===e&&(t.lines[t.lineNum].staff[t.staffNum].workingClef=i);for(var o=t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum],c=0;c<o.length;c++){if("note"===o[c].el_type||"bar"===o[c].el_type){i.el_type=e,i.startChar=$,i.endChar=r,s&&(i.accidentals=s.concat(i.accidentals)),o.push(i);return}if(o[c].el_type===e){i.el_type=e,i.startChar=$,i.endChar=r,s&&(i.accidentals=s.concat(i.accidentals)),o[c]=i;return}}t.lines[t.lineNum].staff[t.staffNum][e]=a}},this.pushLine=function(e){t.vskipPending&&(e.vskip=t.vskipPending,delete t.vskipPending),t.lines.push(e)},this.addSubtitle=function(e,t){this.pushLine({subtitle:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addSpacing=function(e){t.vskipPending=e},this.addNewPage=function(e){this.pushLine({newpage:e})},this.addSeparator=function(e,t,$,r){this.pushLine({separator:{spaceAbove:Math.round(e),spaceBelow:Math.round(t),lineLength:Math.round($),startChar:r.startChar,endChar:r.endChar}})},this.addText=function(e,t){this.pushLine({text:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addCentered=function(e){this.pushLine({text:[{text:e,center:!0}]})},this.containsNotes=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type||"bar"===e[t].el_type)return!0;return!1},this.containsNotesStrict=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type&&(void 0===e[t].rest||void 0!==e[t].chord))return!0;return!1},this.changeVoiceScale=function(e){$.appendElement("scale",null,null,{size:e})},this.changeVoiceColor=function(e){$.appendElement("color",null,null,{color:e})},this.startNewLine=function(e){var r,n=t;this.closeLine();var a=function e(t){var r=n.lines[n.lineNum].staff[n.staffNum];if(r.voices[n.voiceNum]=[],r.title||(r.title=[]),r.title[n.voiceNum]={name:t.name,subname:t.subname},t.style&&$.appendElement("style",null,null,{head:t.style}),t.stem)$.appendElement("stem",null,null,{direction:t.stem});else if(n.voiceNum>0){if(void 0!==r.voices[0]){for(var a=!1,s=0;s<r.voices[0].length;s++)"stem"===r.voices[0].el_type&&(a=!0);a||r.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}$.appendElement("stem",null,null,{direction:"down"})}t.scale&&$.appendElement("scale",null,null,{size:t.scale}),t.color&&$.appendElement("color",null,null,{color:t.color})},s=function e(t){t.key&&t.key.impliedNaturals&&(t.key.accidentals=t.key.accidentals.concat(t.key.impliedNaturals),delete t.key.impliedNaturals),n.lines[n.lineNum].staff[n.staffNum]={voices:[],clef:t.clef,key:t.key,workingClef:t.clef},void 0!==t.stafflines&&(n.lines[n.lineNum].staff[n.staffNum].clef.stafflines=t.stafflines,n.lines[n.lineNum].staff[n.staffNum].workingClef.stafflines=t.stafflines),t.staffscale&&(n.lines[n.lineNum].staff[n.staffNum].staffscale=t.staffscale),t.annotationfont&&$.setLineFont("annotationfont",t.annotationfont),t.gchordfont&&$.setLineFont("gchordfont",t.gchordfont),t.tripletfont&&$.setLineFont("tripletfont",t.tripletfont),t.vocalfont&&$.setLineFont("vocalfont",t.vocalfont),t.bracket&&(n.lines[n.lineNum].staff[n.staffNum].bracket=t.bracket),t.brace&&(n.lines[n.lineNum].staff[n.staffNum].brace=t.brace),t.connectBarLines&&(n.lines[n.lineNum].staff[n.staffNum].connectBarLines=t.connectBarLines),t.barNumber&&(n.lines[n.lineNum].staff[n.staffNum].barNumber=t.barNumber),a(t),t.part&&$.appendElement("part",t.part.startChar,t.part.endChar,{title:t.part.title}),void 0!==t.meter&&(n.lines[n.lineNum].staff[n.staffNum].meter=t.meter),n.vskipPending&&(n.lines[n.lineNum].vskip=n.vskipPending,delete n.vskipPending)};void 0===t.lines[t.lineNum]?(r=e,n.lines[n.lineNum]={staff:[]},s(r)):void 0===t.lines[t.lineNum].staff?(t.lineNum++,this.startNewLine(e)):void 0===t.lines[t.lineNum].staff[t.staffNum]?s(e):void 0===t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum]?a(e):this.containsNotes(t.lines[t.lineNum].staff[t.staffNum].voices[t.voiceNum])?(t.lineNum++,this.startNewLine(e)):e.part&&$.appendElement("part",e.part.startChar,e.part.endChar,{title:e.part.title})},this.setRunningFont=function(e,$){t.runningFonts[e]=$},this.setLineFont=function(e,$){if(t.runningFonts[e]){for(var r=!1,n=Object.keys($),a=0;a<n.length;a++)t.runningFonts[e][n[a]]!==$[n[a]]&&(r=!0);r&&(t.lines[t.lineNum].staff[t.staffNum][e]=$)}t.runningFonts[e]=$},this.setBarNumberImmediate=function(e){var t=this.getCurrentVoice();if(t&&t.length>0){var $=t[t.length-1];if("bar"!==$.el_type)return e-1;void 0!==$.barNumber&&($.barNumber=e)}return e},this.hasBeginMusic=function(){for(var e=0;e<t.lines.length;e++)if(t.lines[e].staff)return!0;return!1},this.isFirstLine=function(e){for(var $=e-1;$>=0;$--)if(void 0!==t.lines[$].staff)return!1;return!0},this.getCurrentVoice=function(){var e=t.lines[t.lineNum];if(!e)return null;var $=e.staff[t.staffNum];return $&&void 0!==$.voices[t.voiceNum]?$.voices[t.voiceNum]:null},this.setCurrentVoice=function(e,$){t.staffNum=e,t.voiceNum=$;for(var r=0;r<t.lines.length;r++)if(t.lines[r].staff&&(void 0===t.lines[r].staff[e]||void 0===t.lines[r].staff[e].voices[$]||!this.containsNotes(t.lines[r].staff[e].voices[$]))){t.lineNum=r;return}t.lineNum=r},this.addMetaText=function(e,$,r){void 0===t.metaText[e]?(t.metaText[e]=$,t.metaTextInfo[e]=r):(t.metaText[e]+="\n"+$,t.metaTextInfo[e].endChar=r.endChar)},this.addMetaTextArray=function(e,$,r){void 0===t.metaText[e]?(t.metaText[e]=[$],t.metaTextInfo[e]=r):(t.metaText[e].push($),t.metaTextInfo[e].endChar=r.endChar)},this.addMetaTextObj=function(e,$,r){t.metaText[e]=$,t.metaTextInfo[e]=r}};e.exports=a},"./src/parse/wrap_lines.js":function(e){function t(e,t){for(var $=[],r=[],n=0,a=0;a<e.length;a++){var s,i=e[a],o=n+i;if(o<t)n=o;else{t-n<o-t&&n>0?($.push(a-1),r.push(Math.round(n-i)),n=i):a<e.length-1&&($.push(a),r.push(Math.round(n)),n=0)}}return r.push(Math.round(n)),{lineBreaks:$,totals:r}}function $(e){for(var t=[],$=0;$<e.length;$++)t.push(e[$]);return t}function r(e,t,r,n,a,s,i,o,c,l,_){for(var h=l;h<e.length;h++){var u=e[h];r+=u,n+=u;var d=Math.abs(r-t[o]);if(Math.abs(d-s)<t[0]/10){if(d<s){var f=$(a),p=$(c);p.push(h-1),f.push(n-u),_.push({accumulator:r,lineAccumulator:u,lineWidths:f,lastVariance:Math.abs(r-t[o+1]),highestVariance:Math.max(i,s),currLine:o+1,lineBreaks:p,startIndex:h+1})}else d>s&&h<e.length-1&&(f=$(a),p=$(c),_.push({accumulator:r,lineAccumulator:n,lineWidths:f,lastVariance:d,highestVariance:Math.max(i,d),currLine:o,lineBreaks:p,startIndex:h+1}))}d>s?(c.push(h-1),o++,i=Math.max(i,s),s=Math.abs(r-t[o]),a.push(n-u),n=u):s=d}a.push(n)}function n(e,t,$,n){for(var a=Math.ceil(e.total/t),s=Math.floor(e.total/a),i=[],o=0;o<a;o++)i.push(s*(o+1));var c=[];c.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var l=0;l<c.length;)r(e.measureWidths,i,c[l].accumulator,c[l].lineAccumulator,c[l].lineWidths,c[l].lastVariance,c[l].highestVariance,c[l].currLine,c[l].lineBreaks,c[l].startIndex,c),l++;for(o=0;o<c.length;o++){var _=c[o];_.variances=[],_.aveVariance=0;for(var h=0;h<_.lineWidths.length;h++){var u=_.lineWidths[h];_.variances.push(u-i[0]),_.aveVariance+=Math.abs(u-i[0])}_.aveVariance=_.aveVariance/_.lineWidths.length,n.attempts.push({type:"optimizeLineWidths",lineBreaks:_.lineBreaks,variances:_.variances,aveVariance:_.aveVariance,widths:e.measureWidths})}var d=9999999,f=-1;for(o=0;o<c.length;o++)(_=c[o]).aveVariance<d&&(d=_.aveVariance,f=o);return{failed:!1,lineBreaks:c[f].lineBreaks,variance:c[f].highestVariance}}function a(e,t,$){for(var r=[],n=[],a=0,s=!1,i=0;i<e.length;i++)(a+=e[i])>t&&(s=!0),i%$==$-1&&(i!==e.length-1&&r.push(i),n.push(Math.round(a)),a=0);return{failed:s,totals:n,lineBreaks:r}}e.exports={wrapLines:function e(t,$,r){if($&&0!==t.lines.length){var n=t.deline({lineBreaks:!1}),a=function e(t,$){for(var r=[],n=0,a=0,s=0,i=0;i<t.length;i++){var o=t[i];if(o.staff){var c=a,l=$[n];n++;for(var _=0;_<o.staff.length;_++)for(var h=o.staff[_],u=0;u<h.voices.length;u++){s=c;for(var d=0,f=0,p=h.voices[u],m=0,g=0;g<p.length;g++)"bar"===p[g].el_type&&(l[f]===d&&(r.push({ogLine:i,line:s,staff:_,voice:u,start:m,end:g}),m=g+1,a=Math.max(a,++s),f++),d++);r.push({ogLine:i,line:s,staff:_,voice:u,start:m,end:p.length}),a=Math.max(a,++s)}}else r.push({ogLine:i,line:s}),a=Math.max(a,++s)}return r}(n,$);t.lines=function e(t,$,r){for(var n=[],a=[],s=[],i=1,o=0;o<$.length;o++){var c=$[o];if(t[c.ogLine].staff){var l=t[c.ogLine].staff[c.staff];if(n[c.line]||(n[c.line]={staff:[]}),!n[c.line].staff[c.staff]){n[c.line].staff[c.staff]={voices:[]},void 0!==r&&0===c.staff&&c.line>0&&(n[c.line].staff[c.staff].barNumber=i);for(var _=Object.keys(l),h=0;h<_.length;h++){var u="voices"===_[h];"meter"===_[h]&&0!==c.line&&(u=!0),u||(n[c.line].staff[c.staff][_[h]]=l[_[h]])}a[c.staff]&&(n[c.line].staff[c.staff].key=a[c.staff])}n[c.line].staff[c.staff].voices[c.voice]||(n[c.line].staff[c.staff].voices[c.voice]=[]),n[c.line].staff[c.staff].voices[c.voice]=t[c.ogLine].staff[c.staff].voices[c.voice].slice(c.start,c.end+1),s[10*c.staff+c.voice]&&n[c.line].staff[c.staff].voices[c.voice].unshift({el_type:"stem",direction:s[10*c.staff+c.voice].direction});for(var d=n[c.line].staff[c.staff].voices[c.voice],f=d.length-1;f>=0;f--)if("key"===d[f].el_type){a[c.staff]={root:d[f].root,acc:d[f].acc,mode:d[f].mode,accidentals:d[f].accidentals.filter(function(e){return"natural"!==e.acc})};break}for(f=d.length-1;f>=0;f--)if("stem"===d[f].el_type){s[10*c.staff+c.voice]={direction:d[f].direction};break}if(void 0!==r&&0===c.staff&&0===c.voice)for(f=0;f<d.length;f++)"bar"===d[f].el_type&&(i++,f===d.length-1?delete d[f].barNumber:d[f].barNumber=i)}else n[c.line]=t[c.ogLine]}for(var p=0;p<n.length;p++)n[p].staff&&(n[p].staff=n[p].staff.filter(function(e){return null!=e}));return n}(n,a,r),t.lineBreaks=a}},calcLineWraps:function e($,r,s){if(0===r.length||s.staffwidth<r[0].left)return{reParse:!1,explanation:"Staff width is narrower than the margin",revisedParams:s};var i=s.scale?Math.max(s.scale,.1):1,o=s.wrap.minSpacing?Math.max(parseFloat(s.wrap.minSpacing),1):1,c=s.wrap.minSpacingLimit?Math.max(parseFloat(s.wrap.minSpacingLimit),1):o-.1,l=s.wrap.maxSpacing?Math.max(parseFloat(s.wrap.maxSpacing),1):void 0;s.wrap.lastLineLimit&&!l&&(l=Math.max(parseFloat(s.wrap.lastLineLimit),1));for(var _=s.wrap.preferredMeasuresPerLine?Math.max(parseInt(s.wrap.preferredMeasuresPerLine,10),0):void 0,h=[],u=[],d=0;d<r.length;d++){var f=r[d],p=s.staffwidth-f.left,m=p/o/i,g=p/l/i,v=p/c/i,b={widths:f,lineBreakPoint:m,minLineSize:g,attempts:[],staffWidth:s.staffwidth,minWidth:Math.round(v)},y=null;if(_){var k=a(f.measureWidths,m,_);b.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:_,lineBreaks:k.lineBreaks,failed:k.failed,totals:k.totals}),k.failed||(y=k.lineBreaks)}if(!y){var w=t(f.measureWidths,m);b.attempts.push({type:"Free Form",lineBreaks:w.lineBreaks,totals:w.totals}),(y=w.lineBreaks).length>0&&f.measureWidths.length<25&&(w=n(f,m,y,b),b.attempts.push({type:"Optimize",failed:w.failed,reason:w.reason,lineBreaks:w.lineBreaks,totals:w.totals}),w.failed||(y=w.lineBreaks))}h.push(y),u.push(b)}var x=function e(t,$,r){var n={lineBreaks:t,staffwidth:$};for(var a in r)r.hasOwnProperty(a)&&"wrap"!==a&&"staffwidth"!==a&&(n[a]=r[a]);return{revisedParams:n}}(h,s.staffwidth,s);return x.explanation=u,x.reParse=!0,x}}},"./src/str/output.js":function(e,t,$){var r,n=$(/*! ../const/key-accidentals */ "./src/const/key-accidentals.js"),a=$(/*! ../const/relative-major */ "./src/const/relative-major.js"),s=a.relativeMajor,i=a.transposeKey,o=a.relativeMode,c=$(/*! ../parse/transpose-chord */ "./src/parse/transpose-chord.js");(function(){"use strict";function e(e,$,r){var n=[],a=$.getKeySignature();if("Hp"===a.root||"HP"===a.root)return n;n=n.concat(function e(t,$){for(var r=[],n=t.split("K:"),a=n[0].length,s=1;s<n.length;s++){var i=n[s],o=i.match(/^( *)([A-G])([#b]?)(\w*)/);if(o){var c=a+2+o[1].length,l=o[2]+o[3]+o[4],_=u({root:o[2],acc:o[3],mode:o[4]},$),h=_.root+_.acc+_.mode;r.push({start:c,end:c+l.length,note:h})}a+=i.length+2}return r}(e,r));for(var s=0;s<$.lines.length;s++){var i=$.lines[s].staff;if(i)for(var o=0;o<i.length;o++){var c=i[o];"perc"!==c.clef.type&&(n=n.concat(t(e,c.voices,c.key,r)))}}return n}function t(e,t,r,n){for(var a=[],s=u(r,n),i=0;i<t.length;i++)a=a.concat(l(e,t[i],r.root,$(r),s,n));return a}function $(e){for(var t={},$=0;$<e.accidentals.length;$++){var r=e.accidentals[$];"flat"===r.acc?t[r.note.toUpperCase()]="_":"sharp"===r.acc&&(t[r.note.toUpperCase()]="^")}return t}function a(e,t,$){var r=_.indexOf(e.root)-_.indexOf(t);return"none"===t&&(r=_.indexOf(e.root)),0===r?$>2?r+=7:-12===$&&(r-=7):$>0&&r<0?r+=7:$<0&&r>0&&(r-=7),$>12?r+=7:$<-12&&(r-=7),r}function l(e,t,r,n,s,i){for(var o=[],l=a(s,r,i),_={},h={},f=0;f<t.length;f++){var p=t[f];if(p.chord)for(var m=0;m<p.chord.length;m++){var g=p.chord[m];if("default"===g.position){var w=s.accidentals.length&&"flat"===s.accidentals[0].acc,x=c(g.name,i,w,!0);(x=x.replace(/♭/g,"b").replace(/♯/g,"#"))!==g.name&&o.push(k(e,p.startChar,p.endChar,x))}}if("note"===p.el_type&&p.pitches){for(var C=0;C<p.pitches.length;C++){var T=v(p.pitches[C].name,r,n,_);T.acc&&(_[T.name.toUpperCase()]=T.acc);var S=d(T,s,l,h);S.acc&&(h[S.upper]=S.acc),o.push(b(e,p.startChar,p.endChar,S.acc+S.name,C))}if(p.gracenotes)for(var E=0;E<p.gracenotes.length;E++){var A=v(p.gracenotes[E].name,r,n,_);A.acc&&(_[A.name.toUpperCase()]=A.acc);var B=d(A,s,l,_);B.acc&&(h[B.upper]=B.acc),o.push(y(e,p.startChar,p.endChar,B.acc+B.name,E))}}else"bar"===p.el_type?(_={},h={}):"keySignature"===p.el_type&&(r=p.root,n=$(p),s=u(p,i),l=a(s,r,i))}return o}r=function t($,r,a){if("TEST"===r)return{keyAccidentals:n,relativeMajor:s,transposeKey:i,relativeMode:o,transposeChordName:c};a=parseInt(a,10);var l,_=[];for(l=0;l<r.length;l++)_=_.concat(e($,r[l],a));_=_.sort(function(e,t){return t.start-e.start});var h=$.split("");for(l=0;l<_.length;l++){var u=_[l];h.splice(u.start,u.end-u.start,u.note)}return h.join("")};var _="CDEFGAB",h=[",,,,",",,,",",,",",","","'","''","'''","''''"];function u(e,t){if("none"===e.root)return{root:i("C",t),mode:"",acc:"",accidentals:[]};var $=s(e.root+e.acc+e.mode),r=i($,t),a=o(r,e.mode),c=n(r);return{root:a[0],mode:e.mode,acc:a.length>1?a[1]:"",accidentals:c}}function d(e,t,$,r){for(var n=e.pitch,a=_.indexOf(e.name),s=_.indexOf(t.root),i=a+$,o=e.oct;i>6;)o++,i-=7;for(;i<0;)o--,i+=7;for(var c=_[(s+n)%7],l="",h=e.adj,u="=",f=0;f<t.accidentals.length;f++)if(t.accidentals[f].note.toLowerCase()===c.toLowerCase()){h+="flat"===t.accidentals[f].acc?-1:1,u="flat"===t.accidentals[f].acc?"_":"^";break}switch(h){case -2:l="__";break;case -1:l="_";break;case 0:l="=";break;case 1:l="^";break;case 2:l="^^";break;case -3:var p={};return p.pitch=e.pitch-1,p.oct=e.oct,p.name=_[_.indexOf(e.name)-1],!p.name&&(p.name="B",p.oct--),"B"===p.name||"E"===p.name?p.adj=e.adj+1:p.adj=e.adj+2,d(p,t,$+1,r);case 3:var p={};return p.pitch=e.pitch+1,p.oct=e.oct,p.name=_[_.indexOf(e.name)+1],!p.name&&(p.name="C",p.oct++),"C"===p.name||"F"===p.name?p.adj=e.adj-1:p.adj=e.adj-2,d(p,t,$+1,r)}switch(r[c]!==l&&(r[c]||l!==u)||e.courtesy||(l=""),o){case 0:c+=",,,";break;case 1:c+=",,";break;case 2:c+=",";break;case 4:c=c.toLowerCase();break;case 5:c=c.toLowerCase()+"'";break;case 6:c=c.toLowerCase()+"''";break;case 7:c=c.toLowerCase()+"'''";break;case 8:c=c.toLowerCase()+"''''"}return o>4&&(c=c.toLowerCase()),{acc:l,name:c,upper:c.toUpperCase()}}var f=/([_^=]*)([A-Ga-g])([,']*)/,p=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,m=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,g=/(\s*)$/;function v(e,t,$,r){var n="none"===t?0:_.indexOf(t),a=e.match(f),s=a[2].toUpperCase(),i=_.indexOf(s)-n;i<0&&(i+=7);var o=h.indexOf(a[3]);s===a[2]&&o--;var c=r[s]||$[s]||"=";return{acc:a[1],name:s,pitch:i,oct:o,adj:function e(t,$,r){if(!t&&r&&(t=r),!t)return 0;switch($){case void 0:switch(t){case"__":return -2;case"_":return -1;case"=":default:return 0;case"^":return 1;case"^^":return 2}case"_":switch(t){case"__":return -1;case"_":default:return 0;case"=":return 1;case"^":return 2;case"^^":return 3}case"^":switch(t){case"__":return -3;case"_":return -2;case"=":return -1;case"^":default:return 0;case"^^":return 1}}return 0}(a[1],$[s],r[s]),courtesy:a[1]===c}}function b(e,t,$,r,n){var a=e.substring(t,$),s=a.match(RegExp(p.source+g.source),"");if(s){var i=s[1].length,o=s[2].length+s[3].length+s[4].length,c=$-t-i-o;t+=c,$-=o}else if(s=a.match(RegExp(/([^\[]*)/.source+/\[/.source+m.source+m.source+m.source+m.source+m.source+m.source+m.source+m.source+/\-?](\d*\/*\d*)?([\>\<\-\)]*)/.source+g.source))){for(var l=1+s[1].length,_=0;_<n;_++)s[3*_+2]&&(l+=s[3*_+2].length),s[3*_+3]&&(l+=s[3*_+3].length),s[3*_+4]&&(l+=s[3*_+4].length);t+=l,$=t+(s[3*n+2]?s[3*n+2].length:0)}return{start:t,end:$,note:r}}function y(e,t,$,r,n){var a=e.substring(t,$),s=/(\/*)/,i=a.match(RegExp(/([^\{]*)/.source+/\{/.source+s.source+m.source+s.source+m.source+s.source+m.source+s.source+m.source+s.source+m.source+s.source+m.source+s.source+m.source+s.source+m.source+/\}/.source));if(i){for(var o=1+i[1].length,c=0;c<n;c++)i[3*c+2]&&(o+=i[3*c+2].length),i[3*c+3]&&(o+=i[3*c+3].length),i[3*c+4]&&(o+=i[3*c+4].length),i[3*c+5]&&(o+=i[3*c+5].length);i[3*n+2]&&(o+=i[3*c+2].length),t+=o;var l=i[3*n+3]?i[3*n+3].length:0;l+=i[3*n+4]?i[3*n+4].length:0,l+=i[3*n+5]?i[3*n+5].length:0,$=t+l}return{start:t,end:$,note:r}}function k(e,t,$,r){var n=e.substring(t,$).match(/([^"]+)?(".+")+/);return n[1]&&(t+=n[1].length),$=t+n[2].length,{start:t+1,end:$-1,note:r}}})(),e.exports=r},"./src/synth/abc_midi_flattener.js":function(e,t,$){var r,n=$(/*! ./chord-track */ "./src/synth/chord-track.js"),a=$(/*! ../parse/abc_common */ "./src/parse/abc_common.js"),s=$(/*! ./pitches-to-perc */ "./src/synth/pitches-to-perc.js");(function(){"use strict";var e,t,$,i,o,c,l,_,h,u,d,f,p,m,g,v,b,y,k,w,x,C,T,S,E,A,B,N=1,P={num:4,den:4},M=0,L=0,D=64,O=48,z=!1,F=!1,H=!0,I=105,q=95,G=85,R=.25,V=0,Y={},W=0;function U(e){var t=e.split(" ");if(2==t.length||3==t.length){var $,r=t[0],n=t[1],a=r.split("/");if(2!=a.length)return;var s=a[0];if(isNaN(parseInt(s)))return;s=parseInt(s);var i=a[1];if(isNaN(parseInt(i)))return;if(i=parseInt(i),3==t.length){if(isNaN(parseInt($=t[2]))||($=parseInt($))<1||$>s)return}else 0==($=Math.floor($=s/2))&&($=1);var o=n.split(""),c=o.length;if(c!=s)return;for(var l=[],_=0;_<c;++_){var h=o[_];switch(h){case"B":l.push("boom");break;case"b":l.push("boom2");break;case"c":l.push("chick");break;case"x":l.push("")}}gRhythmPatternOverrides[r]={pattern:l,threshold:$}}}function X(e){!isNaN(e)&&e>=0&&(gBackupBoomFraction=gBackupChickFraction=e/100)}function K(e){!isNaN(e)&&e>=0&&(gBackupBoomFraction=e/100)}function J(e){!isNaN(e)&&e>=0&&(gBackupChickFraction=e/100)}function Q(e){gStrumChords=!1,("true"==e||"on"==e)&&(gStrumChords=!0)}function Z(e){gStrumChordsDivider=8,!isNaN(e)&&e>=1&&(gStrumChordsDivider=e)}function ee(e){isNaN(e)||(e>0&&e<=100||e<0&&e>=-100?(gSwingFactor=e/100,gAddSwing=!0):(gSwingFactor=0,gAddSwing=!1))}function et(e){isNaN(e)||(e>0&&e<=100?(gABCJSSwingFactor=e,gAddABCJSSwing=!0):(gABCJSSwingFactor=50,gAddABCJSSwing=!1))}function e$(e){for(var t=u.length-1;t>=0;t--)if("program"===u[t].cmd){u[t].channel=e;return}}function er(){for(var e=!0,t=0;t<m.length&&e;t++)"note"===m[t].cmd&&(e=!1);return e}function en(e){return e/1e6}function ea(e){return Math.round(e*N*1e6)/1e6}function es(e){switch(parseInt(e.den,10)){case 2:return .5;case 4:break;case 8:if(e.num%3==0)return .375;return .125;case 16:return .125}return .25}r=function r(a,s,ea,ei){s||(s={}),ei||(ei={}),e=[],t=[0,0,0,0,0,0,0],i=!1,o=[],c=s.qpm,l=void 0,N=1,_=void 0,h=void 0,u=void 0,f=void 0,p=0,B=ea,P={num:4,den:4},m=[],g=!1,b=a.length,v=!1,y=[],L=ei.chordprog&&(1===ei.chordprog.length||2===ei.chordprog.length)?ei.chordprog[0]:0,M=ei.bassprog&&(1===ei.bassprog.length||2===ei.bassprog.length)?ei.bassprog[0]:L,D=ei.bassvol&&1===ei.bassvol.length?ei.bassvol[0]:64,O=ei.chordvol&&1===ei.chordvol.length?ei.chordvol[0]:48,k=void 0,w=void 0,z=!!s.chordsOff,ei.gchordoff&&(z=!0),ei.swing?et(ei.swing[0]):ei.abcttswing&&ee(ei.abcttswing[0]),F=!1,H=!0,I=105,q=95,G=85,R=.25,C=void 0,T=void 0,V=0,S=[],E=!1,Y={},A=1,gBassOctaveShift=0,gChordOctaveShift=0,gRhythmPatternOverrides={},ei.boomchick&&ei.boomchick[0]&&U(ei.boomchick[0]),gStrumChords=!1,ei.strum_chords&&ei.strum_chords[0]&&Q(ei.strum_chords[0]),gStrumChordsDivider=8,ei.strum_chords_divider&&ei.strum_chords_divider[0]&&Z(ei.strum_chords_divider[0]),ei.bassprog&&null!=ei.bassprog[1]&&void 0!=ei.bassprog[1]&&(gBassOctaveShift=ei.bassprog[1]),ei.chordprog&&null!=ei.chordprog[1]&&void 0!=ei.chordprog[1]&&(gChordOctaveShift=ei.chordprog[1]),gBackupBoomFraction=.5,gBackupChickFraction=.5,a.length>0&&a[0].length>0&&(W=a[0][0].pickupLength),gUseGChord&&(void 0===s.bassprog||ei.bassprog||(ei.bassprog=[s.bassprog]),void 0===s.bassvol||ei.bassvol||(ei.bassvol=[s.bassvol]),void 0===s.chordprog||ei.chordprog||(ei.chordprog=[s.chordprog]),void 0===s.chordvol||ei.chordvol||(ei.chordvol=[s.chordvol]),void 0===s.gchord||ei.gchord||(ei.gchord=[s.gchord]),m=new n(a.length,s.chordsOff,ei,P)),function e(t,$){for(var r=0;r<t.length;r++){for(var n=t[r],a={},s=$.qpm,i=0,o=1,c=0;c<n.length;c++){var l=n[c];if("tempo"===l.el_type){s?o=l.qpm?s/l.qpm:1:s=l.qpm;continue}if(l.time=i,i+=Math.round((l.duration?l.duration:0)*o*1e6),l.pitches){for(var _=0;_<l.pitches.length;_++){var h=l.pitches[_];if(h){if(h.duration=l.duration,h.startTie)void 0===a[h.pitch]?a[h.pitch]={el:c,pitch:_}:(n[a[h.pitch].el].pitches[a[h.pitch].pitch].duration+=h.duration,l.pitches[_]=null);else if(h.endTie){var u=a[h.pitch];if(u){var d=h.duration;delete n[u.el].pitches[u.pitch].startTie,n[u.el].pitches[u.pitch].duration+=d,l.pitches[_]=null,delete a[h.pitch]}else delete h.endTie}}}delete l.duration}}for(var f in a)if(a.hasOwnProperty(f)){var p=a[f];delete n[p.el].pitches[p.pitch].startTie}}}(a,s);for(var eo=0;eo<a.length;eo++){$=0,gUseGChord&&m.setTranspose($),d=-1;var ec=a[eo];u=[{cmd:"program",channel:eo,instrument:_}],f=void 0,x=0,gUseGChord&&m.setLastBarTime(0);var e_=!1;!0===s.voicesOff?e_=!0:s.voicesOff&&s.voicesOff.length&&s.voicesOff.indexOf(eo)>=0&&(e_=!0);for(var eh=0;eh<ec.length;eh++){var ed,ef=ec[eh];switch(ef.el_type){case"name":f={cmd:"text",type:"name",text:ef.trackName};break;case"note":gUseGChord?el(ef,e_):el(ef,e_)&&(g=eo);break;case"key":t=eu(ef);break;case"meter":l||(l=ef),P=ef,gUseGChord&&m.setMeter(P),R=es(P),eb(),gUseGChord||("8"==P.den&&("6"==P.num||"9"==P.num||"12"==P.num)&&(gBackupBoomFraction=1.25,gBackupChickFraction=.4),"4"!=P.den||("4"==P.num&&(gBackupBoomFraction=.8,gBackupChickFraction=.4),"2"==P.num&&(gBackupBoomFraction=.6,gBackupChickFraction=.6),"3"!=P.num||(gBackupBoomFraction=.75,gBackupChickFraction=.5))),ei.boomchick_fraction&&null!=ei.boomchick_fraction[0]&&void 0!=ei.boomchick_fraction[0]&&X(ei.boomchick_fraction[0]),ei.boom_fraction&&null!=ei.boom_fraction[0]&&void 0!=ei.boom_fraction[0]&&K(ei.boom_fraction[0]),ei.chick_fraction&&null!=ei.chick_fraction[0]&&void 0!=ei.chick_fraction[0]&&J(ei.chick_fraction[0]);break;case"tempo":c?N=ef.qpm?c/ef.qpm:1:c=ef.qpm,gUseGChord&&m.setTempoChangeFactor(N);break;case"transpose":$=ef.transpose,gUseGChord&&m.setTranspose($);break;case"bar":gUseGChord?m.barEnd(ef):m.length>0&&(!1===g||eo===g)&&(e4(x,en(ef.time)),y=[]),e=[],0===eo&&e3(a.length+1),gUseGChord&&m.setRhythmHead(!1),gUseGChord||(F=!1,w=k),x=en(ef.time),gUseGChord&&m.setLastBarTime(x);break;case"bagpipes":i=!0;break;case"instrument":if(void 0===_&&(_=ef.program),h=ef.program,u.length>0&&"program"===u[u.length-1].cmd)u[u.length-1].instrument=ef.program;else{for(ed=u.length-1;ed>=0&&"program"!==u[ed].cmd;ed--);(ed<0||u[ed].instrument!==ef.program)&&u.push({cmd:"program",channel:0,instrument:ef.program})}break;case"channel":e$(ef.channel);break;case"drum":Y=ev(ef.params),eb();break;case"gchordOn":gUseGChord?m.gChordOn(ef):s.chordsOff||(z=ef.tacet);break;case"beat":I=ef.beats[0],q=ef.beats[1],G=ef.beats[2];break;case"vol":C=ef.volume;break;case"volinc":T=ef.volume;break;case"beataccents":H=ef.value;break;case"gchord":case"gchordbars":case"gchordstress":case"gchordduration":gUseGChord&&m.paramChange(ef);break;case"boomchick":U(ef.value);break;case"boomchick_fraction":X(ef.value);break;case"boom_fraction":K(ef.value);break;case"chick_fraction":J(ef.value);break;case"strum_chords":Q(ef.value);break;case"strum_chords_divider":Z(ef.value);break;case"abcttswing":ee(ef.swing);break;case"swing":et(ef.swing);break;case"bassprog":gUseGChord?m.paramChange(ef):M=ef.value,gBassOctaveShift=void 0!=ef.octaveShift&&null!=ef.octaveShift?ef.octaveShift:0;break;case"chordprog":gUseGChord?m.paramChange(ef):L=ef.value,gChordOctaveShift=void 0!=ef.octaveShift&&null!=ef.octaveShift?ef.octaveShift:0;break;case"bassvol":gUseGChord?m.paramChange(ef):D=ef.value;break;case"chordvol":gUseGChord?m.paramChange(ef):O=ef.value;break;default:console.log("MIDI creation. Unknown el_type: "+ef.el_type+"\n")}}void 0===u[0].instrument&&(u[0].instrument=_||0),f&&u.unshift(f),o.push(u),gUseGChord?m.finish():er()||(v=!0),S.length>0&&(E=!0)}return s.detuneOctave&&function e(t,$){for(var r={},n=0;n<t.length;n++)for(var a=0;a<t[n].length;a++){var s=t[n][a];"note"===s.cmd&&(void 0===r[s.start]&&(r[s.start]=[]),r[s.start].push({track:n,event:a,pitch:s.pitch}))}var i=Object.keys(r);for(n=0;n<i.length;n++){var o=r[i[n]];if(o.length>1){var c=(o=o.sort(function(e,t){return e.pitch-t.pitch}))[o.length-1],l=c.pitch%12,_=!1;for(a=0;!_&&a<o.length-1;a++)o[a].pitch%12===l&&(_=!0);if(_){var h=t[c.track][c.event];h.cents||(h.cents=0),h.cents+=$}}}}(o,parseInt(s.detuneOctave,10)),gUseGChord?m.addTrack(o):er()||o.push(m),S.length>0&&o.push(S),{tempo:c,instrument:_,tracks:o,totalDuration:p}};var ei=["break","(break)","no chord","n.c.","tacet"];function eo(e,t,$){return($-e)/t}function ec(e,t){var $=t.start,r=t.duration,n=ea(1/gOrnamentDivider);switch(e){case"trill":for(var a=gOrnamentOffset;r>0;)u.push({cmd:"note",pitch:t.pitch+a,volume:t.volume,start:$,duration:n,gap:0,instrument:h,style:"decoration"}),a=a===gOrnamentOffset?0:gOrnamentOffset,r-=n,$+=n;break;case"trillh":for(var a=1;r>0;)u.push({cmd:"note",pitch:t.pitch+a,volume:t.volume,start:$,duration:n,gap:0,instrument:h,style:"decoration"}),a=1===a?0:1,r-=n,$+=n;break;case"mordent":case"pralltriller":u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$,duration:n,gap:0,instrument:h,style:"decoration"}),r-=n,$+=n,u.push({cmd:"note",pitch:t.pitch+gOrnamentOffset,volume:t.volume,start:$,duration:n,gap:0,instrument:h,style:"decoration"}),r-=n,$+=n,u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$,duration:r,gap:0,instrument:h});break;case"lowermordent":u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$,duration:n,gap:0,instrument:h,style:"decoration"}),r-=n,$+=n,u.push({cmd:"note",pitch:t.pitch-gOrnamentOffset,volume:t.volume,start:$,duration:n,gap:0,instrument:h,style:"decoration"}),r-=n,$+=n,u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$,duration:r,gap:0,instrument:h});break;case"turn":n=t.duration/4,u.push({cmd:"note",pitch:t.pitch+gOrnamentOffset,volume:t.volume,start:$,duration:n,gap:0,instrument:h,style:"decoration"}),u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$+n,duration:n,gap:0,instrument:h,style:"decoration"}),u.push({cmd:"note",pitch:t.pitch-1,volume:t.volume,start:$+2*n,duration:n,gap:0,instrument:h,style:"decoration"}),u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$+3*n,duration:n,gap:0,instrument:h,style:"decoration"});break;case"roll":if(gRollUseOriginalRollSolution)for(;r>0;)u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$,duration:n,gap:0,instrument:h,style:"decoration"}),r-=2*n,$+=2*n;else{var s=!1,i=0,o=r/n;switch(8==o?i=1:12==o&&(i=2),i){case 0:u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$,duration:r,gap:0,instrument:h,style:"decoration"});break;case 1:if(gRoll2Duration1+gRoll2Duration2>3){s=!0;break}u.push({cmd:"note",pitch:t.pitch,volume:t.volume*gRoll2Volume1,start:$,duration:gRoll2Duration1*(r/3)*gRoll2Fraction1,gap:0,instrument:h,style:"decoration"}),$+=gRoll2Duration1*(r/3),u.push({cmd:"note",pitch:t.pitch,volume:t.volume*gRoll2Volume2,start:$,duration:gRoll2Duration2*(r/3)*gRoll2Fraction2,gap:0,instrument:h,style:"decoration"}),$+=gRoll2Duration2*(r/3),u.push({cmd:"note",pitch:t.pitch,volume:t.volume*gRoll2Volume3,start:$,duration:r-(gRoll2Duration1+gRoll2Duration1)*(r/3)*gRoll2Fraction3,gap:0,instrument:h,style:"decoration"});break;case 2:if(gRoll3Duration1+gRoll3Duration2>3){s=!0;break}u.push({cmd:"note",pitch:t.pitch,volume:t.volume*gRoll3Volume1,start:$,duration:gRoll3Duration1*(r/3)*gRoll3Fraction1,gap:0,instrument:h,style:"decoration"}),$+=gRoll3Duration1*(r/3),u.push({cmd:"note",pitch:t.pitch,volume:t.volume*gRoll3Volume2,start:$,duration:gRoll3Duration2*(r/3)*gRoll3Fraction2,gap:0,instrument:h,style:"decoration"}),$+=gRoll3Duration2*(r/3),u.push({cmd:"note",pitch:t.pitch,volume:t.volume*gRoll3Volume3,start:$,duration:(r-(gRoll3Duration1+gRoll3Duration2)*(r/3))*gRoll3Fraction3,gap:0,instrument:h,style:"decoration"})}s&&u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:$,duration:r,gap:0,instrument:h,style:"decoration"})}}}function el(e,t){u.length;var r=function e(t,$){if($)return 0;if(void 0!=C)r=C,C=void 0;else if(H){if(W>t)r=G;else{P.num,P.den;var r,n,a,s,i=(n=x,a=es(P),((s=t)-n)/a);r=0===i?I:parseInt(i,10)===i?q:G}}else r=q;return T&&(r+=T,T=void 0),r<0&&(r=0),r>127&&(r=127),$?0:r}(en(e.time),t);if(gUseGChord?m.processChord(e):O=function e(t){var r=!1,n=function e(t){if(z)return"break";if(v||!t.chord||0===t.chord.length)return null;for(var $=0;$<t.chord.length;$++){var r=t.chord[$];if("default"===r.position)return r.name;if(ei.indexOf(r.name.toLowerCase())>=0)return"break"}return null}(t);if(n){var a=function e(t){if(0!==t.length){if("break"===t)return{chick:[]};var r,n=function e(t){var $=t.split(":"),r=$[0],n=$[1];if(void 0!=n)switch(n){case"0":default:n=0;break;case"1":n=1;break;case"2":n=2;break;case"3":n=3;break;case"4":n=4;break;case"5":n=5;break;case"6":n=6;break;case"7":n=7;break;case"8":n=8;break;case"9":n=9;break;case"10":n=10;break;case"11":n=11;break;case"12":n=12;break;case"13":n=13}else n=0;return{name:r,inversion:n}}(t);t=n.name;var a=n.inversion,s=t.substring(0,1);if("("===s){if(0===(t=t.substring(1,t.length-2)).length)return;s=t.substring(0,1)}var i=ep[s];if(i){for(var o=$;o<-8;)o+=12;for(;o>8;)o-=12;(i+=o)<33?i+=12:i>44&&(i-=12);var c=i,l=(i+=12*gBassOctaveShift)-5,_=t.substring(1),h=_.substring(0,1);"b"===h||"♭"===h?(c--,i--,l--,_=_.substring(1)):("#"===h||"♯"===h)&&(c++,i++,l++,_=_.substring(1));var u=_.split("/"),d=function e(t,$,r){var n=gChordIntervals[$];n||(n="ma"===$.slice(0,2).toLowerCase()||"M"===$[0]?gChordIntervals.M:"m"===$[0]||"-"===$[0]?gChordIntervals.m:gChordIntervals.M);var a=n.slice();if(0!=r){var s=n.slice();for(r>=n.length+1&&(r%=s.length+1),o=0;o<r;++o)s.push(n[o]+12);for(o=0,a=[];o<n.length;++o)a.push(s[o+r])}t+=12,t+=12*gChordOctaveShift;for(var i=[],o=0;o<n.length;o++)i.push(t+n[o]);for(var c=[],o=0;o<a.length;o++)c.push(t+a[o]);return{notes:i,invertedNotes:c}}(c,u[0],a);r=d.notes;var f=d.invertedNotes;if(0!=_.indexOf("5(8)")&&0!=_.indexOf("5add8")&&r.length>=3&&(l=l+(r[2]-r[0])-7),2===u.length&&ep[u[1].substring(0,1)]){var p=u[1].substring(1);i=ep[u[1].substring(0,1)]+(({"#":1,"♯":1,b:-1,"♭":-1})[p]||0)+o,i+=12*gBassOctaveShift,l=i}return{boom:i,boom2:l,chick:f}}}}(n);if(a){0===m.length&&(r=!0,m.push({cmd:"program",channel:b,instrument:L})),k=a;var s,i,o,c=(s=x,i=es(P),((o=en(t.time))-s)/i);y.push({chord:k,beat:c,start:en(t.time)})}}return r}(e),e.gracenotes&&e.pitches&&e.pitches.length>0&&e.pitches[0]&&(Y=function e(t,$){if(0==gGraceDuration)return function e(t,$){for(var r,n=0,a=[],i=0;i<t.length;i++)n+=(r=t[i]).duration;var o=$/2/n;for(i=0;i<t.length;i++){var c=eh(r=t[i]);if(128===h&&B){var l=s(r);l&&B[l]&&(c=B[l].sound)}var _={pitch:c,duration:r.duration*o};_=ed(_),a.push(_)}return a}(t,$);gGraceMissingTempo&&-1!=gGraceTuneType.indexOf("jig")&&(c=120);for(var r=1/parseFloat(P.den),n=c*(R/r),a=gGraceDuration*r/(60/n),i=[],o=0;o<t.length;o++){var l=t[o],_=eh(l);if(128===h&&B){var u=s(l);u&&B[u]&&(_=B[u].sound)}var d={pitch:_,duration:a};d=ed(d),i.push(d)}return i}(e.gracenotes,e.pitches[0].duration),e.elem&&(e.elem.midiGraceNotePitches=function e(t,$,r,n){var a=[];r=Math.round(r);for(var s=0;s<t.length;s++){var i=t[s];u.push({cmd:"note",pitch:i.pitch,volume:r,start:$,duration:i.duration,gap:0,instrument:n,style:"grace"}),a.push({pitch:i.pitch,durationInMeasures:i.duration,volume:r,instrument:n}),$+=i.duration}return a}(Y,en(e.time),2*r/3,h))),e.elem){var n=en(e.time),i=n/R/c*6e4;if(void 0===e.elem.currentTrackMilliseconds)e.elem.currentTrackMilliseconds=i,e.elem.currentTrackWholeNotes=n;else if(void 0===e.elem.currentTrackMilliseconds.length)e.elem.currentTrackMilliseconds!==i&&(e.elem.currentTrackMilliseconds=[e.elem.currentTrackMilliseconds,i],e.elem.currentTrackWholeNotes=[e.elem.currentTrackWholeNotes,n]);else{for(var o=!1,l=0;l<e.elem.currentTrackMilliseconds.length;l++)e.elem.currentTrackMilliseconds[l]===i&&(o=!0);o||(e.elem.currentTrackMilliseconds.push(i),e.elem.currentTrackWholeNotes.push(n))}}if(e.pitches){var _="",f=function e(t,$){var r={};if(t.decoration)for(var n=0;n<t.decoration.length;n++)"staccato"===t.decoration[n]?r.thisBreakBetweenNotes="staccato":"tenuto"===t.decoration[n]?r.thisBreakBetweenNotes="tenuto":"accent"===t.decoration[n]?r.velocity=Math.min(127,1.5*$):"trill"===t.decoration[n]?r.noteModification="trill":"trillh"===t.decoration[n]?r.noteModification="trillh":"lowermordent"===t.decoration[n]?r.noteModification="lowermordent":"uppermordent"===t.decoration[n]?r.noteModification="mordent":"mordent"===t.decoration[n]?r.noteModification="mordent":"turn"===t.decoration[n]?r.noteModification="turn":"roll"===t.decoration[n]?r.noteModification="roll":"pralltriller"===t.decoration[n]&&(r.noteModification="pralltriller");return r}(e,r);f.thisBreakBetweenNotes&&(_=f.thisBreakBetweenNotes),f.velocity&&(r=f.velocity);var g=e.pitches;if("rhythm"===e.style){if(gUseGChord)g=m.setRhythmHead(!0,e);else if(F=!0,k&&k.chick){g=[];for(var w=0;w<k.chick.length;w++){var S=a.clone(e.pitches[0]);S.actualPitch=k.chick[w],g.push(S)}}}e.elem&&(e.elem.midiPitches=[]);for(var E=0;E<g.length;E++){var A=g[E];if(A){A.startSlur&&(V+=A.startSlur.length),A.endSlur&&(V-=A.endSlur.length);var N=A.actualPitch?A.actualPitch:eh(A);if(128===h&&B){var M=s(A);M&&B[M]&&(N=B[M].sound)}var D={cmd:"note",pitch:N,volume:r,start:en(e.time),duration:ea(A.duration),instrument:h,startChar:e.elem.startChar,endChar:e.elem.endChar};if(D=ed(D),e.gracenotes){if(0==gGraceDuration)D.duration=D.duration/2,D.start=D.start+D.duration;else{gGraceMissingTempo&&-1!=gGraceTuneType.indexOf("jig")&&(c=120);var O,Y,U=1/parseFloat(P.den),X=60/(c*(R/U)),K=gGraceDuration*U/X,Y=e.gracenotes,J=Y.length*K;D.duration-=J,D.start=D.start+J}}if(e.elem&&e.elem.midiPitches.push(D),f.noteModification)ec(f.noteModification,D);else{switch(V>0?D.endType="tenuto":_&&(D.endType=_),D.endType){case"tenuto":D.gap=-.001;break;case"staccato":var Q=.4*D.duration;D.gap=c/60*Q;break;default:D.gap=0}u.push(D)}}}d=u.length-1}var Z,ee=(Z=e,Z.pitches&&Z.pitches.length>0&&Z.pitches[0]?Z.pitches[0].duration:Z.elem?Z.elem.duration:Z.duration);return p=Math.max(p,en(e.time)+ea(ee)),O}var e_=[0,2,4,5,7,9,11];function eh(r){if(void 0!==r.midipitch)return r.midipitch;var n=r.pitch;if(r.accidental)switch(r.accidental){case"sharp":e[n]=1;break;case"flat":e[n]=-1;break;case"natural":e[n]=0;break;case"dblsharp":e[n]=2;break;case"dblflat":e[n]=-2;break;case"quartersharp":e[n]=.25;break;case"quarterflat":e[n]=-.25}var a,s=12*(a=n,Math.floor(a/7))+e_[ef(n)]+60;return void 0!==e[n]?s+=e[n]:s+=t[ef(n)],s+=$}function eu(e){var t=[0,0,0,0,0,0,0];if(!e.accidentals)return t;for(var $=0;$<e.accidentals.length;$++){var r,n=e.accidentals[$];switch(n.acc){case"flat":r=-1;break;case"quarterflat":r=-.25;break;case"sharp":r=1;break;case"quartersharp":r=.25;break;default:r=0}var a=ef(n.note.toLowerCase().charCodeAt(0)-99);t[a]+=r}return t}function ed(e){var t=""+e.pitch;return t.indexOf(".75")>=0?(e.pitch=Math.round(e.pitch),e.cents=-50):t.indexOf(".25")>=0&&(e.pitch=Math.round(e.pitch),e.cents=50),e}function ef(e){return(e%=7)<0&&(e+=7),e}var ep={A:33,B:35,C:36,D:38,E:40,F:41,G:43};function e0(e,t,$,r,n){gVoiceTuning&&gVoiceTuning.length>0?void 0!==e&&m.push({cmd:"note",pitch:e,volume:$,start:x+r*ea(t),duration:ea(n),gap:0,instrument:M,cents:gVoiceTuning[0]}):void 0!==e&&m.push({cmd:"note",pitch:e,volume:$,start:x+r*ea(t),duration:ea(n),gap:0,instrument:M})}function em(e,t,$,r,n){var a=0;if(gStrumChords&&(a=.125/gStrumChordsDivider),gVoiceTuning&&gVoiceTuning.length>0)for(var s=0;s<e.length;s++)m.push({cmd:"note",pitch:e[s],volume:$,start:x+r*ea(t)+s*a,duration:ea(n),gap:0,instrument:L,cents:gVoiceTuning[0]});else for(var s=0;s<e.length;s++)m.push({cmd:"note",pitch:e[s],volume:$,start:x+r*ea(t)+s*a,duration:ea(n),gap:0,instrument:L})}var e1={"2/2":["boom","chick"],"2/4":["boom","chick"],"3/4":["boom","chick","chick"],"4/4":["boom","chick","boom2","chick"],"5/4":["boom","chick","chick","boom2","chick"],"7/4":["boom","chick","boom2","chick","boom2","chick","chick"],"2/8":["boom","chick"],"3/8":["boom","chick","chick"],"5/8":["boom","chick","chick","boom2","chick"],"6/8":["boom","","chick","boom2","","chick"],"7/8":["boom","chick","chick","boom2","chick","boom2","chick"],"9/8":["boom","","chick","boom2","","chick","boom2","","chick"],"10/8":["boom","chick","chick","boom2","chick","chick","boom2","chick","boom2","chick"],"11/8":["boom","chick","chick","boom2","chick","chick","boom2","chick","boom2","chick","chick"],"12/8":["boom","","chick","boom2","","chick","boom","","chick","boom2","","chick"]},eg={"2/2":1,"2/4":1,"3/4":1,"4/4":2,"5/4":2,"7/4":2,"2/8":1,"3/8":1,"5/8":2,"6/8":2,"7/8":2,"9/8":2,"10/8":2,"11/8":2,"12/8":2};function e4(e,t){var $,r,n=P.num,a=P.den,s=1/a,i=s*gBackupBoomFraction,o=s*gBackupChickFraction,c=null,l=!1;if(gRhythmPatternOverrides){var _=gRhythmPatternOverrides[n+"/"+a];_&&(c=_.pattern)}c?l=!0:c=e1[n+"/"+a];var h=parseInt(n,10)/parseInt(a,10)-(t-e)/N;1e-5>Math.abs(h)&&(h=!1);var u=[];if(!c||h){var d,f=(t-e)/N/s;l?d=gRhythmPatternOverrides[n+"/"+a].threshold:c&&(d=eg[n+"/"+a]);for(var p=0;p<f;p++)l||h&&c?f<=d?u.push(""):u.push(c[p%n]):u.push("chick")}else u=c;if(0===y.length&&y.push({beat:0,chord:k}),0!==y[0].beat&&k&&w&&y.unshift({beat:0,chord:w}),1===y.length){for(var m=y[0].beat;m<u.length;m++)if(!F)switch(u[m]){case"boom":e0(y[0].chord.boom,s,D,m,i);break;case"boom2":e0(y[0].chord.boom2,s,D,m,i);break;case"chick":em(y[0].chord.chick,s,O,m,o)}return}for(var g=.125===s?3:1,v={},b=0;b<y.length;b++){var x=y[b];v[""+Math.round(x.beat*g)]=x}for(var C=0;C<u.length;C++)if(v[""+C]&&($=v[""+C]),!F&&$)switch(u[C]){case"boom":v[""+(C+1)]?e0($.chord.boom,s,D,C,i):(e0($.chord.boom,s,D,C,i),r=$.chord.boom);break;case"boom2":v[""+(C+1)]?e0($.chord.boom2,s,D,C,i):r===$.chord.boom?(e0($.chord.boom2,s,D,C,i),r=void 0):(e0($.chord.boom,s,D,C,i),r=$.chord.boom);break;case"chick":em($.chord.chick,s,O,C,o);break;case"":v[""+C]&&!l&&em($.chord.chick,s,O,C,o)}}function ev(e){if(0===e.pattern.length||!1===e.on)return{on:!1};for(var t=e.pattern[0],$=[],r="",n=0,a=0;a<t.length;a++)if("d"===t[a]&&n++,"d"===t[a]||"z"===t[a])0!==r.length?($.push(r),r=t[a]):r+=t[a];else{if(0===r.length)return{on:!1};r+=t[a]}if(0!==r.length&&$.push(r),e.pattern.length!==2*n+1)return{on:!1};for(var s={on:!0,bars:e.bars,pattern:[]},i=es(P),o=0,c=0;c<$.length;c++){r=$[c];for(var l=1,_=!1,h=0,u=1;u<r.length;u++)switch(r[u]){case"/":0!==h&&(l*=h),h=0,_=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":h=10*h+r[u];break;default:return{on:!1}}_?(0===h&&(h=2),l/=h):h&&(l*=h),"d"===r[0]?(s.pattern.push({len:l*i,pitch:e.pattern[1+o],velocity:e.pattern[1+o+n]}),o++):s.pattern.push({len:l*i,pitch:null})}return A=e.bars?e.bars:1,s}function eb(){if(Y&&Y.pattern){for(var e=Y,t=0,$=P.num/P.den,r=0;r<e.pattern.length;r++)t+=e.pattern[r].len;var n=t/A/$;for(r=0;r<e.pattern.length;r++)e.pattern[r].len=e.pattern[r].len/n;Y=e}}function e3(e){if(0!==S.length||Y.on){var t=P.num/P.den;if(0===S.length){if(p<t)return;S.push({cmd:"program",channel:e,instrument:128})}if(Y.on)for(var $=x,r=0;r<Y.pattern.length;r++){var n=ea(Y.pattern[r].len);Y.pattern[r].pitch&&S.push({cmd:"note",pitch:Y.pattern[r].pitch,volume:Y.pattern[r].velocity,start:$,duration:n,gap:0,instrument:128}),$+=n}}}})(),e.exports=r},"./src/synth/abc_midi_renderer.js":function(e,t,$){var r,n=$(/*! ./cents-to-factor */ "./src/synth/cents-to-factor.js");(function(){"use strict";function e(e,t){for(var $ in t)t.hasOwnProperty($)&&e.setAttribute($,t[$]);return e}function t(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}function $(e,t){for(var $="",r=0;r<e.length;r++)$+=a(e.charCodeAt(r),2);return"%00%FF"+t+a($.length/3,2)+$}function a(e,t){var $=e.toString(16);for($=$.split(".")[0];$.length<t;)$="0"+$;return $.length>t&&($=$.substring(0,t)),function e(t){for(var $="",r=0;r<t.length;r+=2)$+="%",$+=t.substr(r,2);return $}($)}function s(e){var t=(e=Math.round(e))%128;return a(2*(e-t)+t,4)}function i(e){var t=0,$=[];for(e=Math.round(e);0!==e;)$.push(127&e),e>>=7;for(var r=$.length-1;r>=0;r--){t<<=8;var n=$[r];0!==r&&(n|=128),t|=n}var s=t.toString(16).length;return a(t,s+=s%2)}t.prototype.setTempo=function(e){0===this.trackcount&&(this.startTrack(),this.track+="%00%FF%51%03"+a(Math.round(6e7/e),6),this.endTrack())},t.prototype.setGlobalInfo=function(e,t,r,n){0===this.trackcount&&(this.startTrack(),this.track+="%00%FF%51%03"+a(Math.round(6e7/e),6),r&&(this.track+=function e(t){if(!t||!t.accidentals)return"";for(var $,r=0,n=256,s=0;s<t.accidentals.length;s++)"sharp"===t.accidentals[s].acc?r++:"flat"===t.accidentals[s].acc&&n--;return"%00%FF%59%02"+(256!==n?a(n,2):a(r,2))+("m"===t.mode?"%01":"%00")}(r)),n&&(this.track+=function e(t){var $,r="%00%FF%58%04"+a(t.num,2),n={1:0,2:1,4:2,8:3,16:4,32:5}[t.den];if(!n)return"";switch(r+=a(n,2),t.num+"/"+t.den){case"2/4":case"3/4":case"4/4":case"5/4":$=24;break;case"6/4":$=72;break;case"2/2":case"3/2":case"4/2":$=48;break;case"3/8":case"6/8":case"9/8":case"12/8":$=36}return $?(r+=a($,2))+"%08":""}(n)),t&&(this.track+=$(t,"%01")),this.endTrack())},t.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},t.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var e=a(this.track.length/3+4,8);this.track="MTrk"+e+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},t.prototype.setText=function(e,t){"name"===e&&(this.trackName=$(t,"%03"))},t.prototype.setInstrument=function(e){this.trackInstrument="%00%C0"+a(e,2),this.instrument=e},t.prototype.setChannel=function(e,t){this.channel=e;var $="%00%B"+this.channel.toString(16);this.track+=$+"%79%00",this.track+=$+"%40%00",this.track+=$+"%5B%30",t||(t=0),t=Math.round((t+1)*64),this.track+=$+"%0A"+a(t,2),this.track+=$+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)},t.prototype.setChannelMute=function(e,t){this.channel=e;var $="%00%B"+this.channel.toString(16);this.track+=$+"%79%00",this.track+=$+"%40%00",this.track+=$+"%5B%30",t||(t=0),t=Math.round((t+1)*64),this.track+=$+"%0A"+a(t,2),this.track+=$+"%07%00",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)},t.prototype.startNote=function(e,t,$){if(this.track+=i(this.silencelength),this.silencelength=0,$){this.track+="%e"+this.channel.toString(16);var r=Math.round(4096*n($));this.track+=s(8192+r),this.track+=i(0),this.noteWarped[e]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+e.toString(16)+a(t,2)},t.prototype.endNote=function(e){this.track+=i(this.silencelength),this.silencelength=0,this.noteWarped[e]&&(this.track+="%e"+this.channel.toString(16),this.track+=s(8192),this.track+=i(0),this.noteWarped[e]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+e.toString(16)+"%00"},t.prototype.addRest=function(e){this.silencelength+=e,this.silencelength<0&&(this.silencelength=0)},t.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+a(this.trackcount,4)+"%01%e0"+this.trackstrings},t.prototype.embed=function(t,$){var r=this.getData(),n=e(document.createElement("a"),{href:r});if(n.innerHTML="download midi",t.insertBefore(n,t.firstChild),!$){var a=e(document.createElement("embed"),{src:r,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});t.insertBefore(a,t.firstChild)}},r=function e(){return new t}})(),e.exports=r},"./src/synth/abc_midi_sequencer.js":function(e,t,$){var r,n=$(/*! ../parse/abc_common */ "./src/parse/abc_common.js");(function(){"use strict";var e=1;function t(e,t,$){for(var r=0,n=t+1;n<e.length&&("note"===e[n].el_type&&r++,!(e[n].decoration&&e[n].decoration.indexOf($)>=0));n++);return r}function $(e,t,$){for(var r=Math.min(e.length,t+3),n=t;n<r;n++)if("note"===e[n].el_type&&e[n].decoration){for(var a=0;a<e[n].decoration.length;a++)if($.indexOf(e[n].decoration[a])>=0)return e[n].decoration[a]}return null}function a(e){for(var t=0;t<e.length;t++)for(var $=e[t],r=$.length-1;r>=0&&"bar"!==$[r].el_type;)$[r].noChordVoice=!0,r--}function s(e,t){if(e&&!(e.length<=t)&&e[t].title)return e[t].title.join(" ")}function i(e,t){var $=1/4;e.duration&&($=e.duration[0]);var r=60;return e.bpm&&(r=e.bpm),$*r/t}function o(t){var $;switch(t.type){case"common_time":$={el_type:"meter",num:4,den:4};break;case"cut_time":$={el_type:"meter",num:2,den:2};break;case"specified":$={el_type:"meter",num:t.value[0].num,den:t.value[0].den};break;default:$={el_type:"meter"}}return e=$.num/$.den,$}function c(e,t){var $;_(e,$="HP"===t.root?{el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:{el_type:"key",accidentals:function e(t){for(var $=[],r=0;r<t.length;r++)"natural"!==t[r].acc&&$.push(t[r]);return $}(t.accidentals)})}function l(e,t){_(e,o(t))}function _(e,t){for(var $=e.length-1;$>=0;$--)if(e[$].el_type===t.el_type){JSON.stringify(e[$])!==JSON.stringify(t)&&e.push(t);return}e.push(t)}r=function r(h,u){var d,f,p=(u=u||{}).program||0,m=u.midiTranspose||0;h.visualTranspose&&(m-=h.visualTranspose);var g=u.channel||0,v=!1,b=u.drum||"",y=u.drumBars||1,k=u.drumIntro||0,w=""!==b,x=[],C=!1;p=parseInt(p,10),m=parseInt(m,10),10===(g=parseInt(g,10))&&(p=128),b=b.split(" "),y=parseInt(y,10),k=parseInt(k,10);var T=h.formatting.bagpipes;T&&(p=109);var S=[];if(h.formatting.midi){var E=h.formatting.midi;E.program&&E.program.length>0&&(p=E.program[0],E.program.length>1&&(p=E.program[1],g=E.program[0]),v=!0),E.transpose&&(m=E.transpose[0]),E.channel&&(g=E.channel[0],v=!0),E.drum&&(b=E.drum),E.drumbars&&(y=E.drumbars[0]),E.drumon&&(w=!0),10===g&&(p=128),E.beat&&S.push({el_type:"beat",beats:E.beat}),E.nobeataccents&&S.push({el_type:"beataccents",value:!1})}d=u.qpm?parseInt(u.qpm,10):h.metaText.tempo?i(h.metaText.tempo,h.getBeatLength()):u.defaultQpm?u.defaultQpm:180;var A=[];T&&A.push({el_type:"bagpipes"}),A.push({el_type:"instrument",program:p}),g&&A.push({el_type:"channel",channel:g}),m&&A.push({el_type:"transpose",transpose:m}),A.push({el_type:"tempo",qpm:d});for(var B=0;B<S.length;B++)A.push(S[B]);var N=[],P=[],M=[],L=[0],D={};D["0"]={el_type:"tempo",qpm:d,timing:0};for(var O=[],z=[],F=!1,H=h.lines,I=0;I<H.length;I++){var q=H[I];if(q.staff)for(var G=function e(r){var n,a={ppppp:[0,0,0,1],pppp:[15,10,5,1],ppp:[30,20,10,1],pp:[45,35,20,1],p:[60,50,35,1],mp:[75,65,50,1],mf:[90,80,65,1],f:[105,95,80,1],ff:[120,110,95,1],fff:[127,125,110,1],ffff:[127,125,110,1]};if(r.decoration){if(r.decoration.indexOf("ppppp")>=0?n="ppppp":r.decoration.indexOf("pppp")>=0?n="pppp":r.decoration.indexOf("ppp")>=0?n="ppp":r.decoration.indexOf("pp")>=0?n="pp":r.decoration.indexOf("p")>=0?n="p":r.decoration.indexOf("mp")>=0?n="mp":r.decoration.indexOf("mf")>=0?n="mf":r.decoration.indexOf("f")>=0?n="f":r.decoration.indexOf("ff")>=0?n="ff":r.decoration.indexOf("fff")>=0?n="fff":r.decoration.indexOf("ffff")>=0&&(n="ffff"),n&&(f=a[n].slice(0),N[V].push({el_type:"beat",beats:f.slice(0)}),P[U]=!1,M[U]=!1),r.decoration.indexOf("crescendo(")>=0){var s=t(X,e$,"crescendo)"),i=Math.min(127,f[0]+50),o=$(X,e$+s+1,Object.keys(a));o&&(i=a[o][0]),s>0?P[U]=Math.floor((i-f[0])/s):P[U]=!1,M[U]=!1}else if(r.decoration.indexOf("crescendo)")>=0)P[U]=!1;else if(r.decoration.indexOf("diminuendo(")>=0){var c=t(X,e$,"diminuendo)"),l=Math.max(15,f[0]-50),_=$(X,e$+c+1,Object.keys(a));_&&(l=a[_][0]),P[U]=!1,c>0?M[U]=Math.floor((l-f[0])/c):M[U]=!1}else r.decoration.indexOf("diminuendo)")>=0&&(M[U]=!1)}},R=q.staff,V=0,Y=0;Y<R.length;Y++){var W=R[Y];if(!W.clef||"TAB"!==W.clef.type)for(var U=0;U<W.voices.length;U++){var X=W.voices[U];if(!N[V]){N[V]=[].concat(JSON.parse(JSON.stringify(A)));var K=s(q.staff,V);K&&N[V].unshift({el_type:"name",trackName:K})}if(m&&"perc"===W.clef.type&&N[V].push({el_type:"transpose",transpose:0}),W.clef&&"perc"===W.clef.type&&!v)for(var J=0;J<N[V].length;J++)"instrument"===N[V][J].el_type&&(N[V][J].program=128);else W.key&&c(N[V],W.key);W.meter&&l(N[V],W.meter),!F&&w&&(N[V].push({el_type:"drum",params:{pattern:b,bars:y,on:w,intro:k}}),F=!0),W.clef&&"perc"!==W.clef.type&&W.clef.transpose&&(W.clef.el_type="clef",N[V].push({el_type:"transpose",transpose:W.clef.transpose})),W.clef&&W.clef.type&&(W.clef.type.indexOf("-8")>=0?N[V].push({el_type:"transpose",transpose:-12}):W.clef.type.indexOf("+8")>=0&&N[V].push({el_type:"transpose",transpose:12})),h.formatting.midi&&h.formatting.midi.drumoff&&(N[V].push({el_type:"bar"}),N[V].push({el_type:"drum",params:{pattern:"",on:!1}}));var Q=0,Z=0,ee=0,et=0;f=[105,95,85,1];for(var e$=0;e$<X.length;e$++){var er=X[e$];switch(er.el_type){case"note":if(P[U]&&(f[0]+=P[U],f[1]+=P[U],f[2]+=P[U],N[V].push({el_type:"beat",beats:f.slice(0)})),M[U]&&(f[0]+=M[U],f[1]+=M[U],f[2]+=M[U],N[V].push({el_type:"beat",beats:f.slice(0)})),G(er),!er.rest||"spacer"!==er.rest.type){var en={elem:er,el_type:"note",timing:L[V]};if(er.style?en.style=er.style:x[V]&&(en.style=x[V]),en.duration=0===er.duration?.25:er.duration,er.startTriplet){if(Z=er.tripletMultiplier,ee=er.startTriplet*Z*er.duration,er.startTriplet!==er.tripletR&&e$+er.tripletR<=X.length){for(var ea=0,es=e$;es<e$+er.tripletR;es++)ea+=X[es].duration;ee=Z*ea}en.duration=en.duration*Z,en.duration=Math.round(1e6*en.duration)/1e6,et=en.duration}else Z&&(er.endTriplet?(Z=0,en.duration=Math.round((ee-et)*1e6)/1e6):(en.duration=en.duration*Z,en.duration=Math.round(1e6*en.duration)/1e6,et+=en.duration));er.rest&&(en.rest=er.rest),er.decoration&&(en.decoration=er.decoration.slice(0)),er.pitches&&(en.pitches=n.cloneArray(er.pitches)),er.gracenotes&&(en.gracenotes=n.cloneArray(er.gracenotes)),er.chord&&(en.chord=n.cloneArray(er.chord)),N[V].push(en),"rhythm"===er.style&&(C=!0,a(N)),Q++,L[V]+=en.duration}break;case"key":case"keySignature":c(N[V],er);break;case"meter":l(N[V],er);break;case"clef":er.transpose&&N[V].push({el_type:"transpose",transpose:er.transpose}),er.type&&(er.type.indexOf("-8")>=0?N[V].push({el_type:"transpose",transpose:-12}):er.type.indexOf("+8")>=0&&N[V].push({el_type:"transpose",transpose:12}));break;case"tempo":d=i(er,h.getBeatLength()),N[V].push({el_type:"tempo",qpm:d,timing:L[V]}),D[""+L[V]]={el_type:"tempo",qpm:d,timing:L[V]};break;case"bar":Q>0&&N[V].push({el_type:"bar"}),G(er),Q=0;var ei="bar_right_repeat"===er.type||"bar_dbl_repeat"===er.type,eo="1"===er.startEnding,ec="bar_left_repeat"===er.type||"bar_dbl_repeat"===er.type||"bar_right_repeat"===er.type;if(ei){var el=O[V];el||(el=0);var e_=z[V];e_||(e_=N[V].length);for(var eh=el;eh<e_;eh++){var eu=n.clone(N[V][eh]);eu.pitches&&(eu.pitches=n.cloneArray(eu.pitches)),N[V].push(eu)}z[V]=void 0,O[V]=void 0}eo&&(z[V]=N[V].length),ec&&(O[V]=N[V].length),C=!1;break;case"style":x[V]=er.head;break;case"timeSignature":N[V].push(o(er));break;case"part":case"stem":case"scale":case"break":case"font":case"color":break;case"midi":var ed=!1;switch(er.cmd){case"drumon":w=!0,ed=!0;break;case"drumoff":w=!1,ed=!0;break;case"drum":b=er.params,ed=!0;break;case"drumbars":y=er.params[0],ed=!0;break;case"drummap":break;case"channel":10===er.params[0]&&N[V].push({el_type:"instrument",program:128});break;case"program":_(N[V],{el_type:"instrument",program:er.params[0]}),v=!0;break;case"transpose":N[V].push({el_type:"transpose",transpose:er.params[0]});break;case"gchordoff":N[V].push({el_type:"gchordOn",tacet:!0});break;case"gchordon":N[V].push({el_type:"gchordOn",tacet:!1});break;case"beat":N[V].push({el_type:"beat",beats:er.params});break;case"nobeataccents":N[V].push({el_type:"beataccents",value:!1});break;case"beataccents":N[V].push({el_type:"beataccents",value:!0});break;case"vol":N[V].push({el_type:"vol",volume:er.params[0]});break;case"volinc":N[V].push({el_type:"volinc",volume:er.params[0]});break;case"boomchick":N[V].push({el_type:"boomchick",value:er.params[0]});break;case"boomchick_fraction":N[V].push({el_type:"boomchick_fraction",value:er.params[0]});break;case"boom_fraction":N[V].push({el_type:"boom_fraction",value:er.params[0]});break;case"chick_fraction":N[V].push({el_type:"chick_fraction",value:er.params[0]});break;case"strum_chords":N[V].push({el_type:"strum_chords",value:er.params[0]});break;case"strum_chords_divider":N[V].push({el_type:"strum_chords_divider",value:er.params[0]});break;case"abcttswing":N[V].push({el_type:"abcttswing",swing:er.params[0]});break;case"swing":N[V].push({el_type:er.cmd,swing:er.params[0]});break;case"bassprog":N[V].push({el_type:"bassprog",value:er.params[0],octaveShift:er.params[1]});break;case"chordprog":N[V].push({el_type:"chordprog",value:er.params[0],octaveShift:er.params[1]});break;case"bassvol":N[V].push({el_type:"bassvol",value:er.params[0]});break;case"chordvol":N[V].push({el_type:"chordvol",value:er.params[0]});break;case"gchord":gUseGChord&&N[V].push({el_type:er.cmd,param:er.params[0],gchordDivider:er.params[1]});break;case"gchordbars":gUseGChord&&N[V].push({el_type:er.cmd,value:er.params[0]});break;case"gchordstress":gUseGChord&&N[V].push({el_type:"gchordstress",param:er.params[0]});break;case"gchordduration":gUseGChord&&N[V].push({el_type:"gchordduration",param:er.params[0]});break;default:console.log("MIDI seq: midi cmd not handled: ",er.cmd,er)}ed&&(N[0].push({el_type:"drum",params:{pattern:b,bars:y,intro:k,on:w}}),F=!0);break;default:console.log("MIDI: element type "+er.el_type+" not handled.")}}L[++V]||(L[V]=0)}}}if(function e(t,$){if($&&0!==$.length)for(var r=Object.keys($),n=0;n<t.length;n++)for(var a=t[n],s=$["0"]?$["0"].qpm:0,i=0;i<a.length;i++){var o=a[i];"tempo"===o.el_type&&(s=o.qpm),r.indexOf(""+o.timing)>=0&&s!==$[""+o.timing].qpm&&(s=$[""+o.timing].qpm,"tempo"===o.el_type?(o.qpm=$[""+o.timing].qpm,i++):(t[n].splice(i,0,{el_type:"tempo",qpm:$[""+o.timing].qpm,timing:o.timing}),i+=2))}}(N,D),k)for(var ef=h.getPickupLength(),ep=0;ep<N.length;ep++){for(var e0=0;"note"!==N[ep][e0].el_type&&N[ep].length>e0;)e0++;if(N[ep].length>e0)for(var es=0;es<k;es++)0===ef||es<k-1?N[ep].splice(e0,0,{el_type:"note",rest:{type:"rest"},duration:e},{el_type:"bar"}):N[ep].splice(e0,0,{el_type:"note",rest:{type:"rest"},duration:e-ef})}return N.length>0&&N[0].length>0&&(N[0][0].pickupLength=h.getPickupLength()),N}})(),e.exports=r},"./src/synth/active-audio-context.js":function(e,t,$){var r=$(/*! ./register-audio-context.js */ "./src/synth/register-audio-context.js");e.exports=function e(){return window.abcjsAudioContext||r(),window.abcjsAudioContext}},"./src/synth/cents-to-factor.js":function(e){e.exports=function e(t){return Math.pow(2,t/1200)}},"./src/synth/chord-track.js":function(e,t,$){var r=$(/*! ../parse/abc_common */ "./src/parse/abc_common.js"),n=function e(t,$,r,n){this.chordTrack=[],this.chordTrackFinished=!1,this.chordChannel=t,this.currentChords=[],this.lastChord,this.chordLastBar,this.chordsOff=!!$,this.gChordTacet=this.chordsOff,this.hasRhythmHead=!1,this.transpose=0,this.lastBarTime=0,this.meter=n,this.tempoChangeFactor=1,this.bassInstrument=r.bassprog&&(1===r.bassprog.length||2===r.bassprog.length)?r.bassprog[0]:0,this.chordInstrument=r.chordprog&&(1===r.chordprog.length||2===r.chordprog.length)?r.chordprog[0]:0,this.bassOctaveShift=r.bassprog&&2===r.bassprog.length?r.bassprog[1]:0,this.chordOctaveShift=r.chordprog&&2===r.chordprog.length?r.chordprog[1]:0,this.boomVolume=r.bassvol&&1===r.bassvol.length?r.bassvol[0]:64,this.chickVolume=r.chordvol&&1===r.chordvol.length?r.chordvol[0]:48,this.gchordDivider=r.gchord&&2===r.gchord.length?r.gchord[1]:0,this.gchordbars=r.gchordbars&&1===r.gchordbars.length?r.gchordbars[0]:1,this.gchordbars<1&&(this.gchordbars=1),this.currentgchordbars=0,0!=this.gchordDivider&&1!=this.gchordDivider&&2!=this.gchordDivider&&4!=this.gchordDivider&&(this.gchordDivider=0);var a=void 0;r.gchord&&r.gchord.length>0?(this.overridePattern=r.gchord?o(r.gchord[0]):void 0,a=r.gchord?i(r.gchord[0]):void 0):(this.overridePattern=void 0,this.gchordDivider=0),this.gchordstress=r.gchordstress&&1===r.gchordstress.length?r.gchordstress[0]:void 0,this.gchordduration=r.gchordduration&&1===r.gchordduration.length?r.gchordduration[0]:a};function a(e,t){if(t<=e.length)return e.slice(0,t);let $=Math.floor(t/e.length),r=t%e.length,n=[];for(let a=0;a<$;a++)n=n.concat(e);return n.concat(e.slice(0,r))}function s(e,t,$,r){var n=[];if(!e)return n;if(t.indexOf("boom")>=0){if(!e.boom)return n;n.push($?e.boom:e.boom2)}else if(r){if(!e.boom)return n;n.push(e.boom)}if(t.indexOf("chick")>=0)for(var a=0;a<e.chick.length;a++)n.push(e.chick[a]);if(2==e.chick.length)switch(t){case"DO":n.push(e.chick[0]);break;case"MI":n.push(e.chick[1]);break;case"SOL":case"do":n.push(e.chick[0]+12);break;case"TI":case"mi":n.push(e.chick[1]+12);break;case"TOP":case"sol":n.push(e.chick[0]+24);break;case"ti":n.push(e.chick[1]+24);break;case"top":n.push(e.chick[0]+36)}else switch(t){case"DO":n.push(e.chick[0]);break;case"MI":n.push(e.chick[1]);break;case"SOL":n.push(e.chick[2]);break;case"TI":e.chick.length>3?n.push(e.chick[3]):n.push(e.chick[0]+12);break;case"TOP":e.chick.length>4?n.push(e.chick[4]):n.push(e.chick[1]+12);break;case"do":n.push(e.chick[0]+12);break;case"mi":n.push(e.chick[1]+12);break;case"sol":n.push(e.chick[2]+12);break;case"ti":e.chick.length>3?n.push(e.chick[3]+12):n.push(e.chick[0]+24);break;case"top":e.chick.length>4?n.push(e.chick[4]+12):n.push(e.chick[1]+24)}return n}function i(e){for(var t=[],$=0;$<e.length;){e[$];let r="";for($++;$<e.length&&/\d/.test(e[$]);)r+=e[$],$++;var n=r.length>0?parseInt(r,10):1;if(t.push(n),n>1)for(n--,j=0;j<n;++j)t.push(1)}return t}function o(e){let t=/\d+|\D/g;for(var $,r=[];null!==($=t.exec(e));)r.push($[0]);for(var n=[],a=0;a<r.length;a++){var s=parseInt(r[a]);if(isNaN(s)){var i=r[a];switch(i){case"z":n.push("");break;case"c":n.push("chick");break;case"b":n.push("boom&chick");break;case"f":n.push("boom");break;case"G":n.push("DO");break;case"H":n.push("MI");break;case"I":n.push("SOL");break;case"J":n.push("TI");break;case"K":n.push("TOP");break;case"g":n.push("do");break;case"h":n.push("mi");break;case"i":n.push("sol");break;case"j":n.push("ti");break;case"k":n.push("top")}}else if(s>1){s--;for(var o=0;o<s;++o)n.push("")}}return n}function c(e,t){return 8*(t-e)}function l(e){return e/1e6}function _(e,t){return Math.round(e*t*1e6)/1e6}n.prototype.setMeter=function(e){this.meter=e},n.prototype.setTempoChangeFactor=function(e){this.tempoChangeFactor=e},n.prototype.setLastBarTime=function(e){this.lastBarTime=e},n.prototype.setTranspose=function(e){this.transpose=e},n.prototype.setRhythmHead=function(e,t){this.hasRhythmHead=e;var $=[];if(e&&this.lastChord&&this.lastChord.chick)for(var n=0;n<this.lastChord.chick.length;n++){var a=r.clone(t.pitches[0]);a.actualPitch=this.lastChord.chick[n],$.push(a)}return $},n.prototype.barEnd=function(e){this.chordTrack.length>0&&!this.chordTrackFinished&&(this.resolveChords(this.lastBarTime,l(e.time)),this.currentChords=[]),this.chordLastBar=this.lastChord},n.prototype.gChordOn=function(e){this.chordsOff||(this.gChordTacet=e.tacet)},n.prototype.paramChange=function(e){switch(e.el_type){case"gchord":e.param&&e.param.length>0&&(this.overridePattern=o(e.param),this.gchordDivider=0,e.gchordDivider&&(this.gchordDivider=e.gchordDivider,1!=this.gchordDivider&&2!=this.gchordDivider&&4!=this.gchordDivider&&(this.gchordDivider=0)),this.gchordduration=i(e.param));break;case"gchordbars":this.gchordbars=e.value,this.gchordbars<1&&(this.gchordbars=1),this.currentgchordbars=0,this.gchordDivider=0;break;case"gchordstress":this.gchordstress=e.param;break;case"gchordduration":this.gchordduration=e.param;break;case"bassprog":this.bassInstrument=e.value,void 0!=e.octaveShift&&null!=e.octaveShift?this.bassOctaveShift=e.octaveShift:this.bassOctaveShift=0;break;case"chordprog":this.chordInstrument=e.value,void 0!=e.octaveShift&&null!=e.octaveShift?this.chordOctaveShift=e.octaveShift:this.chordOctaveShift=0;break;case"bassvol":this.boomVolume=e.param;break;case"chordvol":this.chickVolume=e.param;break;default:console.log("unhandled midi param",e)}},n.prototype.finish=function(){this.chordTrackEmpty()||(this.chordTrackFinished=!0)},n.prototype.addTrack=function(e){this.chordTrackEmpty()||e.push(this.chordTrack)},n.prototype.findChord=function(e){if(this.gChordTacet)return"break";if(this.chordTrackFinished||!e.chord||0===e.chord.length)return null;for(var t=0;t<e.chord.length;t++){var $=e.chord[t];if("default"===$.position)return $.name;if(this.breakSynonyms.indexOf($.name.toLowerCase())>=0)return"break"}return null},n.prototype.interpretChord=function(e){if(0!==e.length){if("break"===e)return{chick:[]};var t,$=this.processInversion(e);e=$.name;var r=$.inversion,n=e.substring(0,1);if("("===n){if(0===(e=e.substring(1,e.length-2)).length)return;n=e.substring(0,1)}var a=this.basses[n];if(a){for(var s=this.transpose;s<-8;)s+=12;for(;s>8;)s-=12;(a+=s)<33?a+=12:a>44&&(a-=12);var i=a,o=(a+=12*this.bassOctaveShift)-5,c=e.substring(1),l=c.substring(0,1);"b"===l||"♭"===l?(i--,a--,o--,c=c.substring(1)):("#"===l||"♯"===l)&&(i++,a++,o++,c=c.substring(1));var _=c.split("/"),h=this.chordNotes(i,_[0],r);t=h.notes;var u=h.invertedNotes;if(t.length>=3&&(o=o+(t[2]-t[0])-7),2===_.length&&this.basses[_[1].substring(0,1)]){var d=_[1].substring(1);a=this.basses[_[1].substring(0,1)]+(({"#":1,"♯":1,b:-1,"♭":-1})[d]||0)+s,a+=12*this.bassOctaveShift,o=a}return{boom:a,boom2:o,chick:u}}}},n.prototype.processInversion=function(e){var t=e.split(":"),$=t[0],r=t[1];if(void 0!=r)switch(r){case"0":default:r=0;break;case"1":r=1;break;case"2":r=2;break;case"3":r=3;break;case"4":r=4;break;case"5":r=5;break;case"6":r=6;break;case"7":r=7;break;case"8":r=8;break;case"9":r=9;break;case"10":r=10;break;case"11":r=11;break;case"12":r=12;break;case"13":r=13}else r=0;return{name:$,inversion:r}},n.prototype.chordNotes=function(e,t,$){var r=gChordIntervals[t];r||(r="ma"===t.slice(0,2).toLowerCase()||"M"===t[0]?gChordIntervals.M:"m"===t[0]||"-"===t[0]?gChordIntervals.m:gChordIntervals.M);var n=r.slice();if(0!=$){var a=r.slice();for($>=r.length+1&&($%=a.length+1),i=0;i<$;++i)a.push(r[i]+12);for(i=0,n=[];i<r.length;++i)n.push(a[i+$])}e+=12,e+=12*this.chordOctaveShift;for(var s=[],i=0;i<r.length;i++)s.push(e+r[i]);for(var o=[],i=0;i<n.length;i++)o.push(e+n[i]);return{notes:s,invertedNotes:o}},n.prototype.writeNote=function(e,t,$,r,n,a,s){gVoiceTuning&&gVoiceTuning.length>0?void 0!==e&&this.chordTrack.push({cmd:"note",pitch:e,volume:$,start:this.lastBarTime+r*_(t,this.tempoChangeFactor)+s,duration:_(n,this.tempoChangeFactor),gap:0,instrument:a,cents:gVoiceTuning[0]}):void 0!==e&&this.chordTrack.push({cmd:"note",pitch:e,volume:$,start:this.lastBarTime+r*_(t,this.tempoChangeFactor)+s,duration:_(n,this.tempoChangeFactor),gap:0,instrument:a})},n.prototype.chordTrackEmpty=function(){for(var e=!0,t=0;t<this.chordTrack.length&&e;t++)"note"===this.chordTrack[t].cmd&&(e=!1);return e},n.prototype.resolveChords=function(e,t){if(!this.hasRhythmHead){var $=this.meter.num,r=this.meter.den,n=1/r;if(this.overridePattern){8==r?i=$:4==r&&(i=2*$);var i,o=i;if(i*=this.gchordbars,0==this.gchordDivider){var c=this.overridePattern.length;c<=i?this.gchordDivider=1:c<=2*i?this.gchordDivider=2:this.gchordDivider=4}}else this.gchordDivider=1;o*=this.gchordDivider,this.gchordDivider>1&&(n/=this.gchordDivider);var l=n/2,_=parseInt($,10)/parseInt(r,10)-(t-e)/this.tempoChangeFactor;1e-5>Math.abs(_)&&(_=0),(0===this.currentChords.length||0!==this.currentChords[0].beat)&&this.currentChords.unshift({beat:0,chord:this.chordLastBar});var h=function e(t,$,r,n){$*=n,r*=8;var a=[];if(0===t.length)return a;for(var s=t[0].chord,i=1;i<t.length;i++){for(var o=t[i];a.length<o.beat*n;)a.push(s);s=o.chord}for(;a.length<$;)a.push(s);return a}(this.currentChords,8*$/r,n,this.gchordDivider),u=this.overridePattern?this.overridePattern:this.rhythmPatterns[$+"/"+r],d=this.gchordstress,f=this.gchordduration;if(!d){arr=[];for(var p=0;p<u.length;++p)arr.push(1);d=arr}if(d.length<u.length&&(d=a(d,u.length)),!f){arr=[];for(var p=0;p<u.length;++p)arr.push(1);f=arr}if(f.length<u.length&&(f=a(f,u.length)),this.overridePattern){var m=this.currentgchordbars*o,g=m+o;u=u.slice(m,g),d=d.slice(m,g),f=f.slice(m,g),this.currentgchordbars++,this.currentgchordbars==this.gchordbars&&(this.currentgchordbars=0)}if(_){var v=u.slice(),b=d.slice(),y=f.slice(),k=v.length;u=[],d=[],f=[];var w=(t-e)/this.tempoChangeFactor*8*this.gchordDivider;if(w>2*this.gchordDivider)for(var x=0;x<w;x++)x<k?(u.push(v[x]),d.push(b[x]),f.push(y[x])):(u.push(""),d.push(1),f.push(1));else for(var x=0;x<w;x++)u.push(""),d.push(1),f.push(1)}if(!u){u=[];for(var x=0;8*$/r/2;x++)switch(this.gchordDivider){case 1:u.push(""),u.push(""),d.push(1),d.push(1),f.push(1),f.push(1);break;case 2:u.push(""),u.push(""),u.push(""),u.push(""),d.push(1),d.push(1),d.push(1),d.push(1),f.push(1),f.push(1),f.push(1),f.push(1);break;case 4:u.push(""),u.push(""),u.push(""),u.push(""),u.push(""),u.push(""),u.push(""),u.push(""),d.push(1),d.push(1),d.push(1),d.push(1),d.push(1),d.push(1),d.push(1),d.push(1),f.push(1),f.push(1),f.push(1),f.push(1),f.push(1),f.push(1),f.push(1),f.push(1)}}for(var C=!0,T=Math.min(u.length,h.length),x=0;x<T;x++){x>0&&h[x-1]&&h[x]&&h[x-1].boom!==h[x].boom&&(C=!0);var S=u[x],E=d[x];E<0&&(E=0);var A=f[x];A<0&&(A=0);var B=S.indexOf("boom")>=0,N=!B&&0!==x&&u[0].indexOf("boom")>=0&&(!h[x-1]||h[x-1].boom!==h[x].boom);B||(C=!1);for(var P=s(h[x],S,C,N),M=0,L=0;L<P.length;L++){var D=l*A;D<0&&(D=0);var O=Math.floor(this.boomVolume*E);O<0&&(O=0),O>127&&(O=127);var z=Math.floor(this.chickVolume*E);z<0&&(z=0),z>127&&(z=127),P[L]&&(gStrumChords&&!(B||N)&&(M=L*(.125/gStrumChordsDivider)),this.writeNote(P[L],.125/this.gchordDivider,B||N?O:z,x,D,B||N?this.bassInstrument:this.chordInstrument,M)),N?N=!1:B=!1}}}},n.prototype.processChord=function(e){if(!this.chordTrackFinished){var t=this.findChord(e);if(t){var $=this.interpretChord(t);if($){0===this.chordTrack.length&&this.chordTrack.push({cmd:"program",channel:this.chordChannel,instrument:this.chordInstrument}),this.lastChord=$;var r,n,a=(r=this.lastBarTime,n=l(e.time),8*(n-r));this.currentChords.push({chord:this.lastChord,beat:a,start:l(e.time)})}}}},n.prototype.breakSynonyms=["break","(break)","no chord","n.c.","tacet"],n.prototype.basses={A:33,B:35,C:36,D:38,E:40,F:41,G:43},n.prototype.rhythmPatterns={"2/2":["boom","","","","chick","","",""],"3/2":["boom","","","","chick","","","","chick","","",""],"4/2":["boom","","","","chick","","","","boom","","","","chick","","",""],"2/4":["boom","","chick",""],"3/4":["boom","","chick","","chick",""],"4/4":["boom","","chick","","boom","","chick",""],"5/4":["boom","","chick","","chick","","boom","","chick",""],"6/4":["boom","","chick","","boom","","chick","","boom","","chick",""],"3/8":["boom","","chick"],"5/8":["boom","chick","chick","boom","chick"],"6/8":["boom","","chick","boom","","chick"],"7/8":["boom","chick","chick","boom","chick","boom","chick"],"9/8":["boom","","chick","boom","","chick","boom","","chick"],"10/8":["boom","chick","chick","boom","chick","chick","boom","chick","boom","chick"],"11/8":["boom","chick","chick","boom","chick","chick","boom","chick","boom","chick","chick"],"12/8":["boom","","chick","boom","","chick","boom","","chick","boom","","chick"]},e.exports=n},"./src/synth/create-note-map.js":function(e,t,$){var r=$(/*! ./instrument-index-to-name */ "./src/synth/instrument-index-to-name.js"),n=function e(t){for(var $=[],n=0;n<t.tracks.length;n++)$.push([]);var a=r[0];return t.tracks.forEach(function(e,t){e.forEach(function(e){switch(e.cmd){case"note":var n=void 0!==e.instrument?r[e.instrument]:a;if(e.duration>0){var s=e.gap?e.gap:0,i=e.duration;s=Math.min(s,2*i/3);var o={pitch:e.pitch,instrument:n,start:Math.round(1e6*e.start)/1e6,end:Math.round((e.start+i-s)*1e6)/1e6,volume:e.volume};e.startChar&&(o.startChar=e.startChar),e.endChar&&(o.endChar=e.endChar),e.style&&(o.style=e.style),e.cents&&(o.cents=e.cents),$[t].push(o)}break;case"program":a=r[e.instrument];break;case"text":break;default:console.log("Unhandled midi event",e)}})}),$};e.exports=n},"./src/synth/create-synth-control.js":function(e,t,$){var r=$(/*! ./supports-audio */ "./src/synth/supports-audio.js"),n=$(/*! ./register-audio-context */ "./src/synth/register-audio-context.js"),a=$(/*! ./active-audio-context */ "./src/synth/active-audio-context.js"),s=$(/*! ../parse/abc_common */ "./src/parse/abc_common.js"),i=$(/*! ./images/loop.svg.js */ "./src/synth/images/loop.svg.js"),o=$(/*! ./images/play.svg.js */ "./src/synth/images/play.svg.js"),c=$(/*! ./images/pause.svg.js */ "./src/synth/images/pause.svg.js"),l=$(/*! ./images/loading.svg.js */ "./src/synth/images/loading.svg.js"),_=$(/*! ./images/reset.svg.js */ "./src/synth/images/reset.svg.js");function h(e,t,$,s,i){var o=!0;if(a()?o="suspended"===a().state:n(),!r())throw{status:"NotSupported",message:"This browser does not support audio."};(o||i)&&$&&$.classList.add("abcjs-loading"),o?a().resume().then(function(){s?s().then(function(r){u(e,t,$,i)}):u(e,t,$,i)}):u(e,t,$,i)}function u(e,t,$,r){r?e(t).then(function(){$&&$.classList.remove("abcjs-loading")}):(e(t),$&&$.classList.remove("abcjs-loading"))}e.exports=function e(t,$){var r,u,d,f,p,m,g,v=this;if("string"==typeof t){var b=t;if(!(t=document.querySelector(b)))throw Error('Cannot find element "'+b+'" in the DOM.')}else if(!(t instanceof HTMLElement))throw Error("The first parameter must be a valid element or selector in the DOM.");if(v.parent=t,v.options={},$&&(v.options=s.clone($)),v.options.ac&&n(v.options.ac),function e(t,$){var r=!!$.loopHandler,n=!!$.restartHandler,a=!!$.playHandler||!!$.playPromiseHandler,s=!!$.progressHandler,h=!!$.warpHandler,u=!1!==$.hasClock,d='<div class="abcjs-inline-audio">\n';if(r){var f=$.repeatTitle?$.repeatTitle:"Click to toggle play once/repeat.",p=$.repeatAria?$.repeatAria:f;d+='<button type="button" class="abcjs-midi-loop abcjs-btn" title="'+f+'" aria-label="'+p+'">'+i+"</button>\n"}if(n){var m=$.restartTitle?$.restartTitle:"Click to go to beginning.",g=$.restartAria?$.restartAria:m;d+='<button type="button" class="abcjs-midi-reset abcjs-btn" title="'+m+'" aria-label="'+g+'">'+_+"</button>\n"}if(a){var v=$.playTitle?$.playTitle:"Click to play/pause.",b=$.playAria?$.playAria:v;d+='<button type="button" class="abcjs-midi-start abcjs-btn" title="'+v+'" aria-label="'+b+'">'+o+c+l+"</button>\n"}if(s){var y=$.randomTitle?$.randomTitle:"Click to change the playback position.",k=$.randomAria?$.randomAria:y;d+='<button type="button" class="abcjs-midi-progress-background" title="'+y+'" aria-label="'+k+'"><span class="abcjs-midi-progress-indicator"></span></button>\n'}if(u&&(d+='<span class="abcjs-midi-clock"></span>\n'),h){var w=$.warpTitle?$.warpTitle:"Change the playback speed.",x=$.warpAria?$.warpAria:w;d+='<span class="abcjs-tempo-wrapper"><label><input class="abcjs-midi-tempo" type="number" min="1" max="300" value="100" title="'+w+'" aria-label="'+x+'">%</label><span class="abcjs-midi-current-tempo-wrapper"> (<span class="abcjs-midi-current-tempo"></span> '+($.bpm?$.bpm:"BPM")+")</span></span>\n"}d+='<div class="abcjs-css-warning" style="font-size: 12px;color:red;border: 1px solid red;text-align: center;width: 300px;margin-top: 4px;font-weight: bold;border-radius: 4px;">CSS required: load abcjs-audio.css</div>',d+="</div>\n",t.innerHTML=d}(v.parent,v.options),u=!!(r=v).options.loopHandler,d=!!r.options.restartHandler,f=!!r.options.playHandler||!!r.options.playPromiseHandler,p=!!r.options.progressHandler,m=!!r.options.warpHandler,g=r.parent.querySelector(".abcjs-midi-start"),u&&r.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(e){h(r.options.loopHandler,e,g,r.options.afterResume)}),d&&r.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(e){h(r.options.restartHandler,e,g,r.options.afterResume)}),f&&g.addEventListener("click",function(e){h(r.options.playPromiseHandler||r.options.playHandler,e,g,r.options.afterResume,!!r.options.playPromiseHandler)}),p&&r.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(e){h(r.options.progressHandler,e,g,r.options.afterResume)}),m&&r.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(e){h(r.options.warpHandler,e,g,r.options.afterResume)}),v.disable=function(e){var t=v.parent.querySelector(".abcjs-inline-audio");e?t.classList.add("abcjs-disabled"):t.classList.remove("abcjs-disabled")},v.setWarp=function(e,t){v.parent.querySelector(".abcjs-midi-tempo").value=Math.round(t),v.setTempo(e)},v.setTempo=function(e){var t=v.parent.querySelector(".abcjs-midi-current-tempo");t&&(t.innerHTML=Math.round(e))},v.resetAll=function(){for(var e=v.parent.querySelectorAll(".abcjs-pushed"),t=0;t<e.length;t++)e[t].classList.remove("abcjs-pushed")},v.pushPlay=function(e){var t=v.parent.querySelector(".abcjs-midi-start");t&&(e?t.classList.add("abcjs-pushed"):t.classList.remove("abcjs-pushed"))},v.pushLoop=function(e){var t=v.parent.querySelector(".abcjs-midi-loop");t&&(e?t.classList.add("abcjs-pushed"):t.classList.remove("abcjs-pushed"))},v.setProgress=function(e,t){var $=v.parent.querySelector(".abcjs-midi-progress-background"),r=v.parent.querySelector(".abcjs-midi-progress-indicator");if($&&r){var n=$.clientWidth;r.style.left=n*e+"px";var a=v.parent.querySelector(".abcjs-midi-clock");if(a){var s=t*e/1e3,i=Math.floor(s%60);a.innerHTML=Math.floor(s/60)+":"+(i<10?"0"+i:i)}}},v.options.afterResume){var y=!1;v.options.ac?y="suspended"!==v.options.ac.state:a()&&(y="suspended"!==a().state),y&&v.options.afterResume()}}},"./src/synth/create-synth.js":function(e,t,$){var r=$(/*! ./load-note */ "./src/synth/load-note.js"),n=$(/*! ./load-reverb-kernel */ "./src/synth/load-reverb-kernel.js"),a=$(/*! ./create-note-map */ "./src/synth/create-note-map.js"),s=$(/*! ./register-audio-context */ "./src/synth/register-audio-context.js"),i=$(/*! ./active-audio-context */ "./src/synth/active-audio-context.js"),o=$(/*! ./supports-audio */ "./src/synth/supports-audio.js"),c=$(/*! ./pitch-to-note-name */ "./src/synth/pitch-to-note-name.js"),l=$(/*! ./instrument-index-to-name */ "./src/synth/instrument-index-to-name.js"),_=$(/*! ./download-buffer */ "./src/synth/download-buffer.js"),h=$(/*! ./place-note */ "./src/synth/place-note.js"),u="MIDI is not supported in this browser.",d="https://paulrosen.github.io/midi-js-soundfonts/abcjs/";e.exports=function e(t){var $=this;function f(e,t,$,r,n){switch(n){case"hornpipe":if(t=parseFloat(t),isNaN(t))return;(t/=2)<-.9&&(t=-.9),t>.9&&(t=.9);var a=1/r*2;t*=a;for(var s=0;s<e.length;s++)for(var i=e[s],o=0;o<i.length;o++){var c=i[o],l=c.start-.125*$;l>=0&&c.end-c.start>=a/2&&(l%a?c.start+=t:c.end+=t)}break;case"jig":case"slipjig":case"slide":if(t=parseFloat(t),isNaN(t))return;(t/=2)<-.9&&(t=-.9),t>.9&&(t=.9);var a=.125;if(swingFactor=t,0==(t*=a))return;for(var s=0;s<e.length;s++)for(var i=e[s],o=0;o<i.length;o++){var c=i[o],_=c.end-c.start,l=c.start-.125*$;l>=0&&_>=.125&&_<=.127&&(l%(3*a)==.125?(c.start+=t,_=c.end-c.start,c.end=c.start+_*(1-swingFactor)):c.end+=t)}break;case"polka":case"waltz":if(t=parseFloat(t),isNaN(t))return;(t/=2)<-.9&&(t=-.9),t>.9&&(t=.9);var a=.125;if(swingFactor=t,0==(t*=a))return;for(var s=0;s<e.length;s++)for(var i=e[s],o=0;o<i.length;o++){var c=i[o],_=c.end-c.start,l=c.start-.125*$;l>=0&&_>=.125&&_<=.127&&(l%(2*a)==.125?(c.start+=t,_=c.end-c.start,c.end=c.start+_*(1-swingFactor)):c.end+=t)}}}gTheSolfegeABC=null,t&&(gTheSolfegeABC=t),$.audioBufferPossible=void 0,$.directSource=[],$.startTimeSec=void 0,$.pausedTimeSec=void 0,$.audioBuffers=[],$.duration=void 0,$.isRunning=!1,$.init=function(e){gMIDIInitStillWaiting=!0,setTimeout(function(){gMIDIInitStillWaiting&&(document.getElementById("loading-bar-spinner").style.display="block")},600),e||(e={}),s(e.audioContext);var t=i().currentTime;if($.debugCallback=e.debugCallback,$.debugCallback&&$.debugCallback("init called"),$.audioBufferPossible=$._deviceCapable(),!$.audioBufferPossible)return Promise.reject({status:"NotSupported",message:u});var r=e.options?e.options:{};$.soundFontUrl=gTheActiveSoundFont,"/"!==$.soundFontUrl[$.soundFontUrl.length-1]&&($.soundFontUrl+="/"),gSamplesOnline||gAllowOfflineInstruments||$.soundFontUrl,r.soundFontVolumeMultiplier||0===r.soundFontVolumeMultiplier?$.soundFontVolumeMultiplier=r.soundFontVolumeMultiplier:"https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/"===$.soundFontUrl?$.soundFontVolumeMultiplier=2:"https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/"===$.soundFontUrl?$.soundFontVolumeMultiplier=3:"https://michaeleskin.com/abctools/soundfonts/canvas/"===$.soundFontUrl||"https://michaeleskin.com/abctools/soundfonts/arachno_3/"===$.soundFontUrl||"https://michaeleskin.com/abctools/soundfonts/fluidhq_1/"===$.soundFontUrl?$.soundFontVolumeMultiplier=2:"https://michaeleskin.com/abctools/soundfonts/mscore_2/"===$.soundFontUrl?$.soundFontVolumeMultiplier=2.5:"https://michaeleskin.com/abctools/soundfonts/fatboy_4/"==$.soundFontUrl?$.soundFontVolumeMultiplier=3.25:$.soundFontUrl===d?$.soundFontVolumeMultiplier=.4:$.soundFontVolumeMultiplier=1;var n=!1;/Safari/i.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)&&(n=!0),gIsIOS&&(n=!0),$.customVolumeMultiplier={},$.customFade={};var a=gUseCustomGMSounds;if(gOverrideCustomGMSounds&&(a=gCustomGMSoundsOverride),a?($.customVolumeMultiplier={dulcimer:2,accordion:2,flute:2,whistle:2,banjo:2,bagpipe:3,fiddle:2,melodic_tom:3.25,uilleann:1.75,smallpipesd:1.75,smallpipesa:1.75,sackpipa:1.75,concertina:2,melodica:2,cajun:2,solfege:2,chorus_guitar_nylon:3,chorus_guitar_steel:3,bouzouki:2,bouzouki2:2,mandolin:2,marchingdrums:2.5,borderpipes:2.5,percussion:2,soprano_recorder:3.5,alto_recorder:3.5,tenor_recorder:5.8,bass_recorder:3.1},$.customFade={dulcimer:4e3,accordion:100,flute:100,whistle:100,banjo:100,bagpipe:100,fiddle:100,melodic_tom:100,uilleann:100,smallpipesd:100,smallpipesa:100,sackpipa:100,concertina:100,melodica:100,cajun:100,solfege:100,chorus_guitar_nylon:200,chorus_guitar_steel:200,bouzouki:200,bouzouki2:125,mandolin:200,marchingdrums:100,borderpipes:100,soprano_recorder:100,alto_recorder:100,tenor_recorder:100,bass_recorder:120,silence:100}):($.customVolumeMultiplier={uilleann:1.75,smallpipesd:1.75,smallpipesa:1.75,sackpipa:1.75,concertina:2,melodica:2,cajun:2,solfege:2,chorus_guitar_nylon:3,chorus_guitar_steel:3,bouzouki:2,bouzouki2:2,mandolin:2,marchingdrums:2.5,borderpipes:2.5,percussion:2,soprano_recorder:3.5,alto_recorder:3.5,tenor_recorder:5.8,bass_recorder:3.1},$.customFade={uilleann:100,smallpipesd:100,smallpipesa:100,sackpipa:100,concertina:100,melodica:100,cajun:100,solfege:100,chorus_guitar_nylon:200,chorus_guitar_steel:200,bouzouki:200,bouzouki2:125,mandolin:200,marchingdrums:100,borderpipes:100,soprano_recorder:100,alto_recorder:100,tenor_recorder:100,bass_recorder:120,silence:100}),r.programOffsets)$.programOffsets=r.programOffsets;else if($.soundFontUrl===d)$.programOffsets={bright_acoustic_piano:20,honkytonk_piano:20,electric_piano_1:30,electric_piano_2:30,harpsichord:40,clavinet:20,celesta:20,glockenspiel:40,vibraphone:30,marimba:35,xylophone:30,tubular_bells:35,dulcimer:30,drawbar_organ:20,percussive_organ:25,rock_organ:20,church_organ:40,reed_organ:40,accordion:40,harmonica:40,acoustic_guitar_nylon:20,acoustic_guitar_steel:30,electric_guitar_jazz:25,electric_guitar_clean:15,electric_guitar_muted:35,overdriven_guitar:25,distortion_guitar:20,guitar_harmonics:30,electric_bass_finger:15,electric_bass_pick:30,fretless_bass:40,violin:105,viola:50,cello:40,contrabass:60,trumpet:10,trombone:90,alto_sax:20,tenor_sax:20,clarinet:20,flute:50,banjo:50,woodblock:20};else if(n){var a=gUseCustomGMSounds;gOverrideCustomGMSounds&&(a=gCustomGMSoundsOverride),a?$.programOffsets={dulcimer:0,accordion:0,flute:0,whistle:0,banjo:0,bagpipe:0,fiddle:0,melodic_tom:0,uilleann:0,smallpipesd:0,smallpipesa:0,sackpipa:0,concertina:0,melodica:0,cajun:0,solfege:0,chorus_guitar_nylon:0,chorus_guitar_steel:0,bouzouki:0,bouzouki2:0,mandolin:0,marchingdrums:0,borderpipes:0,soprano_recorder:0,alto_recorder:0,tenor_recorder:0,bass_recorder:0,silence:50}:$.programOffsets={uilleann:0,smallpipesd:0,smallpipesa:0,sackpipa:0,concertina:0,melodica:0,cajun:0,solfege:0,chorus_guitar_nylon:0,chorus_guitar_steel:0,bouzouki:0,bouzouki2:0,mandolin:0,marchingdrums:0,borderpipes:0,soprano_recorder:0,alto_recorder:0,tenor_recorder:0,bass_recorder:0,silence:50}}else $.programOffsets={};var o=void 0!==r.fadeLength?parseInt(r.fadeLength,10):NaN;if($.fadeLength=isNaN(o)?200:o,o=void 0!==r.noteEnd?parseInt(r.noteEnd,10):NaN,$.noteEnd=isNaN(o)?0:o,$.pan=r.pan,$.meterSize=1,e.visualObj)$.flattened=e.visualObj.setUpAudio(r),e.visualObj.getMeterFraction().den&&($.meterSize=e.visualObj.getMeterFraction().num/e.visualObj.getMeterFraction().den),$.pickupLength=e.visualObj.getPickupLength();else{if(!e.sequence)return Promise.reject(Error("Must pass in either a visualObj or a sequence"));$.flattened=e.sequence}$.millisecondsPerMeasure=e.millisecondsPerMeasure?e.millisecondsPerMeasure:e.visualObj?e.visualObj.millisecondsPerMeasure($.flattened.tempo):1e3,$.beatsPerMeasure=e.visualObj?e.visualObj.getBeatsPerMeasure():4,$.sequenceCallback=r.sequenceCallback,$.callbackContext=r.callbackContext,$.onEnded=r.onEnded,$.meterFraction=e.visualObj?e.visualObj.getMeterFraction():{den:1};var _={},h=[],f=[],p=l[0];$.flattened.tracks.forEach(function(e,t){e.forEach(function(e){if("program"===e.cmd&&l[e.instrument]&&(p=l[e.instrument]),void 0!==e.pitch){var t=e.pitch,$=c[t],r=void 0!==e.instrument?l[e.instrument]:p;if("solfege"==p&&gTheSolfegeABC){var n=gTheSolfegeABC.substring(e.startChar,e.endChar),a=/"[^"]*"/gm;n=n.replaceAll(a,""),a=/![^!\n]*!/gm,n=(n=(n=(n=(n=(n=n.replaceAll(a,"")).trim()).toUpperCase()).replaceAll("^","")).replaceAll("_","")).replaceAll("=",""),a=/[^a-gA-G]/gm,n=n.replaceAll(a,""),$[0]!=n[0]&&($=gPitchToNoteNameSharp[t])}if($){if(_[r]||(_[r]={}),gSoundsCacheABCJS[r]&&gSoundsCacheABCJS[r][$]){var s=r+":"+$;0>h.indexOf(s)&&h.push(s)}else _[r][$]=!0}else{var i=r+":"+$;console.log("Can't find note: ",t,i),0>f.indexOf(i)&&f.push(i)}}})}),$.debugCallback&&$.debugCallback("note gathering time = "+Math.floor((i().currentTime-t)*1e3)+"ms"),t=i().currentTime;var m=[];Object.keys(_).forEach(function(e){Object.keys(_[e]).forEach(function(t){m.push({instrument:e,note:t})})}),$.debugCallback&&$.debugCallback("notes "+JSON.stringify(m));for(var g=[],v=0;v<m.length;v+=256)g.push(m.slice(v,v+256));return new Promise(function(e,r){var n={cached:h,error:f,loaded:[]},a=0;!function s(){$.debugCallback&&$.debugCallback("loadBatch idx="+a+" len="+g.length),a<g.length?$._loadBatch(g[a],$.soundFontUrl,t).then(function(e){$.debugCallback&&$.debugCallback("loadBatch then"),t=i().currentTime,e&&(e.error&&(n.error=n.error.concat(e.error)),e.loaded&&(n.loaded=n.loaded.concat(e.loaded))),a++,s()},r):($.debugCallback&&$.debugCallback("resolve init"),gMIDIInitStillWaiting=!1,document.getElementById("loading-bar-spinner").style.display="none",e(n))}()})},$._loadBatch=function(e,t,a,s){var o=[];return e.forEach(function(e){$.debugCallback&&$.debugCallback("getNote "+e.instrument+":"+e.note),o.push(r(t,e.instrument,e.note,i()))}),(gSamplesOnline||!gSamplesOnline&&gAllowOfflineInstruments)&&gEnableReverb&&o.push(n(i())),Promise.all(o).then(function(r){$.debugCallback&&$.debugCallback("mp3 load time = "+Math.floor((i().currentTime-a)*1e3)+"ms");for(var n=[],o=[],c=[],l=[],_=0;_<r.length;_++){var h=r[_],u=h.instrument+":"+h.name;"loaded"===h.status?n.push(u):"pending"===h.status?c.push(u):"cached"===h.status?o.push(u):l.push(u+" "+h.message)}if(!(c.length>0))return $.debugCallback&&$.debugCallback("loadBatch resolve"),Promise.resolve({loaded:n,cached:o,error:l});if($.debugCallback&&$.debugCallback("pending "+JSON.stringify(c)),s?s*=2:s=50,s<9e4)return new Promise(function(e,r){setTimeout(function(){var n=[];for(_=0;_<c.length;_++)u=c[_].split(":"),n.push({instrument:u[0],note:u[1]});$.debugCallback&&$.debugCallback("retry "+JSON.stringify(n)),$._loadBatch(n,t,a,s).then(function(t){e(t)}).catch(function(e){r(e)})},s)});for(var d=[],f=0;f<e.length;f++)d.push(e[f].instrument+"/"+e[f].note);return $.debugCallback&&$.debugCallback("loadBatch timeout"),Promise.reject(Error("timeout attempting to load: "+d.join(", ")))}).catch(function(e){$.debugCallback&&$.debugCallback("loadBatch catch "+e.message)})},$.prime=function(){var e=$.fadeLength/1e3;return($.isRunning=!1,$.audioBufferPossible)?($.debugCallback&&$.debugCallback("prime called"),new Promise(function(t){var r=i().currentTime,n=$.millisecondsPerMeasure/1e3/$.meterSize;if($.duration=$.flattened.totalDuration*n,$.duration<=0)return $.audioBuffers=[],t({status:"empty",seconds:0});$.duration+=e,$.duration+=gExtendDuration;var s=Math.floor(i().sampleRate*$.duration);$.stop();var o=a($.flattened);if(gAddABCJSSwing)(function e(t,$,r,n){if((4==r.den||8==r.den)&&($=parseFloat($),!isNaN($)&&!($<=50))){$>75&&($=75),$=$/50-1;var a=.25;8===r.den&&(a/=2);for(var s=a/2,i=s*$,o=0;o<t.length;o++)for(var c=t[o],l=0;l<c.length;l++){var _=c[l];if((_.start-n)%s==0&&(_.start-n)%a!=0&&(0==l||c[l-1].start<=c[l].start-s)&&(l==c.length-1||c[l+1].start>=c[l].start+s)){var h=_.start;_.start+=i,_.volume*=1,l>0&&c[l-1].end==h&&(c[l-1].end=_.start,c[l-1].volume*=1)}}}})(o,gABCJSSwingFactor,$.meterFraction,$.pickupLength);else if(gAddSwing){var c=$.beatsPerMeasure,l=$.pickupLength/.125;switch(l=Math.floor(l),c){case 2:.5==$.meterSize?f(o,gSwingFactor,l,c,"polka"):.75==$.meterSize?f(o,gSwingFactor,l,c,"jig"):1==$.meterSize&&f(o,gSwingFactor,l,4*c,"hornpipe");break;case 3:.75==$.meterSize?f(o,gSwingFactor,l,c,"waltz"):1.125==$.meterSize&&f(o,gSwingFactor,l,c,"slipjig");break;case 4:1==$.meterSize?f(o,gSwingFactor,l,2*c,"hornpipe"):1.5==$.meterSize&&f(o,gSwingFactor,l,c,"slide")}}$.sequenceCallback&&$.sequenceCallback(o,$.callbackContext),gSequenceCallback&&gSequenceCallback(o,$.callbackContext);var _=function e(t,$){if(null==$)return null;var r=[];if($.length){for(var n=0;n<t;n++)if(n<$.length){var a=parseFloat($[n]);a<-1?a=-1:a>1&&(a=1),r.push(a)}else r.push(0);return r}var s=parseFloat($);if(s*(t-1)>2)return null;for(var i=t%2==0,o=i?0-s/2:0,c=o+s,l=0;l<t;l++)(i=l%2==0)?(r.push(o),o-=s):(r.push(c),c+=s);return r}(o.length,$.pan),u={};o.forEach(function(e,t){var r=_&&_.length>t?_[t]:0;e.forEach(function(e){var t;t="solfege"==e.instrument?e.instrument+":"+e.pitch+":"+e.volume+":"+Math.round((e.end-e.start)*1e3)/1e3+":"+r+":"+n+":"+e.startChar+":"+e.endChar+":"+(e.cents?e.cents:0):e.instrument+":"+e.pitch+":"+e.volume+":"+Math.round((e.end-e.start)*1e3)/1e3+":"+r+":"+n+":"+(e.cents?e.cents:0),$.debugCallback&&$.debugCallback("noteMapTrack "+t),u[t]||(u[t]=[]),u[t].push(e.start)})});for(var d=[],p=i().createBuffer(2,s,i().sampleRate),m=0;m<Object.keys(u).length;m++){var g,v=Object.keys(u)[m],b=v.split(":"),y=b[0];"solfege"==b[0]?(g=void 0!==b[8]?parseFloat(b[8]):0,b={instrument:b[0],pitch:parseInt(b[1],10),volume:parseInt(b[2],10),len:parseFloat(b[3]),pan:parseFloat(b[4]),tempoMultiplier:parseFloat(b[5]),startChar:parseInt(b[6]),endChar:parseInt(b[7]),cents:g}):(g=void 0!==b[6]?parseFloat(b[6]):0,b={instrument:b[0],pitch:parseInt(b[1],10),volume:parseInt(b[2],10),len:parseFloat(b[3]),pan:parseFloat(b[4]),tempoMultiplier:parseFloat(b[5]),cents:g});var k=$.soundFontVolumeMultiplier,w=$.customVolumeMultiplier[y];w&&(k=w);var x=$.customFade[y],C=e;.2==C&&x&&(C=x/1e3),d.push(h(p,i().sampleRate,b,u[v],k,$.programOffsets[b.instrument],C,$.noteEnd/1e3,$.debugCallback))}function T(e){var t=e&&e.audioBuffers&&e.audioBuffers.length>0?e.audioBuffers[0].duration:0;return{status:i().state,duration:t}}$.audioBuffers=[p],$.debugCallback&&($.debugCallback("sampleRate = "+i().sampleRate),$.debugCallback("totalSamples = "+s),$.debugCallback("creationTime = "+Math.floor((i().currentTime-r)*1e3)+"ms")),Promise.all(d).then(function(){"suspended"===i().state?i().resume().then(function(){t(T($))}):"interrupted"===i().state?i().suspend().then(function(){i().resume().then(function(){t(T($))})}):t(T($))})})):Promise.reject(Error(u))},$.start=function(){if(!$.audioBufferPossible)throw Error(u);$.debugCallback&&$.debugCallback("start called");var e=$.pausedTimeSec?$.pausedTimeSec:0;$._kickOffSound(e),$.startTimeSec=i().currentTime-e,$.pausedTimeSec=void 0,$.debugCallback&&$.debugCallback("MIDI STARTED",$.startTimeSec)},$.pause=function(){if(!$.audioBufferPossible)throw Error(u);return $.debugCallback&&$.debugCallback("pause called"),$.pausedTimeSec=$.stop(),$.pausedTimeSec},$.resume=function(){$.start()},$.seek=function(e,t){var r;switch(t){case"seconds":r=e;break;case"beats":r=e*$.millisecondsPerMeasure/$.beatsPerMeasure/1e3;break;default:r=($.duration-$.fadeLength/1e3)*e}if(!$.audioBufferPossible)throw Error(u);$.debugCallback&&$.debugCallback("seek called sec="+r),$.isRunning?($.stop(),$._kickOffSound(r)):$.pausedTimeSec=r,$.pausedTimeSec=r},$.stop=function(){return $.isRunning=!1,$.pausedTimeSec=void 0,$.directSource.forEach(function(e){try{e.stop()}catch(t){console.log("direct source didn't stop:",t)}}),$.directSource=[],i().currentTime-$.startTimeSec},$.finished=function(){$.startTimeSec=void 0,$.pausedTimeSec=void 0,$.isRunning=!1},$.download=function(){return _($)},$.getAudioBuffer=function(){return $.audioBuffers[0]},$._deviceCapable=function(){return!!o()||(console.warn(u),$.debugCallback&&$.debugCallback(u),!1)},$._kickOffSound=function(e){if($.isRunning=!0,$.directSource=[],(gSamplesOnline||gAllowOfflineInstruments)&&gEnableReverb&&(!gEnableReverb||null!=gReverbNode)){try{gReverbNode.disconnect()}catch(t){console.log("Reverb node not connected")}var r=i().createGain(),n=i().createGain(),a=i().createGain();$.audioBuffers.forEach(function(e,t){$.directSource[t]=i().createBufferSource(),$.directSource[t].buffer=e,$.directSource[t].connect(gReverbNode),$.directSource[t].connect(n)}),gReverbNode.connect(r),n.gain.value=gReverbDry,r.gain.value=gReverbWet,n.connect(a),r.connect(a),a.gain.value=1,a.connect(i().destination)}else $.audioBuffers.forEach(function(e,t){$.directSource[t]=i().createBufferSource(),$.directSource[t].buffer=e,$.directSource[t].connect(i().destination)});$.directSource.forEach(function(t){t.start(0,e)}),$.onEnded&&($.directSource[0].onended=function(){$.onEnded($.callbackContext)})}}},"./src/synth/download-buffer.js":function(e){var t=function e(t){return window.URL.createObjectURL(function e(t){var $,r,n=t[0],a=n.numberOfChannels,s=n.length*a*2+44,i=new ArrayBuffer(s),o=new DataView(i),c=[],l=0,_=0;for(u(1179011410),u(s-8),u(1163280727),u(544501094),u(16),h(1),h(a),u(n.sampleRate),u(2*n.sampleRate*a),h(2*a),h(16),u(1635017060),u(s-_-4),$=0;$<a;$++)c.push(n.getChannelData($));for(;_<s;){for($=0;$<c.length;$++)r=(.5+(r=Math.max(-1,Math.min(1,c[$][l])))<0?32768*r:32767*r)|0,o.setInt16(_,r,!0),_+=2;l++}return new Blob([i],{type:"audio/wav"});function h(e){o.setUint16(_,e,!0),_+=2}function u(e){o.setUint32(_,e,!0),_+=4}}(t.audioBuffers))};e.exports=t},"./src/synth/get-midi-file.js":function(e,t,$){var r=$(/*! ../api/abc_tunebook */ "./src/api/abc_tunebook.js"),n=$(/*! ../midi/abc_midi_create */ "./src/midi/abc_midi_create.js"),a=function e(t,$){var a={};if($)for(var i in $)$.hasOwnProperty(i)&&(a[i]=$[i]);function o(e,t,$){var r=n(t,a);switch(a.midiOutputType){case"encoded":return r;case"binary":var i=r.replace("data:audio/midi,","");i=(i=i.replace(/MThd/g,"%4d%54%68%64")).replace(/MTrk/g,"%4d%54%72%6b");for(var o=new ArrayBuffer(i.length/3),c=new Uint8Array(o),l=0;l<i.length/3;l++){var _=3*l+1,h=parseInt(i.substring(_,_+2),16);c[l]=h}return c;default:return s(t,a,r,$)}}return(a.generateInline=!1,"string"==typeof t)?r.renderEngine(o,"*",t,a):o(null,t,0)},s=function e(t,$,r,n){var a,s=["abcjs-download-midi","abcjs-midi-"+n];$.downloadClass&&s.push($.downloadClass);var i='<div class="'+s.join(" ")+'">';$.preTextDownload&&(i+=$.preTextDownload);var o,c=t.metaText&&t.metaText.title?t.metaText.title:"Untitled";return a=$.downloadLabel&&(o=$.downloadLabel)&&"[object Function]"===({}).toString.call(o)?$.downloadLabel(t,n):$.downloadLabel?$.downloadLabel.replace(/%T/,c):'Download MIDI for "'+c+'"',c=(c=(c=(c=c.toLowerCase()).replace(/'/g,"")).replace(/[^a-zA-Z'áÁóÓúÚíÍéÉäÄöÖüÜÀàÈèÌìÒòÙù0-9_\-. ]+/ig,"")).replace(/__/g,"_"),i+='<a download="'+($.fileName?$.fileName:c+".midi")+'" href="'+r+'">'+a+"</a>",$.postTextDownload&&(i+=$.postTextDownload),i+"</div>"};e.exports=a},"./src/synth/images/loading.svg.js":function(e){e.exports='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="abcjs-loading-svg">\n <circle cx="50" cy="50" fill="none" stroke-width="20" r="35" stroke-dasharray="160 55"></circle>\n</svg>\n'},"./src/synth/images/loop.svg.js":function(e){e.exports='\n<svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" preserveAspectRatio="xMidYMid meet">\n <g transform="translate(0,700) scale(0.1,-0.1)" >\n <path d="M3111 6981 c-20 -37 -90 -55 -364 -96 -120 -18 -190 -33 -244 -55\n -42 -17 -124 -42 -182 -56 -78 -18 -119 -34 -157 -60 -28 -19 -86 -46 -128\n -60 -43 -13 -107 -42 -144 -64 -37 -23 -84 -46 -106 -52 -21 -7 -56 -29 -79\n -50 -22 -22 -61 -50 -86 -63 -26 -13 -67 -40 -91 -60 -24 -20 -65 -47 -90 -60\n -25 -13 -53 -31 -61 -41 -8 -9 -32 -30 -54 -46 -75 -54 -486 -460 -512 -507\n -15 -25 -48 -69 -75 -98 -26 -28 -48 -57 -48 -63 0 -6 -18 -29 -39 -53 -21\n -23 -56 -71 -77 -107 -20 -36 -50 -80 -65 -97 -16 -18 -33 -52 -40 -75 -12\n -47 -47 -115 -84 -166 -13 -18 -30 -56 -38 -83 -8 -27 -34 -80 -56 -118 -33\n -53 -46 -91 -62 -167 -12 -63 -34 -127 -59 -179 -42 -84 -60 -166 -60 -270 0\n -90 26 -122 125 -154 54 -17 96 -19 430 -20 305 -1 381 2 430 14 82 22 140 51\n 153 78 6 12 22 47 37 77 14 30 38 77 54 103 15 27 34 73 40 103 7 30 28 78 48\n 107 19 28 44 74 55 101 10 28 34 67 53 87 18 20 49 61 68 90 19 30 44 63 57\n 74 13 11 36 40 52 65 59 94 232 270 306 313 20 11 57 37 82 58 25 20 70 52\n 100 72 30 19 66 47 79 61 13 14 49 35 80 46 30 12 80 37 111 56 31 19 95 45\n 143 58 48 12 110 37 139 55 63 40 127 55 323 76 83 9 208 28 279 41 156 29\n 165 29 330 4 453 -71 514 -84 606 -130 31 -16 83 -36 116 -45 32 -9 84 -34\n 115 -56 31 -21 82 -48 113 -60 32 -11 72 -33 89 -48 18 -16 59 -45 92 -65 33\n -21 74 -51 90 -66 17 -15 49 -40 73 -54 52 -32 65 -61 50 -113 -8 -31 -61 -90\n -277 -308 -300 -303 -361 -382 -369 -481 -2 -29 0 -66 6 -81 13 -40 88 -138\n 115 -151 12 -6 54 -26 92 -44 l70 -33 945 -2 c520 -1 975 2 1012 7 64 8 191\n 50 231 76 11 7 33 34 50 60 22 34 42 51 65 58 l32 9 0 1101 0 1102 -32 9 c-21\n 7 -44 26 -64 55 -60 84 -77 97 -140 110 -44 9 -76 10 -127 2 -59 -9 -77 -17\n -134 -62 -37 -28 -172 -155 -301 -281 -129 -127 -249 -237 -267 -245 -25 -10\n -41 -11 -71 -2 -58 15 -112 45 -124 69 -6 11 -35 35 -64 54 -28 18 -58 41 -66\n 50 -8 9 -41 35 -75 58 -33 22 -77 56 -99 75 -21 18 -64 46 -95 61 -31 14 -73\n 39 -93 55 -20 15 -70 40 -110 55 -40 15 -97 44 -127 64 -29 21 -78 44 -107 53\n -30 8 -77 31 -105 51 -42 28 -73 39 -173 60 -68 14 -154 39 -196 58 -95 43\n -131 51 -343 76 -209 24 -242 32 -279 70 l-30 29 -328 0 c-312 0 -330 -1 -339\n -19z"></path>\n <path d="M254 2875 c-89 -16 -107 -26 -145 -78 -32 -44 -62 -66 -91 -67 -17 0\n -18 -61 -18 -1140 l0 -1140 24 0 c16 0 41 -17 72 -50 40 -42 61 -55 117 -72\n l69 -21 82 23 c44 12 96 30 114 39 18 9 148 132 290 272 141 141 267 261 279\n 268 51 26 86 14 176 -61 32 -26 62 -48 66 -48 5 0 36 -25 70 -55 34 -30 74\n -61 89 -69 15 -8 37 -28 50 -45 12 -17 50 -45 84 -62 34 -17 78 -44 98 -60 19\n -16 61 -37 93 -48 32 -11 81 -37 107 -56 27 -20 76 -45 109 -56 33 -12 75 -31\n 93 -44 62 -45 93 -58 191 -82 54 -12 130 -37 168 -54 68 -29 180 -58 226 -59\n 62 0 183 -64 183 -96 0 -12 88 -14 639 -14 l639 0 12 30 c18 44 76 66 233 89\n 89 14 160 30 200 47 34 15 106 42 159 60 54 18 112 44 130 57 47 35 85 52 146\n 67 29 7 76 28 105 48 29 20 77 48 107 63 30 15 66 39 80 54 14 15 50 40 81 56\n 31 15 78 46 104 69 26 22 61 46 79 54 17 7 43 26 56 42 14 16 41 41 60 56 64\n 48 380 362 408 405 15 23 40 51 55 63 15 12 36 38 46 58 11 21 37 57 58 82 22\n 25 49 62 62 83 13 20 38 56 57 78 19 23 50 74 69 113 19 39 46 86 59 104 14\n 18 34 62 46 98 12 36 32 77 45 92 31 38 60 97 80 167 9 33 26 76 37 95 29 50\n 47 103 68 206 10 52 32 117 51 155 29 56 33 74 34 140 0 94 -10 108 -101 138\n -61 20 -83 21 -463 21 -226 0 -421 -4 -451 -10 -63 -12 -86 -30 -110 -85 -10\n -22 -33 -63 -52 -92 -21 -31 -42 -80 -53 -123 -11 -44 -32 -93 -56 -128 -20\n -32 -47 -83 -59 -115 -12 -32 -37 -77 -56 -100 -19 -23 -50 -65 -69 -94 -19\n -29 -44 -57 -54 -63 -11 -5 -29 -27 -42 -47 -52 -85 -234 -277 -300 -315 -25\n -15 -53 -38 -62 -51 -9 -14 -42 -39 -74 -57 -32 -18 -75 -48 -95 -66 -21 -18\n -59 -44 -85 -58 -26 -13 -72 -40 -100 -59 -35 -24 -78 -41 -128 -52 -47 -11\n -99 -31 -139 -56 -69 -42 -94 -49 -391 -110 -245 -51 -425 -66 -595 -50 -168\n 16 -230 27 -330 61 -47 16 -123 35 -170 44 -98 17 -123 25 -172 58 -20 14 -71\n 37 -114 53 -44 15 -95 40 -115 56 -20 16 -70 42 -110 59 -40 16 -88 45 -108\n 63 -20 19 -55 46 -78 61 -24 14 -49 35 -55 47 -7 11 -34 33 -60 49 -50 31 -65\n 61 -53 102 4 13 130 147 281 298 236 238 277 283 299 335 15 32 35 71 46 86\n 12 18 19 44 19 76 0 42 -8 63 -53 138 -92 151 11 139 -1207 141 -798 2 -1030\n 0 -1086 -11z"></path>\n </g>\n</svg>\n'},"./src/synth/images/pause.svg.js":function(e){e.exports='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-pause-svg">\n <g>\n <rect width="8.23" height="25"/>\n <rect width="8.23" height="25" x="17"/>\n </g>\n</svg>\n'},"./src/synth/images/play.svg.js":function(e){e.exports='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-play-svg">\n <g>\n <polygon points="4 0 23 12.5 4 25"/>\n </g>\n</svg>\n'},"./src/synth/images/reset.svg.js":function(e){e.exports='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25">\n <g>\n <polygon points="5 12.5 24 0 24 25"/>\n <rect width="3" height="25" x="0" y="0"/>\n </g>\n</svg>\n'},"./src/synth/instrument-index-to-name.js":function(e){e.exports=["acoustic_grand_piano","bright_acoustic_piano","electric_grand_piano","honkytonk_piano","electric_piano_1","electric_piano_2","harpsichord","clavinet","celesta","glockenspiel","music_box","vibraphone","marimba","xylophone","tubular_bells","dulcimer","drawbar_organ","percussive_organ","rock_organ","church_organ","reed_organ","accordion","harmonica","tango_accordion","acoustic_guitar_nylon","acoustic_guitar_steel","electric_guitar_jazz","electric_guitar_clean","electric_guitar_muted","overdriven_guitar","distortion_guitar","guitar_harmonics","acoustic_bass","electric_bass_finger","electric_bass_pick","fretless_bass","slap_bass_1","slap_bass_2","synth_bass_1","synth_bass_2","violin","viola","cello","contrabass","tremolo_strings","pizzicato_strings","orchestral_harp","timpani","string_ensemble_1","string_ensemble_2","synth_strings_1","synth_strings_2","choir_aahs","voice_oohs","synth_choir","orchestra_hit","trumpet","trombone","tuba","muted_trumpet","french_horn","brass_section","synth_brass_1","synth_brass_2","soprano_sax","alto_sax","tenor_sax","baritone_sax","oboe","english_horn","bassoon","clarinet","piccolo","flute","recorder","pan_flute","blown_bottle","shakuhachi","whistle","ocarina","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass_lead","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","sitar","banjo","shamisen","koto","kalimba","bagpipe","fiddle","shanai","tinkle_bell","agogo","steel_drums","woodblock","taiko_drum","melodic_tom","synth_drum","reverse_cymbal","guitar_fret_noise","breath_noise","seashore","bird_tweet","telephone_ring","helicopter","applause","gunshot","percussion","uilleann","smallpipesd","smallpipesa","sackpipa","concertina","melodica","cajun","solfege","chorus_guitar_nylon","chorus_guitar_steel","bouzouki","bouzouki2","mandolin","marchingdrums","borderpipes","soprano_recorder","alto_recorder","tenor_recorder","bass_recorder","silence"]},"./src/synth/load-note.js":function(e,t,$){var r=function e(t,$,r,n){gSoundsCacheABCJS[$]||(gSoundsCacheABCJS[$]={});var a=gSoundsCacheABCJS[$],s=!1;/Safari/i.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)&&(s=!0),gIsIOS&&(s=!0);var i=!1;return a[r]||(a[r]=new Promise(function(e,a){var o=!1,c=gUseCustomGMSounds;if(gOverrideCustomGMSounds&&(c=gCustomGMSoundsOverride),c)switch($){case"silence":t="https://michaeleskin.com/abctools/soundfonts/",o=!0,i=!0;break;case"accordion":t="https://michaeleskin.com/abctools/soundfonts/accordion_2/",o=!0,i=!0;break;case"concertina":t="https://michaeleskin.com/abctools/soundfonts/concertina_1/",o=!0,i=!0;break;case"melodica":t="https://michaeleskin.com/abctools/soundfonts/melodica_1/",o=!0,i=!0;break;case"cajun":t="https://michaeleskin.com/abctools/soundfonts/cajun_1/",o=!0,i=!0;break;case"dulcimer":t="https://michaeleskin.com/abctools/soundfonts/dulcimer_1/",o=!0,i=!0;break;case"smallpipesd":t="https://michaeleskin.com/abctools/soundfonts/smallpipesd_1/",o=!0,i=!0;break;case"smallpipesa":t="https://michaeleskin.com/abctools/soundfonts/smallpipesa_1/",o=!0,i=!0;break;case"sackpipa":t="https://michaeleskin.com/abctools/soundfonts/sackpipa_1/",o=!0,i=!0;break;case"uilleann":t="https://michaeleskin.com/abctools/soundfonts/uilleann_6/",o=!0,i=!0;break;case"melodic_tom":switch(gTheActiveBodhranPitch){case"c":t="https://michaeleskin.com/abctools/soundfonts/bodhran_c_2/";break;case"c#":case"db":t="https://michaeleskin.com/abctools/soundfonts/bodhran_db_2/";break;case"d":t="https://michaeleskin.com/abctools/soundfonts/bodhran_d_2/";break;case"d#":case"eb":t="https://michaeleskin.com/abctools/soundfonts/bodhran_eb_2/";break;case"e":t="https://michaeleskin.com/abctools/soundfonts/bodhran_e_2/";break;case"f":t="https://michaeleskin.com/abctools/soundfonts/bodhran_f_2/";break;case"f#":case"gb":t="https://michaeleskin.com/abctools/soundfonts/bodhran_gb_2/";break;case"g":t="https://michaeleskin.com/abctools/soundfonts/bodhran_g_2/";break;case"g#":case"ab":t="https://michaeleskin.com/abctools/soundfonts/bodhran_ab_2/";break;case"a":default:t="https://michaeleskin.com/abctools/soundfonts/bodhran_a_2/";break;case"a#":case"bb":t="https://michaeleskin.com/abctools/soundfonts/bodhran_bb_2/";break;case"b":t="https://michaeleskin.com/abctools/soundfonts/bodhran_b_2/"}o=!0,i=!0;break;case"chorus_guitar_nylon":t="https://michaeleskin.com/abctools/soundfonts/chorus-guitar-nylon/",o=!1,i=!0;break;case"chorus_guitar_steel":t="https://michaeleskin.com/abctools/soundfonts/chorus-guitar-steel/",o=!1,i=!0;break;case"flute":case"whistle":case"solfege":t="https://michaeleskin.com/abctools/soundfonts/",o=!1,i=!0;break;case"banjo":var l=!0;switch(gTheActiveBanjoStyle){case"0":l=!1;break;case"1":t="https://michaeleskin.com/abctools/soundfonts/banjo_1b/";break;case"2":default:t="https://michaeleskin.com/abctools/soundfonts/banjo_2b/";break;case"3":t="https://michaeleskin.com/abctools/soundfonts/banjo_3b/";break;case"4":t="https://michaeleskin.com/abctools/soundfonts/banjo_4b/"}l&&(i=!0,o=!1);break;case"bagpipe":t="https://michaeleskin.com/abctools/soundfonts/bagpipe_8/",o=!1,i=!0;break;case"fiddle":t="https://michaeleskin.com/abctools/soundfonts/fiddle_1/",o=!1,i=!0;break;case"bouzouki":t="https://michaeleskin.com/abctools/soundfonts/bouzouki_2/",o=!1,i=!0;break;case"bouzouki2":t="https://michaeleskin.com/abctools/soundfonts/bouzouki2_6/",o=!1,i=!0;break;case"mandolin":t="https://michaeleskin.com/abctools/soundfonts/mandolin_6/",o=!1,i=!0;break;case"marchingdrums":t="https://michaeleskin.com/abctools/soundfonts/marchingdrums_2/",o=!1,i=!0;break;case"borderpipes":t="https://michaeleskin.com/abctools/soundfonts/borderpipes_1/",o=!1,i=!0;break;case"soprano_recorder":t="https://michaeleskin.com/abctools/soundfonts/soprano_recorder_4/",o=!1,i=!0;break;case"alto_recorder":t="https://michaeleskin.com/abctools/soundfonts/alto_recorder_1/",o=!1,i=!0;break;case"tenor_recorder":t="https://michaeleskin.com/abctools/soundfonts/tenor_recorder_1/",o=!1,i=!0;break;case"bass_recorder":t="https://michaeleskin.com/abctools/soundfonts/bass_recorder_2/",o=!1,i=!0;break;case"percussion":t="https://michaeleskin.com/abctools/soundfonts/percussion_1/"}else switch($){case"silence":t="https://michaeleskin.com/abctools/soundfonts/",o=!0,i=!0;break;case"concertina":t="https://michaeleskin.com/abctools/soundfonts/concertina_1/",o=!0,i=!0;break;case"melodica":t="https://michaeleskin.com/abctools/soundfonts/melodica_1/",o=!0,i=!0;break;case"cajun":t="https://michaeleskin.com/abctools/soundfonts/cajun_1/",o=!0,i=!0;break;case"smallpipesd":t="https://michaeleskin.com/abctools/soundfonts/smallpipesd_1/",o=!0,i=!0;break;case"smallpipesa":t="https://michaeleskin.com/abctools/soundfonts/smallpipesa_1/",o=!0,i=!0;break;case"sackpipa":t="https://michaeleskin.com/abctools/soundfonts/sackpipa_1/",o=!0,i=!0;break;case"uilleann":t="https://michaeleskin.com/abctools/soundfonts/uilleann_6/",o=!0,i=!0;break;case"solfege":t="https://michaeleskin.com/abctools/soundfonts/",o=!1,i=!0;break;case"chorus_guitar_nylon":t="https://michaeleskin.com/abctools/soundfonts/chorus-guitar-nylon/",o=!1,i=!0;break;case"chorus_guitar_steel":t="https://michaeleskin.com/abctools/soundfonts/chorus-guitar-steel/",o=!1,i=!0;break;case"bouzouki":t="https://michaeleskin.com/abctools/soundfonts/bouzouki_2/",o=!1,i=!0;break;case"bouzouki2":t="https://michaeleskin.com/abctools/soundfonts/bouzouki2_6/",o=!1,i=!0;break;case"mandolin":t="https://michaeleskin.com/abctools/soundfonts/mandolin_6/",o=!1,i=!0;break;case"marchingdrums":t="https://michaeleskin.com/abctools/soundfonts/marchingdrums_2/",o=!1,i=!0;break;case"borderpipes":t="https://michaeleskin.com/abctools/soundfonts/borderpipes_1/",o=!1,i=!0;break;case"soprano_recorder":t="https://michaeleskin.com/abctools/soundfonts/soprano_recorder_4/",o=!1,i=!0;break;case"alto_recorder":t="https://michaeleskin.com/abctools/soundfonts/alto_recorder_1/",o=!1,i=!0;break;case"tenor_recorder":t="https://michaeleskin.com/abctools/soundfonts/tenor_recorder_1/",o=!1,i=!0;break;case"bass_recorder":t="https://michaeleskin.com/abctools/soundfonts/bass_recorder_2/",o=!1,i=!0;break;case"percussion":t="https://michaeleskin.com/abctools/soundfonts/percussion_1/"}var _=t+$+"-mp3/"+r+".mp3";if(o&&(_=s?t+$+"-mp3/"+r+".mp3":t+$+"-ogg/"+r+".ogg"),gSamplesOnline||!gSamplesOnline&&gAllowOfflineInstruments)getSample_DB(_,function(t){if(t&&t.sample&&0!=t.sample.byteLength)try{var s=function t(n){e({instrument:$,name:r,status:"loaded",audioBuffer:n})};n.decodeAudioData(t.sample,s,function(){a(Error("Can't decode sound at "+_))})}catch(o){a(Error("Can't load reverb kernel database case - status="+o))}else fetch(_).then(t=>{try{if(!t.ok)throw Error(`HTTP error, status = ${t.status}`);if(i&&t.redirected)throw Error("HTTP redirect on custom GM instrument");t.arrayBuffer().then(t=>{var s=function t(n){e({instrument:$,name:r,status:"loaded",audioBuffer:n})};saveSample_DB(_,t),n.decodeAudioData(t,s,function(){a(Error("Can't decode sound at "+_))})})}catch(s){a(Error("Can't load sound at "+_+" status="+s+"- case 1"))}}).catch(e=>{a(Error("Can't load sound at "+_+" status="+e+"- case 2"))})});else{var h,u=function e(t){for(var $=t.split(",")[1],r=window.atob($),n=new Uint8Array(r.length),a=0;a<r.length;a++)n[a]=r.charCodeAt(a);return n.buffer}(h="percussion"==$?MIDI.Soundfont.percussion[r]:MIDI.Soundfont.acoustic_grand_piano[r]),d=function t(n){e({instrument:$,name:r,status:"loaded",audioBuffer:n})};n.decodeAudioData(u,d,function(){a(Error("Can't decode sound at "+_))})}})),a[r]};e.exports=r},"./src/synth/load-reverb-kernel.js":function(e,t,$){var r=function e(t){gReverbNode=null;var $,r=gReverbKernels.length;for($=0;$<r;++$)if(gReverbKernels[$].style==gReverbStyle){(gReverbNode=t.createConvolver()).buffer=gReverbKernels[$].kernel;var n=new Promise(function(e,t){e()});return n}var n=new Promise(function(e,$){getImpulse_DB(gReverbStyle,function(r){if(r&&r.impulse&&0!=r.impulse.byteLength)try{var n=function $(r){(gReverbNode=t.createConvolver()).buffer=r,gReverbKernels.push({style:gReverbStyle,kernel:r}),e()};t.decodeAudioData(r.impulse,n,function(){$(Error("Can't decode reverb kernel - database case"))})}catch(a){$(Error("Can't load reverb kernel database case - status="+a))}else{var s=!0,i="https://michaeleskin.com/abctools/soundfonts/reverb_kernels/";switch(gReverbStyle){case"room1":i+="room1.wav";break;case"room2":i+="room2.wav";break;case"room":case"room3":i+="room3.wav";break;case"chamber1":i+="chamber1.wav";break;case"chamber":case"chamber2":i+="chamber2.wav";break;case"chamber3":i+="chamber3.wav";break;case"hall1":i+="hall1.wav";break;case"hall":case"hall2":i+="hall2.wav";break;case"hall3":i+="hall3.wav";break;case"church":case"church1":i+="church1.wav";break;default:s=!1,i+="chamber2.wav"}fetch(i).then(r=>{try{if(!r.ok)throw Error(`HTTP error, status = ${r.status}`);r.arrayBuffer().then(r=>{var n=function $(r){(gReverbNode=t.createConvolver()).buffer=r,s&&gReverbKernels.push({style:gReverbStyle,kernel:r}),e()};s&&saveImpulse_DB(gReverbStyle,r),t.decodeAudioData(r,n,function(){$(Error("Can't decode reverb kernel"))})})}catch(n){$(Error("Can't load reverb kernel - status="+n))}}).catch(e=>{throw $(Error("Can't load reverb kernel - status="+e)),e})}})});return n};e.exports=r},"./src/synth/note-to-midi.js":function(e){var t={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},$=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];e.exports={noteToMidi:function e(r){var n=r.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(n&&5===n.length){var a,s=t[n[1]];return 48+$.indexOf(n[2])+s+12*(n[4].length-n[3].length)}return 0},midiToNote:function e(t){var r=Math.floor((t=parseInt(t,10))/12),n=t%12,a=$[n];if("-"===a&&(a="^"+$[n-1]),r>4)for(a=a.toLowerCase(),r-=5;r>0;)a+="'",r--;else for(;r<4;)a+=",",r++;return a}}},"./src/synth/pitch-to-note-name.js":function(e){e.exports={21:"A0",22:"Bb0",23:"B0",24:"C1",25:"Db1",26:"D1",27:"Eb1",28:"E1",29:"F1",30:"Gb1",31:"G1",32:"Ab1",33:"A1",34:"Bb1",35:"B1",36:"C2",37:"Db2",38:"D2",39:"Eb2",40:"E2",41:"F2",42:"Gb2",43:"G2",44:"Ab2",45:"A2",46:"Bb2",47:"B2",48:"C3",49:"Db3",50:"D3",51:"Eb3",52:"E3",53:"F3",54:"Gb3",55:"G3",56:"Ab3",57:"A3",58:"Bb3",59:"B3",60:"C4",61:"Db4",62:"D4",63:"Eb4",64:"E4",65:"F4",66:"Gb4",67:"G4",68:"Ab4",69:"A4",70:"Bb4",71:"B4",72:"C5",73:"Db5",74:"D5",75:"Eb5",76:"E5",77:"F5",78:"Gb5",79:"G5",80:"Ab5",81:"A5",82:"Bb5",83:"B5",84:"C6",85:"Db6",86:"D6",87:"Eb6",88:"E6",89:"F6",90:"Gb6",91:"G6",92:"Ab6",93:"A6",94:"Bb6",95:"B6",96:"C7",97:"Db7",98:"D7",99:"Eb7",100:"E7",101:"F7",102:"Gb7",103:"G7",104:"Ab7",105:"A7",106:"Bb7",107:"B7",108:"C8",109:"Db8",110:"D8",111:"Eb8",112:"E8",113:"F8",114:"Gb8",115:"G8",116:"Ab8",117:"A8",118:"Bb8",119:"B8",120:"C9",121:"Db9"}},"./src/synth/pitches-to-perc.js":function(e){var t={f0:"_C",n0:"=C",s0:"^C",x0:"C",f1:"_D",n1:"=D",s1:"^D",x1:"D",f2:"_E",n2:"=E",s2:"^E",x2:"E",f3:"_F",n3:"=F",s3:"^F",x3:"F",f4:"_G",n4:"=G",s4:"^G",x4:"G",f5:"_A",n5:"=A",s5:"^A",x5:"A",f6:"_B",n6:"=B",s6:"^B",x6:"B",f7:"_c",n7:"=c",s7:"^c",x7:"c",f8:"_d",n8:"=d",s8:"^d",x8:"d",f9:"_e",n9:"=e",s9:"^e",x9:"e",f10:"_f",n10:"=f",s10:"^f",x10:"f",f11:"_g",n11:"=g",s11:"^g",x11:"g",f12:"_a",n12:"=a",s12:"^a",x12:"a",f13:"_b",n13:"=b",s13:"^b",x13:"b",f14:"_c'",n14:"=c'",s14:"^c'",x14:"c'",f15:"_d'",n15:"=d'",s15:"^d'",x15:"d'",f16:"_e'",n16:"=e'",s16:"^e'",x16:"e'"};e.exports=function e($){return t[($.accidental?$.accidental[0]:"x")+$.verticalPos]}},"./src/synth/place-note.js":function(e,t,$){var r=$(/*! ./pitch-to-note-name */ "./src/synth/pitch-to-note-name.js"),n=$(/*! ./cents-to-factor */ "./src/synth/cents-to-factor.js"),a=function e(t,$,r){for(var n=0;n<2;n++)for(var a=$.getChannelData(n),s=t.getChannelData(n),i=0;i<a.length;i++)s[i+r]+=a[i]};e.exports=function e(t,$,s,i,o,c,l,_,h){var u=window.OfflineAudioContext||window.webkitOfflineAudioContext,d=s.len*s.tempoMultiplier;c&&(d+=c/1e3),(d-=_)<0&&(d=.005);var f=new u(2,Math.floor((d+l)*$),$),p=s.pitch,m=r[p];if("solfege"==s.instrument&&gTheSolfegeABC){var g=gTheSolfegeABC.substring(s.startChar,s.endChar),v=/"[^"]*"/gm;g=g.replaceAll(v,""),v=/![^!\n]*!/gm,g=(g=(g=(g=(g=(g=g.replaceAll(v,"")).trim()).toUpperCase()).replaceAll("^","")).replaceAll("_","")).replaceAll("=",""),v=/[^a-gA-G]/gm,g=g.replaceAll(v,""),m[0]!=g[0]&&(m=gPitchToNoteNameSharp[p])}if("percussion"==s.instrument&&(o=2.5),!gSoundsCacheABCJS[s.instrument])return h&&h("placeNote skipped (instrument empty): "+s.instrument+":"+m),Promise.resolve();var b=gSoundsCacheABCJS[s.instrument][m];return b?b.then(function(e){var r,_=e.audioBuffer;_=function e(t,$,r,n){if(!gUseCustomGMSounds&&"bagpipe"==r.instrument)return r.audioBuffer;var a=!1;switch(r.instrument){case"bagpipe":case"borderpipes":switch(r.name){case"A0":case"A1":case"A2":case"A3":a=!0}break;case"uilleann":switch(r.name){case"D3":case"E3":a=!0}break;case"smallpipesa":case"smallpipesd":case"sackpipa":"D2"===r.name&&(a=!0)}if(!a)return r.audioBuffer;var s=r.audioBuffer,i=s.duration;if($.cents&&$.cents>0){var o=Math.trunc($.cents/1200),c=$.cents-1200*o;n*=2**o,n*=1+c/1200}if(i>=n)return s;var l=Math.ceil(n/i)+1;let _=s.length,h=s.sampleRate,u=s.numberOfChannels,d=t.createBuffer(u,_*l,h);for(let f=0;f<u;f++){let p=s.getChannelData(f),m=d.getChannelData(f);for(let g=0;g<l;g++)m.set(p,g*p.length)}return d}(f,s,e,d);var u=f.createBufferSource();u.buffer=_;var p=s.volume/96*o;return u.gainNode=f.createGain(),s.pan&&f.createStereoPanner&&(u.panNode=f.createStereoPanner(),u.panNode.pan.setValueAtTime(s.pan,0)),u.gainNode.gain.value=p,u.gainNode.gain.linearRampToValueAtTime(u.gainNode.gain.value,d),u.gainNode.gain.linearRampToValueAtTime(0,d+l),s.cents&&(u.playbackRate.value=n(s.cents)),u.panNode?(u.panNode.connect(f.destination),u.gainNode.connect(u.panNode)):u.gainNode.connect(f.destination),u.connect(u.gainNode),u.start(0),u.noteOff?u.noteOff(d+l):u.stop(d+l),f.oncomplete=function(e){if(e.renderedBuffer&&e.renderedBuffer.getChannelData)for(var n=0;n<i.length;n++){var o=i[n]*s.tempoMultiplier;c&&(o-=c/1e3),o<0&&(o=0),o=Math.floor(o*$),a(t,e.renderedBuffer,o)}h&&h("placeNote: "+s.instrument+":"+m),r()},f.startRendering(),new Promise(function(e){r=e})}).catch(function(e){return h&&h("placeNote catch: "+e.message),Promise.resolve()}):(h&&h("placeNote skipped: "+s.instrument+":"+m),Promise.resolve())}},"./src/synth/play-event.js":function(e,t,$){var r=$(/*! ./synth-sequence */ "./src/synth/synth-sequence.js"),n=$(/*! ./create-synth */ "./src/synth/create-synth.js"),a=$(/*! ./active-audio-context */ "./src/synth/active-audio-context.js");function s(e,t,$,r){var a=new n;return a.init({sequence:e,millisecondsPerMeasure:t,options:{soundFontUrl:$},debugCallback:r}).then(function(){return a.prime()}).then(function(){return a.start(),Promise.resolve()})}e.exports=function e(t,$,n,i,o){for(var c=new r,l=0;l<t.length;l++){var _=t[l],h=c.addTrack();if(c.setInstrument(h,_.instrument),0===l&&$)for(var u=0;u<$.length;u++){var d=$[u];c.appendNote(h,d.pitch,1/64,d.volume,d.cents)}c.appendNote(h,_.pitch,_.duration,_.volume,_.cents)}var f=a();return"suspended"===f.state?f.resume().then(function(){return s(c,n,i,o)}):s(c,n,i,o)}},"./src/synth/register-audio-context.js":function(e){e.exports=function e(t){if(t)window.abcjsAudioContext=t;else if(!window.abcjsAudioContext){var $=window.AudioContext||window.webkitAudioContext;if(!$)return!1;window.abcjsAudioContext=new $}return"suspended"!==window.abcjsAudioContext.state}},"./src/synth/supports-audio.js":function(e,t,$){var r=$(/*! ./active-audio-context */ "./src/synth/active-audio-context.js");e.exports=function e(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var t=r();if(t)return void 0!==t.resume}},"./src/synth/synth-controller.js":function(e,t,$){var r=$(/*! ./create-synth-control */ "./src/synth/create-synth-control.js"),n=$(/*! ./create-synth */ "./src/synth/create-synth.js"),a=$(/*! ../api/abc_timing_callbacks */ "./src/api/abc_timing_callbacks.js"),s=$(/*! ./active-audio-context */ "./src/synth/active-audio-context.js");e.exports=function e(t){var $=this;t&&($.theABC=t),$.warp=100,$.cursorControl=null,$.visualObj=null,$.timer=null,$.midiBuffer=null,$.options=null,$.currentTempo=null,$.control=null,$.isLooping=!1,$.isStarted=!1,$.isLoaded=!1,$.isLoading=!1,$.load=function(e,t,n){n||(n={}),$.control=new r(e,{loopHandler:n.displayLoop?$.toggleLoop:void 0,restartHandler:n.displayRestart?$.restart:void 0,playPromiseHandler:n.displayPlay?$.play:void 0,progressHandler:n.displayProgress?$.randomAccess:void 0,warpHandler:n.displayWarp?$.onWarp:void 0,afterResume:$.init}),$.cursorControl=t,$.disable(!0)},$.disable=function(e){$.control&&$.control.disable(e)},$.setTune=function(e,t,r){return($.visualObj=e,$.disable(!1),$.options=r,$.control&&($.pause(),$.setProgress(0,1),$.control.resetAll(),$.restart(),$.isStarted=!1),$.isLooping=!1,t)?$.go():Promise.resolve({status:"no-audio-context"})},$.go=function(){$.isLoading=!0;var e,t=100*$.visualObj.millisecondsPerMeasure()/$.warp;return $.currentTempo=Math.round($.visualObj.getBeatsPerMeasure()/t*6e4),$.control&&$.control.setTempo($.currentTempo),$.percent=0,$.midiBuffer||($.midiBuffer=new n($.theABC)),s().resume().then(function(e){return $.midiBuffer.init({visualObj:$.visualObj,options:$.options,millisecondsPerMeasure:t})}).then(function(t){return e=t,$.midiBuffer.prime()}).then(function(){var t=16;return $.cursorControl&&void 0!==$.cursorControl.beatSubdivisions&&parseInt($.cursorControl.beatSubdivisions,10)>=1&&64>=parseInt($.cursorControl.beatSubdivisions,10)&&(t=parseInt($.cursorControl.beatSubdivisions,10)),$.timer=new a($.visualObj,{beatCallback:$.beatCallback,eventCallback:$.eventCallback,lineEndCallback:$.lineEndCallback,qpm:$.currentTempo,extraMeasuresAtBeginning:$.cursorControl?$.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:$.cursorControl?$.cursorControl.lineEndAnticipation:0,beatSubdivisions:t}),$.cursorControl&&$.cursorControl.onReady&&"function"==typeof $.cursorControl.onReady&&$.cursorControl.onReady($),$.isLoaded=!0,$.isLoading=!1,Promise.resolve({status:"created",notesStatus:e})})},$.destroy=function(){$.timer&&($.timer.reset(),$.timer.stop(),$.timer=null),$.midiBuffer&&($.midiBuffer.stop(),$.midiBuffer=null),$.setProgress(0,1),$.control&&$.control.resetAll()},$.play=function(){return $.runWhenReady($._play,void 0)},$.runWhenReady=function(e,t){return $.visualObj?$.isLoading?new Promise(function(e){setTimeout(e,500)}).then(function(){return $.isLoading?$.runWhenReady(e,t):e(t)}):$.isLoaded?e(t):$.go().then(function(){return e(t)}):Promise.resolve({status:"loading"})},$._play=function(){return s().resume().then(function(){if($.isStarted=!$.isStarted,$.isStarted){null!=gPreStartPlayCallback?(gPreStartPlayCallback(e),gPreStartPlayCallback=null):e();function e(){$.cursorControl&&$.cursorControl.onStart&&"function"==typeof $.cursorControl.onStart&&$.cursorControl.onStart(),$.midiBuffer.start(),$.timer.start($.percent),$.control&&$.control.pushPlay(!0),null!=gStartPlayCallback&&(gStartPlayCallback(),gStartPlayCallback=null)}}else $.pause();return Promise.resolve({status:"ok"})})},$.pause=function(){$.timer&&($.timer.pause(),$.midiBuffer.pause(),gPlayerInPause=!0,$.control&&$.control.pushPlay(!1),$.midiBuffer.seek($.percent*$.midiBuffer.duration,"seconds"))},$.toggleLoop=function(){$.isLooping=!$.isLooping,$.control&&$.control.pushLoop($.isLooping)},$.restart=function(){$.timer&&($.timer.setProgress(0),$.midiBuffer.seek(0))},$.randomAccess=function(e){return $.runWhenReady($._randomAccess,e)},$._randomAccess=function(e){var t=(e.target.classList.contains("abcjs-midi-progress-indicator")?e.target.parentNode:e.target).getBoundingClientRect(),r=(e.x-t.x)/t.width;return r<0&&(r=0),r>1&&(r=1),$.seek(r),Promise.resolve({status:"ok"})},$.seek=function(e,t){$.timer&&$.midiBuffer&&($.timer.setProgress(e,t),$.midiBuffer.seek(e,t))},$.setWarp=function(e){if(parseInt(e,10)>0){$.warp=parseInt(e,10);var t=$.isStarted,r=$.percent;return $.destroy(),$.isStarted=!1,$.go().then(function(){return($.isLooping?$.control&&$.control.pushLoop(!0):$.control&&$.control.pushLoop(!1),$.setProgress(r,1e3*$.midiBuffer.duration),$.control&&$.control.setWarp($.currentTempo,$.warp),t)?$.play().then(function(){return $.seek(r),Promise.resolve()}):($.seek(r),Promise.resolve())})}return Promise.resolve()},$.onWarp=function(e){var t=e.target.value;return $.setWarp(t)},$.forceWarp=function(e){return $.setWarp(e)},$.setProgress=function(e,t){$.percent=e,$.control&&$.control.setProgress(e,t)},$.finished=function(){if($.timer.reset(),$.isLooping)return $.timer.start(0),$.midiBuffer.finished(),$.midiBuffer.start(),gLoopCallback&&gLoopCallback(),"continue";$.timer.stop(),$.isStarted&&($.control&&$.control.pushPlay(!1),$.isStarted=!1,$.midiBuffer.finished(),$.cursorControl&&$.cursorControl.onFinished&&"function"==typeof $.cursorControl.onFinished&&$.cursorControl.onFinished(),$.setProgress(0,1))},$.beatCallback=function(e,t,r,n){$.setProgress(e/t,r),$.cursorControl&&$.cursorControl.onBeat&&"function"==typeof $.cursorControl.onBeat&&$.cursorControl.onBeat(e,t,r,n)},$.eventCallback=function(e){if(!e)return $.finished();$.cursorControl&&$.cursorControl.onEvent&&"function"==typeof $.cursorControl.onEvent&&$.cursorControl.onEvent(e)},$.lineEndCallback=function(e,t){$.cursorControl&&$.cursorControl.onLineEnd&&"function"==typeof $.cursorControl.onLineEnd&&$.cursorControl.onLineEnd(e,t)},$.getUrl=function(){return $.midiBuffer.download()},$.download=function(e){var t=$.getUrl(),r=document.createElement("a");document.body.appendChild(r),r.setAttribute("style","display: none;"),r.href=t,r.download=e||"output.wav",r.click(),window.URL.revokeObjectURL(t),document.body.removeChild(r)}}},"./src/synth/synth-sequence.js":function(e){var t=function e(){var t=this;t.tracks=[],t.totalDuration=0,t.currentInstrument=[],t.starts=[],t.addTrack=function(){return t.tracks.push([]),t.currentInstrument.push(0),t.starts.push(0),t.tracks.length-1},t.setInstrument=function(e,$){t.tracks[e].push({channel:0,cmd:"program",instrument:$}),t.currentInstrument[e]=$},t.appendNote=function(e,$,r,n,a){var s={cmd:"note",duration:r,gap:0,instrument:t.currentInstrument[e],pitch:$,start:t.starts[e],volume:n};a&&(s.cents=a),t.tracks[e].push(s),t.starts[e]+=r,t.totalDuration=Math.max(t.totalDuration,t.starts[e])}};e.exports=t},"./src/tablatures/instruments/guitar/guitar-patterns.js":function(e,t,$){var r=$(/*! ../string-patterns */ "./src/tablatures/instruments/string-patterns.js");function n(e){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=["E,","A,","D","G","B","e"]),e.tuning=this.tuning,this.strings=new r(e)}n.prototype.notesToNumber=function(e,t){return this.strings.notesToNumber(e,t)},n.prototype.stringToPitch=function(e){return this.strings.stringToPitch(e)},e.exports=n},"./src/tablatures/instruments/guitar/tab-guitar.js":function(e,t,$){var r=$(/*! ../string-tablature */ "./src/tablatures/instruments/string-tablature.js"),n=$(/*! ../../tab-common */ "./src/tablatures/tab-common.js"),a=$(/*! ../../tab-renderer */ "./src/tablatures/tab-renderer.js"),s=$(/*! ./guitar-patterns */ "./src/tablatures/instruments/guitar/guitar-patterns.js");function i(){}i.prototype.init=function(e,t,$){var a=new n(e,t,$);this._super=a,this.abcTune=e,this.linePitch=3,this.nbLines=6,this.isTabBig=!0,this.tabSymbolOffset=0,this.capo=$.capo,this.transpose=$.visualTranspose,this.hideTabSymbol=$.hideTabSymbol,this.tablature=new r(this.nbLines,this.linePitch);var i=new s(this);this.semantics=i,this.isFirstStaff=!0,this.firstTabNameHeight=1},i.prototype.render=function(e,t,$){!this._super.inError&&!this.tablature.bypass(t)&&new a(this,e,t,$).doLayout()};var o=function e(){return{name:"GuitarTab",tablature:i}};e.exports=o},"./src/tablatures/instruments/string-patterns.js":function(e,t,$){var r=$(/*! ../../synth/note-to-midi */ "./src/synth/note-to-midi.js").noteToMidi,n=$(/*! ./tab-note */ "./src/tablatures/instruments/tab-note.js"),a=$(/*! ./tab-notes */ "./src/tablatures/instruments/tab-notes.js");function s(e,t,$,r,n){var a=e.strings;t.checkKeyAccidentals(e.accidentals,e.measureAccidentals),r&&(a=r);var s=t.emitNoAccidentals(),i=a[$].indexOf(s),o=t.acc;if(-1!=i){if(r&&(i+=n),(t.isFlat||-1==t.acc)&&0==i){var c=t.getAccidentalEquiv();i=a[++$].indexOf(c.emit()),o=0}return{num:i+o,str:$,note:t}}return null}function i(e,t){if(t.isAltered||t.natural){var $;t.isFlat?$=t.isDouble?"__":"_":t.isSharp?$=t.isDouble?"^^":"^":t.natural&&($="="),e.measureAccidentals[t.name.toUpperCase()]=$}for(var r=e.stringPitches.length-1;r>=0;r--)if(t.pitch+t.pitchAltered>=e.stringPitches[r]){var n=t.pitch+t.pitchAltered-e.stringPitches[r];return"^"===t.quarter?n-=.5:"v"===t.quarter&&(n+=.5),{num:Math.round(n),str:e.stringPitches.length-1-r,note:t}}return{num:"X",str:e.stringPitches.length-1,note:t}}function o(e,t){e.push({num:"X",str:0,note:t}),e.error=t.emit()+": unexpected note for instrument"}function c(e){var t=e.tuning,$=e.capo,s=e._super.params.highestNote;this.linePitch=e.linePitch,this.highestNote="a'",s&&(this.highestNote=s),this.measureAccidentals={},this.capo=0,$&&(this.capo=parseInt($,10)),this.transpose=e.transpose?e.transpose:0,this.tuning=t,this.stringPitches=[];for(var i=0;i<this.tuning.length;i++){var o=r(this.tuning[i])+this.capo;this.stringPitches.push(o)}if(this.capo>0&&(this.capoTuning=function e(t){var $=null,r=t.tuning;if(t.capo>0){$=[];for(var a=0;a<r.length;a++){for(var s=new n.TabNote(r[a]),i=0;i<t.capo;i++)s=s.nextNote();$[a]=s.emit()}}return $}(this)),this.strings=function e(t){var $=[],r=t.tuning;t.capo>0&&(r=t.capoTuning);for(var n=r.length-1,s=0;s<r.length;s++){var i=t.highestNote;s!=r.length-1&&(i=r[s+1]);var o=new a(r[s],i).build();if(o.error)return o;$[n--]=o}return $}(this),this.strings.error){e._super.setError(this.strings.error),e.inError=!0;return}this.secondPos=function e(t){var $=[];$[0]=[];for(var r=t.strings,n=1;n<r.length;n++)$[n]=r[n-1];return $}(this)}c.prototype.stringToPitch=function(e){return 5.3+(this.strings.length-1-e)*this.linePitch},c.prototype.notesToNumber=function(e,t){var $,r,a=null,c=null;if(e&&(c=[],e.length>1?(c=function e(t,$){for(var r=[],a=0;a<$.length;a++)if(!$[a].endTie){var o=new n.TabNote($[a].name,t.clefTranspose);o.checkKeyAccidentals(t.accidentals,t.measureAccidentals);var c=i(t,o);r.push(c)}return function e(t,$){for(var r=0;r<$.length-1;r++){var n=$[r],a=$[r+1];if(n.str==a.str){if(n.str==t.strings.length-1){n.num="?",a.num="?";return}a.num<n.num?(a.str++,a=s(t,a.note,a.str,t.secondPos,t.strings[a.str].length)):(n.str++,n=s(t,n.note,n.str,t.secondPos,t.strings[n.str].length)),$[r]=n,$[r+1]=a}}return null}(t,r),r}(this,e)).error&&(a=c.error):e[0].endTie||(($=new n.TabNote(e[0].name,this.clefTranspose)).checkKeyAccidentals(this.accidentals,this.measureAccidentals),(r=i(this,$))?c.push(r):(o(c,$),a=c.error))),a)return c;var l=null;if(t){l=[];for(var _=0;_<t.length;_++)($=new n.TabNote(t[_].name,this.clefTranspose)).checkKeyAccidentals(this.accidentals,this.measureAccidentals),(r=i(this,$))?l.push(r):(o(l,$),a=c.error)}return{notes:c,graces:l,error:a}},c.prototype.toString=function(){for(var e=[],t=0;t<this.tuning.length;t++){var $=this.tuning[t].replaceAll(",","").replaceAll("'","").toUpperCase();"_"===$[0]?$=$[1]+"b ":"^"===$[0]&&($=$[1]+"# "),e.push($)}return e.join("")},c.prototype.tabInfos=function(e){var t=e._super.params.label;if(t){var $=t.indexOf("%T"),r="";return -1!=$&&(r=this.toString(),e.capo>0&&(r+=" capo:"+e.capo),t=t.replace("%T",r)),t}return""},e.exports=c},"./src/tablatures/instruments/string-tablature.js":function(e){function t(e,t){this.numLines=e,this.lineSpace=t,this.verticalSize=this.numLines*this.lineSpace,this.bar={pitch:t,pitch2:t*e,height:5}}t.prototype.bypass=function(e){var t=e.staffGroup.voices;return!!(t.length>0)&&!!t[0].isPercussion},t.prototype.setRelative=function(e,t,$){switch(e.type){case"bar":t.pitch=this.bar.pitch,t.pitch2=this.bar.pitch2,t.height=this.height;break;case"symbol":var r=this.bar.pitch2/2;if("dots.dot"==e.name){if($)return t.pitch=r,!1;return t.pitch=r+this.lineSpace,!0}}return $},e.exports=t},"./src/tablatures/instruments/tab-note.js":function(e,t,$){var r=$(/*! ../../synth/note-to-midi */ "./src/synth/note-to-midi.js"),n=r.noteToMidi,a=r.midiToNote;function s(e,t){var $=n(e);t&&($+=t);var r=a($),s=!1,i=!1,o=!1,c=null,l=null,_=!1,h=0;e.startsWith("_")?(s=!0,h=-1,"/"==e[1]?(s=!1,l="v",h=0):"_"==e[1]&&(_=!0,h-=1)):e.startsWith("^")?(i=!0,h=1,"/"==e[1]?(i=!1,l="^",h=0):"^"==e[1]&&(_=!0,h+=1)):e.startsWith("=")&&(c=!0,h=0),((o=s||i||null!=l)||c)&&(r=null!=l||_?e.slice(2):e.slice(1));var u=(r.match(/,/g)||[]).length,d=(r.match(/'/g)||[]).length;this.pitch=$,this.pitchAltered=0,this.name=r,this.acc=h,this.isSharp=i,this.isKeySharp=!1,this.isDouble=_,this.isAltered=o,this.isFlat=s,this.isKeyFlat=!1,this.natural=c,this.quarter=l,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=u,this.isQuoted=d}s.prototype.sameNoteAs=function(e){return e.pitch===this.pitch},s.prototype.isLowerThan=function(e){return e.pitch>this.pitch},s.prototype.checkKeyAccidentals=function(e,t){if(!this.isAltered&&!this.natural){if(t[this.name.toUpperCase()])switch(t[this.name.toUpperCase()]){case"__":this.acc=-2,this.pitchAltered=-2;return;case"_":this.acc=-1,this.pitchAltered=-1;return;case"=":this.acc=0,this.pitchAltered=0;return;case"^":this.acc=1,this.pitchAltered=1;return;case"^^":this.acc=2,this.pitchAltered=2;return}else if(e)for(var $=this.name,r=0;r<e.length;r++){var n=e[r];$==n.note.toUpperCase()&&("flat"==n.acc&&(this.acc=-1,this.isKeyFlat=!0,this.pitchAltered=-1),"sharp"==n.acc&&(this.acc=1,this.isKeySharp=!0,this.pitchAltered=1))}}},s.prototype.getAccidentalEquiv=function(){var e,t,$,r=(e=this,t=e.name,($=new s(t)).pitch=e.pitch,$.hasComma=e.hasComma,$.isLower=e.isLower,$.isQuoted=e.isQuoted,$.isSharp=e.isSharp,$.isKeySharp=e.isKeySharp,$.isFlat=e.isFlat,$.isKeyFlat=e.isKeyFlat,$);return r.isSharp||r.isKeySharp?((r=r.nextNote()).isFlat=!0,r.isSharp=!1,r.isKeySharp=!1):(r.isFlat||r.isKeyFlat)&&((r=r.prevNote()).isSharp=!0,r.isFlat=!1,r.isKeyFlat=!1),r},s.prototype.nextNote=function(){var e=a(this.pitch+1+this.pitchAltered);return new s(e)},s.prototype.prevNote=function(){var e=a(this.pitch-1+this.pitchAltered);return new s(e)},s.prototype.emitNoAccidentals=function(){var e=this.name;this.isLower&&(e=e.toLowerCase());for(var t=0;t<this.isQuoted;t++)e+="'";for(var $=0;$<this.hasComma;$++)e+=",";return e},s.prototype.emit=function(){var e=this.name;(this.isSharp||this.isKeySharp)&&(e="^"+e,this.isDouble&&(e="^"+e)),(this.isFlat||this.isKeyFlat)&&(e="_"+e,this.isDouble&&(e="_"+e)),this.quarter&&(e="^"==this.quarter?"^/"+e:"_/"+e),this.natural&&(e="="+e);for(var t=1;t<=this.hasComma;t++)e+=",";if(this.isLower){e=e.toLowerCase();for(var $=1;$<=this.isQuoted;$++)e+="'"}return e},e.exports={TabNote:s,notes:["A","B","C","D","E","F","G"]}},"./src/tablatures/instruments/tab-notes.js":function(e,t,$){var r=$(/*! ./tab-note */ "./src/tablatures/instruments/tab-note.js"),n=r.notes;function a(e,t){this.fromN=new r.TabNote(e),this.toN=new r.TabNote(t)}a.prototype.build=function(){var e=this.fromN,t=this.toN;if(t.isLowerThan(e)){var $=e.emit();return{error:"Invalid string Instrument tuning : "+t.emit()+" string lower than "+$+" string"}}var r=[],a=n.indexOf(e.name),s=n.indexOf(t.name);if(-1==a||-1==s)return r;for(var i=!1;!i;)r.push(e.emit()),(e=e.nextNote()).sameNoteAs(t)&&(i=!0);return r},e.exports=a},"./src/tablatures/instruments/violin/tab-violin.js":function(e,t,$){var r=$(/*! ../string-tablature */ "./src/tablatures/instruments/string-tablature.js"),n=$(/*! ../../tab-common */ "./src/tablatures/tab-common.js"),a=$(/*! ../../tab-renderer */ "./src/tablatures/tab-renderer.js"),s=$(/*! ./violin-patterns */ "./src/tablatures/instruments/violin/violin-patterns.js");function i(){}i.prototype.init=function(e,t,$){var a=new n(e,t,$);this.abcTune=e,this._super=a,this.linePitch=3,$.linePitch&&(this.linePitch=$.linePitch),this.nbLines=4,this.isTabBig=!1,this.tabSymbolOffset=0,this.capo=$.capo,this.transpose=$.visualTranspose,this.hideTabSymbol=$.hideTabSymbol,this.tablature=new r(this.nbLines,this.linePitch);var i=new s(this);this.semantics=i,this.isFirstStaff=!0,this.firstTabNameHeight=1},i.prototype.render=function(e,t,$){!this._super.inError&&!this.tablature.bypass(t)&&new a(this,e,t,$).doLayout()};var o=function e(){return{name:"ViolinTab",tablature:i}};e.exports=o},"./src/tablatures/instruments/violin/violin-patterns.js":function(e,t,$){var r=$(/*! ../string-patterns */ "./src/tablatures/instruments/string-patterns.js");function n(e){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=["G,","D","A","e"]),e.tuning=this.tuning,this.strings=new r(e)}n.prototype.notesToNumber=function(e,t){return this.strings.notesToNumber(e,t)},n.prototype.stringToPitch=function(e){return this.strings.stringToPitch(e)},e.exports=n},"./src/tablatures/instruments/violin/tab-fivestring.js":function(e,t,$){var r=$(/*! ../string-tablature */ "./src/tablatures/instruments/string-tablature.js"),n=$(/*! ../../tab-common */ "./src/tablatures/tab-common.js"),a=$(/*! ../../tab-renderer */ "./src/tablatures/tab-renderer.js"),s=$(/*! ./fivestring-patterns */ "./src/tablatures/instruments/fivestring/fivestring-patterns.js");function i(){}i.prototype.init=function(e,t,$){var a=new n(e,t,$);this.abcTune=e,this._super=a,this.linePitch=3,this.nbLines=5,this.isTabBig=!0,this.tabSymbolOffset=-.95,this.capo=$.capo,this.transpose=$.visualTranspose,this.hideTabSymbol=$.hideTabSymbol,this.tablature=new r(this.nbLines,this.linePitch);var i=new s(this);this.semantics=i,this.isFirstStaff=!0,this.firstTabNameHeight=1},i.prototype.render=function(e,t,$){!this._super.inError&&!this.tablature.bypass(t)&&new a(this,e,t,$).doLayout()};var o=function e(){return{name:"FiveStringTab",tablature:i}};e.exports=o},"./src/tablatures/instruments/fivestring/fivestring-patterns.js":function(e,t,$){var r=$(/*! ../string-patterns */ "./src/tablatures/instruments/string-patterns.js");function n(e){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=["C,","G,","D","A","e"]),e.tuning=this.tuning,this.strings=new r(e)}n.prototype.notesToNumber=function(e,t){return this.strings.notesToNumber(e,t)},n.prototype.stringToPitch=function(e){return this.strings.stringToPitch(e)},e.exports=n},"./src/tablatures/tab-absolute-elements.js":function(e,t,$){var r=$(/*! ../write/creation/elements/absolute-element */ "./src/write/creation/elements/absolute-element.js"),n=$(/*! ../write/creation/elements/relative-element */ "./src/write/creation/elements/relative-element.js");function a(e){return null!=e&&e.constructor===Object}function s(e,t){for(var $ in t)t.hasOwnProperty($)&&!(Array.isArray(t[$])||a(t[$]))&&(e[$]=t[$])}function i(e){var t=new r("",0,0,"",0);return s(t,e),t.top=0,t.bottom=-1,e.abcelem&&(t.abcelem={},s(t.abcelem,e.abcelem),"note"===t.abcelem.el_type&&(t.abcelem.el_type="tabNumber")),e.cloned=t,t}function o(e,t){var $=i(e);if(t)for(var r=e.children,a=!0,o=0;o<r.length;o++){var c=r[o],l=new n("",0,0,0,"");s(l,c),a=t.tablature.setRelative(c,l,a),$.children.push(l)}return $}function c(e,t,$){var a="tab.tiny",s=7.5;e.isTabBig&&(a="tab.big",s=10);var i={el_type:"tab",icon:a,Ypos:s};s+=e.tabSymbolOffset;var o=new r(i,0,0,"symbol",0);if(o.x=t,!e.hideTabSymbol){var c=new n(a,0,0,7.5,"tab");c.x=$,o.children.push(c),"tab"==o.abcelem.el_type&&(c.pitch=s)}return o}function l(e){if(e.extra)for(var t=0;t<e.extra.length;t++){var $=e.extra[t];if("lyric"==$.type)return{bottom:$.bottom,height:$.height}}return null}function _(){this.accidentals=null}function h(e,t,$,r,a){var s=r.num;null!=r.note.quarter&&(s=s.toString(),s+=r.note.quarter);var i=e.semantics.stringToPitch(r.str);$.notes.push({num:s,str:r.str,pitch:r.note.emit()});var o=new n(s,0,0,i+.3,{type:"tabNumber"});return o.x=t,o.isGrace=a,o.isAltered=r.note.isAltered,o}function u(e,t){var $=0;if(e.extra){for(var r=0;r<e.extra.length;r++)if(e.extra[r].c.indexOf("noteheads")>=0){if($===t)return e.extra[r].x+e.extra[r].w/2;$++}}return -1}function d(e){if(e.abcelem){var t=e.abcelem;if(t.rest)return t.gracenotes}return null}function f(e,t,$){var r=e.semantics.notesToNumber(t,$);if(r.error)return e._super.setError(r.error),r;if(r.graces&&r.notes){var n=r.notes.length-1;r.notes[n].graces=r.graces}return r}function p(e,t,$,r,n){for(var a=0;a<r.length;a++){var s={el_type:"note",startChar:$.abcelem.startChar,endChar:$.abcelem.endChar,notes:[],grace:!0},i=u($,a),o=h(e,i,s,r[a],!0);t.children.push(o),n.push(s)}}_.prototype.build=function(e,t,$,r,n,a,s){(function e(t){for(var $=0,r=0;r<t.length;r++)!t[r].tabNameInfos&&$++;return $})(t);var _=t[n+r],m=t[s],g=null,v=null;"clef"!=_.children[0].abcelem.el_type&&"none"!=a&&_.children.splice(0,0,a);for(var b=0;b<_.children.length;b++){var y=_.children[b],k=y.x,w=k;switch(y.isClef&&(m.children.push(c(e,k,w)),y.abcelem.type.indexOf("-8")>=0&&(e.semantics.strings.clefTranspose=-12),y.abcelem.type.indexOf("+8")>=0&&(e.semantics.strings.clefTranspose=12)),y.type){case"staff-extra key-signature":this.accidentals=y.abcelem.accidentals,e.semantics.strings.accidentals=this.accidentals;break;case"bar":e.semantics.strings.measureAccidentals={};var x=!1;b===_.children.length-1&&(x=!0);var C=o(y,e);if(C.abcelem.barNumber){delete C.abcelem.barNumber;for(var T=0;T<C.children.length;T++)if("barNumber"===C.children[T].type){C.children.splice(T,1);break}}C.abcelem.lastBar=x,m.children.push(C),$.push({el_type:y.abcelem.el_type,type:y.abcelem.type,endChar:y.abcelem.endChar,startChar:y.abcelem.startChar,abselem:C});break;case"rest":var S=d(y);if(S){if((g=f(e,null,S)).error)return;D={el_type:"note",startChar:y.abcelem.startChar,endChar:y.abcelem.endChar,notes:[],grace:!0},p(e,E,y,g.graces,$)}break;case"note":var E=i(y);E.x=y.heads[0].x+y.heads[0].w/2,E.lyricDim=l(y);var A=y.abcelem.pitches,B=y.abcelem.gracenotes;if(E.type="tabNumber",(g=f(e,A,B)).error)return;if(g.graces){var N=g.notes.length-1;g.notes[N].graces=g.graces}v={el_type:"note",startChar:y.abcelem.startChar,endChar:y.abcelem.endChar,notes:[]};for(var P=0;P<g.notes.length;P++){var M=g.notes[P];if(M.graces)for(var L=0;L<M.graces.length;L++){var D={el_type:"note",startChar:y.abcelem.startChar,endChar:y.abcelem.endChar,notes:[],grace:!0},O=u(y,L),z=h(e,O,D,M.graces[L],!0);E.children.push(z),$.push(D)}var F=h(e,E.x+y.heads[P].dx,v,M,!1);E.children.push(F)}v.notes.length>0&&(v.abselem=E,$.push(v),m.children.push(E))}}},e.exports=_},"./src/tablatures/tab-common.js":function(e){function t(e,t,$){this.tune=e,this.params=$,this.tuneNumber=t,this.inError=!1}t.prototype.setError=function(e){var t=this.tune;e&&(this.error=e,this.inError=!0,t.warnings?t.warnings.push(e):t.warnings=[e])},e.exports=t},"./src/tablatures/tab-renderer.js":function(e,t,$){var r=$(/*! ../write/creation/elements/voice-element */ "./src/write/creation/elements/voice-element.js"),n=$(/*! ./tab-absolute-elements */ "./src/tablatures/tab-absolute-elements.js"),a=$(/*! ../write/helpers/spacing */ "./src/write/helpers/spacing.js");function s(e,t){var $=e.plugin.semantics.strings,r=e.renderer.controller.getTextSize,n=$.tabInfos(e.plugin),a=r.calc(n,"tablabelfont","text instrumentname");return t.tabNameInfos={textSize:{height:a.height,width:a.width},name:n},a.height}function i(e,t,$,r){this.renderer=t,this.plugin=e,this.line=$,this.absolutes=new n,this.staffIndex=r,this.tabStaff={clef:{type:"TAB"}},this.tabSize=e.linePitch*e.nbLines}function o(e,t){return!!t[e].isTabStaff&&(e===t.length-1||!t[e+1].isTabStaff)}function c(e,t){for(var $=t;$>=0;$--)if(!e[$].isTabStaff)return $;return -1}function l(e,t){return"clef"===e[t].children[0].abcelem.el_type?null:0==t?"none":e[t-1].children[0]}i.prototype.doLayout=function(){var e=this.line.staff;if(e){var t=e[0];if(t&&t.clef&&0==t.clef.stafflines){this.plugin._super.setError("No tablatures when stafflines=0");return}e.splice(e.length,0,this.tabStaff)}var $=this.line.staffGroup,n=$.voices,i=function e(t){for(var $=0,r=0;r<t.children.length;r++){var n=t.children[r];n.specialY&&n.specialY.lyricHeightBelow>$&&($=n.specialY.lyricHeightBelow)}return $}(n[0]),_=3;this.renderer&&this.renderer.controller&&void 0!=this.renderer.controller.tabPadding&&(_=this.renderer.controller.tabPadding);var h=this.staffIndex,u=$.staffs[h],d=this.tabSize+_-u.bottom-i;u.isTabStaff&&(d=u.top);var f={bottom:-1,isTabStaff:!0,specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0},lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:d},p=function e(t,$){for(var r=t.staffIndex,n=0,a=0,s=0;;){if(!$[n])return -1;if($[n].isTabStaff||(s=$[n].voices.length),$[n].isTabStaff){if(a++,o(n,$)&&a<s)return n+1}else if(a=0,n>=r&&(n+1==$.length||!$[n+1].isTabStaff))return n+1;if(++n>$.length)return -1}}(this,$.staffs);if(-1!==p){f.parentIndex=p-1,$.staffs.splice(p,0,f),$.height+=this.tabSize+_;var m,g,v=function e(t,$){for(var r=$;r>=0;r--)if(!t[r].isTabStaff)return t[r];return null}($.staffs,p),b=1;m=$.staffs,g=v,1===function e(t){for(var $=0,r=0;r<t.length;r++)!t[r].isTabStaff&&$++;return $}(m)&&g.voices.length>1&&(b=v.voices.length);var y=1==$.voices.length;this.tabStaff.voices=[];for(var k=0;k<b;k++){var w,x=new r(0,0);if(k>0&&(x.duplicate=!0),this.plugin.isFirstStaff){var w=0;y&&(w=s(this,x)/a.STEP),w=Math.max(w,1),$.staffs[this.staffIndex].top+=1,1==w?$.height+=a.STEP:$.height+=w,y&&(this.plugin.firstTabNameHeight=w,this.plugin.isFirstStaff=!1)}else $.height+=a.STEP,$.staffs[this.staffIndex].top+=this.plugin.firstTabNameHeight;x.staff=f;var C=n.length;n.splice(n.length,0,x);var T=l(n,k+this.staffIndex);this.tabStaff.voices[k]=[],this.absolutes.build(this.plugin,n,this.tabStaff.voices[k],k,this.staffIndex,T,C)}!function e(t){for(var $=0;$<t.length;$++)if(t[$].isTabStaff){var r=c(t,$);t[$].hasStaff=t[r],t[r].hasTab||(t[r].hasTab=[]),t[r].hasTab.push(t[$])}}($.staffs)}},e.exports=i},"./src/write/creation/abstract-engraver.js":function(e,t,$){var r=$(/*! ./elements/absolute-element */ "./src/write/creation/elements/absolute-element.js"),n=$(/*! ./elements/beam-element */ "./src/write/creation/elements/beam-element.js"),a=$(/*! ./elements/brace-element */ "./src/write/creation/elements/brace-element.js"),s=$(/*! ./create-clef */ "./src/write/creation/create-clef.js"),i=$(/*! ./create-key-signature */ "./src/write/creation/create-key-signature.js"),o=$(/*! ./create-note-head */ "./src/write/creation/create-note-head.js"),c=$(/*! ./create-time-signature */ "./src/write/creation/create-time-signature.js"),l=$(/*! ./decoration */ "./src/write/creation/decoration.js"),_=$(/*! ./elements/ending-element */ "./src/write/creation/elements/ending-element.js"),h=$(/*! ./glyphs */ "./src/write/creation/glyphs.js"),u=$(/*! ./elements/relative-element */ "./src/write/creation/elements/relative-element.js"),d=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),f=$(/*! ./elements/staff-group-element */ "./src/write/creation/elements/staff-group-element.js"),p=$(/*! ./elements/tempo-element */ "./src/write/creation/elements/tempo-element.js"),m=$(/*! ./elements/tie-element */ "./src/write/creation/elements/tie-element.js"),g=$(/*! ./elements/triplet-element */ "./src/write/creation/elements/triplet-element.js"),v=$(/*! ./elements/voice-element */ "./src/write/creation/elements/voice-element.js"),b=$(/*! ./add-chord */ "./src/write/creation/add-chord.js"),y=$(/*! ../../synth/pitches-to-perc */ "./src/synth/pitches-to-perc.js"),k=$(/*! ../../parse/abc_common */ "./src/parse/abc_common.js"),w=function e(t){var $=0;return t.duration&&($=t.duration),$},x=!1,C={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th",multi:"rests.multimeasure"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},rhythm:{"-1":"noteheads.slash.whole",0:"noteheads.slash.whole",1:"noteheads.slash.whole",2:"noteheads.slash.quarter",3:"noteheads.slash.quarter",4:"noteheads.slash.quarter",5:"noteheads.slash.quarter",6:"noteheads.slash.quarter",7:"noteheads.slash.quarter",nostem:"noteheads.slash.nostem"},x:{"-1":"noteheads.indeterminate",0:"noteheads.indeterminate",1:"noteheads.indeterminate",2:"noteheads.indeterminate",3:"noteheads.indeterminate",4:"noteheads.indeterminate",5:"noteheads.indeterminate",6:"noteheads.indeterminate",7:"noteheads.indeterminate",nostem:"noteheads.indeterminate"},harmonic:{"-1":"noteheads.harmonic.quarter",0:"noteheads.harmonic.quarter",1:"noteheads.harmonic.quarter",2:"noteheads.harmonic.quarter",3:"noteheads.harmonic.quarter",4:"noteheads.harmonic.quarter",5:"noteheads.harmonic.quarter",6:"noteheads.harmonic.quarter",7:"noteheads.harmonic.quarter",nostem:"noteheads.harmonic.quarter"},triangle:{"-1":"noteheads.triangle.quarter",0:"noteheads.triangle.quarter",1:"noteheads.triangle.quarter",2:"noteheads.triangle.quarter",3:"noteheads.triangle.quarter",4:"noteheads.triangle.quarter",5:"noteheads.triangle.quarter",6:"noteheads.triangle.quarter",7:"noteheads.triangle.quarter",nostem:"noteheads.triangle.quarter"},sn_do:{"-1":"noteheads.sn_do.half",0:"noteheads.sn_do.half",1:"noteheads.sn_do.half",2:"noteheads.sn_do.quarter",3:"noteheads.sn_do.quarter",4:"noteheads.sn_do.quarter",5:"noteheads.sn_do.quarter",6:"noteheads.sn_do.quarter",7:"noteheads.sn_do.quarter",nostem:"noteheads.sn_do.quarter"},sn_re:{"-1":"noteheads.sn_re.half",0:"noteheads.sn_re.half",1:"noteheads.sn_re.half",2:"noteheads.sn_re.quarter",3:"noteheads.sn_re.quarter",4:"noteheads.sn_re.quarter",5:"noteheads.sn_re.quarter",6:"noteheads.sn_re.quarter",7:"noteheads.sn_re.quarter",nostem:"noteheads.sn_re.quarter"},sn_mi:{"-1":"noteheads.sn_mi.half",0:"noteheads.sn_mi.half",1:"noteheads.sn_mi.half",2:"noteheads.sn_mi.quarter",3:"noteheads.sn_mi.quarter",4:"noteheads.sn_mi.quarter",5:"noteheads.sn_mi.quarter",6:"noteheads.sn_mi.quarter",7:"noteheads.sn_mi.quarter",nostem:"noteheads.sn_mi.quarter"},sn_fa:{"-1":"noteheads.sn_fa.half",0:"noteheads.sn_fa.half",1:"noteheads.sn_fa.half",2:"noteheads.sn_fa.quarter",3:"noteheads.sn_fa.quarter",4:"noteheads.sn_fa.quarter",5:"noteheads.sn_fa.quarter",6:"noteheads.sn_fa.quarter",7:"noteheads.sn_fa.quarter",nostem:"noteheads.sn_fa.quarter"},sn_fa_l:{"-1":"noteheads.sn_fa_l.half",0:"noteheads.sn_fa_l.half",1:"noteheads.sn_fa_l.half",2:"noteheads.sn_fa_l.quarter",3:"noteheads.sn_fa_l.quarter",4:"noteheads.sn_fa_l.quarter",5:"noteheads.sn_fa_l.quarter",6:"noteheads.sn_fa_l.quarter",7:"noteheads.sn_fa_l.quarter",nostem:"noteheads.sn_fa_l.quarter"},sn_fa_r:{"-1":"noteheads.sn_fa_r.half",0:"noteheads.sn_fa_r.half",1:"noteheads.sn_fa_r.half",2:"noteheads.sn_fa_r.quarter",3:"noteheads.sn_fa_r.quarter",4:"noteheads.sn_fa_r.quarter",5:"noteheads.sn_fa_r.quarter",6:"noteheads.sn_fa_r.quarter",7:"noteheads.sn_fa_r.quarter",nostem:"noteheads.sn_fa_r.quarter"},sn_so:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},sn_la:{"-1":"noteheads.sn_la.half",0:"noteheads.sn_la.half",1:"noteheads.sn_la.half",2:"noteheads.sn_la.quarter",3:"noteheads.sn_la.quarter",4:"noteheads.sn_la.quarter",5:"noteheads.sn_la.quarter",6:"noteheads.sn_la.quarter",7:"noteheads.sn_la.quarter",nostem:"noteheads.sn_la.quarter"},sn_ti:{"-1":"noteheads.sn_ti.half",0:"noteheads.sn_ti.half",1:"noteheads.sn_ti.half",2:"noteheads.sn_ti.quarter",3:"noteheads.sn_ti.quarter",4:"noteheads.sn_ti.quarter",5:"noteheads.sn_ti.quarter",6:"noteheads.sn_ti.quarter",7:"noteheads.sn_ti.quarter",nostem:"noteheads.sn_ti.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}},T=function e(t,$,r){this.decoration=new l,this.getTextSize=t,this.tuneNumber=$,this.isBagpipes=r.bagpipes,this.flatBeams=r.flatbeams,this.graceSlurs=r.graceSlurs,this.percmap=r.percmap,this.initialClef=r.initialClef,this.jazzchords=!!r.jazzchords,this.germanAlphabet=!!r.germanAlphabet,this.reset()};function S(e,t){var $=e[t];if("note"!==$.el_type||!$.startBeam||$.endBeam)return{count:1,elem:$};for(var r=[];t<e.length&&"note"===e[t].el_type&&(r.push(e[t]),!e[t].endBeam);)t++;return{count:r.length,elem:r}}function E(e){if(e.pitches){A(e);for(var t=0,$=0;$<e.pitches.length;$++)t+=e.pitches[$].verticalPos;e.averagepitch=t/e.pitches.length,e.minpitch=e.pitches[0].verticalPos,e.maxpitch=e.pitches[e.pitches.length-1].verticalPos}}T.prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.voiceColor=void 0,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.colorByVoice={},this.tripletmultiplier=1,this.abcline=void 0,this.accidentalSlot=void 0,this.accidentalshiftx=void 0,this.dotshiftx=void 0,this.hasVocals=!1,this.minY=void 0,this.partstartelem=void 0,this.startlimitelem=void 0,this.stemdir=void 0},T.prototype.setStemHeight=function(e){this.stemHeight=Math.round(10*e/d.STEP)/10},T.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t},T.prototype.pushCrossLineElems=function(e,t){this.slursbyvoice[this.getCurrentVoiceId(e,t)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(e,t)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(e,t)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(e,t)]=this.voiceScale,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(e,t)]=this.voiceColor)},T.prototype.popCrossLineElems=function(e,t){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(e,t)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(e,t)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(e,t)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(e,t)],void 0===this.voiceScale&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(e,t)]},T.prototype.containsLyrics=function(e){for(var t=0;t<e.length;t++)for(var $=0;$<e[t].voices.length;$++)for(var r=0;r<e[t].voices[$].length;r++){var n=e[t].voices[$][r];if(n.lyric){n.positioning&&"below"!==n.positioning.vocalPosition||(this.hasVocals=!0);return}}},T.prototype.createABCLine=function(e,t,$){this.minY=2,this.containsLyrics(e);var r=new f(this.getTextSize);this.tempoSet=!1;for(var n=0;n<e.length;n++)x&&this.restoreState(),x=!1,this.createABCStaff(r,e[n],t,n,$);return r},T.prototype.createABCStaff=function(e,t,$,r,n){e.getTextSize.updateFonts(t);for(var o=0;o<t.voices.length;o++){var l=new v(o,t.voices.length);0===o?(l.barfrom="start"===t.connectBarLines||"continue"===t.connectBarLines,l.barto="continue"===t.connectBarLines||"end"===t.connectBarLines):l.duplicate=!0,t.title&&t.title[o]&&(l.header=t.title[o].replace(/\\n/g,"\n"),l.headerPosition=6+e.getTextSize.baselineToCenter(l.header,"voicefont","staff-extra voice-name",o,t.voices.length)/d.STEP),t.clef&&"perc"===t.clef.type&&(l.isPercussion=!0);var _=(!this.initialClef||0===n)&&s(t.clef,this.tuneNumber);_&&(0===o&&t.barNumber&&this.addMeasureNumber(t.barNumber,_),l.addChild(_),this.startlimitelem=_);var h=i(t.key,this.tuneNumber);if(h&&(l.addChild(h),this.startlimitelem=h),t.meter){"specified"===t.meter.type?this.measureLength=t.meter.value[0].num/t.meter.value[0].den:this.measureLength=1;var u=c(t.meter,this.tuneNumber);l.addChild(u),this.startlimitelem=u}l.duplicate&&(l.children=[]);var f=t.clef.stafflines||0===t.clef.stafflines?t.clef.stafflines:5;e.addVoice(l,r,f);var p=1===f;this.createABCVoice(t.voices[o],$,r,o,p,l),e.setStaffLimits(l),0===o&&("start"===t.brace||!e.brace&&t.brace?(e.brace||(e.brace=[]),e.brace.push(new a(l,"brace"))):"end"===t.brace&&e.brace?e.brace[e.brace.length-1].setBottomStaff(l):"continue"===t.brace&&e.brace&&e.brace[e.brace.length-1].continuing(l),"start"===t.bracket||!e.bracket&&t.bracket?(e.bracket||(e.bracket=[]),e.bracket.push(new a(l,"bracket"))):"end"===t.bracket&&e.bracket?e.bracket[e.bracket.length-1].setBottomStaff(l):"continue"===t.bracket&&e.bracket&&e.bracket[e.bracket.length-1].continuing(l))}},T.prototype.createABCVoice=function(e,t,$,n,a,s){this.popCrossLineElems($,n),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new _("",null,null),s.addOther(this.partstartelem));var i=s.voicetotal<2?-1:s.voicenumber;for(var c in this.slurs)this.slurs.hasOwnProperty(c)&&(this.slurs[c]=new m({force:this.slurs[c].force,voiceNumber:i,stemDir:this.slurs[c].stemDir,style:this.slurs[c].dotted}),x&&this.slurs[c].setHint(),s.addOther(this.slurs[c]));for(var l=0;l<this.ties.length;l++)this.ties[l]=new m({force:this.ties[l].force,stemDir:this.ties[l].stemDir,voiceNumber:i,style:this.ties[l].dotted}),x&&this.ties[l].setHint(),s.addOther(this.ties[l]);for(var h=0;h<this.abcline.length;h++)E(this.abcline[h]),this.minY=Math.min(this.abcline[h].minpitch,this.minY);for(var u=0===$,d=0;d<this.abcline.length;){var f=S(this.abcline,d),g=this.createABCElement(u,a,s,f.elem);if(g)for(l=0;l<g.length;l++){if(!this.tempoSet&&t&&!t.suppress){this.tempoSet=!0;var v=new r(t,0,0,"tempo",this.tuneNumber,{});v.addFixedX(new p(t,this.tuneNumber,o)),s.addChild(v)}s.addChild(g[l])}d+=f.count}this.pushCrossLineElems($,n)},T.prototype.saveState=function(){this.tiesSave=k.cloneArray(this.ties),this.slursSave=k.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=k.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=k.cloneHashOfArrayOfHash(this.tiesbyvoice)},T.prototype.restoreState=function(){this.ties=k.cloneArray(this.tiesSave),this.slurs=k.cloneHashOfHash(this.slursSave),this.slursbyvoice=k.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=k.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},T.prototype.createABCElement=function(e,t,$,n){var a=[];switch(n.el_type){case void 0:a=this.createBeam(t,$,n);break;case"note":a[0]=this.createNote(n,!1,t,$),this.triplet&&this.triplet.isClosed()&&($.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":a[0]=this.createBarLine($,n,e),$.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"meter":a[0]=c(n,this.tuneNumber),this.startlimitelem=a[0],$.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"clef":if(a[0]=s(n,this.tuneNumber),!a[0])return null;$.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"key":var l=i(n,this.tuneNumber);l&&(a[0]=l,this.startlimitelem=a[0]),$.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"stem":this.stemdir="auto"===n.direction?void 0:n.direction;break;case"part":var _=new r(n,0,0,"part",this.tuneNumber),h=this.getTextSize.calc(n.title,"partsfont","part");_.addFixedX(new u(n.title,0,0,void 0,{type:"part",height:h.height/d.STEP})),a[0]=_;break;case"tempo":var f=new r(n,0,0,"tempo",this.tuneNumber);f.addFixedX(new p(n,this.tuneNumber,o)),a[0]=f;break;case"style":"normal"===n.head?delete this.style:this.style=n.head;break;case"hint":x=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=n.size;break;case"color":this.voiceColor=n.color,$.color=this.voiceColor;break;default:var m=new r(n,0,0,"unsupported",this.tuneNumber);m.addFixed(new u(" ",0,0,void 0,{type:"debug"})),a[0]=m}return a},T.prototype.createBeam=function(e,t,$){var r=[],a=new n(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,$[0]);x&&a.setHint();for(var s=0;s<$.length;s++)a.runningDirection($[s]);a.setStemDirection();var i=this.stemdir;for(s=0,this.stemdir=a.stemsUp?"up":"down";s<$.length;s++){var o=$[s],c=this.createNote(o,!0,e,t);r.push(c),a.add(c),this.triplet&&this.triplet.isClosed()&&(t.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return a.calcDir(),t.addBeam(a),this.stemdir=i,r};var A=function e(t){var $;do{$=!0;for(var r=0;r<t.pitches.length-1;r++)if(t.pitches[r].pitch>t.pitches[r+1].pitch){$=!1;var n=t.pitches[r];t.pitches[r]=t.pitches[r+1],t.pitches[r+1]=n}}while(!$)},B=function e(t,$,r,n,a,s,i,o,c){for(var l=r;l>11;l--)l%2!=0||n||t.addFixed(new u(null,o,(a+4)*c,l,{type:"ledger"}));for(l=$;l<1;l++)l%2!=0||n||t.addFixed(new u(null,o,(a+4)*c,l,{type:"ledger"}));for(l=0;l<s.length;l++){var _=a;"down"===i&&(_=-_),t.addFixed(new u(null,_+o,(a+4)*c,s[l],{type:"ledger"}))}};function N(e,t){for(var $=0;$<e.length;$++)if(JSON.stringify(e[$])===JSON.stringify(t))return;e.push(t)}T.prototype.addGraceNotes=function(e,t,$,r,a,s,i){a=Math.round(.7*a);var c,l,_=null;e.gracenotes.length>1&&(_=new n(a,"grace",s),x&&_.setHint(),_.mainNote=$);var d=[];for(l=e.gracenotes.length-1;l>=0;l--)i+=10,d[l]=i,e.gracenotes[l].accidental&&(i+=7);for(l=0;l<e.gracenotes.length;l++){var f=e.gracenotes[l].verticalPos;c=_?null:C.uflags[s?5:3];var p=[],g=o($,"noteheads.quarter",e.gracenotes[l],{dir:"up",headx:-d[l],extrax:-d[l],flag:c,scale:.6*this.voiceScale,accidentalSlot:p});g.notehead.highestVert=g.notehead.pitch+a;var v=g.notehead;if(this.addSlursAndTies($,e.gracenotes[l],v,t,"up",!0),$.addExtra(v),e.gracenotes[l].acciaccatura){var b=e.gracenotes[l].verticalPos+4.2,y=_?5:6;$.addRight(new u("flags.ugrace",-d[l]+y,0,b,{scalex:.6,scaley:.6}))}if(_){var k=e.gracenotes[l].duration/2;s&&(k/=2);var w={heads:[v],abcelem:{averagepitch:f,minpitch:f,maxpitch:f,duration:k}};_.add(w)}else{var T=f+1/3*.6,S=f+4.2,E=v.dx+v.w;$.addExtra(new u(null,E,0,T,{type:"stem",pitch2:S,linewidth:-.6}))}B($,f,f,!1,h.getSymbolWidth("noteheads.quarter"),[],!0,v.dx-1,.6);var A=e.rest&&("spacer"===e.rest.type||"invisible"===e.rest.type);0!==l||s||!this.graceSlurs||A||t.addOther(new m({anchor1:v,anchor2:r,isGrace:!0}))}return _&&(_.calcDir(),t.addBeam(_)),i},T.prototype.addNoteToAbcElement=function(e,t,$,r,n,a,s,i,c){var l=0,_=0,d=0,f=[],p=[],m=0,g=t.averagepitch>=6?"down":"up";for(r&&(g=r),(n=t.style?t.style:n)&&"normal"!==n||(n="note"),(A=a?C[n].nostem:C[n][-s])||console.log("noteSymbol:",n,s,a),B="down"===g?t.pitches.length-2:1;"down"===g?B>=0:B<t.pitches.length;B="down"===g?B-1:B+1){var v=t.pitches["down"===g?B+1:B-1],b=t.pitches[B],k="down"===g?v.pitch-b.pitch:b.pitch-v.pitch;k<=1&&!v.printer_shift&&(b.printer_shift=k?"different":"same",(b.verticalPos>11||b.verticalPos<1)&&f.push(b.verticalPos-b.verticalPos%2),"down"===g?_=h.getSymbolWidth(A)+2:l=h.getSymbolWidth(A)+2)}var x=t.pitches.length;for(B=0;B<t.pitches.length;B++){if(i||(P="down"===g&&0!==B||"up"===g&&B!==x-1?null:C["down"===g?"dflags":"uflags"][-s]),t.pitches[B].style)M=C[t.pitches[B].style][-s];else if(c.isPercussion&&this.percmap){M=A;var T,S,E,A,B,P,M,L=this.percmap[y(t.pitches[B])];L&&L.noteHead&&C[L.noteHead]&&(M=C[L.noteHead][-s])}else M=A;t.pitches[B].highestVert=t.pitches[B].verticalPos;var D=("up"===r||"up"===g)&&0===B,O=("down"===r||"down"===g)&&B===x-1;if(D||O){if((t.startSlur||1===x)&&(t.pitches[B].highestVert=t.pitches[x-1].verticalPos,1>w(t)&&("up"===r||"up"===g)&&(t.pitches[B].highestVert+=6)),t.startSlur)for(t.pitches[B].startSlur||(t.pitches[B].startSlur=[]),E=0;E<t.startSlur.length;E++)N(t.pitches[B].startSlur,t.startSlur[E]);if(t.endSlur)for(t.pitches[B].highestVert=t.pitches[x-1].verticalPos,1>w(t)&&("up"===r||"up"===g)&&(t.pitches[B].highestVert+=6),t.pitches[B].endSlur||(t.pitches[B].endSlur=[]),E=0;E<t.endSlur.length;E++)N(t.pitches[B].endSlur,t.endSlur[E])}var z=!i&&s<=-1,F=o(e,M,t.pitches[B],{dir:g,extrax:-_,flag:P,dot:$,dotshiftx:l,scale:this.voiceScale,accidentalSlot:p,shouldExtendStem:!r,printAccidentals:!c.isPercussion});m=Math.max(h.getSymbolWidth(M),m),e.extraw-=F.extraLeft,(T=F.notehead)&&(this.addSlursAndTies(e,t.pitches[B],T,c,z?g:null,!1),t.gracenotes&&t.gracenotes.length>0&&(T.bottom=T.bottom-1),e.addHead(T)),_+=F.accidentalshiftx,d=Math.max(d,F.dotshiftx)}if(T&&"noteheads.sn_fa_l.quarter"===T.c&&"down"===g&&(T.c="noteheads.sn_fa_r.quarter"),T&&"noteheads.sn_fa_l.half"===T.c&&"down"===g&&(T.c="noteheads.sn_fa_r.half"),T&&"noteheads.sn_fa_r.quarter"===T.c&&"down"!=g&&(T.c="noteheads.sn_fa_l.quarter"),T&&"noteheads.sn_fa_r.half"===T.c&&"down"!=g&&(T.c="noteheads.sn_fa_l.half"),T&&"noteheads.sn_fa.quarter"===T.c&&("down"===g?T.c="noteheads.sn_fa_r.quarter":T.c="noteheads.sn_fa_l.quarter"),T&&"noteheads.sn_fa.half"===T.c&&("down"===g?T.c="noteheads.sn_fa_r.half":T.c="noteheads.sn_fa_l.half"),z){var H=Math.round(70*this.voiceScale)/10,I="down"===g?t.minpitch-H:t.minpitch+1/3;I>6&&!r&&(I=6);var q="down"===g?t.maxpitch-1/3:t.maxpitch+H;q<6&&!r&&(q=6);var G="down"===g||0===e.heads.length?0:e.heads[0].w,R="down"===g?1:-1;T&&"noteheads.slash.quarter"===T.c&&("down"===g?q-=1:I+=1),T&&"noteheads.triangle.quarter"===T.c&&("down"===g?q-=.7:I-=1.2),T&&"noteheads.sn_do.quarter"===T.c&&("down"===g?q-=.25:I-=1),T&&"noteheads.sn_do.half"===T.c&&("down"===g?q-=.25:I-=1),T&&"noteheads.sn_re.quarter"===T.c&&("down"===g?q+=.2:I-=0),T&&"noteheads.sn_re.half"===T.c&&("down"===g?q+=.2:I-=0),T&&"noteheads.sn_mi.quarter"===T.c&&("down"===g?q+=.2:I-=.2),T&&"noteheads.sn_mi.half"===T.c&&("down"===g?q+=.2:I-=.2),T&&"noteheads.sn_fa_l.quarter"===T.c&&("down"===g?q+=1.1:I+=.55),T&&"noteheads.sn_fa_l.half"===T.c&&("down"===g?q+=1.1:I+=.55),T&&"noteheads.sn_fa_r.quarter"===T.c&&("down"===g?q+=1.2:I-=1),T&&"noteheads.sn_fa_r.half"===T.c&&("down"===g?q+=1.2:I-=1),T&&"noteheads.sn_ti.quarter"===T.c&&("down"===g?q+=.45:I-=0),T&&"noteheads.sn_ti.half"===T.c&&("down"===g?q+=.45:I-=0),e.addRight(new u(null,G,0,I,{type:"stem",pitch2:q,linewidth:R,bottom:I-1})),S=Math.min(I,q)}return{noteHead:T,roomTaken:_,roomTakenRight:d,min:S,additionalLedgers:f,dir:g,symbolWidth:m}},T.prototype.addLyric=function(e,t){var $="";t.lyric.forEach(function(e){var t=" "===e.divider?"":e.divider;$+=e.syllable+t+"\n"});var r=this.getTextSize.calc($,"vocalfont","lyric"),n=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new u($,0,r.width,void 0,{type:"lyric",position:n,height:r.height/d.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))},T.prototype.createNote=function(e,t,$,n){var a,s=null,i=0,c=0,l=0,_=[],d=w(e),f=!1;0===d&&(f=!0,d=.25,t=!0);for(var p=Math.floor(Math.log(d)/Math.log(2)),m=0,v=Math.pow(2,p),y=v/2;v<d;m++,v+=y,y/=2);e.startTriplet&&(this.tripletmultiplier=e.tripletMultiplier);var k=d*this.tripletmultiplier;e.rest&&"multimeasure"===e.rest.type&&(k=1),e.rest&&"invisible-multimeasure"===e.rest.type&&(k=this.measureLength*e.rest.text);var T=e.rest?"rest":"note",S=new r(e,k,1,T,this.tuneNumber,{durationClassOveride:e.duration*this.tripletmultiplier});if(x&&S.setHint(),e.rest){this.measureLength===d&&"invisible"!==e.rest.type&&"spacer"!==e.rest.type&&0>e.rest.type.indexOf("multimeasure")&&(e.rest.type="whole");var E=function e(t,$,r,n,a,s,i,c,l){var _,d,f,p,m=7;switch(a&&("down"===s&&(m=3),"up"===s&&(m=11)),i&&(m=r<.5?7:r<1?7:5),$.rest.type){case"whole":_=C.rest[0],$.averagepitch=m,$.minpitch=m,$.maxpitch=m,n=0;break;case"rest":_="rhythm"===$.style?C.rhythm[-c]:C.rest[-c],$.averagepitch=m,$.minpitch=m,$.maxpitch=m;break;case"invisible":case"invisible-multimeasure":case"spacer":_="",$.averagepitch=m,$.minpitch=m,$.maxpitch=m;break;case"multimeasure":_=C.rest.multi,$.averagepitch=m,$.minpitch=m,$.maxpitch=m,n=0;var g=h.getSymbolWidth(_);t.addHead(new u(_,g,2*g,7));var v=new u(""+$.rest.text,g,g,16,{type:"multimeasure-text"});t.addExtra(v)}if(0>$.rest.type.indexOf("multimeasure")&&"invisible"!==$.rest.type){var b=o(t,_,{verticalPos:m},{dot:n,scale:l});(d=b.notehead)&&(t.addHead(d),f=b.accidentalshiftx,p=b.dotshiftx)}return{noteHead:d,roomTaken:f,roomTakenRight:p}}(S,e,d,m,n.voicetotal>1,this.stemdir,$,p,this.voiceScale);s=E.noteHead,i=E.roomTaken,c=E.roomTakenRight}else{var A=this.addNoteToAbcElement(S,e,m,this.stemdir,this.style,f,p,t,n);void 0!==A.min&&(this.minY=Math.min(A.min,this.minY)),s=A.noteHead,i=A.roomTaken,c=A.roomTakenRight,_=A.additionalLedgers,a=A.dir,l=A.symbolWidth}void 0!==e.lyric&&this.addLyric(S,e);var N=0;if(void 0!==e.gracenotes&&(N=this.addGraceNotes(e,n,S,s,this.stemHeight*this.voiceScale,this.isBagpipes,i),i+=N),e.decoration&&this.decoration.createDecoration(n,e.decoration,S.top,s?s.w:0,S,i,a,S.bottom,e.positioning,this.hasVocals,N),e.barNumber&&S.addFixed(new u(e.barNumber,-10,0,0,{type:"barNumber"})),B(S,e.minpitch,e.maxpitch,e.rest,l,_,a,-2,1),void 0!==e.chord){var P=b(this.getTextSize,S,e,i,c,l,this.jazzchords,this.germanAlphabet);i=P.roomTaken,c=P.roomTakenRight}return e.startTriplet&&(this.triplet=new g(e.startTriplet,s,{flatBeams:this.flatBeams})),e.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(s),!this.triplet||e.startTriplet||e.endTriplet||e.rest&&"spacer"===e.rest.type||this.triplet.middleNote(s),S},T.prototype.addSlursAndTies=function(e,t,$,r,n,a){if(t.endTie&&this.ties.length>0){for(var s,i,o=!1,c=0;c<this.ties.length;c++)if(this.ties[c].anchor1&&this.ties[c].anchor1.pitch===$.pitch){this.ties[c].setEndAnchor($),r.setRange(this.ties[c]),this.ties.splice(c,1),o=!0;break}o||(this.ties[0].setEndAnchor($),r.setRange(this.ties[0]),this.ties.splice(0,1))}var l=r.voicetotal<2?-1:r.voicenumber;if(t.startTie){var _=new m({anchor1:$,force:"down"===this.stemdir||"up"===this.stemdir,stemDir:this.stemdir,isGrace:a,voiceNumber:l,style:t.startTie.style});x&&_.setHint(),this.ties[this.ties.length]=_,r.addOther(_),e.startTie=!0}if(t.endSlur)for(var h=0;h<t.endSlur.length;h++)i=t.endSlur[h],this.slurs[i]?((s=this.slurs[i]).setEndAnchor($),r.setRange(s),delete this.slurs[i]):(s=new m({anchor2:$,stemDir:this.stemdir,voiceNumber:l}),x&&s.setHint(),r.addOther(s)),this.startlimitelem&&s.setStartX(this.startlimitelem);else if(!a)for(var u in this.slurs)this.slurs.hasOwnProperty(u)&&this.slurs[u].addInternalNote($);if(t.startSlur)for(h=0;h<t.startSlur.length;h++)i=t.startSlur[h].label,s=new m({anchor1:$,stemDir:this.stemdir,voiceNumber:l,style:t.startSlur[h].style}),x&&s.setHint(),this.slurs[i]=s,r.addOther(s)},T.prototype.addMeasureNumber=function(e,t){var $=this.getTextSize.calc(e,"measurefont","bar-number"),r=0;t.isClef&&(r+=$.width/2);var n=$.width>10&&"treble"===t.abcelem.type?13.5:11;t.addFixed(new u(e,r,$.width,n+$.height/d.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))},T.prototype.createBarLine=function(e,t,$){var n=new r(t,0,10,"bar",this.tuneNumber),a=null,s=0;t.barNumber&&this.addMeasureNumber(t.barNumber,n);var i="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type,o="bar_left_repeat"!==t.type&&"bar_thick_thin"!==t.type&&"bar_invisible"!==t.type,c="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type||"bar_left_repeat"===t.type||"bar_thin_thick"===t.type||"bar_thick_thin"===t.type,l="bar_left_repeat"===t.type||"bar_thick_thin"===t.type||"bar_thin_thin"===t.type||"bar_dbl_repeat"===t.type,h="bar_left_repeat"===t.type||"bar_dbl_repeat"===t.type;if(i||h){for(var d in this.slurs)this.slurs.hasOwnProperty(d)&&this.slurs[d].setEndX(n);this.startlimitelem=n}if(i&&(n.addRight(new u("dots.dot",s,1,7)),n.addRight(new u("dots.dot",s,1,5)),s+=6),o&&(a=new u(null,s,1,2,{type:"bar",pitch2:10,linewidth:.6}),n.addRight(a)),"bar_invisible"===t.type&&(a=new u(null,s,1,2,{type:"none",pitch2:10,linewidth:.6}),n.addRight(a)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,c?3:1,n,0,"down",2,t.positioning,this.hasVocals,0),c&&(s+=4,a=new u(null,s,4,2,{type:"bar",pitch2:10,linewidth:4}),n.addRight(a),s+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=a,this.partstartelem=null),l&&(s+=3,a=new u(null,s,1,2,{type:"bar",pitch2:10,linewidth:.6}),n.addRight(a)),h&&(s+=3,n.addRight(new u("dots.dot",s,1,7)),n.addRight(new u("dots.dot",s,1,5))),t.startEnding&&$){var f=this.getTextSize.calc(t.startEnding,"repeatfont","").width;n.minspacing+=f+10,this.partstartelem=new _(t.startEnding,a,null),e.addOther(this.partstartelem)}return n.extraw-=5,void 0!==t.chord&&b(this.getTextSize,n,t,0,0,0,!1,this.germanAlphabet),n},e.exports=T},"./src/write/creation/add-chord.js":function(e,t,$){var r=$(/*! ./elements/relative-element */ "./src/write/creation/elements/relative-element.js"),n=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),a=$(/*! ./translate-chord */ "./src/write/creation/translate-chord.js"),s=function e(t,$,s,i,o,c,l,_){for(var h=0;h<s.chord.length;h++)for(var u=s.chord[h].position,d=s.chord[h].rel_position,f=s.chord[h].name.split("\n"),p=f.length-1;p>=0;p--){var m,g,v,b=f[p],y=0;if("left"===u||"right"===u||"below"===u||"above"===u||d)g="annotationfont",v="annotation";else{g="gchordfont",v="chord";let k=b.match(/^(.*?):(\d?)$/);k&&(b=k[1]),b=a(b,l,_)}var w=t.attr(g,v),x=t.calc(b,g,v),C=x.width,T=x.height/n.STEP;switch(u){case"left":i+=C+7,y=-i,m=s.averagepitch,$.addExtra(new r(b,y,C+4,m,{type:"text",height:T,dim:w,position:"left"}));break;case"right":o+=4,y=o,m=s.averagepitch,$.addRight(new r(b,y,C+4,m,{type:"text",height:T,dim:w,position:"right"}));break;case"below":$.addRight(new r(b,0,0,void 0,{type:"text",position:"below",height:T,dim:w,realWidth:C}));break;case"above":$.addRight(new r(b,0,0,void 0,{type:"text",position:"above",height:T,dim:w,realWidth:C}));break;default:if(d){var S=d.y+3*n.STEP;$.addRight(new r(b,y+d.x,0,s.minpitch+S/n.STEP,{position:"relative",type:"text",height:T,dim:w}))}else{var E="above";s.positioning&&s.positioning.chordPosition&&(E=s.positioning.chordPosition),"hidden"!==E&&$.addCentered(new r(b,c/2,C,void 0,{type:"chord",position:E,height:T,dim:w,realWidth:C}))}}}return{roomTaken:i,roomTakenRight:o}};e.exports=s},"./src/write/creation/add-text-if.js":function(e){e.exports=function e(t,$,r){if($.text){$.marginLeft||($.marginLeft=0),$.klass||($.klass=""),$.anchor||($.anchor="start"),$.info||($.info={startChar:-2,endChar:-2}),$.marginTop&&t.push({move:$.marginTop});var n={left:$.marginLeft,text:$.text,font:$.font,anchor:$.anchor,startChar:$.info.startChar,endChar:$.info.endChar};$.absElemType&&(n.absElemType=$.absElemType),$.inGroup||(n.klass=$.klass),$.name&&(n.name=$.name),t.push(n);var a=r.calc("A",$.font,$.klass),s=$.text.split("\n").length;if("\n"===$.text[$.text.length-1]&&s--,!$.noMove){var i=1.1*a.height*s;t.push({move:Math.round(i)}),$.marginBottom&&t.push({move:$.marginBottom})}}}},"./src/write/creation/calc-height.js":function(e){var t=function e(t){for(var $=0,r=0;r<t.voices.length;r++){var n=t.voices[r].staff;t.voices[r].duplicate||($+=n.top,$+=-n.bottom)}return $};e.exports=t},"./src/write/creation/create-clef.js":function(e,t,$){var r=$(/*! ./elements/absolute-element */ "./src/write/creation/elements/absolute-element.js"),n=$(/*! ./glyphs */ "./src/write/creation/glyphs.js"),a=$(/*! ./elements/relative-element */ "./src/write/creation/elements/relative-element.js"),s=function e(t,$){var s,i=0;t.el_type="clef";var o=new r(t,0,10,"staff-extra clef",$);switch(o.isClef=!0,t.type){case"treble":s="clefs.G";break;case"tenor":case"alto":s="clefs.C";break;case"bass":s="clefs.F";break;case"treble+8":s="clefs.G",i=1;break;case"tenor+8":case"alto+8":s="clefs.C",i=1;break;case"bass+8":s="clefs.F",i=1;break;case"treble-8":s="clefs.G",i=-1;break;case"tenor-8":case"alto-8":s="clefs.C",i=-1;break;case"bass-8":s="clefs.F",i=-1;break;case"none":return null;case"perc":s="clefs.perc";break;default:o.addFixed(new a(" ",0,0,void 0,{type:"debug"}))}if(s){var c=n.symbolHeightInPitches(s),l=function e(t){switch(t){case"clefs.G":return -5;case"clefs.C":case"clefs.F":return -4;case"clefs.perc":return -2;default:return 0}}(s);if(o.addRight(new a(s,5,n.getSymbolWidth(s),t.clefPos,{top:c+t.clefPos+l,bottom:t.clefPos+l})),0!==i){var _=2/3,h=(n.getSymbolWidth(s)-n.getSymbolWidth("8")*_)/2,u=i>0?o.top+3:o.bottom-1,d=i>0?o.top+3:o.bottom-3;"bass-8"===t.type&&(u=3,h=0),o.addRight(new a("8",5+h,n.getSymbolWidth("8")*_,u,{scalex:_,scaley:_,top:d,bottom:d-2}))}}return o};e.exports=s},"./src/write/creation/create-key-signature.js":function(e,t,$){var r=$(/*! ./elements/absolute-element */ "./src/write/creation/elements/absolute-element.js"),n=$(/*! ./glyphs */ "./src/write/creation/glyphs.js"),a=$(/*! ./elements/relative-element */ "./src/write/creation/elements/relative-element.js"),s=function e(t,$){if(t.el_type="keySignature",!t.accidentals||0===t.accidentals.length)return null;var s=new r(t,0,10,"staff-extra key-signature",$);s.isKeySig=!0;var i=0;return t.accidentals.forEach(function(e){var t,$=0;switch(e.acc){case"sharp":t="accidentals.sharp",$=-3;break;case"natural":t="accidentals.nat";break;case"flat":t="accidentals.flat",$=-1.2;break;case"quartersharp":t="accidentals.halfsharp",$=-2.5;break;case"quarterflat":t="accidentals.halfflat",$=-1.2;break;default:t="accidentals.flat"}s.addRight(new a(t,i,n.getSymbolWidth(t),e.verticalPos,{thickness:n.symbolHeightInPitches(t),top:e.verticalPos+n.symbolHeightInPitches(t)+$,bottom:e.verticalPos+$})),i+=n.getSymbolWidth(t)+2},this),s};e.exports=s},"./src/write/creation/create-note-head.js":function(e,t,$){var r=$(/*! ./glyphs */ "./src/write/creation/glyphs.js"),n=$(/*! ./elements/relative-element */ "./src/write/creation/elements/relative-element.js"),a=function e(t,$,a,s){s||(s={});var i=void 0!==s.dir?s.dir:null,o=void 0!==s.headx?s.headx:0,c=void 0!==s.extrax?s.extrax:0,l=void 0!==s.flag?s.flag:null,_=void 0!==s.dot?s.dot:0,h=void 0!==s.dotshiftx?s.dotshiftx:0,u=void 0!==s.scale?s.scale:1,d=void 0!==s.accidentalSlot?s.accidentalSlot:[],f=void 0!==s.shouldExtendStem&&s.shouldExtendStem,p=void 0===s.printAccidentals||s.printAccidentals,m=a.verticalPos,g=0,v=0,b=0;if(void 0===$)t.addFixed(new n(" ",0,0,0,{type:"debug"}));else if(""===$)S=new n(null,0,0,m);else{var y=o;if(a.printer_shift){var k="same"===a.printer_shift?1:0;y="down"===i?-r.getSymbolWidth($)*u+k:r.getSymbolWidth($)*u-k}var w={scalex:u,scaley:u,thickness:r.symbolHeightInPitches($)*u,name:a.name};if((S=new n($,y,r.getSymbolWidth($)*u,m,w)).stemDir=i,l){var x=m+("down"===i?-7:7)*u;f&&("down"===i&&x>6&&(x=6),"up"===i&&x<6&&(x=6));var C="down"===i?o:o+S.w-.6;t.addRight(new n(l,C,r.getSymbolWidth(l)*u,x,{scalex:u,scaley:u}))}for(v=S.w+h-2+5*_;_>0;_--){var T=1-Math.abs(m)%2;t.addRight(new n("dots.dot",S.w+h-2+5*_,r.getSymbolWidth("dots.dot"),m+T))}}if(S&&(S.highestVert=a.highestVert),p&&a.accidental){switch(a.accidental){case"quartersharp":E="accidentals.halfsharp";break;case"dblsharp":E="accidentals.dblsharp";break;case"sharp":E="accidentals.sharp";break;case"quarterflat":E="accidentals.halfflat";break;case"flat":E="accidentals.flat";break;case"dblflat":E="accidentals.dblflat";break;case"natural":E="accidentals.nat"}for(var S,E,A=!1,B=c,N=0;N<d.length;N++)if(m-d[N][0]>=6){d[N][0]=m,B=d[N][1],A=!0;break}!1===A&&(B-=r.getSymbolWidth(E)*u+2,d.push([m,B]),g=r.getSymbolWidth(E)*u+2);var P=r.symbolHeightInPitches(E);t.addExtra(new n(E,B,r.getSymbolWidth(E),m,{scalex:u,scaley:u,top:m+P/2,bottom:m-P/2})),b=r.getSymbolWidth(E)/2}return{notehead:S,accidentalshiftx:g,dotshiftx:v,extraLeft:b}};e.exports=a},"./src/write/creation/create-time-signature.js":function(e,t,$){var r=$(/*! ./elements/absolute-element */ "./src/write/creation/elements/absolute-element.js"),n=$(/*! ./glyphs */ "./src/write/creation/glyphs.js"),a=$(/*! ./elements/relative-element */ "./src/write/creation/elements/relative-element.js"),s=function e(t,$){t.el_type="timeSignature";var s=new r(t,0,10,"staff-extra time-signature",$);if("specified"===t.type)for(var i=0,o=0;o<t.value.length;o++)if(0!==o&&(s.addRight(new a("+",i+1,n.getSymbolWidth("+"),6,{thickness:n.symbolHeightInPitches("+")})),i+=n.getSymbolWidth("+")+2),t.value[o].den){for(var c=0,l=0;l<t.value[o].num.length;l++)c+=n.getSymbolWidth(t.value[o].num[l]);var _=0;for(l=0;l<t.value[o].num.length;l++)_+=n.getSymbolWidth(t.value[o].den[l]);var h=Math.max(c,_);s.addRight(new a(t.value[o].num,i+(h-c)/2,c,8,{thickness:n.symbolHeightInPitches(t.value[o].num[0])})),s.addRight(new a(t.value[o].den,i+(h-_)/2,_,4,{thickness:n.symbolHeightInPitches(t.value[o].den[0])})),i+=h}else{for(var u=0,d=0;d<t.value[o].num.length;d++)u+=n.getSymbolWidth(t.value[o].num[d]);s.addRight(new a(t.value[o].num,i,u,6,{thickness:n.symbolHeightInPitches(t.value[o].num[0])})),i+=u}else"common_time"===t.type?s.addRight(new a("timesig.common",0,n.getSymbolWidth("timesig.common"),6,{thickness:n.symbolHeightInPitches("timesig.common")})):"cut_time"===t.type?s.addRight(new a("timesig.cut",0,n.getSymbolWidth("timesig.cut"),6,{thickness:n.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===t.type?s.addRight(new a("timesig.imperfectum",0,n.getSymbolWidth("timesig.imperfectum"),6,{thickness:n.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===t.type?s.addRight(new a("timesig.imperfectum2",0,n.getSymbolWidth("timesig.imperfectum2"),6,{thickness:n.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===t.type?s.addRight(new a("timesig.perfectum",0,n.getSymbolWidth("timesig.perfectum"),6,{thickness:n.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===t.type?s.addRight(new a("timesig.perfectum2",0,n.getSymbolWidth("timesig.perfectum2"),6,{thickness:n.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",t);return s};e.exports=s},"./src/write/creation/decoration.js":function(e,t,$){var r=$(/*! ./elements/dynamic-decoration */ "./src/write/creation/elements/dynamic-decoration.js"),n=$(/*! ./elements/crescendo-element */ "./src/write/creation/elements/crescendo-element.js"),a=$(/*! ./elements/glissando-element */ "./src/write/creation/elements/glissando-element.js"),s=$(/*! ./glyphs */ "./src/write/creation/glyphs.js"),i=$(/*! ./elements/relative-element */ "./src/write/creation/elements/relative-element.js"),o=$(/*! ./elements/tie-element */ "./src/write/creation/elements/tie-element.js"),c=function e(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},l=function e(t,$,r,n,a,c,l,_,h){for(var u,d=0;d<$.length;d++){if("staccato"===$[d]||"tenuto"===$[d]||"accent"===$[d]){var f="scripts."+$[d];if("accent"===$[d]&&(f="scripts.sforzato"),u=void 0===u?"down"===l?r+2:_-2:"down"===l?u+2:u-2,"accent"===$[d])"up"===l?u--:u++;else switch(u){case 2:case 4:case 6:case 8:case 10:"up"===l?u--:u++}r>9&&u++;var p=n/2;"center"!==s.getSymbolAlign(f)&&(p-=s.getSymbolWidth(f)/2),a.addFixedX(new i(f,p,s.getSymbolWidth(f),u))}if("slide"===$[d]&&a.heads[0]||"slideup"===$[d]&&a.heads[0]){var m=a.heads[0].pitch;m-=2;var g=new i("",-c-18,0,m-1),v=new i("",-c-7,0,m+1);a.addFixedX(g),a.addFixedX(v),t.addOther(new o({anchor1:g,anchor2:v,fixedY:!0}))}if("slidedown"===$[d]&&a.heads[0]){var m=a.heads[0].pitch;m-=1;var g=new i("",c+5-h,0,m),v=new i("",c+16-h,0,m-2);a.addFixedX(g),a.addFixedX(v),t.addOther(new o({anchor1:g,anchor2:v,fixedY:!0,isSlideDown:!0}))}}return void 0===u&&(u=r),{above:u,below:a.bottom}},_=function e(t,$,n,a){for(var s=0;s<$.length;s++)switch($[s]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":case"ppppp":var i=new r(n,$[s],a);t.addOther(i)}},h=function e(t,$,r,n,a){function e(e,t){var $="down"===a?function e(){if(0===n.heads.length)return 2;for(var t=n.heads[0].pitch,$=1;$<n.heads.length;$++)t=Math.min(t,n.heads[$].pitch);return t}()+1:function e(){if(0===n.heads.length)return 10;for(var t=n.heads[0].pitch,$=1;$<n.heads.length;$++)t=Math.max(t,n.heads[$].pitch);return t}()+9;"down"!==a&&1===t&&$--;var o=r/2;o+="down"===a?-5:3;for(var c=0;c<t;c++)$-=1,n.addFixedX(new i(e,o,s.getSymbolWidth(e),$))}for(var o=0;o<t.length;o++)switch(t[o]){case"/":e("flags.ugrace",1);break;case"//":e("flags.ugrace",2);break;case"///":e("flags.ugrace",3);break;case"////":e("flags.ugrace",4)}},u=function e(t,$,r,n,a,o,c){function l(e,t){"above"===e?n.above+=t:n.below-=t}function _(e){var t;return"above"===e?(t=n.above)<o&&(t=o):(t=n.below)>c&&(t=c),t}function h(e,t,n){var a=_(t);r.addFixedX(new i(e,$/2,0,a+2,{type:"decoration",klass:"ornament",thickness:3,anchor:n})),l(t,5)}function u(e,t){var n=$/2;"center"!==s.getSymbolAlign(e)&&(n-=s.getSymbolWidth(e)/2);var a=s.symbolHeightInPitches(e)+1,o=_(t);o="above"===t?o+a/2:o-a/2,r.addFixedX(new i(e,n,s.getSymbolWidth(e),o,{klass:"ornament",thickness:s.symbolHeightInPitches(e)})),l(t,a)}function d(e,t){var n=s.symbolHeightInPitches(e)+1,a=_(t);a="above"===t?a+n/2:a-n/2,r.addFixedX(new i(e,1.5*$,s.getSymbolWidth(e),a,{klass:"ornament",thickness:s.symbolHeightInPitches(e)})),l(t,n)}for(var f={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",trillh:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.prall",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},p=!1,m=0;m<t.length;m++)switch(t[m]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":h(t[m],a,"middle"),p=!0;break;case"D.C.alcoda":h("D.C. al coda",a,"end"),p=!0;break;case"D.C.alfine":h("D.C. al fine",a,"end"),p=!0;break;case"D.S.alcoda":h("D.S. al coda",a,"end"),p=!0;break;case"D.S.alfine":h("D.S. al fine",a,"end"),p=!0;break;case"fine":h("FINE",a,"middle"),p=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":case"trillh":case"roll":case"irishroll":case"marcato":case"dmarcato":case"turn":case"uppermordent":case"pralltriller":case"mordent":case"lowermordent":case"downbow":case"upbow":case"fermata":case"umarcato":case"coda":case"segno":u(f[t[m]],a),p=!0;break;case"breath":d(f[t[m]],a),p=!0;break;case"invertedfermata":u(f[t[m]],"below"),p=!0;break;case"mark":r.klass="mark"}return p};c.prototype.dynamicDecoration=function(e,t,$,r){for(var s,i,o,c=0;c<t.length;c++)switch(t[c]){case"diminuendo(":this.startDiminuendoX=$,s=void 0;break;case"diminuendo)":s={start:this.startDiminuendoX,stop:$},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=$,i=void 0;break;case"crescendo)":i={start:this.startCrescendoX,stop:$},this.startCrescendoX=void 0;break;case"~(":case"glissando(":this.startGlissandoX=$,o=void 0;break;case"~)":case"glissando)":o={start:this.startGlissandoX,stop:$},this.startGlissandoX=void 0}s&&e.addOther(new n(s.start,s.stop,">",r)),i&&e.addOther(new n(i.start,i.stop,"<",r)),o&&e.addOther(new a(o.start,o.stop))},c.prototype.createDecoration=function(e,t,$,r,n,a,o,c,d,f,p){d||(d={ornamentPosition:"above",volumePosition:f?"above":"below",dynamicPosition:f?"above":"below"}),_(e,t,n,d.volumePosition),this.dynamicDecoration(e,t,n,d.dynamicPosition),h(t,$,r,n,o);var m=l(e,t,$,r,n,a,o,c,p);m.above=Math.max(m.above,this.minTop),u(t,r,n,m,d.ornamentPosition,this.minTop,this.minBottom),function e(t,$,r){for(var n=0;n<t.length;n++)if("arpeggio"===t[n])for(var a=$.abcelem.minpitch-1;a<=$.abcelem.maxpitch;a+=2)$.addExtra(new i("scripts.arpeggio",-(2*s.getSymbolWidth("scripts.arpeggio"))-r,0,a+2,{klass:"ornament",thickness:s.symbolHeightInPitches("scripts.arpeggio")}))}(t,n,a)},e.exports=c},"./src/write/creation/elements/absolute-element.js":function(e,t,$){var r=$(/*! ../../interactive/highlight */ "./src/write/interactive/highlight.js"),n=$(/*! ../../interactive/unhighlight */ "./src/write/interactive/unhighlight.js"),a=function e(t,$,r,n,a,s){s||(s={}),this.tuneNumber=a,this.abcelem=t,this.duration=$,this.durationClass=s.durationClassOveride?s.durationClassOveride:this.duration,this.minspacing=r||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=n,this.fixed={w:0,t:void 0,b:void 0},this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};a.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},a.prototype.addExtra=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),void 0===this.fixed.t?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top),void 0===this.fixed.b?this.fixed.b=e.bottom:this.fixed.b=Math.min(this.fixed.b,e.bottom),e.dx<this.extraw&&(this.extraw=e.dx),this.extra[this.extra.length]=e,this._addChild(e)},a.prototype.addHead=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.heads[this.heads.length]=e,this.addRight(e)},a.prototype.addRight=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),void 0!==e.top&&(void 0===this.fixed.t?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top)),void 0!==e.bottom&&(void 0===this.fixed.b?this.fixed.b=e.bottom:this.fixed.b=Math.min(this.fixed.b,e.bottom)),e.dx+e.w>this.w&&(this.w=e.dx+e.w),this.right[this.right.length]=e,this._addChild(e)},a.prototype.addFixed=function(e){this._addChild(e)},a.prototype.addFixedX=function(e){this._addChild(e)},a.prototype.addCentered=function(e){var t=e.w/2;-t<this.extraw&&(this.extraw=-t),this.extra[this.extra.length]=e,e.dx+t>this.w&&(this.w=e.dx+t),this.right[this.right.length]=e,this._addChild(e)},a.prototype.setLimit=function(e,t){t[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],t[e]):this.specialY[e]=t[e])},a.prototype._addChild=function(e){var t=!0;"clef"==this.abcelem.el_type&&"barNumber"==e.type&&(t=!1),e.parent=this,this.children[this.children.length]=e,t&&this.pushTop(e.top),this.pushBottom(e.bottom),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},a.prototype.pushTop=function(e){void 0!==e&&(void 0===this.top?this.top=e:this.top=Math.max(e,this.top))},a.prototype.pushBottom=function(e){void 0!==e&&(void 0===this.bottom?this.bottom=e:this.bottom=Math.min(e,this.bottom))},a.prototype.setX=function(e){this.x=e;for(var t=0;t<this.children.length;t++)this.children[t].setX(e)},a.prototype.center=function(e,t){var $=(t.x-e.x)/2+e.x;this.x=$-this.w/2;for(var r=0;r<this.children.length;r++)this.children[r].setX(this.x)},a.prototype.setHint=function(){this.hint=!0},a.prototype.highlight=function(e,t){r.bind(this)(e,t)},a.prototype.unhighlight=function(e,t){n.bind(this)(e,t)},e.exports=a},"./src/write/creation/elements/beam-element.js":function(e){var t=function e(t,$,r,n){this.type="BeamElem",this.isflat=!!r,this.isgrace=!!($&&"grace"===$),this.forceup=!!(this.isgrace||$&&"up"===$),this.forcedown=!!($&&"down"===$),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=t,this.beams=[],n&&n.duration?(this.duration=n.duration,n.startTriplet&&(this.duration*=n.tripletMultiplier),this.duration=Math.round(1e3*this.duration)/1e3):this.duration=0};function $(e,t){return t?e/t:0}t.prototype.setHint=function(){this.hint=!0},t.prototype.runningDirection=function(e){var t=e.averagepitch;void 0!==t&&(this.total=Math.round(this.total+t),this.count||(this.count=0),this.count++)},t.prototype.add=function(e){var t=e.abcelem.averagepitch;void 0!==t&&(e.abcelem.rest||(this.allrests=!1),e.beam=this,this.elems.push(e),this.total=Math.round(this.total+t),(void 0===this.min||e.abcelem.minpitch<this.min)&&(this.min=e.abcelem.minpitch),(void 0===this.max||e.abcelem.maxpitch>this.max)&&(this.max=e.abcelem.maxpitch))},t.prototype.addBeam=function(e){this.beams.push(e)},t.prototype.setStemDirection=function(){this.average=$(this.total,this.count),this.forceup?this.stemsUp=!0:this.forcedown?this.stemsUp=!1:this.stemsUp=this.average<6,delete this.count,this.total=0},t.prototype.calcDir=function(){this.average=$(this.total,this.elems.length),this.forceup?this.stemsUp=!0:this.forcedown?this.stemsUp=!1:this.stemsUp=this.average<6;for(var e=this.stemsUp?"up":"down",t=0;t<this.elems.length;t++)for(var r=0;r<this.elems[t].heads.length;r++)this.elems[t].heads[r].stemDir=e},e.exports=t},"./src/write/creation/elements/bottom-text.js":function(e,t,$){var r=$(/*! ../add-text-if */ "./src/write/creation/add-text-if.js");function n(e,t,$,r,n,a){this.rows=[],e.unalignedWords&&e.unalignedWords.length>0&&this.unalignedWords(e.unalignedWords,r,n,a),this.extraText(e,r,n,a),e.footer&&$&&this.footer(e.footer,t,r,a)}n.prototype.unalignedWords=function(e,t,$,n){var a="meta-bottom unaligned-words",s="wordsfont";this.rows.push({startGroup:"unalignedWords",klass:"abcjs-meta-bottom abcjs-unaligned-words",name:"words"});var i=n.calc("i",s,a);this.rows.push({move:$.words});for(var o=0;o<e.length;o++)if(""===e[o])this.rows.push({move:i.height});else if("string"==typeof e[o])r(this.rows,{marginLeft:t,text:e[o],font:s,klass:a,inGroup:!0,name:"words"},n);else{for(var c=0,l=0,_=0;_<e[o].length;_++){var h=e[o][_],u=h.font?h.font:s;this.rows.push({left:t+l,text:h.text,font:u,anchor:"start"});var d=n.calc(h.text,s,a);c=Math.max(c,d.height),l+=d.width," "===h.text[h.text.length-1]&&(l+=i.width)}this.rows.push({move:c})}this.rows.push({move:2*i.height}),this.rows.push({endGroup:"unalignedWords",absElemType:"unalignedWords",startChar:-1,endChar:-1,name:"unalignedWords"})},n.prototype.extraText=function(e,t,$,n){var a="";e.book&&(a+="Book: "+e.book+"\n"),e.source&&(a+="Source: "+e.source+"\n"),e.discography&&(a+="Discography: "+e.discography+"\n"),e.notes&&(a+="Notes: "+e.notes+"\n"),e.transcription&&(a+="Transcription: "+e.transcription+"\n"),e.history&&(a+="History: "+e.history+"\n"),e["abc-copyright"]&&(a+="Copyright: "+e["abc-copyright"]+"\n"),e["abc-creator"]&&(a+="Creator: "+e["abc-creator"]+"\n"),e["abc-edited-by"]&&(a+="Edited By: "+e["abc-edited-by"]+"\n"),a.length>0&&r(this.rows,{marginLeft:t,text:a,font:"historyfont",klass:"meta-bottom extra-text",marginTop:$.info,absElemType:"extraText",name:"description"},n)},n.prototype.footer=function(e,t,$,n){var a="header meta-bottom",s="footerfont";this.rows.push({startGroup:"footer",klass:a}),r(this.rows,{marginLeft:$,text:e.left,font:s,klass:a,name:"footer"},n),r(this.rows,{marginLeft:$+t/2,text:e.center,font:s,klass:a,anchor:"middle",name:"footer"},n),r(this.rows,{marginLeft:$+t,text:e.right,font:s,klass:a,anchor:"end",name:"footer"},n)},e.exports=n},"./src/write/creation/elements/brace-element.js":function(e){var t=function e(t,$){this.startVoice=t,this.type=$};t.prototype.setBottomStaff=function(e){this.endVoice=e,this.startVoice.header&&!this.endVoice.header&&(this.header=this.startVoice.header,delete this.startVoice.header)},t.prototype.continuing=function(e){this.lastContinuedVoice=e},t.prototype.getWidth=function(){return 10},t.prototype.isStartVoice=function(e){return!!this.startVoice&&!!this.startVoice.staff&&!!(this.startVoice.staff.voices.length>0)&&this.startVoice.staff.voices[0]===e},e.exports=t},"./src/write/creation/elements/crescendo-element.js":function(e){var t=function e(t,$,r,n){this.type="CrescendoElem",this.anchor1=t,this.anchor2=$,this.dir=r,"above"===n?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0};e.exports=t},"./src/write/creation/elements/dynamic-decoration.js":function(e){var t=function e(t,$,r){this.type="DynamicDecoration",this.anchor=t,this.dec=$,"below"===r?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0};e.exports=t},"./src/write/creation/elements/ending-element.js":function(e){var t=function e(t,$,r){this.type="EndingElem",this.text=t,this.anchor1=$,this.anchor2=r,this.endingHeightAbove=5,this.pitch=void 0};e.exports=t},"./src/write/creation/elements/free-text.js":function(e){e.exports=function e(t,$,r,n,a,s){var i,o=t.text;this.rows=[],$&&this.rows.push({move:$});var c=r.calc("textfont","defined-text");if(""===o)this.rows.push({move:2*c.attr["font-size"]});else if("string"==typeof o)this.rows.push({move:c.attr["font-size"]/2}),this.rows.push({left:n,text:o,font:"textfont",klass:"defined-text",anchor:"start",startChar:t.startChar,endChar:t.endChar,absElemType:"freeText",name:"free-text"}),i=s.calc(o,"textfont","defined-text"),this.rows.push({move:i.height});else if(o){for(var l=0,_=n,h="textfont",u=0;u<o.length;u++)h=o[u].font?o[u].font:"textfont",this.rows.push({left:_,text:o[u].text,font:h,klass:"defined-text",anchor:"start",startChar:t.startChar,endChar:t.endChar,absElemType:"freeText",name:"free-text"}),_+=(i=s.calc(o[u].text,r.calc(h,"defined-text").font,"defined-text")).width+i.height/2,l=Math.max(l,i.height);this.rows.push({move:l})}else 1===t.length&&(this.rows.push({left:a/2,text:t[0].text,font:"textfont",klass:"defined-text",anchor:"middle",startChar:t.startChar,endChar:t.endChar,absElemType:"freeText",name:"free-text"}),i=s.calc(t[0].text,"textfont","defined-text"),this.rows.push({move:i.height}))}},"./src/write/creation/elements/glissando-element.js":function(e){var t=function e(t,$){this.type="GlissandoElem",this.anchor1=t,this.anchor2=$};e.exports=t},"./src/write/creation/elements/relative-element.js":function(e){var t=function e(t,$,r,n,a){switch(a=a||{},this.x=0,this.c=t,this.dx=$,this.w=r,this.pitch=n,this.scalex=a.scalex||1,this.scaley=a.scaley||1,this.type=a.type||"symbol",this.pitch2=a.pitch2,this.linewidth=a.linewidth,this.klass=a.klass,this.anchor=a.anchor?a.anchor:"middle",this.top=n,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=n,void 0!==this.pitch2&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),a.thickness&&(this.top+=a.thickness/2,this.bottom-=a.thickness/2),a.stemHeight&&(a.stemHeight>0?this.top+=a.stemHeight:this.bottom+=a.stemHeight),a.dim&&(this.dim=a.dim),a.position&&(this.position=a.position),this.height=a.height?a.height:4,a.top&&(this.top=a.top),a.bottom&&(this.bottom=a.bottom),a.name?this.name=a.name:this.c?this.name=this.c:this.name=this.type,a.realWidth?this.realWidth=a.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":a.position&&"below"===a.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":a.position&&"below"===a.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?a.position&&"below"===a.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};t.prototype.getChordDim=function(){if("debug"===this.type||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var e="chord"===this.type?this.realWidth/2:0,t=this.x-e-0,$=t+this.realWidth+0;return{left:t,right:$}},t.prototype.invertLane=function(e){void 0===this.lane&&(this.lane=0),this.lane=e-this.lane-1},t.prototype.putChordInLane=function(e){this.lane=e,this.chordHeightAbove?this.chordHeightAbove=1.25*this.height*this.lane:this.chordHeightBelow=1.25*this.height*this.lane},t.prototype.getLane=function(){return void 0===this.lane?0:this.lane},t.prototype.setX=function(e){this.x=e+this.dx},e.exports=t},"./src/write/creation/elements/separator.js":function(e){e.exports=function e(t,$,r){this.rows=[],t&&this.rows.push({move:t}),this.rows.push({separator:$,absElemType:"separator"}),r&&this.rows.push({move:r})}},"./src/write/creation/elements/staff-group-element.js":function(e,t,$){var r=$(/*! ../calc-height */ "./src/write/creation/calc-height.js"),n=function e(t){this.getTextSize=t,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};n.prototype.setLimit=function(e,t){t.specialY[e]&&(t.staff.specialY[e]?t.staff.specialY[e]=Math.max(t.staff.specialY[e],t.specialY[e]):t.staff.specialY[e]=t.specialY[e])},n.prototype.addVoice=function(e,t,$){var r=this.voices.length;this.voices[r]=e,this.staffs[t]?this.staffs[t].voices.push(r):this.staffs[this.staffs.length]={top:10,bottom:2,lines:$,voices:[r],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},e.staff=this.staffs[t]},n.prototype.setHeight=function(){this.height=r(this)},n.prototype.setWidth=function(e){this.w=e;for(var t=0;t<this.voices.length;t++)this.voices[t].setWidth(e)},n.prototype.setStaffLimits=function(e){e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},e.exports=n},"./src/write/creation/elements/subtitle.js":function(e){e.exports=function e(t,$,r,n,a,s){this.rows=[],t&&this.rows.push({move:t});var i=$.titleleft?"start":"middle",o=$.titleleft?a:n;gForceLeftJustifyTitles&&(i="start",o=a),this.rows.push({left:o,text:r.text,font:"subtitlefont",klass:"text subtitle",anchor:i,startChar:r.startChar,endChar:r.endChar,absElemType:"subtitle",name:"subtitle"});var c=s.calc(r.text,"subtitlefont","text subtitle");this.rows.push({move:c.height})}},"./src/write/creation/elements/tempo-element.js":function(e,t,$){var r=$(/*! ./absolute-element */ "./src/write/creation/elements/absolute-element.js"),n=$(/*! ./relative-element */ "./src/write/creation/elements/relative-element.js"),a=function e(t,$,r){this.type="TempoElement",this.tempo=t,this.tempo.type="tempo",this.tuneNumber=$,this.totalHeightInPitches=6,this.tempoHeightAbove=this.totalHeightInPitches,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(r,t,$))};a.prototype.setX=function(e){this.x=e},a.prototype.createNote=function(e,t,$){var a,s,i,o,c=t.duration[0],l=new r(t,c,1,"tempo",$);c<=1/32?(i="noteheads.quarter",s="flags.u32nd",a=0):c<=1/16?(i="noteheads.quarter",s="flags.u16th",a=0):c<=3/32?(i="noteheads.quarter",s="flags.u16nd",a=1):c<=1/8?(i="noteheads.quarter",s="flags.u8th",a=0):c<=3/16?(i="noteheads.quarter",s="flags.u8th",a=1):c<=1/4?(i="noteheads.quarter",a=0):c<=3/8?(i="noteheads.quarter",a=1):c<=.5?(i="noteheads.half",a=0):c<=3/4?(i="noteheads.half",a=1):c<=1?(i="noteheads.whole",a=0):c<=1.5?(i="noteheads.whole",a=1):c<=2?(i="noteheads.dbl",a=0):(i="noteheads.dbl",a=1);var _=e(l,i,{verticalPos:0},{dir:"up",flag:s,dot:a,scale:.75}).notehead;if(l.addHead(_),"noteheads.whole"!==i&&"noteheads.dbl"!==i){var h=_.dx+_.w;o=new n(null,h,0,1/3*.75,{type:"stem",pitch2:3.75,linewidth:-.6}),l.addRight(o)}return l},e.exports=a},"./src/write/creation/elements/tie-element.js":function(e){var t=function e(t){this.type="TieElem",this.anchor1=t.anchor1,this.anchor2=t.anchor2,t.isGrace&&(this.isGrace=!0),t.fixedY&&(this.fixedY=!0),t.stemDir&&(this.stemDir=t.stemDir),void 0!==t.voiceNumber&&(this.voiceNumber=t.voiceNumber),void 0!==t.style&&(this.dotted=!0),this.internalNotes=[]};t.prototype.addInternalNote=function(e){this.internalNotes.push(e)},t.prototype.setEndAnchor=function(e){this.anchor2=e,this.anchor1?(this.top=Math.max(this.anchor1.pitch,this.anchor2.pitch)+4,this.bottom=Math.min(this.anchor1.pitch,this.anchor2.pitch)-4):(this.top=this.anchor2.pitch+4,this.bottom=this.anchor2.pitch-4)},t.prototype.setStartX=function(e){this.startLimitX=e},t.prototype.setEndX=function(e){this.endLimitX=e},t.prototype.setHint=function(){this.hint=!0},t.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e;e=this.anchor1?this.anchor1.pitch:this.anchor2?this.anchor2.pitch:14,this.anchor1&&"down"===this.anchor1.stemDir&&this.anchor2&&"down"===this.anchor2.stemDir?this.above=!0:this.anchor1&&"up"===this.anchor1.stemDir&&this.anchor2&&"up"===this.anchor2.stemDir?this.above=!1:this.anchor1&&this.anchor2?this.above=e>=6:this.anchor1?this.above="down"===this.anchor1.stemDir:this.anchor2?this.above="down"===this.anchor2.stemDir:this.above=e>=6}},t.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(this.isSlidedown)this.above=!0;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=!1;this.anchor1&&"down"===this.anchor1.stemDir&&(e=!0),this.anchor2&&"down"===this.anchor2.stemDir&&(e=!0);for(var t=0;t<this.internalNotes.length;t++)"down"===this.internalNotes[t].stemDir&&(e=!0);this.above=e}},t.prototype.calcX=function(e,t){this.anchor1?(this.startX=this.anchor1.x,this.anchor1.scalex<1&&(this.startX-=3)):this.startLimitX?this.startX=this.startLimitX.x+this.startLimitX.w:this.anchor2?this.startX=this.anchor2.x-20:this.startX=e,!this.anchor1&&this.dotted&&(this.startX-=3),this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=t},t.prototype.calcTieY=function(){this.anchor1?this.startY=this.anchor1.pitch:this.anchor2?this.startY=this.anchor2.pitch:this.startY=this.above?14:0,this.anchor2?this.endY=this.anchor2.pitch:this.anchor1?this.endY=this.anchor1.pitch:this.endY=this.above?14:0},t.prototype.calcSlurY=function(){if(this.anchor1&&this.anchor2){this.above&&"up"===this.anchor1.stemDir&&!this.fixedY?(this.startY=(this.anchor1.highestVert+this.anchor1.pitch)/2,this.startX+=this.anchor1.w/2):this.startY=this.anchor1.pitch;var e=this.anchor2.parent.beam&&this.anchor2.parent.beam.stemsUp&&this.anchor2.parent.beam.elems[0]!==this.anchor2.parent,t=(this.anchor2.highestVert+this.anchor2.pitch)/2;this.above&&"up"===this.anchor2.stemDir&&!this.fixedY&&!e&&t<this.startY?(this.endY=t,this.endX+=Math.round(this.anchor2.w/2)):this.endY=this.above&&e?this.anchor2.highestVert:this.anchor2.pitch}else this.anchor1?this.startY=this.endY=this.anchor1.pitch:this.anchor2?this.startY=this.endY=this.anchor2.pitch:(this.startY=this.above?14:0,this.endY=this.above?14:0)},t.prototype.avoidCollisionAbove=function(){if(this.above){for(var e=-50,t=0;t<this.internalNotes.length;t++)this.internalNotes[t].highestVert>e&&(e=this.internalNotes[t].highestVert);e>this.startY&&e>this.endY&&(this.startY=this.endY=e-1)}},e.exports=t},"./src/write/creation/elements/top-text.js":function(e,t,$){var r=$(/*! ../add-text-if */ "./src/write/creation/add-text-if.js");e.exports=function e(t,$,n,a,s,i,o,c,l){if(this.rows=[],t.header&&i){var _=l.calc("X","headerfont","abcjs-header abcjs-meta-top").height;r(this.rows,{marginLeft:o,text:t.header.left,font:"headerfont",klass:"header meta-top",marginTop:-_,info:$.header,name:"header"},l),r(this.rows,{marginLeft:o+s/2,text:t.header.center,font:"headerfont",klass:"header meta-top",marginTop:-_,anchor:"middle",info:$.header,name:"header"},l),r(this.rows,{marginLeft:o+s,text:t.header.right,font:"headerfont",klass:"header meta-top",marginTop:-_,anchor:"end",info:$.header,name:"header"},l)}i&&this.rows.push({move:c.top});var h=n.titleleft?"start":"middle",u=n.titleleft?o:o+s/2;if(gForceLeftJustifyTitles&&(h="start",u=o),t.title&&(0==t.title.indexOf("*")&&(t.title=t.title.replaceAll("*","")),r(this.rows,{marginLeft:u,text:t.title,font:"titlefont",klass:"title meta-top",marginTop:c.title,anchor:h,absElemType:"title",info:$.title,name:"title"},l)),a.length)for(var d=0;d<a.length&&a[d].subtitle;)r(this.rows,{marginLeft:u,text:a[d].subtitle.text,font:"subtitlefont",klass:"text meta-top subtitle",marginTop:c.subtitle,anchor:h,absElemType:"subtitle",info:a[d].subtitle,name:"subtitle"},l),d++;if(t.rhythm||t.origin||t.composer){if(this.rows.push({move:c.composer}),t.rhythm&&t.rhythm.length>0){var f=!!(t.composer||t.origin);r(this.rows,{marginLeft:o,text:t.rhythm,font:"infofont",klass:"meta-top rhythm",absElemType:"rhythm",noMove:f,info:$.rhythm,name:"rhythm"},l)}var p="";t.composer&&(p+=t.composer),t.origin&&(p+=" ("+t.origin+")"),p.length>0&&r(this.rows,{marginLeft:o+s,text:p,font:"composerfont",klass:"meta-top composer",anchor:"end",absElemType:"composer",info:$.composer,name:"composer"},l)}t.author&&t.author.length>0&&r(this.rows,{marginLeft:o+s,text:t.author,font:"composerfont",klass:"meta-top author",anchor:"end",absElemType:"author",info:$.author,name:"author"},l),t.partOrder&&t.partOrder.length>0&&r(this.rows,{marginLeft:o,text:t.partOrder,font:"partsfont",klass:"meta-top part-order",absElemType:"partOrder",info:$.partOrder,name:"part-order"},l)}},"./src/write/creation/elements/triplet-element.js":function(e){var t=function e(t,$,r){this.type="TripletElem",this.anchor1=$,this.number=t,this.durationClass=("d"+Math.round(1e3*$.parent.durationClass)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=r.flatBeams};t.prototype.isClosed=function(){return!!this.anchor2},t.prototype.middleNote=function(e){this.middleElems.push(e)},t.prototype.setCloseAnchor=function(e){this.anchor2=e,this.anchor1.parent.beam&&"up"!==this.anchor1.stemDir||(this.endingHeightAbove=4)},e.exports=t},"./src/write/creation/elements/voice-element.js":function(e){var t=function e(t,$){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=t,this.voicetotal=$,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};t.prototype.addChild=function(e){if("bar"===e.type){for(var t=!0,$=0;t&&$<this.children.length;$++)0>this.children[$].type.indexOf("staff-extra")&&"tempo"!==this.children[$].type&&(t=!1);t||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=e,this.setRange(e)},t.prototype.setLimit=function(e,t){var $=t.specialY;$||($=t),$[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],$[e]):this.specialY[e]=$[e])},t.prototype.adjustRange=function(e){void 0!==e.bottom&&(this.bottom=Math.min(this.bottom,e.bottom)),void 0!==e.top&&(this.top=Math.max(this.top,e.top))},t.prototype.setRange=function(e){this.adjustRange(e),this.setLimit("tempoHeightAbove",e),this.setLimit("partHeightAbove",e),this.setLimit("volumeHeightAbove",e),this.setLimit("dynamicHeightAbove",e),this.setLimit("endingHeightAbove",e),this.setLimit("chordHeightAbove",e),this.setLimit("lyricHeightAbove",e),this.setLimit("lyricHeightBelow",e),this.setLimit("chordHeightBelow",e),this.setLimit("volumeHeightBelow",e),this.setLimit("dynamicHeightBelow",e)},t.prototype.addOther=function(e){this.otherchildren.push(e),this.setRange(e)},t.prototype.addBeam=function(e){this.beams.push(e)},t.prototype.setWidth=function(e){this.w=e},e.exports=t},"./src/write/creation/glyphs.js":function(e,t,$){var r=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),n={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"],["m",3,-11],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:12.1,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:21,h:14.97},"tab.big":{d:[["M",20.16,-21.66],["c",.24,-.09,.66,.09,.78,.36],["c",.09,.21,.09,.24,-.18,.54],["c",-.78,.81,-1.86,1.44,-2.94,1.71],["c",-.87,.24,-1.71,.24,-2.55,.03],["l",-.06,-.03],["l",-.18,.99],["c",-.33,1.98,-.75,4.26,-.96,5.04],["c",-.42,1.65,-1.26,3.18,-2.28,4.14],["c",-.57,.57,-1.17,.9,-1.86,1.08],["c",-.18,.06,-.33,.06,-.66,.06],["c",-.54,0,-.78,-.03,-1.23,-.27],["c",-.39,-.18,-.66,-.39,-1.38,-.99],["c",-.3,-.24,-.66,-.51,-.75,-.57],["c",-.21,-.15,-.27,-.24,-.24,-.45],["c",.06,-.27,.36,-.6,.6,-.66],["c",.18,-.03,.33,.06,.9,.57],["c",.48,.42,.72,.57,.93,.69],["c",.66,.33,1.38,.21,1.95,-.36],["c",.63,-.6,1.05,-1.62,1.23,-3],["c",.03,-.18,.09,-.66,.09,-1.11],["c",.09,-1.56,.33,-3.81,.57,-5.49],["c",.06,-.33,.09,-.63,.09,-.63],["c",-.03,-.03,-.81,-.12,-1.02,-.12],["c",-.57,0,-1.32,.12,-1.8,.33],["c",-.87,.3,-1.35,.78,-1.5,1.41],["c",-.18,.63,.09,1.26,.66,1.65],["c",.12,.06,.15,.12,.18,.24],["c",.09,.27,.06,.57,-.09,.75],["c",-.03,.06,-.12,.09,-.27,.15],["c",-.72,.21,-1.44,.15,-2.1,-.18],["c",-.54,-.27,-.96,-.66,-1.2,-1.14],["c",-.39,-.75,-.33,-1.74,.15,-2.52],["c",.27,-.42,.84,-.93,1.41,-1.23],["c",1.17,-.57,2.88,-.9,4.8,-.9],["c",.69,0,.78,0,1.08,.06],["c",.45,.09,1.11,.3,2.07,.6],["c",1.47,.48,1.83,.57,2.55,.54],["c",1.02,-.06,2.04,-.45,2.94,-1.11],["c",.12,-.09,.24,-.18,.27,-.18],["z"],["m",-5.88,13.05],["c",.21,-.03,.81,0,1.08,.06],["c",.48,.12,.9,.42,.99,.69],["c",.03,.09,.03,.15,0,.27],["c",0,.09,-.03,.57,-.06,1.08],["c",-.09,2.19,-.24,5.76,-.39,8.28],["c",-.06,1.53,-.06,1.77,.03,2.01],["c",.09,.18,.15,.24,.3,.3],["c",.24,.12,.54,.06,1.23,-.27],["c",.57,-.27,.66,-.3,.75,-.24],["c",.09,.06,.18,.3,.18,.45],["c",0,.33,-.15,.51,-.45,.63],["c",-.12,.03,-.39,.15,-.6,.27],["c",-1.17,.6,-1.38,.69,-1.8,.72],["c",-.45,.03,-.78,-.09,-1.08,-.39],["c",-.39,-.42,-.66,-1.2,-1.02,-3.12],["c",-.24,-1.23,-.36,-2.07,-.54,-3.75],["l",0,-.18],["l",-.36,.45],["c",-.6,.75,-1.32,1.59,-1.95,2.25],["c",-.15,.18,-.27,.3,-.27,.33],["c",0,0,.06,.09,.15,.18],["c",.24,.33,.6,.57,1.05,.69],["c",.18,.06,.3,.06,.69,.06],["l",.48,.03],["l",.06,.12],["c",.15,.27,.03,.72,-.21,.9],["c",-.18,.12,-.93,.27,-1.41,.27],["c",-.84,0,-1.59,-.3,-1.98,-.84],["l",-.12,-.15],["l",-.45,.42],["c",-.99,.87,-1.53,1.32,-2.16,1.74],["c",-.78,.51,-1.5,.84,-2.1,.93],["c",-.69,.12,-1.2,.03,-1.95,-.42],["c",-.21,-.12,-.51,-.27,-.66,-.36],["c",-.24,-.12,-.3,-.18,-.33,-.24],["c",-.12,-.27,.15,-.78,.45,-.93],["c",.24,-.12,.33,-.09,.9,.18],["c",.6,.3,.84,.39,1.2,.36],["c",.87,-.09,1.77,-.69,3.24,-2.31],["c",2.67,-2.85,4.59,-5.94,5.7,-9.15],["c",.15,-.45,.24,-.63,.42,-.81],["c",.21,-.24,.6,-.45,.99,-.51],["z"],["m",-3.99,16.05],["c",.18,0,.69,-.03,1.17,0],["c",3.27,.03,5.37,.75,6,2.07],["c",.45,.99,.12,2.4,-.81,3.42],["c",-.24,.27,-.57,.57,-.84,.75],["c",-.09,.06,-.18,.09,-.18,.12],["c",0,0,.18,.03,.42,.09],["c",1.23,.3,2.01,.81,2.37,1.59],["c",.27,.54,.3,1.32,.09,2.1],["c",-.12,.36,-.45,1.05,-.69,1.35],["c",-.87,1.17,-2.1,1.92,-3.54,2.25],["c",-.36,.06,-.48,.06,-.96,.06],["c",-.45,0,-.66,0,-.84,-.03],["c",-.84,-.18,-1.47,-.51,-2.07,-1.11],["c",-.33,-.33,-.45,-.51,-.45,-.63],["c",0,-.06,.03,-.15,.06,-.24],["c",.18,-.33,.69,-.6,.93,-.48],["c",.03,.03,.15,.12,.27,.24],["c",.39,.42,.99,.57,1.62,.45],["c",1.05,-.21,1.98,-1.02,2.31,-2.01],["c",.48,-1.53,-.48,-2.55,-2.58,-2.67],["c",-.21,0,-.36,-.03,-.42,-.06],["c",-.15,-.09,-.21,-.51,-.06,-.78],["c",.12,-.27,.24,-.33,.6,-.36],["c",.57,-.06,1.11,-.42,1.5,-.99],["c",.48,-.72,.54,-1.59,.18,-2.31],["c",-.12,-.21,-.45,-.54,-.69,-.69],["c",-.33,-.21,-.93,-.45,-1.35,-.51],["l",-.12,-.03],["l",-.06,.48],["c",-.54,2.94,-1.14,6.24,-1.29,6.75],["c",-.33,1.35,-.93,2.61,-1.65,3.6],["c",-.3,.36,-.81,.9,-1.14,1.14],["c",-.3,.24,-.84,.48,-1.14,.57],["c",-.33,.09,-.96,.09,-1.26,.03],["c",-.45,-.12,-.87,-.39,-1.53,-.96],["c",-.24,-.15,-.51,-.39,-.63,-.48],["c",-.3,-.21,-.33,-.33,-.21,-.63],["c",.12,-.18,.27,-.36,.42,-.45],["c",.27,-.12,.36,-.09,.87,.33],["c",.78,.6,1.08,.75,1.65,.72],["c",.45,-.03,.81,-.21,1.17,-.54],["c",.87,-.9,1.38,-2.85,1.38,-5.37],["c",0,-.6,.03,-1.11,.12,-2.04],["c",.06,-.69,.24,-2.01,.33,-2.58],["c",.06,-.24,.06,-.42,.06,-.42],["c",0,0,-.12,.03,-.21,.09],["c",-1.44,.57,-2.16,1.65,-1.74,2.55],["c",.09,.15,.18,.24,.27,.33],["c",.24,.21,.3,.27,.33,.39],["c",.06,.24,0,.63,-.15,.78],["c",-.09,.12,-.54,.21,-.96,.24],["c",-1.02,.03,-2.01,-.48,-2.43,-1.32],["c",-.21,-.45,-.27,-.9,-.15,-1.44],["c",.06,-.27,.21,-.66,.39,-.93],["c",.87,-1.29,3,-2.22,5.64,-2.43],["z"]],w:19.643,h:43.325},"tab.tiny":{d:[["M",16.02,-17.25],["c",.12,-.09,.15,-.09,.27,-.09],["c",.21,.03,.51,.3,.51,.45],["c",0,.06,-.12,.18,-.3,.36],["c",-1.11,1.08,-2.55,1.59,-3.84,1.41],["c",-.15,-.03,-.33,-.06,-.39,-.09],["c",-.06,-.03,-.09,-.03,-.12,-.03],["c",0,0,-.06,.42,-.15,.93],["c",-.33,2.01,-.66,3.69,-.84,4.26],["c",-.42,1.41,-1.23,2.67,-2.16,3.33],["c",-.27,.18,-.75,.42,-.99,.48],["c",-.3,.09,-.72,.09,-1.02,.06],["c",-.45,-.09,-.84,-.33,-1.53,-.9],["c",-.21,-.18,-.51,-.39,-.63,-.48],["c",-.27,-.21,-.3,-.24,-.3,-.36],["c",0,-.12,.09,-.36,.18,-.45],["c",.09,-.09,.27,-.18,.36,-.18],["c",.12,0,.3,.12,.66,.45],["c",.57,.51,.87,.69,1.23,.72],["c",.93,.06,1.68,-.78,1.98,-2.37],["c",.09,-.39,.15,-.75,.18,-1.53],["c",.06,-.99,.24,-2.79,.42,-4.05],["c",.03,-.3,.06,-.57,.06,-.6],["c",0,-.06,-.03,-.09,-.15,-.12],["c",-.9,-.18,-2.13,.06,-2.76,.57],["c",-.36,.3,-.51,.6,-.51,1.02],["c",0,.45,.15,.75,.48,.99],["c",.06,.06,.15,.18,.18,.24],["c",.12,.24,.03,.63,-.15,.69],["c",-.24,.12,-.6,.15,-.9,.15],["c",-.36,-.03,-.57,-.09,-.87,-.24],["c",-.78,-.36,-1.23,-1.11,-1.2,-1.92],["c",.12,-1.53,1.74,-2.49,4.62,-2.7],["c",1.2,-.09,1.47,-.03,3.33,.57],["c",.9,.3,1.14,.36,1.56,.39],["c",.45,0,.93,-.06,1.38,-.21],["c",.51,-.18,.81,-.33,1.41,-.75],["z"],["m",-4.68,10.38],["c",.39,-.06,.84,0,1.2,.15],["c",.24,.12,.36,.21,.45,.36],["l",.09,.09],["l",-.06,1.41],["c",-.09,2.19,-.18,3.96,-.27,5.49],["c",-.03,.78,-.06,1.59,-.06,1.86],["c",0,.42,0,.48,.06,.57],["c",.06,.18,.18,.24,.36,.27],["c",.18,0,.39,-.06,.84,-.27],["c",.45,-.21,.54,-.24,.63,-.18],["c",.12,.12,.15,.54,.03,.69],["c",-.03,.03,-.15,.12,-.27,.18],["c",-.15,.03,-.3,.12,-.36,.15],["c",-.87,.45,-1.02,.51,-1.26,.57],["c",-.33,.09,-.6,.06,-.84,-.06],["c",-.42,-.18,-.63,-.6,-.87,-1.44],["c",-.3,-1.23,-.57,-2.97,-.66,-4.08],["c",0,-.18,-.03,-.3,-.03,-.33],["l",-.06,.06],["c",-.18,.27,-1.11,1.38,-1.68,2.01],["l",-.33,.33],["l",.06,.09],["c",.06,.15,.27,.33,.48,.42],["c",.27,.18,.51,.24,.96,.27],["l",.39,0],["l",.03,.12],["c",.12,.21,.03,.57,-.15,.69],["c",-.03,.03,-.21,.09,-.36,.15],["c",-.27,.06,-.39,.06,-.75,.06],["c",-.48,0,-.75,-.03,-1.08,-.21],["c",-.21,-.12,-.51,-.36,-.57,-.48],["l",-.03,-.09],["l",-.39,.36],["c",-1.47,1.35,-2.49,1.98,-3.42,2.13],["c",-.54,.09,-.96,-.03,-1.62,-.39],["c",-.21,-.15,-.45,-.27,-.54,-.3],["c",-.18,-.09,-.21,-.21,-.12,-.45],["c",.06,-.27,.33,-.48,.54,-.48],["c",.03,0,.27,.09,.48,.21],["c",.48,.24,.69,.27,.99,.27],["c",.6,-.06,1.17,-.42,2.1,-1.35],["c",2.22,-2.22,4.02,-4.98,4.95,-7.59],["c",.21,-.57,.3,-.78,.48,-.93],["c",.15,-.15,.42,-.27,.66,-.33],["z"],["m",-3.06,12.84],["c",.27,-.03,1.68,0,2.01,.03],["c",1.92,.18,3.15,.69,3.63,1.5],["c",.18,.33,.24,.51,.21,.93],["c",0,.45,-.06,.72,-.24,1.11],["c",-.24,.51,-.69,1.02,-1.17,1.35],["c",-.21,.15,-.21,.15,-.12,.18],["c",.72,.15,1.11,.3,1.5,.57],["c",.39,.24,.63,.57,.75,.96],["c",.09,.3,.09,.96,0,1.29],["c",-.15,.57,-.39,1.05,-.78,1.5],["c",-.66,.75,-1.62,1.32,-2.61,1.53],["c",-.27,.06,-.42,.06,-.84,.06],["c",-.48,0,-.57,0,-.81,-.06],["c",-.6,-.18,-1.05,-.42,-1.47,-.81],["c",-.36,-.39,-.42,-.51,-.3,-.75],["c",.12,-.21,.39,-.39,.6,-.39],["c",.09,0,.15,.03,.33,.18],["c",.12,.12,.27,.24,.36,.27],["c",.96,.48,2.46,-.33,2.82,-1.5],["c",.24,-.81,-.03,-1.44,-.69,-1.77],["c",-.39,-.21,-1.02,-.33,-1.53,-.33],["c",-.18,0,-.21,0,-.27,-.09],["c",-.06,-.09,-.06,-.3,-.03,-.48],["c",.06,-.18,.18,-.36,.33,-.36],["c",.39,-.06,.51,-.09,.72,-.18],["c",.69,-.36,1.11,-1.23,.99,-2.01],["c",-.09,-.51,-.42,-.9,-.93,-1.17],["c",-.24,-.12,-.6,-.27,-.87,-.3],["c",-.09,-.03,-.09,-.03,-.12,.12],["c",0,.09,-.21,1.11,-.42,2.25],["c",-.66,3.75,-.72,3.99,-1.26,5.07],["c",-.9,1.89,-2.25,2.85,-3.48,2.61],["c",-.39,-.09,-.69,-.27,-1.38,-.84],["c",-.63,-.51,-.63,-.48,-.63,-.6],["c",0,-.18,.18,-.48,.39,-.57],["c",.21,-.12,.3,-.09,.81,.33],["c",.15,.15,.39,.3,.54,.36],["c",.18,.12,.27,.12,.48,.15],["c",.99,.06,1.71,-.78,2.04,-2.46],["c",.12,-.66,.18,-1.14,.21,-2.22],["c",.03,-1.23,.12,-2.25,.36,-3.63],["c",.03,-.24,.06,-.45,.06,-.48],["c",-.06,-.03,-.66,.27,-.9,.42],["c",-.06,.06,-.21,.18,-.33,.3],["c",-.57,.57,-.6,1.35,-.06,1.74],["c",.18,.12,.24,.24,.21,.51],["c",-.03,.3,-.15,.42,-.57,.48],["c",-1.11,.24,-2.22,-.42,-2.43,-1.38],["c",-.09,-.45,.03,-1.02,.3,-1.47],["c",.18,-.24,.6,-.63,.9,-.84],["c",.9,-.6,2.28,-1.02,3.69,-1.11],["z"]],w:15.709,h:34.656},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.85,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84}};n["noteheads.slash.whole"]={d:[["M",5,-5],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"],["m",0,-2],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",-4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"]],w:10.81,h:15.63},n["noteheads.slash.quarter"]={d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},n["noteheads.harmonic.quarter"]={d:[["M",3.63,-4.02],["c",.09,-.06,.18,-.09,.24,-.03],["c",.03,.03,.87,.93,1.83,2.01],["c",1.5,1.65,1.8,1.98,1.8,2.04],["c",0,.06,-.3,.39,-1.8,2.04],["c",-.96,1.08,-1.8,1.98,-1.83,2.01],["c",-.06,.06,-.15,.03,-.24,-.03],["c",-.12,-.09,-3.54,-3.84,-3.6,-3.93],["c",-.03,-.03,-.03,-.09,-.03,-.15],["c",.03,-.06,3.45,-3.84,3.63,-3.96],["z"]],w:7.5,h:8.165},n["noteheads.triangle.quarter"]={d:[["M",0,4],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9},n["noteheads.sn_do.half"]={d:[["M",4.95,-3.36],["c",.06,-.03,.18,-.06,.24,-.06],["c",.27,0,.21,-.09,2.76,3.06],["c",1.29,1.59,2.37,2.97,2.4,3],["c",.06,.21,0,.48,-.15,.63],["c",-.18,.15,.12,.15,-5.01,.15],["c",-5.13,0,-4.83,0,-5.01,-.15],["c",-.15,-.15,-.21,-.42,-.15,-.63],["c",.03,-.03,1.11,-1.41,2.4,-3],["c",2.04,-2.49,2.4,-2.94,2.52,-3],["z"],["m",1.95,3.54],["c",-.93,-1.14,-1.68,-2.07,-1.71,-2.07],["l",-1.68,2.07],["l",-1.68,2.04],["l",1.68,.03],["l",3.36,0],["l",1.68,-.03],["z"]],w:10.366,h:6.84},n["noteheads.sn_do.quarter"]={d:[["M",4.68,-3.36],["c",.06,-.03,.18,-.06,.27,-.06],["c",.27,0,.18,-.12,2.61,3.06],["c",1.23,1.59,2.25,2.97,2.28,3],["c",.06,.21,0,.48,-.15,.63],["c",-.18,.15,.09,.15,-4.77,.15],["c",-4.83,0,-4.56,0,-4.74,-.15],["c",-.15,-.15,-.21,-.42,-.15,-.63],["c",.03,-.03,1.05,-1.41,2.28,-3],["c",1.98,-2.58,2.25,-2.94,2.37,-3],["z"]],w:9.856,h:6.841},n["noteheads.sn_re.half"]={d:[["M",.33,-3.36],["c",.12,-.06,.33,-.06,4.86,-.06],["c",4.2,0,4.71,0,4.83,.06],["c",.15,.06,.24,.15,.3,.27],["c",.06,.12,.06,.24,.06,1.17],["c",0,.81,0,1.14,-.06,1.38],["c",-.15,1.02,-.69,1.98,-1.53,2.67],["c",-2.04,1.71,-5.16,1.71,-7.2,0],["c",-.75,-.6,-1.26,-1.44,-1.5,-2.37],["c",-.06,-.3,-.06,-.36,-.09,-1.47],["c",0,-.84,0,-1.23,.03,-1.29],["c",.03,-.15,.18,-.3,.3,-.36],["z"],["m",8.88,1.89],["l",0,-.78],["l",-4.02,0],["l",-4.02,0],["l",0,.78],["c",.03,.93,.06,1.11,.3,1.59],["c",.48,1.02,1.5,1.77,2.82,2.04],["c",.45,.09,1.35,.09,1.8,0],["c",1.32,-.27,2.34,-1.02,2.82,-2.04],["c",.24,-.48,.27,-.66,.3,-1.59],["z"]],w:10.38,h:6.833},n["noteheads.sn_re.quarter"]={d:[["M",.36,-3.36],["c",.09,-.06,.3,-.06,4.59,-.06],["c",4.26,0,4.47,0,4.59,.06],["c",.12,.06,.27,.21,.3,.36],["c",.03,.06,.03,.45,.03,1.29],["c",-.03,1.02,-.03,1.2,-.09,1.41],["c",-.18,.9,-.6,1.62,-1.2,2.22],["c",-.42,.42,-.81,.69,-1.29,.93],["c",-.48,.24,-.81,.36,-1.35,.48],["c",-.33,.06,-.45,.06,-.99,.06],["c",-.57,0,-.69,0,-1.02,-.06],["c",-.54,-.12,-.87,-.24,-1.32,-.48],["c",-.51,-.24,-.9,-.51,-1.29,-.9],["c",-.6,-.57,-.99,-1.26,-1.17,-2.01],["c",-.12,-.45,-.15,-.75,-.15,-1.86],["c",0,-.84,0,-1.05,.06,-1.14],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:9.87,h:6.81},n["noteheads.sn_mi.half"]={d:[["M",4.74,-3.39],["c",.09,-.03,.27,-.03,.36,0],["c",.12,.03,4.47,2.88,4.59,2.97],["c",.09,.09,.18,.3,.18,.42],["c",0,.12,-.09,.33,-.18,.42],["c",-.12,.09,-4.47,2.94,-4.59,2.97],["c",-.09,.03,-.24,.03,-.33,0],["c",-.12,-.03,-4.47,-2.88,-4.59,-2.97],["c",-.09,-.09,-.18,-.3,-.18,-.42],["c",0,-.12,.09,-.33,.18,-.42],["c",.09,-.06,4.47,-2.94,4.56,-2.97],["z"],["m",1.35,2.34],["c",-.75,-.48,-1.38,-.87,-1.41,-.9],["c",-.03,0,-.66,.39,-1.41,.9],["l",-1.35,.87],["l",.27,.18],["c",.15,.09,.87,.57,1.59,1.05],["c",.75,.48,1.38,.87,1.41,.9],["l",1.41,-.9],["l",1.35,-.87],["l",-.27,-.18],["c",-.15,-.09,-.87,-.57,-1.59,-1.05],["z"]],w:9.87,h:6.825},n["noteheads.sn_mi.quarter"]={d:[["M",4.74,-3.39],["c",.09,-.03,.27,-.03,.36,0],["c",.12,.03,4.47,2.88,4.59,2.97],["c",.09,.09,.18,.3,.18,.42],["c",0,.12,-.09,.33,-.18,.42],["c",-.12,.09,-4.47,2.94,-4.59,2.97],["c",-.09,.03,-.24,.03,-.33,0],["c",-.12,-.03,-4.47,-2.88,-4.59,-2.97],["c",-.09,-.09,-.18,-.3,-.18,-.42],["c",0,-.12,.09,-.33,.18,-.42],["c",.09,-.06,4.47,-2.94,4.56,-2.97],["z"]],w:9.87,h:6.825},n["noteheads.sn_fa.half"]={d:[["M",.36,-3.36],["c",.09,-.06,.3,-.06,4.83,-.06],["c",4.2,0,4.71,0,4.83,.06],["c",.15,.06,.24,.15,.3,.27],["c",.06,.12,.06,.27,.06,3.09],["c",0,2.82,0,2.97,-.06,3.06],["c",-.12,.3,-.45,.42,-.72,.33],["c",-.09,-.03,-9.33,-5.73,-9.42,-5.79],["c",-.03,-.06,-.09,-.12,-.12,-.21],["c",-.15,-.27,0,-.63,.3,-.75],["z"],["m",8.85,3.12],["l",0,-2.01],["l",-3.27,0],["c",-2.76,0,-3.27,0,-3.21,.03],["c",.12,.12,6.45,3.99,6.45,3.99],["c",.03,0,.03,-.9,.03,-2.01],["z"]],w:10.379,h:6.839},n["noteheads.sn_fa.quarter"]={d:[["M",.36,-3.36],["c",.09,-.06,.3,-.06,4.56,-.06],["c",3.96,0,4.47,0,4.59,.06],["c",.15,.06,.24,.15,.3,.27],["c",.06,.12,.06,.27,.06,3.09],["c",0,2.82,0,2.97,-.06,3.06],["c",-.12,.3,-.45,.42,-.72,.33],["c",-.09,-.03,-8.79,-5.7,-8.91,-5.79],["c",-.03,-.06,-.09,-.12,-.12,-.21],["c",-.15,-.27,0,-.63,.3,-.75],["z"]],w:9.869,h:6.839},n["noteheads.sn_fa_l.half"]={d:[["M",.36,-3.36],["c",.09,-.06,.3,-.06,4.83,-.06],["c",4.2,0,4.71,0,4.83,.06],["c",.15,.06,.24,.15,.3,.27],["c",.06,.12,.06,.27,.06,3.09],["c",0,2.82,0,2.97,-.06,3.06],["c",-.12,.3,-.45,.42,-.72,.33],["c",-.09,-.03,-9.33,-5.73,-9.42,-5.79],["c",-.03,-.06,-.09,-.12,-.12,-.21],["c",-.15,-.27,0,-.63,.3,-.75],["z"],["m",8.85,3.12],["l",0,-2.01],["l",-3.27,0],["c",-2.76,0,-3.27,0,-3.21,.03],["c",.12,.12,6.45,3.99,6.45,3.99],["c",.03,0,.03,-.9,.03,-2.01],["z"]],w:10.379,h:6.839},n["noteheads.sn_fa_r.half"]={d:[["M",.36,-3.36],["c",.12,-.06,.3,-.09,.42,-.03],["c",.09,.03,9.33,5.73,9.42,5.79],["c",.09,.09,.18,.3,.18,.42],["c",0,.15,-.09,.36,-.18,.45],["c",-.18,.15,.12,.15,-5.01,.15],["c",-4.2,0,-4.71,0,-4.83,-.06],["c",-.15,-.06,-.24,-.15,-.3,-.3],["c",-.06,-.09,-.06,-.24,-.06,-3.06],["c",0,-2.58,0,-2.97,.06,-3.06],["c",.06,-.15,.15,-.24,.3,-.3],["z"],["m",4.05,3.57],["l",-3.21,-1.98],["c",-.03,0,-.03,.9,-.03,2.01],["l",0,2.01],["l",3.27,0],["c",2.76,0,3.27,0,3.21,-.03],["c",-.03,-.03,-1.5,-.93,-3.24,-2.01],["z"]],w:10.38,h:6.843},n["noteheads.sn_fa_l.quarter"]={d:[["M",.36,-3.36],["c",.09,-.06,.3,-.06,4.56,-.06],["c",3.96,0,4.47,0,4.59,.06],["c",.15,.06,.24,.15,.3,.27],["c",.06,.12,.06,.27,.06,3.09],["c",0,2.82,0,2.97,-.06,3.06],["c",-.12,.3,-.45,.42,-.72,.33],["c",-.09,-.03,-8.79,-5.7,-8.91,-5.79],["c",-.03,-.06,-.09,-.12,-.12,-.21],["c",-.15,-.27,0,-.63,.3,-.75],["z"]],w:9.869,h:6.839},n["noteheads.sn_fa_r.quarter"]={d:[["M",.36,-3.36],["c",.12,-.06,.3,-.09,.42,-.03],["c",.09,.03,8.79,5.7,8.91,5.79],["c",.09,.09,.18,.3,.18,.42],["c",0,.15,-.09,.36,-.18,.45],["c",-.18,.15,.09,.15,-4.77,.15],["c",-3.93,0,-4.44,0,-4.56,-.06],["c",-.15,-.06,-.24,-.15,-.3,-.3],["c",-.06,-.09,-.06,-.24,-.06,-3.06],["c",0,-2.58,0,-2.97,.06,-3.06],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:9.87,h:6.843},n["noteheads.sn_la.half"]={d:[["M",.36,-3.36],["c",.09,-.06,.3,-.06,4.83,-.06],["c",4.2,0,4.71,0,4.83,.06],["c",.15,.06,.24,.15,.3,.27],["c",.06,.12,.06,.27,.06,3.09],["c",0,2.82,0,2.97,-.06,3.06],["c",-.06,.15,-.15,.24,-.3,.3],["c",-.12,.06,-.63,.06,-4.83,.06],["c",-4.2,0,-4.71,0,-4.83,-.06],["c",-.15,-.06,-.24,-.15,-.3,-.3],["c",-.06,-.09,-.06,-.24,-.06,-3.06],["c",0,-2.58,0,-2.97,.06,-3.06],["c",.06,-.15,.15,-.24,.3,-.3],["z"],["m",8.85,3.36],["l",0,-2.25],["l",-4.02,0],["l",-4.02,0],["l",0,2.25],["l",0,2.25],["l",4.02,0],["l",4.02,0],["l",0,-2.25],["z"]],w:10.38,h:6.84},n["noteheads.sn_la.quarter"]={d:[["M",.36,-3.36],["c",.09,-.06,.3,-.06,4.56,-.06],["c",3.96,0,4.47,0,4.59,.06],["c",.15,.06,.24,.15,.3,.27],["c",.06,.12,.06,.27,.06,3.09],["c",0,2.82,0,2.97,-.06,3.06],["c",-.06,.15,-.15,.24,-.3,.3],["c",-.12,.06,-.63,.06,-4.59,.06],["c",-3.93,0,-4.44,0,-4.56,-.06],["c",-.15,-.06,-.24,-.15,-.3,-.3],["c",-.06,-.09,-.06,-.24,-.06,-3.06],["c",0,-2.58,0,-2.97,.06,-3.06],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:9.87,h:6.84},n["noteheads.sn_ti.half"]={d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84},n["noteheads.sn_ti.quarter"]={d:[["M",4.17,-3.36],["c",1.23,-.15,2.52,.06,3.63,.63],["c",.6,.3,1.05,.66,1.56,1.14],["c",.48,.51,.6,.75,.45,1.05],["c",-.03,.06,-.57,.54,-2.28,1.95],["c",-1.23,1.05,-2.28,1.92,-2.34,1.95],["c",-.09,.03,-.18,.06,-.27,.06],["c",-.06,0,-.15,-.03,-.24,-.06],["c",-.06,-.03,-1.11,-.9,-2.34,-1.95],["c",-1.71,-1.41,-2.25,-1.89,-2.28,-1.95],["c",-.15,-.3,-.03,-.54,.45,-1.05],["c",.99,-.99,2.28,-1.62,3.66,-1.77],["z"]],w:9.871,h:6.78};var a=function e(t){for(var $=[],r=0,n=t.length;r<n;r++){$[r]=[];for(var a=0,s=t[r].length;a<s;a++)$[r][a]=t[r][a]}return $},s=function e(t,$,r){for(var n=0,a=t.length;n<a;n++){var s,i,o=t[n];for(s=1,i=o.length;s<i;s++)o[s]*=s%2?$:r}};e.exports={printSymbol:function e(t,$,r,s,i){if(!n[r])return null;var o=a(n[r].d);o[0][1]+=t,o[0][2]+=$;for(var c="",l=0;l<o.length;l++)c+=o[l].join(" ");return i.path=c,s.path(i)},getPathForSymbol:function e(t,$,r,i,o){if(i=i||1,o=o||1,!n[r])return null;var c=a(n[r].d);return(1!==i||1!==o)&&s(c,i,o),c[0][1]+=t,c[0][2]+=$,c},getSymbolWidth:function e(t){return n[t]?n[t].w:0},symbolHeightInPitches:function e(t){return(n[t]?n[t].h:0)/r.STEP},getSymbolAlign:function e(t){return"scripts"===t.substring(0,7)&&"scripts.roll"!==t?"center":"left"},getYCorr:function e(t){switch(t){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"flags.d64th":case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return -2;case"timesig.common":case"timesig.cut":default:return 0;case"flags.d32nd":case"rests.half":case"rests.8th":case"rests.quarter":case"rests.16th":case"rests.32nd":case"rests.64th":case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return -1;case"flags.u32nd":case"rests.whole":case"scripts.dfermata":return 1;case"flags.u64th":return 3;case"f":case"m":case"p":case"s":case"z":return -4}},setSymbol:function e(t,$){n[t]=$}}},"./src/write/creation/translate-chord.js":function(e){function t(e){switch(e){case"B#":return"H#";case"B♯":return"H♯";case"B":return"H";case"Bb":case"B♭":return"B"}return e}e.exports=function e($,r,n){for(var a=$.split("\n"),s=0;s<a.length;s++){var i=a[s].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/([ABCDEFG][#b♯♭]?))?/);if(i){var o=i[1]||"",c=i[2]||"",l=i[4]||"";n&&(o=t(o),l=t(l));var _=r?"\x03":"",h=l?"/"+l:"";a[s]=[o,c,h].join(_)}}return a.join("\n")}},"./src/write/draw/absolute.js":function(e,t,$){var r=$(/*! ./tempo */ "./src/write/draw/tempo.js"),n=$(/*! ./relative */ "./src/write/draw/relative.js"),a=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),s=$(/*! ../helpers/set-class */ "./src/write/helpers/set-class.js"),i=$(/*! ./group-elements */ "./src/write/draw/group-elements.js");e.exports=function e(t,$,o,c,l){if(!$.invisible){var _=$.children.length>0&&"TempoElement"===$.children[0].type;$.elemset=[],i.beginGroup(t.paper,t.controller);for(var h=0;h<$.children.length;h++){var u=$.children[h];"TempoElement"===u.type?r(t,u):n(t,u,o)}var d=$.type;if(("note"===$.type||"rest"===$.type)&&($.counters=t.controller.classes.getCurrent(),d+=" d"+Math.round(1e3*$.durationClass)/1e3,d=d.replace(/\./g,"-"),$.abcelem.pitches))for(var f=0;f<$.abcelem.pitches.length;f++)d+=" p"+$.abcelem.pitches[f].pitch;var p=i.endGroup(d,$.type);if(p){if($.cloned&&($.cloned.overrideClasses=p.className.baseVal),$.overrideClasses){var m=p.classList&&p.classList.length>0?p.classList[0]+" ":"";p.setAttribute("class",m+$.overrideClasses)}if(_)$.startChar=$.abcelem.startChar,$.endChar=$.abcelem.endChar,c.add($,p,!1,l);else{$.elemset.push(p);var g=!1;("note"===$.type||"tabNumber"===$.type)&&(g=!0),c.add($,p,g,l)}}else $.elemset.length>0&&c.add($,$.elemset[0],"note"===$.type,l);if($.klass&&s($.elemset,"mark","","#00ff00"),$.hint&&s($.elemset,"abcjs-hint","",null),$.abcelem.abselem=$,$.heads&&$.heads.length>0){$.notePositions=[];for(var v=0;v<$.heads.length;v++)$.notePositions.push({x:$.heads[v].x+$.heads[v].w/2,y:l.zero-$.heads[v].pitch*a.STEP})}}}},"./src/write/draw/beam.js":function(e,t,$){var r=$(/*! ./print-path */ "./src/write/draw/print-path.js"),n=$(/*! ./round-number */ "./src/write/draw/round-number.js");function a(e,t,$,r,a,s){$=n(e.calcY($)),a=n(e.calcY(a)),t=n(t),r=n(r);var i=n($+s),o=n(a+s);return"M"+t+" "+$+" L"+r+" "+a+"L"+r+" "+o+" L"+t+" "+i+"z"}function s(e,t,$,r,n){return(n-$)/(r-t)}function i(e,t,$,r){return t+(r-e)*$}e.exports=function e(t,$){if(0!==$.beams.length){for(var n="",s=0;s<$.beams.length;s++){var i=$.beams[s];if(i.split){for(var o,c,l,_,h,u=(o=t,c=i.startX,l=i.startY,_=i.endX,h=i.endY,(h-l)/(_-c)),d=[],f=0;f<i.split.length;f+=2)d.push([i.split[f],i.split[f+1]]);for(f=0;f<d.length;f++){var p,m,g,v,b,y,k,w,x=(p=i.startX,m=i.startY,g=u,v=d[f][0],m+(v-p)*g),C=(b=i.startX,y=i.startY,k=u,w=d[f][1],y+(w-b)*k);n+=a(t,d[f][0],x,d[f][1],C,i.dy)}}else n+=a(t,i.startX,i.startY,i.endX,i.endY,i.dy)}var T=("abcjs-d"+$.duration).replace(/\./g,"-"),S=t.controller.classes.generate("beam-elem "+T);return[r(t,{path:n,stroke:"none",fill:t.foregroundColor,class:S})]}}},"./src/write/draw/brace.js":function(e,t,$){var r=$(/*! ./sprintf */ "./src/write/draw/sprintf.js"),n=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),a=$(/*! ./text */ "./src/write/draw/text.js");function s(e,t,$,n){return r("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+$[0],t+n[0],e+$[1],t+n[1],e+$[2],t+n[2],e+$[3],t+n[3],e+$[4],t+n[4],e+$[5],t+n[5],e+$[6],t+n[6])}var i=function e(t,$,i,o,c,l,_){if(l){t.paper.openGroup({klass:t.controller.classes.generate("staff-extra voice-name"),"data-name":c});var h,u,d,f,p,m,g,v,b,y,k,w,x,C,T,S,E,A,B,N=i+(o-i)/2;N-=t.controller.getTextSize.baselineToCenter(l,"voicefont","staff-extra voice-name",0,1),a(t,{x:t.padding.left,y:N,text:l,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return"brace"===c?h=(u=t,d=$,f=i,p=o,m=c,g=p-f,v=s(d,f,[7.5,-8,21,0,18.5,-10.5,7.5],[0,g/5.5,g/3.14,g/2,g/2.93,g/4.88,0]),v+=s(d,f,[0,17.5,-7.5,6.6,-5,20,0],[g/2,g/1.46,g/1.22,g,g/1.19,g/1.42,g/2]),u.paper.path({path:v,stroke:u.foregroundColor,fill:u.foregroundColor,class:u.controller.classes.generate(m),"data-name":m})):"bracket"===c&&(h=(b=t,y=$,k=i,w=o,x=c,y+=n.STEP,C=.75*n.STEP,T=.75*n.STEP,S=w-k,E=r("M %f %f l %f %f l %f %f l %f %f z",y,k-T,0,S+2*T,C,0,0,-(S+2*T)),A=2*n.STEP,E+=r("M %f %f q %f %f %f %f q %f %f %f %f z",y+C,k-T,.6*A,.2*(B=n.STEP),A,-B,-(.1*A),.3*B,-A,B+n.STEP),E+=r("M %f %f q %f %f %f %f q %f %f %f %f z",y+C,k+T+S,.6*A,-(.2*B),A,B,-(.1*A),-(.3*B),-A,-B-n.STEP),b.paper.path({path:E,stroke:b.foregroundColor,fill:b.foregroundColor,class:b.controller.classes.generate(x),"data-name":x}))),l&&(h=t.paper.closeGroup()),_.wrapSvgEl({el_type:c,startChar:-1,endChar:-1},h),h};e.exports=function e(t,$,r){var a=$.startVoice.staff.absoluteY-10*n.STEP;return $.endVoice&&$.endVoice.staff?$.endY=$.endVoice.staff.absoluteY-2*n.STEP:$.lastContinuedVoice&&$.lastContinuedVoice.staff?$.endY=$.lastContinuedVoice.staff.absoluteY-2*n.STEP:$.endY=$.startVoice.staff.absoluteY-2*n.STEP,i(t,$.x,a,$.endY,$.type,$.header,r)}},"./src/write/draw/crescendo.js":function(e,t,$){var r=$(/*! ./sprintf */ "./src/write/draw/sprintf.js"),n=$(/*! ./print-path */ "./src/write/draw/print-path.js"),a=$(/*! ./round-number */ "./src/write/draw/round-number.js"),s=function e(t,$,s,i,o,c,l){$=a($),s=a(s),i=a(i),o=a(o),c=a(c),l=a(l);var _=r("M %f %f L %f %f M %f %f L %f %f",c,$,l,s,c,i,l,o);return n(t,{path:_,highlight:"stroke",stroke:t.foregroundColor,class:t.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})};e.exports=function e(t,$,r){void 0===$.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var n,a=t.calcY($.pitch)+4,i=$.anchor1?$.anchor1.x:0,o=$.anchor2?$.anchor2.x:800;return n="<"===$.dir?s(t,a+4,a,a+4,a+8,i,o):s(t,a,a+4,a+8,a+4,i,o),r.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},n),[n]}},"./src/write/draw/debug-box.js":function(e){e.exports=function e(t,$,r){var n=t.paper.rectBeneath($);return r&&t.paper.text(r,{x:0,y:$.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),n}},"./src/write/draw/draw.js":function(e,t,$){var r=$(/*! ./staff-group */ "./src/write/draw/staff-group.js"),n=$(/*! ./set-paper-size */ "./src/write/draw/set-paper-size.js"),a=$(/*! ./non-music */ "./src/write/draw/non-music.js"),s=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),i=$(/*! ./selectables */ "./src/write/draw/selectables.js");function o(e,t,$,n){r(e,t,$,n);var a=t.height*s.STEP;return e.y+=a,t}function c(e,t,$,r){var n,a=-($.staffs[$.staffs.length-1].bottom-2),i=(r.staffs[0].top-10+a)*s.STEP;i<t&&e.moveY(t-i)}e.exports=function e(t,$,r,s,l,_,h,u,d,f){var p=new i(t.paper,u,d);t.paper.openGroup(),t.moveY(t.padding.top),a(t,r.topText,p),t.paper.closeGroup(),t.moveY(t.spacing.music);for(var m=[],g=0;g<r.lines.length;g++){$.incrLine();var v=r.lines[g];if(v.staff){t.paper.openGroup(),v.vskip&&t.moveY(v.vskip),m.length>=1&&c(t,t.spacing.staffSeparation,m[m.length-1],v.staffGroup);var b=o(t,v.staffGroup,p,g);b.line=f+g,m.push(b),t.paper.closeGroup()}else v.nonMusic&&(t.paper.openGroup(),a(t,v.nonMusic,p),t.paper.closeGroup())}return $.reset(),r.bottomText&&r.bottomText.rows&&r.bottomText.rows.length>0&&(t.paper.openGroup(),t.moveY(24),a(t,r.bottomText,p),t.paper.closeGroup()),n(t,l,h,_),{staffgroups:m,selectables:p.getElements()}}},"./src/write/draw/dynamics.js":function(e,t,$){var r=$(/*! ./print-symbol */ "./src/write/draw/print-symbol.js");e.exports=function e(t,$,n){void 0===$.pitch&&window.console.error("Dynamic Element y-coordinate not set.");var a=r(t,$.anchor.x,$.pitch,$.dec,{scalex:1,scaley:1,klass:t.controller.classes.generate("decoration dynamics"),fill:t.foregroundColor,stroke:"none",name:"dynamics"});return n.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1,decoration:$.dec},a),[a]}},"./src/write/draw/ending.js":function(e,t,$){var r=$(/*! ./sprintf */ "./src/write/draw/sprintf.js"),n=$(/*! ./text */ "./src/write/draw/text.js"),a=$(/*! ./print-path */ "./src/write/draw/print-path.js"),s=$(/*! ./round-number */ "./src/write/draw/round-number.js");e.exports=function e(t,$,i,o,c){void 0===$.pitch&&window.console.error("Ending Element y-coordinate not set.");var l=s(t.calcY($.pitch)),_="";$.anchor1&&(i=s($.anchor1.x+$.anchor1.w),_+=r("M %f %f L %f %f ",i,l,i,s(l+20))),$.anchor2&&(o=s($.anchor2.x),_+=r("M %f %f L %f %f ",o,l,o,s(l+20))),_+=r("M %f %f L %f %f ",i,l,o,l),t.paper.openGroup({klass:t.controller.classes.generate("ending"),"data-name":"ending"}),a(t,{path:_,stroke:t.foregroundColor,fill:t.foregroundColor,"data-name":"line"}),$.anchor1&&n(t,{x:s(i+5),y:s(t.calcY($.pitch-.5)),text:$.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:$.text});var h=t.paper.closeGroup();return c.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},h),[h]}},"./src/write/draw/glissando.js":function(e,t,$){var r=$(/*! ./sprintf */ "./src/write/draw/sprintf.js"),n=$(/*! ./print-path */ "./src/write/draw/print-path.js"),a=$(/*! ./round-number */ "./src/write/draw/round-number.js");function s(e,t,$,r){return(r-t)/($-e)}function i(e,t,$){return a(e+$*t)}var o=[[3.5,-4.8]],c=[[1.5,-1],[.3,-.3],[-3.5,3.8]],l=[[-1.5,2]],_=[[3,4],[3,-4]],h=[[-3,4],[-3,-4]];function u(e,t){for(var $,r,n,s="",i=0;i<e.length;i++)s+="l"+e[i][0]+" "+($=e[i][1],r=t,a($+(n=e[i][0])*r));return s}var d=function e(t,$,a,s,i){var d,f=r("M %f %f",$,a);for(f+=u(o,i),d=0;d<s;d++)f+=u(_,i);for(f+=u(c,i),d=0;d<s;d++)f+=u(h,i);return n(t,{path:f+=u(l,i)+"z",highlight:"stroke",stroke:t.foregroundColor,class:t.controller.classes.generate("decoration"),"data-name":"glissando"})};e.exports=function e(t,$,r){$.anchor1&&$.anchor2&&$.anchor1.heads&&$.anchor2.heads&&0!==$.anchor1.heads.length&&0!==$.anchor2.heads.length||window.console.error("Glissando Element not set.");var n,s,i,o,c,l,_,h,u,f,p,m,g,v,b,y,k,w=t.calcY($.anchor1.heads[0].pitch),x=t.calcY($.anchor2.heads[0].pitch),C=$.anchor1.x+$.anchor1.w/2,T=$.anchor2.x+$.anchor2.w/2,S=(n=C,s=w,i=T,o=x,c=i-n,l=o-s,Math.sqrt(c*c+l*l)),E=$.anchor1.w/2+4,A=$.anchor2.w/2+4,B=(_=C,h=w,u=T,f=x,(f-h)/(u-_)),N=(p=w,m=B,g=E,a(p+g*m));v=x,b=B,y=-A,a(v+y*b);var P=(k=S-E-A,Math.max(2,Math.floor((k-10)/6))),M=d(t,C+E,N,P,B);return r.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},M),[M]}},"./src/write/draw/group-elements.js":function(e,t,$){var r=$(/*! ./round-number */ "./src/write/draw/round-number.js");function n(){this.ingroup=!1}n.prototype.beginGroup=function(e,t){this.paper=e,this.controller=t,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},n.prototype.isInGroup=function(){return this.ingroup},n.prototype.addPath=function(e){if(0!==(e=e||[]).length){e[0][0]="m",e[0][1]=r(e[0][1]-this.lastM[0]),e[0][2]=r(e[0][2]-this.lastM[1]),this.lastM[0]+=e[0][1],this.lastM[1]+=e[0][2],this.path.push(e[0]);for(var t=1,$=e.length;t<$;t++)"m"===e[t][0]&&(this.lastM[0]+=e[t][1],this.lastM[1]+=e[t][2]),this.path.push(e[t])}},n.prototype.endGroup=function(e,t){this.ingroup=!1;for(var $="",r=0;r<this.path.length;r++)$+=this.path[r].join(" ");this.path=[];var n=this.paper.closeGroup();return n&&(n.setAttribute("class",this.controller.classes.generate(e)),n.setAttribute("fill",this.controller.renderer.foregroundColor),n.setAttribute("stroke","none"),n.setAttribute("data-name",t)),n};var a=new n;e.exports=a},"./src/write/draw/non-music.js":function(e,t,$){var r=$(/*! ./separator */ "./src/write/draw/separator.js"),n=$(/*! ./text */ "./src/write/draw/text.js");e.exports=function e(t,$,a){for(var s=0;s<$.rows.length;s++){var i=$.rows[s];if(i.absmove)t.absolutemoveY(i.absmove);else if(i.move)t.moveY(i.move);else if(i.text){var o=n(t,{x:i.left?i.left:0,y:t.y,text:i.text,type:i.font,klass:i.klass,name:i.name,anchor:i.anchor});i.absElemType&&a.wrapSvgEl({el_type:i.absElemType,name:i.name,startChar:i.startChar,endChar:i.endChar,text:i.text},o)}else if(i.separator)r(t,i.separator);else if(i.startGroup)t.paper.openGroup({klass:i.klass,"data-name":i.name});else if(i.endGroup){var c=t.paper.closeGroup();i.absElemType&&a.wrapSvgEl({el_type:i.absElemType,name:i.name,startChar:i.startChar,endChar:i.endChar,text:""},c)}}}},"./src/write/draw/print-line.js":function(e,t,$){var r=$(/*! ./sprintf */ "./src/write/draw/sprintf.js"),n=$(/*! ./round-number */ "./src/write/draw/round-number.js");e.exports=function e(t,$,a,s,i,o,c){var l=t.foregroundColor;$=n($),a=n(a);var _=n(s-c),h=n(s+c);if(t.firefox112){var u={x1:$,x2:a,y1:s+=c/2,y2:s,stroke:t.foregroundColor,"stroke-width":Math.abs(2*c)};return i&&(u.class=i),o&&(u["data-name"]=o),t.paper.lineToBack(u)}var d={path:r("M %f %f L %f %f L %f %f L %f %f z",$,_,a,_,a,h,$,h),stroke:"none",fill:l};return o&&(d["data-name"]=o),i&&(d.class=i),t.paper.pathToBack(d)}},"./src/write/draw/print-path.js":function(e){e.exports=function e(t,$,r){return t.paper.path($)}},"./src/write/draw/print-stem.js":function(e,t,$){var r=$(/*! ./group-elements */ "./src/write/draw/group-elements.js"),n=$(/*! ./round-number */ "./src/write/draw/round-number.js");e.exports=function e(t,$,a,s,i,o,c){if(a<0||s<i){var l=n(i);i=n(s),s=l}else s=n(s),i=n(i);$=n($);var _=n($+a);if(t.firefox112){var h={x1:$+=a/2,x2:$,y1:s,y2:i,stroke:t.foregroundColor,"stroke-width":Math.abs(a)};return o&&(h.class=o),c&&(h["data-name"]=c),t.paper.lineToBack(h)}for(var u=[["M",$,s],["L",$,i],["L",_,i],["L",_,s],["z"]],h={path:""},d=0;d<u.length;d++)h.path+=u[d].join(" ");return o&&(h.class=o),c&&(h["data-name"]=c),r.isInGroup()||(h.stroke="none",h.fill=t.foregroundColor),t.paper.pathToBack(h)}},"./src/write/draw/print-symbol.js":function(e,t,$){var r=$(/*! ./text */ "./src/write/draw/text.js"),n=$(/*! ../creation/glyphs */ "./src/write/creation/glyphs.js"),a=$(/*! ./group-elements */ "./src/write/draw/group-elements.js");function s(e,t,$){var r=$;return"f"===e&&"f"===t&&(r=2*r/3),"p"===e&&"p"===t&&(r=5*r/6),"f"===e&&"z"===t&&(r=5*r/8),r}e.exports=function e(t,$,i,o,c){if(!o)return null;if(o.length>1&&0>o.indexOf(".")){var l,_,h=a.isInGroup()?"":c.klass;t.paper.openGroup({"data-name":c.name,klass:h});for(var u=0,d=0;d<o.length;d++){var f=o[d];_=n.getYCorr(f),(l=n.printSymbol($+u,t.calcY(i+_),f,t.paper,{stroke:c.stroke,fill:c.fill}))?d<o.length-1&&(u+=s(f,o[d+1],n.getSymbolWidth(f))):r(t,{x:$,y:t.y,text:"no symbol:"+o,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}return t.paper.closeGroup()}return(_=n.getYCorr(o),l=a.isInGroup()?n.printSymbol($,t.calcY(i+_),o,t.paper,{"data-name":c.name}):n.printSymbol($,t.calcY(i+_),o,t.paper,{klass:c.klass,stroke:c.stroke,fill:c.fill,"data-name":c.name}))?l:(r(t,{x:$,y:t.y,text:"no symbol:"+o,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}},"./src/write/draw/relative.js":function(e,t,$){var r=$(/*! ./text */ "./src/write/draw/text.js"),n=$(/*! ./print-stem */ "./src/write/draw/print-stem.js"),a=$(/*! ./staff-line */ "./src/write/draw/staff-line.js"),s=$(/*! ./print-symbol */ "./src/write/draw/print-symbol.js");e.exports=function e(t,$,i){void 0===$.pitch&&window.console.error($.type+" Relative Element y-coordinate not set.");var o=t.calcY($.pitch);switch($.type){case"symbol":if(null===$.c)return null;var c="symbol";$.klass&&(c+=" "+$.klass),$.graphelem=s(t,$.x,$.pitch,$.c,{scalex:$.scalex,scaley:$.scaley,klass:t.controller.classes.generate(c),name:$.name});break;case"debug":$.graphelem=r(t,{x:$.x,y:t.calcY(15),text:""+$.c,type:"debugfont",klass:t.controller.classes.generate("debug-msg"),anchor:"start",centerVertically:!1,dim:$.dim},!1);break;case"tabNumber":var l="tabnumberfont",_="tab-number";$.isGrace&&(l="tabgracefont",o+=2.5,_="tab-grace"),$.graphelem=r(t,{x:$.x,y:o,text:""+$.c,type:l,klass:t.controller.classes.generate(_),anchor:"middle",centerVertically:!1,dim:$.dim,cursor:"default"},!1);break;case"barNumber":$.graphelem=r(t,{x:$.x,y:o,text:""+$.c,type:"measurefont",klass:t.controller.classes.generate("bar-number"),anchor:"middle",dim:$.dim,name:"bar-number"},!0);break;case"lyric":$.graphelem=r(t,{x:$.x,y:o,text:$.c,type:"vocalfont",klass:t.controller.classes.generate("lyric"),anchor:"middle",dim:$.dim,name:"lyric"},!1);break;case"chord":$.graphelem=r(t,{x:$.x,y:o,text:$.c,type:"gchordfont",klass:t.controller.classes.generate("chord"),anchor:"middle",dim:$.dim,lane:$.getLane(),name:"chord"},!1);break;case"decoration":$.graphelem=r(t,{x:$.x,y:o+6,text:$.c,type:"annotationfont",klass:t.controller.classes.generate("annotation"),anchor:$.anchor,centerVertically:!0,dim:$.dim},!1);break;case"text":$.graphelem=r(t,{x:$.x,y:o,text:$.c,type:"annotationfont",klass:t.controller.classes.generate("annotation"),anchor:"start",centerVertically:$.centerVertically,dim:$.dim,lane:$.getLane(),name:"annotation"},!1);break;case"multimeasure-text":$.graphelem=r(t,{x:$.x+$.w/2,y:o,text:$.c,type:"tempofont",klass:t.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:$.dim},!1);break;case"part":$.graphelem=r(t,{x:$.x,y:o,text:$.c,type:"partsfont",klass:t.controller.classes.generate("part"),anchor:"start",dim:$.dim,name:$.c},!0);break;case"bar":$.graphelem=n(t,$.x,$.linewidth+t.lineThickness,o,i||t.calcY($.pitch2),null,"bar");break;case"stem":var h=$.linewidth>0?$.linewidth+t.lineThickness:$.linewidth-t.lineThickness;$.graphelem=n(t,$.x,h,o,t.calcY($.pitch2),"abcjs-stem","stem");break;case"ledger":$.graphelem=a(t,$.x,$.x+$.w,$.pitch,"abcjs-ledger","ledger",.35+t.lineThickness)}return 1!==$.scalex&&$.graphelem&&function e(t,$,r,n,a,s){t.setAttributeOnElement($,{style:"transform:scale("+r+","+n+");transform-origin:"+a+"px "+s+"px;"})}(t.paper,$.graphelem,$.scalex,$.scaley,$.x,o),$.graphelem}},"./src/write/draw/round-number.js":function(e){e.exports=function e(t){return parseFloat(t.toFixed(2))}},"./src/write/draw/selectables.js":function(e,t,$){var r=$(/*! ../interactive/highlight */ "./src/write/interactive/highlight.js"),n=$(/*! ../interactive/unhighlight */ "./src/write/interactive/unhighlight.js");function a(e,t,$){this.elements=[],this.paper=e,this.tuneNumber=$,this.selectTypes=t}a.prototype.getElements=function(){return this.elements},a.prototype.add=function(e,t,$,r){if(this.canSelect(e)){n=void 0===this.selectTypes?{selectable:!1,"data-index":this.elements.length}:{selectable:!0,tabindex:0,"data-index":this.elements.length},this.paper.setAttributeOnElement(t,n);var n,a={absEl:e,svgEl:t,isDraggable:$};void 0!==r&&(a.staffPos=r),this.elements.push(a)}},a.prototype.canSelect=function(e){return!1!==this.selectTypes&&!!e&&!!e.abcelem&&(!0===this.selectTypes||(void 0===this.selectTypes?"note"===e.abcelem.el_type||"tabNumber"===e.abcelem.el_type:this.selectTypes.indexOf(e.abcelem.el_type)>=0))},a.prototype.wrapSvgEl=function(e,t){var $={tuneNumber:this.tuneNumber,abcelem:e,elemset:[t],highlight:r,unhighlight:n};this.add($,t,!1)},e.exports=a},"./src/write/draw/separator.js":function(e){e.exports=function e(t,$){var r=Math.round(t.y),n=(t.controller.width-$)/2,a=n+$;t.paper.pathToBack({path:"M "+n+" "+r+" L "+a+" "+r+" L "+a+" "+(r+1)+" L "+n+" "+(r+1)+" L "+n+" "+r+" z",stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:t.controller.classes.generate("defined-text")})}},"./src/write/draw/set-paper-size.js":function(e){e.exports=function e(t,$,r,n){var a=($+t.padding.left+t.padding.right)*r,s=(t.y+t.padding.bottom)*r;if(t.isPrint&&(s=Math.max(s,1056)),""!==t.ariaLabel){var i="Sheet Music";t.abctune&&t.abctune.metaText&&t.abctune.metaText.title&&(i+=' for "'+t.abctune.metaText.title+'"'),t.paper.setTitle(i);var o=t.ariaLabel?t.ariaLabel:i;t.paper.setAttribute("aria-label",o)}t.paper.insertStyles(".abcjs-dragging-in-progress text, .abcjs-dragging-in-progress tspan {-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}");var c={overflow:"hidden"};"resize"===n?t.paper.setResponsiveWidth(a,s):(c.width="",c.height=s+"px",r<1?(c.width=a+"px",t.paper.setSize(a/r,s/r)):t.paper.setSize(a,s)),t.paper.setScale(r),t.paper.setParentStyles(c)}},"./src/write/draw/sprintf.js":function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var $=function e(){for(var $,r,n,a,s,i=0,o=arguments[i++],c=[];o;){if(r=/^[^\x25]+/.exec(o))c.push(r[0]);else if(r=/^\x25{2}/.exec(o))c.push("%");else if(r=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(o)){if(null==($=arguments[r[1]||i++])||void 0==$)throw"Too few arguments.";if(/[^s]/.test(r[7])&&"number"!=typeof $)throw"Expecting number but found "+t($);switch(r[7]){case"b":$=$.toString(2);break;case"c":$=String.fromCharCode($);break;case"d":$=parseInt($);break;case"e":$=r[6]?$.toExponential(r[6]):$.toExponential();break;case"f":$=r[6]?parseFloat($).toFixed(r[6]):parseFloat($);break;case"o":$=$.toString(8);break;case"s":$=($=String($))&&r[6]?$.substring(0,r[6]):$;break;case"u":$=Math.abs($);break;case"x":$=$.toString(16);break;case"X":$=$.toString(16).toUpperCase()}$=/[def]/.test(r[7])&&r[2]&&$>0?"+"+$:$,a=r[3]?"0"==r[3]?"0":r[3][1]:" ",s=r[5]-String($).length,n=r[5]?str_repeat(a,s):"",c.push(r[4]?$+n:n+$)}else throw"Huh ?!";o=o.substring(r[0].length)}return c.join("")};e.exports=$},"./src/write/draw/staff-group.js":function(e,t,$){var r=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),n=$(/*! ./brace */ "./src/write/draw/brace.js"),a=$(/*! ./voice */ "./src/write/draw/voice.js"),s=$(/*! ./staff */ "./src/write/draw/staff.js"),i=$(/*! ./debug-box */ "./src/write/draw/debug-box.js"),o=$(/*! ./print-stem */ "./src/write/draw/print-stem.js"),c=$(/*! ./non-music */ "./src/write/draw/non-music.js");function l(e,t,$,a,s){if($)for(var i=0;i<$.length;i++)$[i].isStartVoice(a)&&($[i].startY=t-10*r.STEP,$[i].elemset=n(e,$[i],s))}function _(e,t,$){for(var n=0;n<$.length;n++)for(var a=t[$[n]].children,s=0;s<a.length;s++){var o=a[s],c=o.getFixedCoords();if(!o.invisible&&void 0!==c.t&&void 0!==c.b){var l=(c.t-c.b)*r.STEP;i(e,{x:c.x,y:e.calcY(c.t),width:c.w,height:l,fill:"#88e888","fill-opacity":.4,stroke:"#4aa93d","stroke-opacity":.8});for(var _=0;_<o.children.length;_++){var h=o.children[_],u=h.getChordDim();if(u){var d=e.calcY(h.pitch);d+=h.dim.font.size*h.getLane(),i(e,{x:u.left,y:d,width:u.right-u.left,height:h.dim.font.size,fill:"none",stroke:"#4aa93d","stroke-opacity":.8})}}}}}e.exports=function e(t,$,n,h){for(var u,d,f,p=t.y,m=0;m<$.staffs.length;m++){var g=$.staffs[m];t.moveY(r.STEP,g.top),g.absoluteY=t.y,t.showDebug&&(t.showDebug.indexOf("box")>=0&&g.voices&&_(t,$.voices,g.voices),t.showDebug.indexOf("grid")>=0&&(t.paper.dottedLine({x1:t.padding.left,x2:t.padding.left+t.controller.width,y1:p,y2:p,stroke:"#0000ff"}),i(t,{x:t.padding.left,y:t.calcY(g.originalTop),width:t.controller.width,height:t.calcY(g.originalBottom)-t.calcY(g.originalTop),fill:t.foregroundColor,stroke:t.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),u=0,E(g,"chordHeightAbove"),E(g,"chordHeightBelow"),E(g,"dynamicHeightAbove"),E(g,"dynamicHeightBelow"),E(g,"endingHeightAbove"),E(g,"lyricHeightAbove"),E(g,"lyricHeightBelow"),E(g,"partHeightAbove"),E(g,"tempoHeightAbove"),E(g,"volumeHeightAbove"),E(g,"volumeHeightBelow"))),t.moveY(r.STEP,-g.bottom),t.showDebug&&t.showDebug.indexOf("grid")>=0&&t.paper.dottedLine({x1:t.padding.left,x2:t.padding.left+t.controller.width,y1:t.y,y2:t.y,stroke:"#0000aa"})}for(var v=2,b=0,y=0;y<$.voices.length;y++){var k=$.voices[y].staff,w=$.voices[y].tabNameInfos;if(t.y=k.absoluteY,t.controller.classes.incrVoice(),!$.voices[y].duplicate){if(d||(d=t.calcY(10)),f=t.calcY(v),0!==k.lines){k.linePitch&&(v=k.linePitch),t.controller.classes.newMeasure();var x=s(t,$.startx,$.w,k.lines,k.linePitch,.35);f=x[1],k.bottomLine=f,k.topLine=x[0],k.hasTab&&(b=k.topLine),k.hasStaff&&(b=k.hasStaff.topLine,$.voices[y].barto=!0,$.voices[y].topLine=d)}l(t,k.absoluteY,$.brace,y,n),l(t,k.absoluteY,$.bracket,y,n)}a(t,$.voices[y],b,n,{top:p,zero:t.y,height:$.height*r.STEP});var C=0;if(w){var T={rows:[]};T.rows.push({absmove:f+2}),T.rows.push({left:$.startx+8,text:w.name,font:"tablabelfont",klass:"text instrument-name",anchor:"start"}),T.rows.push({move:w.textSize.height}),c(t,T),C=w.textSize.height}t.controller.classes.newMeasure(),$.voices[y].duplicate||(b=t.calcY(2+C))}t.controller.classes.newMeasure();var S=$.staffs.length;function E(e,$){var n=["rgb(207,27,36)","rgb(168,214,80)","rgb(110,161,224)","rgb(191,119,218)","rgb(195,30,151)","rgb(31,170,177)","rgb(220,166,142)"];if(e.positionY&&e.positionY[$]){var a=e.specialY[$]*r.STEP;"chordHeightAbove"===$&&e.specialY.chordLines&&e.specialY.chordLines.above&&(a*=e.specialY.chordLines.above),"chordHeightBelow"===$&&e.specialY.chordLines&&e.specialY.chordLines.below&&(a*=e.specialY.chordLines.below),i(t,{x:t.padding.left,y:t.calcY(e.positionY[$]),width:t.controller.width,height:a,fill:n[u],stroke:n[u],"fill-opacity":.4,"stroke-opacity":.4},$.substr(0,4)),(u+=1)>6&&(u=0)}}S>1&&(d=$.staffs[0].topLine,f=$.staffs[S-1].bottomLine,o(t,$.startx,.6,d,f,null)),t.y=p}},"./src/write/draw/staff-line.js":function(e,t,$){var r=$(/*! ./print-line */ "./src/write/draw/print-line.js");e.exports=function e(t,$,n,a,s,i,o){var c=t.calcY(a);return r(t,$,n,c,s,i,o)}},"./src/write/draw/staff.js":function(e,t,$){var r=$(/*! ./staff-line */ "./src/write/draw/staff-line.js");e.exports=function e(t,$,n,a,s,i){var o="abcjs-top-line",c=2;s&&(c=s),t.paper.openGroup({prepend:!0,klass:t.controller.classes.generate("abcjs-staff")});var l=0,_=0;if(1===a)r(t,$,n,6,o,null,i+t.lineThickness),l=t.calcY(10),_=t.calcY(2);else for(var h=a-1;h>=0;h--){var u=(h+1)*c;_=t.calcY(u),0===l&&(l=_),r(t,$,n,u,o,null,i+t.lineThickness),o=void 0}return t.paper.closeGroup(),[l,_]}},"./src/write/draw/tempo.js":function(e,t,$){var r=$(/*! ./relative */ "./src/write/draw/relative.js"),n=$(/*! ./text */ "./src/write/draw/text.js");e.exports=function e(t,$){var a,s,i=$.x;void 0===$.pitch&&window.console.error("Tempo Element y-coordinate not set."),$.tempo.el_type="tempo";var o=t.calcY($.pitch)+2;if($.tempo.preString){a=n(t,{x:i,y:o,text:$.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,"dominant-baseline":"ideographic",name:"pre"},!0);var c=(s=t.controller.getTextSize.calc($.tempo.preString,"tempofont","tempo",a)).width,l=c/$.tempo.preString.length;i+=c+l}if($.note){$.note.setX(i);for(var _=0;_<$.note.children.length;_++)r(t,$.note.children[_],i);i+=$.note.w+5;var h="= "+$.tempo.bpm;a=n(t,{x:i,y:o,text:h,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"beats"});var u=(s=t.controller.getTextSize.calc(h,"tempofont","tempo",a)).width,d=u/h.length;i+=u+d}$.tempo.postString&&n(t,{x:i,y:o,text:$.tempo.postString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"post"},!0)}},"./src/write/draw/text.js":function(e,t,$){var r=$(/*! ./round-number */ "./src/write/draw/round-number.js");e.exports=function e(t,$,n){var a,s=$.y;if($.lane){var i=.25*$.dim.font.size;s+=($.dim.font.size+i)*$.lane}$.dim?(a=$.dim).attr.class=$.klass:a=t.controller.getFontAndAttr.calc($.type,$.klass),$.anchor&&(a.attr["text-anchor"]=$.anchor),a.attr.x=$.x,a.attr.y=s,$.centerVertically||(a.attr.y+=a.font.size),"debugfont"===$.type&&(console.log("Debug msg: "+$.text),a.attr.stroke="#ff0000"),$.cursor&&(a.attr.cursor=$.cursor);var o=$.text.replace(/\n\n/g,"\n \n");o=o.replace(/^\n/,"\xa0\n"),a.font.box&&(n||t.paper.openGroup({klass:a.attr.class,fill:t.foregroundColor,"data-name":$.name}),"end"===a.attr["text-anchor"]?a.attr.x-=a.font.padding:"start"===a.attr["text-anchor"]&&(a.attr.x+=a.font.padding),a.attr.y+=a.font.padding,delete a.attr.class),$.noClass&&delete a.attr.class,a.attr.x=r(a.attr.x),a.attr.y=r(a.attr.y),$.name&&(a.attr["data-name"]=$.name);var c=t.paper.text(o,a.attr);if(a.font.box){var l=c.getBBox(),_=0;"middle"===a.attr["text-anchor"]?_=l.width/2+a.font.padding:"end"===a.attr["text-anchor"]&&(_=l.width+2*a.font.padding);var h=0;$.centerVertically&&(h=l.height-a.font.padding),t.paper.rect({"data-name":"box",x:Math.round($.x-_),y:Math.round(s-h),width:Math.round(l.width+2*a.font.padding),height:Math.round(l.height+2*a.font.padding)}),n||(c=t.paper.closeGroup())}return c}},"./src/write/draw/tie.js":function(e,t,$){var r=$(/*! ./sprintf */ "./src/write/draw/sprintf.js"),n=$(/*! ./round-number */ "./src/write/draw/round-number.js"),a=function e(t,$,r){t.anchor1&&t.anchor2?t.anchor1.pitch===t.anchor2.pitch&&0===t.internalNotes.length?t.isTie=!0:t.isTie=!1:t.isTie=!0,t.isTie?(t.calcTieDirection(),t.calcX($,r),t.calcTieY()):(t.calcSlurDirection(),t.calcX($,r),t.calcSlurY()),t.avoidCollisionAbove()},s=function e(t,$,a,s,i,o,c,l,_){var h,u=l?1.2:1.5;$=n($+6),a=n(a+4),s+=o?u:-u,i+=o?u:-u;var d=n(t.calcY(s)),f=n(t.calcY(i)),p=a-$,m=f-d,g=Math.sqrt(p*p+m*m),v=p/g,b=m/g,y=g/3.5,k=(o?-1:1)*Math.min(l?10:25,Math.max(4,y)),w=n($+y*v-k*b),x=n(d+y*b+k*v),C=n(a-y*v-k*b),T=n(f-y*b+k*v);if(c?c+=" slur":c="slur",c+=l?" tie":" legato",_){c+=" dotted";var S=r("M %f %f C %f %f %f %f %f %f",$,d,w,x,C,T,a,f);h=t.paper.path({path:S,stroke:t.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:t.controller.classes.generate(c),"data-name":l?"tie":"slur"})}else{var E=r("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",$,d,w,x,C,T,a,f,n(C-2*b),n(T+2*v),n(w-2*b),n(x+2*v),$,d);h=t.paper.path({path:E,stroke:"none",fill:t.foregroundColor,class:t.controller.classes.generate(c),"data-name":l?"tie":"slur"})}return h};e.exports=function e(t,$,r,n,i){a($,r,n);var o="";$.anchor1?o+="abcjs-start-m"+$.anchor1.parent.counters.measure+"-n"+$.anchor1.parent.counters.note:o+="abcjs-start-edge",$.anchor2?o+=" abcjs-end-m"+$.anchor2.parent.counters.measure+"-n"+$.anchor2.parent.counters.note:o+=" abcjs-end-edge",$.hint&&(o="abcjs-hint");var c=$.fixedY?1.5:0,l=s(t,$.startX,$.endX,$.startY+c,$.endY+c,$.above,o,$.isTie,$.dotted),_=-1;$.anchor1&&!$.isTie&&(_=$.anchor1.parent.abcelem.startChar-1);var h=-1;return $.anchor2&&!$.isTie&&(h=$.anchor2.parent.abcelem.endChar+1),i.wrapSvgEl({el_type:"slur",startChar:_,endChar:h},l),[l]}},"./src/write/draw/triplet.js":function(e,t,$){var r=$(/*! ./sprintf */ "./src/write/draw/sprintf.js"),n=$(/*! ./text */ "./src/write/draw/text.js"),a=$(/*! ./print-path */ "./src/write/draw/print-path.js"),s=$(/*! ./round-number */ "./src/write/draw/round-number.js");function i(e,t,$,n){return r("M %f %f L %f %f",s(e),s(t),s($),s(n))}e.exports=function e(t,$,r){t.paper.openGroup({klass:t.controller.classes.generate("triplet "+$.durationClass),fill:t.foregroundColor,"data-name":"triplet"}),$.hasBeam||(s=t,o=$.anchor1.x,c=$.startNote,l=$.anchor2.x+$.anchor2.w,_=$.endNote,c=s.calcY(c),_=s.calcY(_),h="",h+=i(o,c,o,c+5),h+=i(l,_,l,_+5),u=o+(l-o)/2,d=(_-c)/(l-o),f=u-8,p=c+(f-o)*d,h+=i(o,c,f,p),m=u+8,g=c+(m-o)*d,a(s,{path:h+=i(m,g,l,_),stroke:s.foregroundColor,"data-name":"triplet-bracket"})),n(t,{x:$.xTextPos,y:t.calcY($.yTextPos-1),text:""+$.number,type:"tripletfont",anchor:"middle",centerVertically:!0,noClass:!0,name:""+$.number},!0);var s,o,c,l,_,h,u,d,f,p,m,g,v=t.paper.closeGroup();return r.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},v),v}},"./src/write/draw/voice.js":function(e,t,$){var r=$(/*! ./glissando */ "./src/write/draw/glissando.js"),n=$(/*! ./crescendo */ "./src/write/draw/crescendo.js"),a=$(/*! ./dynamics */ "./src/write/draw/dynamics.js"),s=$(/*! ./triplet */ "./src/write/draw/triplet.js"),i=$(/*! ./ending */ "./src/write/draw/ending.js"),o=$(/*! ./tie */ "./src/write/draw/tie.js"),c=$(/*! ./beam */ "./src/write/draw/beam.js"),l=$(/*! ./text */ "./src/write/draw/text.js"),_=$(/*! ./absolute */ "./src/write/draw/absolute.js");function h(e){return"rest"===e.type&&!!e.abcelem&&!!e.abcelem.rest&&"spacer"!==e.abcelem.rest.type}e.exports=function e(t,$,u,d,f){var p,m,g=$.w-1;t.staffbottom=$.staff.bottom;var v=t.foregroundColor;if($.color&&(t.foregroundColor=$.color),$.header){var b=l(t,{x:t.padding.left,y:t.calcY($.headerPosition),text:$.header,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0,name:"voice-name"},!0);d.wrapSvgEl({el_type:"voiceName",startChar:-1,endChar:-1,text:$.header},b)}var y=!1;for(p=0;p<$.children.length;p++){("note"===(m=$.children[p]).type||"rest"===m.type)&&(y=!0);var k=!1;"staff-extra"===m.type||t.controller.classes.isInMeasure()||(t.controller.classes.startMeasure(),k=!0),$.staff.isTabStaff&&(m.invisible=!1,"bar"==m.type&&m.abcelem.lastBar&&(u=$.topLine)),_(t,m,$.barto||p===$.children.length-1?u:0,d,f),("note"===m.type||h(m))&&t.controller.classes.incrNote(),"bar"===m.type&&!k&&y&&t.controller.classes.incrMeasure()}for(t.controller.classes.startMeasure(),p=0;p<$.beams.length;p++){var w=$.beams[p];"bar"===w?t.controller.classes.incrMeasure():c(t,w,d)}for(t.controller.classes.startMeasure(),p=0;p<$.otherchildren.length;p++)if("bar"===(m=$.otherchildren[p]))t.controller.classes.incrMeasure();else switch(m.type){case"GlissandoElem":m.elemset=r(t,m,d);break;case"CrescendoElem":m.elemset=n(t,m,d);break;case"DynamicDecoration":m.elemset=a(t,m,d);break;case"TripletElem":s(t,m,d);break;case"EndingElem":m.elemset=i(t,m,$.startx+10,g,d);break;case"TieElem":m.elemset=o(t,m,$.startx+10,g,d);break;default:console.log(m),_(t,m,$.startx+10,g,d,f)}t.foregroundColor=v}},"./src/write/engraver-controller.js":function(e,t,$){var r=$(/*! ./helpers/spacing */ "./src/write/helpers/spacing.js"),n=$(/*! ./creation/abstract-engraver */ "./src/write/creation/abstract-engraver.js"),a=$(/*! ./renderer */ "./src/write/renderer.js"),s=$(/*! ./creation/elements/free-text */ "./src/write/creation/elements/free-text.js"),i=$(/*! ./creation/elements/separator */ "./src/write/creation/elements/separator.js"),o=$(/*! ./creation/elements/subtitle */ "./src/write/creation/elements/subtitle.js"),c=$(/*! ./creation/elements/top-text */ "./src/write/creation/elements/top-text.js"),l=$(/*! ./creation/elements/bottom-text */ "./src/write/creation/elements/bottom-text.js"),_=$(/*! ./interactive/selection */ "./src/write/interactive/selection.js"),h=$(/*! ./layout/layout */ "./src/write/layout/layout.js"),u=$(/*! ./helpers/classes */ "./src/write/helpers/classes.js"),d=$(/*! ./helpers/get-font-and-attr */ "./src/write/helpers/get-font-and-attr.js"),f=$(/*! ./helpers/get-text-size */ "./src/write/helpers/get-text-size.js"),p=$(/*! ./draw/draw */ "./src/write/draw/draw.js"),m=$(/*! ../api/abc_tablatures */ "./src/api/abc_tablatures.js"),g=function e(t,$){$=$||{},this.oneSvgPerLine=$.oneSvgPerLine,this.selectionColor=$.selectionColor,this.dragColor=$.dragColor?$.dragColor:$.selectionColor,this.dragging=!!$.dragging,this.selectTypes=$.selectTypes,this.responsive=$.responsive,this.space=3*r.SPACE,this.initialClef=$.initialClef,this.expandToWidest=!!$.expandToWidest,this.scale=$.scale?parseFloat($.scale):0,this.classes=new u({shouldAddClasses:$.add_classes}),this.scale>.1||(this.scale=void 0),$.staffwidth?(this.staffwidthScreen=$.staffwidth,this.staffwidthPrint=$.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],$.clickListener&&this.addSelectListener($.clickListener),this.renderer=new a(t),this.renderer.setPaddingOverride($),$.showDebug&&(this.renderer.showDebug=$.showDebug),$.jazzchords&&(this.jazzchords=$.jazzchords),$.germanAlphabet&&(this.germanAlphabet=$.germanAlphabet),$.lineThickness&&(this.lineThickness=$.lineThickness),void 0!=$.tabPadding&&(this.tabPadding=$.tabPadding),this.renderer.controller=this,this.renderer.foregroundColor=$.foregroundColor?$.foregroundColor:"currentColor",void 0!==$.ariaLabel&&(this.renderer.ariaLabel=$.ariaLabel),this.renderer.minPadding=$.minPadding?$.minPadding:0,this.reset()};function v(e){for(var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),$=0;$<e.attributes.length;$++){var r=e.attributes[$];"height"!==r.name&&"aria-label"!=r.name&&t.setAttribute(r.name,r.value)}return t}g.prototype.reset=function(){this.selected=[],this.staffgroups=[],this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset(),this.dragTarget=null,this.dragIndex=-1,this.dragMouseStart={x:-1,y:-1},this.dragYStep=0,this.lineThickness&&this.renderer.setLineThickness(this.lineThickness)},g.prototype.engraveABC=function(e,t,$){void 0===e[0]&&(e=[e]),this.reset();for(var r=0;r<e.length;r++)void 0===t&&(t=r),this.getFontAndAttr=new d(e[r].formatting,this.classes),this.getTextSize=new f(this.getFontAndAttr,this.renderer.paper),this.engraveTune(e[r],t,$)},g.prototype.adjustNonScaledItems=function(e){this.width/=e,this.renderer.adjustNonScaledItems(e)},g.prototype.getMeasureWidths=function(e){this.reset(),this.getFontAndAttr=new d(e.formatting,this.classes),this.getTextSize=new f(this.getFontAndAttr,this.renderer.paper),this.setupTune(e,0),this.constructTuneElements(e),h(this.renderer,e,0,this.space);for(var t,$=[],r=!0,n=0;n<e.lines.length;n++){var a=e.lines[n];if(a.staff){if(r&&(t={left:0,measureWidths:[],total:0},$.push(t),r=!1),a.staffGroup.voices.length>0)for(var s=a.staffGroup.voices[0],i=!1,o=0,c=0;c<s.children.length;c++){var l=s.children[c];i||l.isClef||l.isKeySig||(i=!0,t.left=l.x,o=l.x),"bar"===l.type&&(t.measureWidths.push(l.x-o),t.total+=l.x-o,o=l.x)}}else r=!0}return $},g.prototype.setupTune=function(e,t){this.classes.reset(),void 0!==e.formatting.jazzchords&&(this.jazzchords=e.formatting.jazzchords),this.renderer.newTune(e),this.engraver=new n(this.getTextSize,t,{bagpipes:e.formatting.bagpipes,flatbeams:e.formatting.flatbeams,graceSlurs:!1!==e.formatting.graceSlurs,percmap:e.formatting.percmap,initialClef:this.initialClef,jazzchords:this.jazzchords,germanAlphabet:this.germanAlphabet}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),this.engraver.measureLength=e.getMeterFraction().num/e.getMeterFraction().den,e.formatting.staffwidth?this.width=1.33*e.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var $=e.formatting.scale?e.formatting.scale:this.scale;return"resize"===this.responsive&&($=void 0),void 0===$&&($=this.renderer.isPrint?.75:1),this.adjustNonScaledItems($),$},g.prototype.constructTuneElements=function(e){e.topText=new c(e.metaText,e.metaTextInfo,e.formatting,e.lines,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.getTextSize);var t,$,r=!1,n=!1;for(t=0;t<e.lines.length;t++)if(($=e.lines[t]).staff)n=!0,$.staffGroup=this.engraver.createABCLine($.staff,r?null:e.metaText.tempo,t),r=!0;else if($.subtitle){if(n){var a=this.width/2+this.renderer.padding.left;$.nonMusic=new o(this.renderer.spacing.subtitle,e.formatting,$.subtitle,a,this.renderer.padding.left,this.getTextSize)}}else void 0!==$.text?(n=!0,$.nonMusic=new s($.text,$.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize)):void 0!==$.separator&&$.separator.lineLength&&(n=!0,$.nonMusic=new i($.separator.spaceAbove,$.separator.lineLength,$.separator.spaceBelow));e.bottomText=new l(e.metaText,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.getTextSize)},g.prototype.engraveTune=function(e,t,$){var r=this.setupTune(e,t);this.constructTuneElements(e);var n=!0;e.formatting.noexpandtowidest&&(n=!1);var a=h(this.renderer,e,this.width,this.space,n);if(n&&a>this.width+1&&(e.topText=new c(e.metaText,e.metaTextInfo,e.formatting,e.lines,a,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.getTextSize),e.lines&&e.lines.length>0))for(var s=e.lines.length,i=0;i<s;++i){var o=e.lines[i];if(o.nonMusic&&o.nonMusic.rows&&o.nonMusic.rows.length>0)for(var l=o.nonMusic.rows.length,u=0;u<l;++u){var d=o.nonMusic.rows[u];d.left&&(o.subtitle?gForceLeftJustifyTitles?d.left=this.renderer.padding.left:d.left=a/2+this.renderer.padding.left:o.text&&o.text.length>0&&o.text[0].center&&(d.left=a/2+this.renderer.padding.left))}}e.tablatures&&m.layoutTablatures(this.renderer,e);var f=p(this.renderer,this.classes,e,this.width,a,this.responsive,r,this.selectTypes,t,$);if(this.staffgroups=f.staffgroups,this.selectables=f.selectables,this.oneSvgPerLine){var g=this.renderer.paper.svg.parentNode;this.svgs=function e(t,$,r,n){r||(r="Untitled");var a=$.querySelector("svg");"resize"===n&&($.style.paddingBottom="");for(var s=a.querySelector("style"),i="resize"===n?a.viewBox.baseVal.width:a.getAttribute("width"),o=$.querySelectorAll("svg > g"),c=0,l=[],_=0;_<o.length;_++){var h=o[_],u=h.getBBox(),d=u.y-c,f=u.height+d,p=document.createElement("div"),m="overflow: hidden;";"resize"!==n&&(m+="height:"+f+"px;"),p.setAttribute("style",m);var g=v(a),b='Sheet Music for "'+r+'" section '+(_+1);g.setAttribute("aria-label",b),"resize"!==n&&g.setAttribute("height",f),"resize"===n&&(g.style.position="");var y=t.firefox112?f+1:f;g.setAttribute("viewBox","0 "+c+" "+i+" "+y),g.appendChild(s.cloneNode(!0));var k=document.createElement("title");k.innerText=b,g.appendChild(k),g.appendChild(h),p.appendChild(g),l.push(g),$.appendChild(p),c=u.y+u.height}return $.removeChild(a),l}(this.renderer,g,e.metaText.title,this.responsive)}else this.svgs=[this.renderer.paper.svg];_(this,this.svgs)},g.prototype.getDim=function(e){if(!e.dim){var t=e.svgEl.getBBox();e.dim={left:Math.round(t.x),top:Math.round(t.y),right:Math.round(t.x+t.width),bottom:Math.round(t.y+t.height)}}return e.dim},g.prototype.addSelectListener=function(e){this.listeners[this.listeners.length]=e},e.exports=g},"./src/write/helpers/classes.js":function(e){var t=function e(t){this.shouldAddClasses=t.shouldAddClasses,this.reset()};t.prototype.reset=function(){this.lineNumber=null,this.voiceNumber=null,this.measureNumber=null,this.measureTotalPerLine=[],this.noteNumber=null},t.prototype.incrLine=function(){null===this.lineNumber?this.lineNumber=0:this.lineNumber++,this.voiceNumber=null,this.measureNumber=null,this.noteNumber=null},t.prototype.incrVoice=function(){null===this.voiceNumber?this.voiceNumber=0:this.voiceNumber++,this.measureNumber=null,this.noteNumber=null},t.prototype.isInMeasure=function(){return null!==this.measureNumber},t.prototype.newMeasure=function(){this.measureNumber&&(this.measureTotalPerLine[this.lineNumber]=this.measureNumber),this.measureNumber=null,this.noteNumber=null},t.prototype.startMeasure=function(){this.measureNumber=0,this.noteNumber=0},t.prototype.incrMeasure=function(){this.measureNumber++,this.noteNumber=0},t.prototype.incrNote=function(){this.noteNumber++},t.prototype.measureTotal=function(){for(var e=0,t=0;t<this.lineNumber;t++)e+=this.measureTotalPerLine[t]?this.measureTotalPerLine[t]:0;return this.measureNumber&&(e+=this.measureNumber),e},t.prototype.getCurrent=function(e){return{line:this.lineNumber,measure:this.measureNumber,measureTotal:this.measureTotal(),voice:this.voiceNumber,note:this.noteNumber}},t.prototype.generate=function(e){if(!this.shouldAddClasses)return"";var t=[];if(e&&e.length>0&&t.push(e),"tab-number"===e)return t.join(" ");if("text instrument-name"===e)return"abcjs-text abcjs-instrument-name";if(null!==this.lineNumber&&t.push("l"+this.lineNumber),null!==this.measureNumber&&t.push("m"+this.measureNumber),null!==this.measureNumber&&t.push("mm"+this.measureTotal()),null!==this.voiceNumber&&t.push("v"+this.voiceNumber),e&&(e.indexOf("note")>=0||e.indexOf("rest")>=0||e.indexOf("lyric")>=0)&&null!==this.noteNumber&&t.push("n"+this.noteNumber),t.length>0){t=(t=t.join(" ")).split(" ");for(var $=0;$<t.length;$++)0!==t[$].indexOf("abcjs-")&&t[$].length>0&&(t[$]="abcjs-"+t[$])}return t.join(" ")},e.exports=t},"./src/write/helpers/get-font-and-attr.js":function(e){var t=function e(t,$){this.formatting=t,this.classes=$};t.prototype.updateFonts=function(e){e.gchordfont&&(this.formatting.gchordfont=e.gchordfont),e.tripletfont&&(this.formatting.tripletfont=e.tripletfont),e.annotationfont&&(this.formatting.annotationfont=e.annotationfont),e.vocalfont&&(this.formatting.vocalfont=e.vocalfont)},t.prototype.calc=function(e,t){$="string"==typeof e?($=this.formatting[e])?{face:$.face,size:Math.round(4*$.size/3),decoration:$.decoration,style:$.style,weight:$.weight,box:$.box}:{face:"Arial",size:Math.round(16),decoration:"underline",style:"normal",weight:"normal"}:{face:e.face,size:Math.round(4*e.size/3),decoration:e.decoration,style:e.style,weight:e.weight,box:e.box};var $,r=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;$.padding=$.size*r;var n={"font-size":$.size,"font-style":$.style,"font-family":$.face,"font-weight":$.weight,"text-decoration":$.decoration,class:this.classes.generate(t)};return{font:$,attr:n}},e.exports=t},"./src/write/helpers/get-text-size.js":function(e){var t=function e(t,$){this.getFontAndAttr=t,this.svg=$};t.prototype.updateFonts=function(e){this.getFontAndAttr.updateFonts(e)},t.prototype.attr=function(e,t){return this.getFontAndAttr.calc(e,t)},t.prototype.calc=function(e,t,$,r){n="string"==typeof t?this.attr(t,$):{font:{face:t.face,size:t.size,decoration:t.decoration,style:t.style,weight:t.weight},attr:{"font-size":t.size,"font-style":t.style,"font-family":t.face,"font-weight":t.weight,"text-decoration":t.decoration,class:this.getFontAndAttr.classes.generate($)}};var n,a=this.svg.getTextSize(e,n.attr,r);return n.font.box?{height:a.height+4*n.font.padding,width:a.width+4*n.font.padding}:a},t.prototype.baselineToCenter=function(e,t,$,r,n){var a=this.calc(e,t,$).height,s=this.attr(t,$).font.size;return .5*a+(n-r-2)*s},e.exports=t},"./src/write/helpers/set-class.js":function(e){var t=function e(t,$,r,n){if(t)for(var a=0;a<t.length;a++){var s=t[a],i=s.getAttribute("highlight");i||(i="fill"),s.setAttribute(i,n);var o=s.getAttribute("class");o||(o=""),o=(o=o.replace(r,"")).replace($,""),$.length>0&&(o.length>0&&" "!==o[o.length-1]&&(o+=" "),o+=$),s.setAttribute("class",o)}};e.exports=t},"./src/write/helpers/spacing.js":function(e){var t={};t.FONTEM=360,t.FONTSIZE=30,t.STEP=93*t.FONTSIZE/720,t.SPACE=10,t.TOPNOTE=15,t.STAVEHEIGHT=100,t.INDENT=50,e.exports=t},"./src/write/interactive/highlight.js":function(e,t,$){var r=$(/*! ../helpers/set-class */ "./src/write/helpers/set-class.js"),n=function e(t,$){void 0===t&&(t="abcjs-note_selected"),void 0===$&&($="#ff0000"),r(this.elemset,t,"",$)};e.exports=n},"./src/write/interactive/selection.js":function(e,t,$){var r=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js");function n(e){"keyboard"===this.dragMechanism&&0!==this.dragYStep&&this.dragTarget&&u.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,e),this.dragYStep=0}function a(e){switch(e.keyCode){case 38:case 40:e.preventDefault()}}function s(e){var t=!1,$=e.target.dataset.index;switch(e.keyCode){case 13:case 32:t=!0,this.dragTarget=this.selectables[$],this.dragIndex=$,this.dragMechanism="keyboard",_.bind(this)(e);break;case 38:t=!0,this.dragTarget=this.selectables[$],this.dragIndex=$,this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep--,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*r.STEP+")"));break;case 40:t=!0,this.dragTarget=this.selectables[$],this.dragIndex=$,this.dragMechanism="keyboard",this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep++,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*r.STEP+")"));break;case 9:0!==this.dragYStep&&_.bind(this)(e)}t&&e.preventDefault()}function i(e,t){var $,r,n,a,s,i,o,c,l,_,h,u,d,f=function e(t,$){if(!$)return -1;for(var r=0;r<t.length;r++)if($.dataset.index===t[r].svgEl.dataset.index)return r;return -1}(e.selectables,function e(t){if(!t)return null;if("svg"===t.tagName)return t;if(!t.getAttribute)return null;for(var $=t.getAttribute("selectable");!$;)$=!t.parentElement||"svg"===(t=t.parentElement).tagName||t.getAttribute("selectable");return t}(t.target));if(f>=0){h=(d=($=e.selectables[f].svgEl.getBBox(),r=t,n=e.scale,$.x<=r.offsetX&&$.x+$.width>=r.offsetX&&$.y<=r.offsetY&&$.y+$.height>=r.offsetY?[r.offsetX,r.offsetY]:3>Math.abs(r.layerY/n-r.offsetY)?[r.offsetX,r.offsetY]:[r.layerX,r.layerY]))[0],u=d[1]}else f=function e(t,$,r){for(var n=9999999,a=-1,s=0;s<t.selectables.length&&n>0;s++){var i=t.selectables[s];if(t.getDim(i),i.dim.left<$&&i.dim.right>$&&i.dim.top<r&&i.dim.bottom>r)a=s,n=0;else if(i.dim.top<r&&i.dim.bottom>r){var o=Math.min(Math.abs(i.dim.left-$),Math.abs(i.dim.right-$));o<n&&(n=o,a=s)}else if(i.dim.left<$&&i.dim.right>$){var c=Math.min(Math.abs(i.dim.top-r),Math.abs(i.dim.bottom-r));c<n&&(n=c,a=s)}else{var l=Math.abs($-i.dim.left)>Math.abs($-i.dim.right)?Math.abs($-i.dim.right):Math.abs($-i.dim.left),_=Math.abs(r-i.dim.top)>Math.abs(r-i.dim.bottom)?Math.abs(r-i.dim.bottom):Math.abs(r-i.dim.top),h=Math.sqrt(l*l+_*_);h<n&&(n=h,a=s)}}return a>=0&&n<=12?a:-1}(e,h=(d=(o=1,c=1,l=(a=t).target.closest("svg"),_=0,l&&l.viewBox&&l.viewBox.baseVal&&(0!==l.viewBox.baseVal.width&&(o=l.viewBox.baseVal.width/l.clientWidth),0!==l.viewBox.baseVal.height&&(c=l.viewBox.baseVal.height/l.clientHeight),_=l.viewBox.baseVal.y),a.target&&"svg"===a.target.tagName?(s=a.offsetX,i=a.offsetY):(s=a.layerX,i=a.layerY),[s*=o,(i*=c)+_]))[0],u=d[1]);return{x:h,y:u,clickedOn:f}}function o(e){if(e&&e.target&&e.touches&&!(e.touches.length<1)){var t=e.target.getBoundingClientRect(),$=e.touches[0].pageX-t.left,r=e.touches[0].pageY-t.top;e.touches[0].offsetX=$,e.touches[0].offsetY=r,e.touches[0].layerX=e.touches[0].pageX,e.touches[0].layerY=e.touches[0].pageY}}function c(e){var t=e;"touchstart"===e.type&&(o(e),e.touches.length>0&&(t=e.touches[0]));var $=i(this,t);$.clickedOn>=0&&("touchstart"===e.type||0===e.button)&&this.selectables[$.clickedOn]&&(this.dragTarget=this.selectables[$.clickedOn],this.dragIndex=$.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:$.x,y:$.y},this.dragging&&this.dragTarget.isDraggable&&(function e(t,$){if(t){var r=m(t.svg);r[$]=!0,g(t.svg,r)}}(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function l(e){var t=e;if("touchmove"===e.type&&(o(e),e.touches.length>0&&(t=e.touches[0])),this.lastTouchMove=e,this.dragTarget&&this.dragging&&this.dragTarget.isDraggable&&"mouse"===this.dragMechanism&&this.dragMouseStart){var $=Math.round((i(this,t).y-this.dragMouseStart.y)/r.STEP);$!==this.dragYStep&&(this.dragYStep=$,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+$*r.STEP+")"))}}function _(e){var t=e;"touchend"===e.type&&this.lastTouchMove&&(o(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(t=this.lastTouchMove.touches[0])),this.dragTarget&&(f.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),u.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,t),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),function e(t,$){if(t){var r=m(t.svg);delete r[$],g(t.svg,r)}}(this.renderer.svg,"abcjs-dragging-in-progress"))}function h(e){e>=0&&e<this.selectables.length&&(this.dragTarget=this.selectables[e],this.dragIndex=e,this.dragMechanism="keyboard",_.bind(this)({target:this.dragTarget.svgEl}))}function u(e,t,$,r,n){var a=[];if(e.absEl.elemset){for(var s={},i=0;i<e.absEl.elemset.length;i++){var o=e.absEl.elemset[i];if(o)for(var c=o.getAttribute("class").split(" "),l=0;l<c.length;l++)s[c[l]]=!0}for(var _=0;_<Object.keys(s).length;_++)a.push(Object.keys(s)[_])}for(var u={},f=0;f<a.length;f++)d(a[f],"abcjs-v",u,"voice"),d(a[f],"abcjs-l",u,"line"),d(a[f],"abcjs-m",u,"measure");e.staffPos&&(u.staffPos=e.staffPos);for(var p=n.target;p&&p.dataset&&!p.dataset.name&&"svg"!==p.tagName.toLowerCase();)p=p.parentNode;for(var m=n.target;m&&m.dataset&&!m.dataset.index&&"svg"!==m.tagName.toLowerCase();)m=m.parentNode;m&&m.dataset&&(u.name=m.dataset.name,u.clickedName=p.dataset.name,u.parentClasses=m.classList),p&&p.classList&&(u.clickedClasses=p.classList),u.selectableElement=e.svgEl;for(var g=0;g<this.listeners.length;g++)this.listeners[g](e.absEl.abcelem,e.absEl.tuneNumber,a.join(" "),u,{step:t,max:$,index:r,setSelection:h.bind(this)},n)}function d(e,t,$,r){if(0===e.indexOf(t)){var n=e.replace(t,""),a=parseInt(n,10);""+a===n&&($[r]=a)}}function f(){for(var e=0;e<this.selected.length;e++)this.selected[e].unhighlight(void 0,this.renderer.foregroundColor);this.selected=[]}function p(e,t){f.bind(this)();for(var $=0;$<this.staffgroups.length;$++)for(var r=this.staffgroups[$].voices,n=0;n<r.length;n++)for(var a=r[n].children,s=0;s<a.length;s++){var i=a[s].abcelem.startChar,o=a[s].abcelem.endChar;(t>i&&e<o||t===e&&t===o)&&(this.selected[this.selected.length]=a[s],a[s].highlight(void 0,this.selectionColor))}}function m(e){var t=e.getAttribute("class");t||(t="");for(var $=t.split(" "),r={},n=0;n<$.length;n++)r[$[n]]=!0;return r}function g(e,t){var $=[];for(var r in t)t.hasOwnProperty(r)&&$.push(r);e.setAttribute("class",$.join(" "))}e.exports=function e(t,$){if(t.rangeHighlight=p,t.dragging)for(var r=0;r<t.selectables.length;r++){var i=t.selectables[r];"true"===i.svgEl.getAttribute("selectable")&&(i.svgEl.setAttribute("tabindex",0),i.svgEl.setAttribute("data-index",r),i.svgEl.addEventListener("keydown",a.bind(t)),i.svgEl.addEventListener("keyup",s.bind(t)),i.svgEl.addEventListener("focus",n.bind(t)))}for(var o=0;o<$.length;o++)$[o].addEventListener("touchstart",c.bind(t),{passive:!0}),$[o].addEventListener("touchmove",l.bind(t),{passive:!0}),$[o].addEventListener("touchend",_.bind(t),{passive:!0}),$[o].addEventListener("mousedown",c.bind(t)),$[o].addEventListener("mousemove",l.bind(t)),$[o].addEventListener("mouseup",_.bind(t))}},"./src/write/interactive/unhighlight.js":function(e,t,$){var r=$(/*! ../helpers/set-class */ "./src/write/helpers/set-class.js"),n=function e(t,$){void 0===t&&(t="abcjs-note_selected"),void 0===$&&($="#000000"),r(this.elemset,"",t,$)};e.exports=n},"./src/write/layout/beam.js":function(e,t,$){var r=$(/*! ../creation/elements/relative-element */ "./src/write/creation/elements/relative-element.js"),n=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),a=$(/*! ./get-bar-y-at */ "./src/write/layout/get-bar-y-at.js"),s=function e(t){if(0!==t.elems.length&&!t.allrests){var $,s,l,_,h,u,d,f,p,m,g,v,b,y,k,w,x,C,T,S=($=t.stemsUp,s=t.isgrace,l=$?n.STEP:-n.STEP,s&&(l*=.4),l),E=t.elems[0],A=t.elems[t.elems.length-1],B=0,N=t.stemsUp?E.abcelem.maxpitch:E.abcelem.minpitch;B=o(E,t.stemsUp,N,B),B=o(A,t.stemsUp,N,B),B=Math.max(t.stemHeight,B+3);var P=(_=t.average,h=t.elems.length,u=B,d=t.stemsUp,f=E.abcelem.averagepitch,p=A.abcelem.averagepitch,m=t.isflat,g=t.min,v=t.max,b=t.isgrace,y=u-2,k=u-2,w=Math.round(d?Math.max(_+y,v+k):Math.min(_-y,g-k)),x=function e(t,$,r,n){if(n)return 0;var a=t-$,s=r/2;return a>s&&(a=s),a<-s&&(a=-s),a}(f,p,h,m),C=w+Math.floor(x/2),T=w+Math.floor(-x/2),b||(d&&w<6?(C=6,T=6):d||!(w>6)||(C=6,T=6)),[C,T]),M=c(t.stemsUp,E,A);t.addBeam({startX:M[0],endX:M[1],startY:P[0],endY:P[1],dy:S});for(var L=function e(t,$,r,n,s){for(var o=[],l=[],_=0;_<t.length;_++){var h=t[_];if(!h.abcelem.rest){var u=h.heads[$?0:h.heads.length-1],d=u.x+($?u.w:0),f=a(r.startX,r.startY,r.endX,r.endY,d),p=$?-1.5:1.5;n&&(p=2*p/3);var m=h.abcelem.duration;0===m&&(m=.25);for(var g=i(m);g<-3;g++){var v=-4-g;if(l[v]?l[v].single=!1:l[v]={x:d+($?-.6:0),y:f+p*(v+1),durlog:g,single:!0},_>0&&h.abcelem.beambr&&h.abcelem.beambr<=v+1){l[v].split||(l[v].split=[l[v].x]);var b=c($,t[_-1],h);l[v].split[l[v].split.length-1]>=b[0]&&(b[0]+=h.w),l[v].split.push(b[0]),l[v].split.push(b[1])}}for(var y=l.length-1;y>=0;y--)if(_===t.length-1||i(t[_+1].abcelem.duration)>-y-4){var k=d,w=f+p*(y+1);l[y].single&&(k=0===_?d+5:d-5,w=a(r.startX,r.startY,r.endX,r.endY,k)+p*(y+1));var x={startX:l[y].x,endX:k,startY:l[y].y,endY:w,dy:s};if(void 0!==l[y].split){var C=l[y].split;x.endX<=C[C.length-1]&&(C[C.length-1]-=h.w),C.push(x.endX),x.split=l[y].split}o.push(x),l=l.slice(0,y)}}}return o}(t.elems,t.stemsUp,t.beams[0],t.isgrace,S),D=0;D<L.length;D++)t.addBeam(L[D]);(function e(t,$,s,i,o){for(var c=0;c<t.length;c++){var l=t[c];if(!l.abcelem.rest){var _=!l.addExtra,h=_?o:l,u=l.heads[$?0:l.heads.length-1],d=u.pitch+($?.2:-.2),f=$?u.w:0;_||(f+=u.dx);var p=u.x+f,m=a(s.startX,s.startY,s.endX,s.endY,p),g=$?-.6:.6;$||(m-=i/2/n.STEP),_&&(f+=l.heads[0].dx),"noteheads.slash.quarter"===u.c&&($?d+=1:d-=1);var v=new r(null,f,0,d,{type:"stem",pitch2:m,linewidth:g});v.setX(h.x),h.addRight(v)}}})(t.elems,t.stemsUp,t.beams[0],S,t.mainNote)}},i=function e(t){return void 0===t?0:Math.floor(Math.log(t)/Math.log(2))};function o(e,t,$,r){if(!e.children)return r;for(var n=0;n<e.children.length;n++){var a=e.children[n];t&&void 0!==a.top&&"flags.ugrace"===a.c?r=Math.max(r,a.top-$):t||void 0===a.bottom||"flags.ugrace"!==a.c||(r=Math.max(r,$-a.bottom+7))}return r}function c(e,t,$){var r=t.heads[e?0:t.heads.length-1],n=$.heads[e?0:$.heads.length-1],a=r.x;e&&(a+=r.w-.6);var s=n.x;return[a,s+=e?n.w:.6]}e.exports=s},"./src/write/layout/get-bar-y-at.js":function(e){e.exports=function e(t,$,r,n,a){return $+(n-$)/(r-t)*(a-t)}},"./src/write/layout/get-left-edge-of-staff.js":function(e){function t(e,t,$){if(t)for(var r=0;r<t.length;r++)t[r].header&&(e=Math.max(e,$.calc(t[r].header,"voicefont","").width));return e}function $(e,t,$){if(e)for(var r,n,a=0;a<e.length;a++){r=t,(n=e[a]).x=r,$=Math.max($,e[a].getWidth())}return $}function r(e,t){t.x=e}e.exports=function e(r,n,a,s,i){var o,c,l=r.padding.left,_=0;for(o=0;o<a.length;o++)a[o].header&&(_=Math.max(_,(c=n.calc(a[o].header,"voicefont","")).width));_=t(_,s,n),(_=t(_,i,n))&&(_+=n.calc("A","voicefont","").width),l+=_;var h=0;return h=$(s,l,h),h=$(i,l,h),l+h}},"./src/write/layout/layout.js":function(e,t,$){var r=$(/*! ./voice */ "./src/write/layout/voice.js"),n=$(/*! ./set-upper-and-lower-elements */ "./src/write/layout/set-upper-and-lower-elements.js"),a=$(/*! ./staff-group */ "./src/write/layout/staff-group.js"),s=$(/*! ./get-left-edge-of-staff */ "./src/write/layout/get-left-edge-of-staff.js"),i=function e(t,$,a,s,i){var c,l,_=a;if(i){for(c=0;c<$.lines.length;c++)if((l=$.lines[c]).staff){var h=o(t,_,s,l.staffGroup,$.formatting,c===$.lines.length-1,!1);Math.round(h)>Math.round(_)&&(_=h,i&&(c=-1))}}else for(c=0;c<$.lines.length;c++)(l=$.lines[c]).staff&&(o(t,a,s,l.staffGroup,$.formatting,c===$.lines.length-1,!1),l.staffGroup.w>_&&(_=l.staffGroup.w));for(c=0;c<$.lines.length;c++)if((l=$.lines[c]).staffGroup&&l.staffGroup.voices){for(var u=0;u<l.staffGroup.voices.length;u++)r(l.staffGroup.voices[u]);n(t,l.staffGroup)}for(c=0;c<$.lines.length;c++)(l=$.lines[c]).staffGroup&&l.staffGroup.setHeight();return _},o=function e(t,$,r,n,i,o,l){for(var _=s(t,n.getTextSize,n.voices,n.brace,n.bracket),h=r,u=0;u<8;u++){var d=a(h,t,l,n,_);if(h=c(o,i.stretchlast,$+t.padding.left,n.w,h,d.spacingUnits,d.minSpace,t.padding.left+t.padding.right),l&&console.log("setXSpace",u,n.w,h,n.minspace),null===h)break}return function e(t){for(var $=0;$<t.length;$++)for(var r=t[$],n=1;n<r.children.length-1;n++){var a=r.children[n];if(a.abcelem.rest&&("whole"===a.abcelem.rest.type||"multimeasure"===a.abcelem.rest.type)){var s=r.children[n-1],i=r.children[n+1];a.center(s,i)}}}(n.voices),n.w-_};function c(e,t,$,r,n,a,s,i){if(e){if(void 0===t){if(r/$<.66)return null}else if(!(1-(r+i)/$<t))return null}if(2>Math.abs($-r))return null;var o=a*n;return a>0?((n=($-(r-o))/a)*s>50&&(n=50/s),n):null}e.exports=i},"./src/write/layout/set-upper-and-lower-elements.js":function(e,t,$){var r=$(/*! ../helpers/spacing */ "./src/write/helpers/spacing.js"),n=function e(t,$){for(var n,o=0;o<$.staffs.length;o++){var c=$.staffs[o],l={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};if(t.showDebug&&t.showDebug.indexOf("box")>=0&&(c.originalTop=c.top,c.originalBottom=c.bottom),s(c,l,"lyricHeightAbove"),s(c,l,"chordHeightAbove",c.specialY.chordLines.above),c.specialY.endingHeightAbove&&(c.specialY.chordHeightAbove?c.top+=2:c.top+=c.specialY.endingHeightAbove+a,l.endingHeightAbove=c.top),c.specialY.dynamicHeightAbove&&c.specialY.volumeHeightAbove?(c.top+=Math.max(c.specialY.dynamicHeightAbove,c.specialY.volumeHeightAbove)+a,l.dynamicHeightAbove=c.top,l.volumeHeightAbove=c.top):(s(c,l,"dynamicHeightAbove"),s(c,l,"volumeHeightAbove")),s(c,l,"partHeightAbove"),s(c,l,"tempoHeightAbove"),c.specialY.lyricHeightBelow&&(c.specialY.lyricHeightBelow+=t.spacing.vocal/r.STEP,l.lyricHeightBelow=c.bottom,c.bottom-=c.specialY.lyricHeightBelow+a),c.specialY.chordHeightBelow){l.chordHeightBelow=c.bottom;var _=c.specialY.chordHeightBelow;c.specialY.chordLines.below&&(_*=c.specialY.chordLines.below),c.bottom-=_+a}c.specialY.volumeHeightBelow&&c.specialY.dynamicHeightBelow?(l.volumeHeightBelow=c.bottom,l.dynamicHeightBelow=c.bottom,c.bottom-=Math.max(c.specialY.volumeHeightBelow,c.specialY.dynamicHeightBelow)+a):c.specialY.volumeHeightBelow?(l.volumeHeightBelow=c.bottom,c.bottom-=c.specialY.volumeHeightBelow+a):c.specialY.dynamicHeightBelow&&(l.dynamicHeightBelow=c.bottom,c.bottom-=c.specialY.dynamicHeightBelow+a),t.showDebug&&t.showDebug.indexOf("box")>=0&&(c.positionY=l);for(var h=0;h<c.voices.length;h++)i(l,$.voices[c.voices[h]],t.spacing);if(void 0!==n){var u=n+(c.top-10),d=t.spacing.systemStaffSeparation/r.STEP-u;d>0&&(c.top+=d)}n=2-c.bottom}},a=1;function s(e,t,$,r){if(e.specialY[$]){var n=e.specialY[$];r&&(n*=r),e.top+=n+a,t[$]=e.top}}function i(e,t,$){var r,n;for(r=0;r<t.children.length;r++)o(e,n=t.children[r],$);for(r=0;r<t.otherchildren.length;r++)switch((n=t.otherchildren[r]).type){case"CrescendoElem":c(e,n);break;case"DynamicDecoration":l(e,n);break;case"EndingElem":_(e,n)}}function o(e,t,$){for(var r=0;r<t.children.length;r++){var n=t.children[r];for(var a in t.specialY)t.specialY.hasOwnProperty(a)&&n[a]&&(n.pitch=e[a],void 0===n.top&&("TempoElement"===n.type?h(e,n):u(e,n,$),t.pushTop(n.top),t.pushBottom(n.bottom)))}}function c(e,t){t.dynamicHeightAbove?t.pitch=e.dynamicHeightAbove:t.pitch=e.dynamicHeightBelow}function l(e,t){t.volumeHeightAbove?t.pitch=e.volumeHeightAbove:t.pitch=e.volumeHeightBelow}function _(e,t){t.pitch=e.endingHeightAbove-2}function h(e,t){if(t.pitch=e.tempoHeightAbove,t.top=e.tempoHeightAbove,t.bottom=e.tempoHeightAbove,t.note){var $=t.pitch-t.totalHeightInPitches+1;t.note.top=$,t.note.bottom=$;for(var r=0;r<t.note.children.length;r++){var n=t.note.children[r];n.top+=$,n.bottom+=$,n.pitch+=$,void 0!==n.pitch2&&(n.pitch2+=$)}}}function u(e,t,$){switch(t.type){case"part":t.top=e.partHeightAbove+t.height,t.bottom=e.partHeightAbove;break;case"text":case"chord":t.chordHeightAbove?(t.top=e.chordHeightAbove,t.bottom=e.chordHeightAbove):(t.top=e.chordHeightBelow,t.bottom=e.chordHeightBelow);break;case"lyric":t.lyricHeightAbove?(t.top=e.lyricHeightAbove,t.bottom=e.lyricHeightAbove):(t.top=e.lyricHeightBelow+$.vocal/r.STEP,t.bottom=e.lyricHeightBelow+$.vocal/r.STEP,t.pitch-=$.vocal/r.STEP);break;case"debug":t.top=e.chordHeightAbove,t.bottom=e.chordHeightAbove}(void 0===t.pitch||void 0===t.top)&&console.error("RelativeElement position not set.",t.type,t.pitch,t.top,e)}e.exports=n},"./src/write/layout/staff-group.js":function(e,t,$){var r=$(/*! ./voice-elements */ "./src/write/layout/voice-elements.js"),n=function e(t,$,n,o,c){var l,_=0,h=1e3,u=c;o.startx=u;var d=0;for(n&&console.log("init layout",t),l=0;l<o.voices.length;l++)r.beginLayout(u,o.voices[l]);for(var f=0;!a(o.voices);){for(l=0,d=null;l<o.voices.length;l++)!r.layoutEnded(o.voices[l])&&(!d||s(o.voices[l])<d)&&(d=s(o.voices[l]));var p=[],m=[];for(l=0;l<o.voices.length;l++)s(o.voices[l])-d>1e-7?m.push(o.voices[l]):p.push(o.voices[l]);f=0;var g=0;for(l=0;l<p.length;l++)r.getNextX(p[l])>u&&(u=r.getNextX(p[l]),f=r.getSpacingUnits(p[l]),g=p[l].spacingduration);_+=f,h=Math.min(h,f),n&&console.log("currentduration: ",d,_,h);var v=void 0;for(l=0;l<p.length;l++){var b=p[l];0===b.voicenumber&&(v=l);var y=void 0!==v&&p[v].voicenumber!==b.voicenumber?p[v]:void 0;i(b,y)||(y=void 0);var k=r.layoutOneItem(u,t,b,$.minPadding,y),w=k-u;if(w>0){u=k;for(var x=0;x<l;x++)r.shiftRight(w,p[x])}}for(l=0;l<m.length;l++)m[l].spacingduration-=g,r.updateNextX(u,t,m[l]);for(l=0;l<p.length;l++){var C=p[l];r.updateIndices(C)}}for(l=0;l<o.voices.length;l++)r.getNextX(o.voices[l])>u&&(u=r.getNextX(o.voices[l]),f=r.getSpacingUnits(o.voices[l]));return function e(t){for(var $=0,r=0;r<t.length;r++){var n=t[r];if(n.children.length>0){var a=n.children.length-1,s=n.children[a];if("bar"===s.abcelem.el_type){var i=s.children[0].x;i>$?$=i:s.children[0].x=$}}}}(o.voices),_+=f,o.setWidth(u),{spacingUnits:_,minSpace:h}};function a(e){for(var t=0;t<e.length;t++)if(!r.layoutEnded(e[t]))return!1;return!0}function s(e){return e.durationindex-(e.children[e.i]&&e.children[e.i].duration>0?0:5e-7)}function i(e,t){return!!e&&!!e.staff&&!!e.staff.voices&&0!==e.staff.voices.length&&!!t&&!!t.staff&&!!t.staff.voices&&0!==t.staff.voices.length&&e.staff.voices[0]===t.staff.voices[0]}e.exports=n},"./src/write/layout/triplet.js":function(e,t,$){var r=$(/*! ./get-bar-y-at */ "./src/write/layout/get-bar-y-at.js");function n(e){return e.stemsUp}e.exports=function e(t){if(t.anchor1&&t.anchor2){t.hasBeam=!!t.anchor1.parent.beam&&t.anchor1.parent.beam===t.anchor2.parent.beam;var $=t.anchor1.parent.beam;if(t.hasBeam&&($.elems[0]!==t.anchor1.parent||$.elems[$.elems.length-1]!==t.anchor2.parent)&&(t.hasBeam=!1),t.hasBeam){var a,s,i,o,c,l=n($)?t.anchor1.x+t.anchor1.w:t.anchor1.x;t.yTextPos=(a=l,s=t.anchor2.x,i=$,0===i.beams.length?0:r((i=i.beams[0]).startX,i.startY,i.endX,i.endY,a+(s-a)/2)),t.yTextPos+=n($)?3:-2,t.xTextPos=(o=l,c=t.anchor2.x,o+(c-o)/2),t.top=t.yTextPos+1,t.bottom=t.yTextPos-2,n($)&&(t.endingHeightAbove=4)}else{t.startNote=Math.max(t.anchor1.parent.top,9)+4,t.endNote=Math.max(t.anchor2.parent.top,9)+4,"rest"===t.anchor1.parent.type&&"rest"!==t.anchor2.parent.type?t.startNote=t.endNote:"rest"===t.anchor2.parent.type&&"rest"!==t.anchor1.parent.type&&(t.endNote=t.startNote);for(var _=0,h=0;h<t.middleElems.length;h++)_=Math.max(_,t.middleElems[h].top);((_+=4)>t.startNote||_>t.endNote)&&(t.startNote=_,t.endNote=_),t.flatBeams&&(t.startNote=Math.max(t.startNote,t.endNote),t.endNote=Math.max(t.startNote,t.endNote)),t.yTextPos=t.startNote+(t.endNote-t.startNote)/2,t.xTextPos=t.anchor1.x+(t.anchor2.x+t.anchor2.w-t.anchor1.x)/2,t.top=t.yTextPos+1}}delete t.middleElems,delete t.flatBeams}},"./src/write/layout/voice-elements.js":function(e){var t=function e(){};function $(e){return e.w}t.beginLayout=function(e,t){t.i=0,t.durationindex=0,t.startx=e,t.minx=e,t.nextx=e,t.spacingduration=0},t.layoutEnded=function(e){return e.i>=e.children.length},t.getNextX=function(e){return Math.max(e.minx,e.nextx)},t.getSpacingUnits=function(e){return Math.sqrt(8*e.spacingduration)},t.layoutOneItem=function(e,t,$,r,n){var a=$.children[$.i];if(!a)return 0;var s=e-$.minx,i=$.durationindex+a.duration>0?r:0;if("note"===a.abcelem.el_type&&!a.abcelem.rest&&0!==$.voicenumber&&n){var o=n.children[n.i],c=o&&(a.abcelem.maxpitch<=o.abcelem.maxpitch+1&&a.abcelem.maxpitch>=o.abcelem.minpitch-1||a.abcelem.minpitch<=o.abcelem.maxpitch+1&&a.abcelem.minpitch>=o.abcelem.minpitch-1);if(c&&a.abcelem.minpitch===o.abcelem.minpitch&&a.abcelem.maxpitch===o.abcelem.maxpitch&&o.heads&&o.heads.length>0&&a.heads&&a.heads.length>0&&o.heads[0].c===a.heads[0].c&&(c=!1),c){var l=o.heads&&o.heads.length>0?o.heads[0].realWidth:o.fixed.w;a.adjustedWidth||(a.adjustedWidth=l+a.w),a.w=a.adjustedWidth;for(var _=0;_<a.children.length;_++){var h=a.children[_];0>h.name.indexOf("accidental")&&(h.adjustedWidth||(h.adjustedWidth=h.dx+l),h.dx=h.adjustedWidth)}}}var u,d,f,p,m=(u=a,d=i,f=0,("note"===u.type||"bar"===u.type)&&(f=d),-u.extraw+f);return s<m&&(0===$.i||"bar"!==a.type||"part"!==$.children[$.i-1].type&&"tempo"!==$.children[$.i-1].type)&&(e+=m-s),a.setX(e),$.spacingduration=a.duration,$.minx=e+(p=a,p.w),$.i!==$.children.length-1&&($.minx+=a.minspacing),this.updateNextX(e,t,$),e},t.shiftRight=function(e,t){var $=t.children[t.i];$&&($.setX($.x+e),t.minx+=e,t.nextx+=e)},t.updateNextX=function(e,t,$){$.nextx=e+t*Math.sqrt(8*$.spacingduration)},t.updateIndices=function(e){!this.layoutEnded(e)&&(e.durationindex+=e.children[e.i].duration,"bar"===e.children[e.i].type&&(e.durationindex=Math.round(64*e.durationindex)/64),e.i++)},e.exports=t},"./src/write/layout/voice.js":function(e,t,$){var r=$(/*! ./beam */ "./src/write/layout/beam.js"),n=$(/*! ./get-bar-y-at */ "./src/write/layout/get-bar-y-at.js"),a=$(/*! ./triplet */ "./src/write/layout/triplet.js"),s=function e(t){for(var $=0;$<t.beams.length;$++)if("BeamElem"===t.beams[$].type){r(t.beams[$]),i(t.beams[$]);for(var n=0;n<t.beams[$].elems.length;n++)t.adjustRange(t.beams[$].elems[n])}for($=0,t.staff.specialY.chordLines=function e(t){var $,r,n,a=[0],s=[0];for($=0;$<t.length;$++){for(r=0;r<t[$].children.length;r++)(n=t[$].children[r]).chordHeightAbove&&o(a,n);for(r=t[$].children.length-1;r>=0;r--)(n=t[$].children[r]).chordHeightBelow&&o(s,n)}return(a.length>1||s.length>1)&&function e(t,$,r){for(var n=0;n<t.length;n++){c(t[n]);for(var a=0;a<t[n].children.length;a++){var s=t[n].children[a];s.chordHeightAbove&&s.invertLane($)}}}(t,a.length,s.length),{above:a.length,below:s.length}}(t.children);$<t.otherchildren.length;$++){var s=t.otherchildren[$];"TripletElem"===s.type&&(a(s),t.adjustRange(s))}t.staff.top=Math.max(t.staff.top,t.top),t.staff.bottom=Math.min(t.staff.bottom,t.bottom)};function i(e){for(var t=0;t<e.elems.length;t++){var $=e.elems[t];if($.top)for(var r=l($,e),n=0;n<$.children.length;n++){var a=$.children[n];if("ornament"===a.klass&&a.bottom-1.5<r){var s=r-a.bottom+1.5;a.bottom+=s,a.top+=s,a.pitch+=s,r=$.top=a.top}}}}function o(e,t){var $=t.getChordDim();if($){for(var r=0;r<e.length;r++)if(e[r]<$.left){r>0&&t.putChordInLane(r),e[r]=$.right;return}e.push($.right),t.putChordInLane(e.length-1)}}function c(e){for(var t=0,$=0;$<e.children.length;$++)e.children[$].chordHeightBelow&&t++;return t}function l(e,t){return n((t=t.beams[0]).startX,t.startY,t.endX,t.endY,e.x)}e.exports=s},"./src/write/renderer.js":function(e,t,$){var r=$(/*! ./helpers/spacing */ "./src/write/helpers/spacing.js"),n=$(/*! ./svg */ "./src/write/svg.js"),a=function e(t){this.paper=new n(t),this.controller=null,this.space=3*r.SPACE,this.padding={},this.reset(),this.firefox112=!1};a.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()},a.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.isPrint="print"===e.media,this.setPadding(e)},a.prototype.setLineThickness=function(e){this.lineThickness=e},a.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}},a.prototype.setPadding=function(e){function t(t,$,r,n,a){void 0!==e.formatting[r]?t.padding[$]=e.formatting[r]:void 0!==t.paddingOverride[$]?t.padding[$]=t.paddingOverride[$]:t.isPrint?t.padding[$]=n:t.padding[$]=a}t(this,"top","topmargin",38,15),t(this,"bottom","botmargin",38,15),t(this,"left","leftmargin",68,15),t(this,"right","rightmargin",68,15)},a.prototype.adjustNonScaledItems=function(e){this.padding.top/=e,this.padding.bottom/=e,this.padding.left/=e,this.padding.right/=e,this.abctune.formatting.headerfont.size/=e,this.abctune.formatting.footerfont.size/=e},a.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,stemHeight:36.67,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}},a.prototype.setVerticalSpace=function(e){void 0!==e.staffsep&&(this.spacing.staffSeparation=4*e.staffsep/3),void 0!==e.composerspace&&(this.spacing.composer=4*e.composerspace/3),void 0!==e.partsspace&&(this.spacing.parts=4*e.partsspace/3),void 0!==e.textspace&&(this.spacing.text=4*e.textspace/3),void 0!==e.musicspace&&(this.spacing.music=4*e.musicspace/3),void 0!==e.titlespace&&(this.spacing.title=4*e.titlespace/3),void 0!==e.sysstaffsep&&(this.spacing.systemStaffSeparation=4*e.sysstaffsep/3),void 0!==e.subtitlespace&&(this.spacing.subtitle=4*e.subtitlespace/3),void 0!==e.topspace&&(this.spacing.top=4*e.topspace/3),void 0!==e.vocalspace&&(this.spacing.vocal=4*e.vocalspace/3),void 0!==e.wordsspace&&(this.spacing.words=4*e.wordsspace/3)},a.prototype.calcY=function(e){return this.y-e*r.STEP},a.prototype.moveY=function(e,t){void 0===t&&(t=1),this.y+=e*t},a.prototype.absolutemoveY=function(e){this.y=e},e.exports=a},"./src/write/svg.js":function(e){var t="http://www.w3.org/2000/svg";function $(e){this.svg=s(),this.currentGroup=[],e.appendChild(this.svg)}function r(e,t,$){var r=$-e;return"M "+e+" "+t+" l "+r+" 0 l 0 1 l "+-r+" 0 z "}function n(e,t,$){var r=$-t;return"M "+e+" "+t+" l 0 "+r+" l 1 0 l 0 "+-r+" z "}$.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=s(),this.currentGroup=[],e&&(e.innerHTML="",e.appendChild(this.svg))}},$.prototype.setTitle=function(e){var t=document.createElement("title"),$=document.createTextNode(e);t.appendChild($),this.svg.insertBefore(t,this.svg.firstChild)},$.prototype.setResponsiveWidth=function(e,t){if(this.svg.setAttribute("viewBox","0 0 "+e+" "+t),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var $=this.svg.parentNode.getAttribute("class");$?0>$.indexOf("abcjs-container")&&this.svg.parentNode.setAttribute("class",$+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%",this.svg.parentNode.style["padding-bottom"]=t/e*100+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},$.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)},$.prototype.setAttribute=function(e,t){this.svg.setAttribute(e,t)},$.prototype.setScale=function(e){1!==e?(this.svg.style.transform="scale("+e+","+e+")",this.svg.style["-ms-transform"]="scale("+e+","+e+")",this.svg.style["-webkit-transform"]="scale("+e+","+e+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},$.prototype.insertStyles=function(e){var $=document.createElementNS(t,"style");$.textContent=e,this.svg.insertBefore($,this.svg.firstChild)},$.prototype.setParentStyles=function(e){for(var t in e)e.hasOwnProperty(t)&&this.svg.parentNode&&(this.svg.parentNode.style[t]=e[t]);this.dummySvg&&(document.querySelector("body").removeChild(this.dummySvg),this.dummySvg=null)},$.prototype.rect=function(e){var t=[],$=e.x,a=e.y,s=e.x+e.width,i=e.y+e.height;return t.push(r($,a,s)),t.push(r($,i,s)),t.push(n(s,a,i)),t.push(n($,i,a)),this.path({path:t.join(" "),stroke:"none","data-name":e["data-name"]})},$.prototype.dottedLine=function(e){var $=document.createElementNS(t,"line");$.setAttribute("x1",e.x1),$.setAttribute("x2",e.x2),$.setAttribute("y1",e.y1),$.setAttribute("y2",e.y2),$.setAttribute("stroke",e.stroke),$.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore($,this.svg.firstChild)},$.prototype.rectBeneath=function(e){var $=document.createElementNS(t,"rect");$.setAttribute("x",e.x),$.setAttribute("width",e.width),$.setAttribute("y",e.y),$.setAttribute("height",e.height),e.stroke&&$.setAttribute("stroke",e.stroke),e["stroke-opacity"]&&$.setAttribute("stroke-opacity",e["stroke-opacity"]),e.fill&&$.setAttribute("fill",e.fill),e["fill-opacity"]&&$.setAttribute("fill-opacity",e["fill-opacity"]),this.svg.insertBefore($,this.svg.firstChild)},$.prototype.text=function(e,$,r){var n=document.createElementNS(t,"text");for(var a in n.setAttribute("stroke","none"),$)$.hasOwnProperty(a)&&n.setAttribute(a,$[a]);for(var s=(""+e).split("\n"),i=0;i<s.length;i++){var o=document.createElementNS(t,"tspan");if(o.setAttribute("x",$.x?$.x:0),0!==i&&o.setAttribute("dy","1.2em"),-1!==s[i].indexOf("\x03")){var c=s[i].split("\x03");if(o.textContent=c[0],c[1]){var l=document.createElementNS(t,"tspan");l.setAttribute("dy","-0.3em"),l.setAttribute("style","font-size:0.7em"),l.textContent=c[1],o.appendChild(l)}if(c[2]){var _=c[1]?"0.4em":"0.1em",h=document.createElementNS(t,"tspan");h.setAttribute("dy",_),h.setAttribute("style","font-size:0.7em"),h.textContent=c[2],o.appendChild(h)}}else o.textContent=s[i];n.appendChild(o)}return r?r.appendChild(n):this.append(n),n},$.prototype.guessWidth=function(e,t){var $,r=this.createDummySvg(),n=this.text(e,t,r);try{$=n.getBBox(),$=isNaN($.height)||!$.height?{width:t["font-size"]/2,height:t["font-size"]+2}:{width:$.width,height:$.height}}catch(a){$={width:t["font-size"]/2,height:t["font-size"]+2}}return r.removeChild(n),$},$.prototype.createDummySvg=function(){return!this.dummySvg&&(this.dummySvg=s(),this.dummySvg.setAttribute("style","display: block !important;height: 1px;width: 1px;position: absolute;"),document.querySelector("body").appendChild(this.dummySvg)),this.dummySvg};var a={};function s(){var e=document.createElementNS(t,"svg");return e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),e.setAttribute("role","img"),e.setAttribute("fill","currentColor"),e.setAttribute("stroke","currentColor"),e}$.prototype.getTextSize=function(e,t,$){if("number"==typeof e&&(e=""+e),!e||e.match(/^\s+$/))return{width:0,height:0};if(e.length<20&&a[r=e+JSON.stringify(t)])return a[r];var r,n,s=!$;$||($=this.text(e,t));try{n=$.getBBox(),n=isNaN(n.height)||!n.height?this.guessWidth(e,t):{width:n.width,height:n.height}}catch(i){n=this.guessWidth(e,t)}return s&&(this.currentGroup.length>0?this.currentGroup[0].removeChild($):this.svg.removeChild($)),r&&(a[r]=n),n},$.prototype.openGroup=function(e){e=e||{};var $=document.createElementNS(t,"g");return e.klass&&$.setAttribute("class",e.klass),e.fill&&$.setAttribute("fill",e.fill),e.stroke&&$.setAttribute("stroke",e.stroke),e["data-name"]&&$.setAttribute("data-name",e["data-name"]),e.prepend?this.prepend($):this.append($),this.currentGroup.unshift($),$},$.prototype.closeGroup=function(){var e=this.currentGroup.shift();return e&&0===e.children.length?(e.parentElement.removeChild(e),null):e},$.prototype.path=function(e){var $=document.createElementNS(t,"path");for(var r in e)e.hasOwnProperty(r)&&("path"===r?$.setAttributeNS(null,"d",e.path):"klass"===r?$.setAttributeNS(null,"class",e[r]):void 0!==e[r]&&$.setAttributeNS(null,r,e[r]));return this.append($),$},$.prototype.pathToBack=function(e){var $=document.createElementNS(t,"path");for(var r in e)e.hasOwnProperty(r)&&("path"===r?$.setAttributeNS(null,"d",e.path):"klass"===r?$.setAttributeNS(null,"class",e[r]):$.setAttributeNS(null,r,e[r]));return this.prepend($),$},$.prototype.lineToBack=function(e){for(var $=document.createElementNS(t,"line"),r=Object.keys(e),n=0;n<r.length;n++)$.setAttribute(r[n],e[r[n]]);return this.prepend($),$},$.prototype.append=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.appendChild(e)},$.prototype.prepend=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)},$.prototype.setAttributeOnElement=function(e,t){for(var $ in t)t.hasOwnProperty($)&&e.setAttributeNS(null,$,t[$])},$.prototype.moveElementToChild=function(e,t){e.appendChild(t)},e.exports=$},"./version.js":function(e){e.exports="6.2.3"}},t={},function $(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,$),a.exports}("./index.js")});