-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.bundle.js
2 lines (2 loc) · 442 KB
/
page.bundle.js
1
2
/*! For license information please see page.bundle.js.LICENSE.txt */
(()=>{var e={9914:(e,t,r)=>{var n=r(2519),a=r(2640),i=r(7306),s=r(7636),o={};o.signature="abcjs-basic v"+n,Object.keys(a).forEach((function(e){o[e]=a[e]})),Object.keys(i).forEach((function(e){o[e]=i[e]})),o.renderAbc=r(4528),o.TimingCallbacks=r(4778);var c=r(4438);o.setGlyph=c.setSymbol;var l=r(107),h=r(5002),u=r(6691),d=r(8883),f=r(38),p=r(2988),m=r(9366),g=r(5538),v=r(1147),b=r(1155),y=r(3170);o.synth={CreateSynth:l,instrumentIndexToName:h,pitchToNoteName:u,SynthController:b,SynthSequence:d,CreateSynthControl:f,registerAudioContext:p,activeAudioContext:m,supportsAudio:g,playEvent:v,getMidiFile:y,sequence:s},o.Editor=r(683),o.EditArea=r(9047),e.exports=o},2640:(e,t,r)=>{var n=r(4778),a={};!function(){"use strict";var e,t;a.startAnimation=function(r,a,i){function s(e){for(var t=0;t<e.length;t++){var r=e[t];r.classList.contains("abcjs-bar")||(r.style.display="none")}}var o;function c(e){i.hideCurrentMeasure?function(e){s(r.querySelectorAll(e))}(e):i.hideFinishedMeasures&&function(e){o&&s(r.querySelectorAll(o)),o=e}(e)}e&&(e.stop(),e=void 0),i.showCursor&&((t=r.querySelector(".abcjs-cursor"))||((t=document.createElement("DIV")).className="abcjs-cursor cursor",t.style.position="absolute",r.appendChild(t),r.style.position="relative")),(e=new n(a,{qpm:i.bpm,eventCallback:function(r){if(r){if(r.measureStart){var n=".abcjs-l"+(a=r).line+".abcjs-m"+a.measureNumber;n&&c(n)}t&&(t.style.left=r.left+"px",t.style.top=r.top+"px",t.style.width=r.width+"px",t.style.height=r.height+"px")}else e.stop(),e=void 0;var a}})).start()},a.pauseAnimation=function(t){e&&(t?e.pause():e.start())},a.stopAnimation=function(){e&&(e.stop(),e=void 0)}}(),e.exports=a},4901:(e,t,r)=>{var n=r(6835),a=r(9994),i={violin:"ViolinTab",guitar:"GuitarTab"},s={inited:!1,plugins:{},register:function(e){var t=e.name,r=e.tablature;this.plugins[t]=r},setError:function(e,t){e.warnings?e.warning.push(t):e.warnings=[t]},preparePlugins:function(e,t,r){var n=null;if(r.tablature){var a=r.tablature;n=[];for(var s=0;s<a.length;s++){var o=a[s],c=o.instrument;if(null==c)return this.setError(e,"tablature 'instrument' is missing"),n;var l=i[c],h=null;if(l&&(h=this.plugins[l]),!h)return this.setError(e,"Undefined tablature plugin: "+c),n;0!=r.visualTranspose&&(o.visualTranspose=r.visualTranspose),o.abcSrc=r.tablature.abcSrc;var u={classz:h,tuneNumber:t,params:o,instance:null};n.push(u)}}return n},layoutTablatures:function(e,t){for(var r=t.tablatures,n=0;n<t.lines.length;n++){var a=t.lines[n],i=a.staff;if(i)for(var s=0;s<i.length;s++)if(r[s]){var o=r[s];null==o.instance&&(o.instance=new o.classz,o.instance.init(t,o.tuneNumber,o.params,s)),o.instance.render(e,a,s)}}},init:function(){this.inited||(this.register(new n),this.register(new a),this.inited=!0)}};e.exports=s},4778:e=>{e.exports=function(e,t){var r=this;if(t||(t={}),r.qpm=t.qpm?parseInt(t.qpm,10):null,!r.qpm){var n=e.metaText?e.metaText.tempo:null;r.qpm=e.getBpm(n)}r.extraMeasuresAtBeginning=t.extraMeasuresAtBeginning?parseInt(t.extraMeasuresAtBeginning,10):0,r.beatCallback=t.beatCallback,r.eventCallback=t.eventCallback,r.lineEndCallback=t.lineEndCallback,r.lineEndAnticipation=t.lineEndAnticipation?parseInt(t.lineEndAnticipation,10):0,r.beatSubdivisions=t.beatSubdivisions?parseInt(t.beatSubdivisions,10):1,r.joggerTimer=null,r.replaceTarget=function(e){r.noteTimings=e.setTiming(r.qpm,r.extraMeasuresAtBeginning),0===e.noteTimings.length&&e.setTiming(0,0),r.lineEndCallback&&(r.lineEndTimings=function(e,t){for(var r=[],n=null,a=0;a<e.length;a++){var i=e[a];"end"!==i.type&&i.top!==n&&(r.push({measureNumber:i.measureNumber,milliseconds:i.milliseconds-t,top:i.top,bottom:i.top+i.height}),n=i.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(e),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 n=r.noteTimings[r.currentEvent].milliseconds===r.currentTime?r.noteTimings[r.currentEvent]:r.noteTimings[r.currentEvent-1];r.lineEndCallback(r.lineEndTimings[r.currentLine],n,{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 a=r.doBeatCallback(e);null!==a&&(r.currentTime=a)}}else if(r.currentBeat<=r.totalBeats&&r.beatCallback){var i=r.doBeatCallback(e);null!==i&&(r.currentTime=i),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,a=r.currentEvent;a<r.noteTimings.length&&null===r.noteTimings[a].left;)a++;if(a<r.noteTimings.length){for(t=r.noteTimings[a].milliseconds,a=r.currentEvent-1;a>=0&&null===r.noteTimings[a].left;)a--;n=r.noteTimings[a]}var i={},s={};if(n){i.top=n.top,i.height=n.height;var o=Math.max(0,e-r.startTime-n.milliseconds),c=t-n.milliseconds,l=n.endX-n.left,h=o*l/c;i.left=n.left+h,s={timestamp:e,startTime:r.startTime,ev:n,endMs:t,offMs:o,offPs:h,gapMs:c,gapPx:l}}else s={timestamp:e,startTime:r.startTime};var u=r.startTime;if(r.beatCallback(r.currentBeat/r.beatSubdivisions,r.totalBeats/r.beatSubdivisions,r.lastMoment,i,s),u!==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 n=performance.now();r.currentTime=r.lastMoment*r.pausedPercent,r.startTime=n-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){var n;switch(t){case"seconds":r.currentTime=1e3*e,r.currentTime<0&&(r.currentTime=0),r.currentTime>r.lastMoment&&(r.currentTime=r.lastMoment),n=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),n=r.currentTime/r.lastMoment;break;default:(n=e)<0&&(n=0),n>1&&(n=1),r.currentTime=r.lastMoment*n}r.isRunning||(r.pausedPercent=n);var a=performance.now();r.startTime=a-r.currentTime;r.currentEvent;for(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 i=r.currentBeat;r.currentBeat=Math.floor(r.currentTime/r.millisecondsPerBeat),r.beatCallback&&i!==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)}}},7306:(e,t,r)=>{var n=r(4840),a=r(5533),i=r(4901),s={};!function(){"use strict";s.numberOfTunes=function(e){var t=e.split("\nX:").length;return 0===t&&(t=1),t};var e=s.TuneBook=function(e){var t=a(e);this.header=t.header,this.tunes=t.tunes};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},s.parseOnly=function(e,t){for(var r=s.numberOfTunes(e),n=[],a=0;a<r;a++)n.push(1);return s.renderEngine((function(){}),n,e,t)},s.renderEngine=function(t,r,a,s){var o=[];if(void 0!==r&&void 0!==a){var c;(!(c=r)||c.propertyIsEnumerable("length")||"object"!=typeof c||"number"!=typeof c.length)&&(r=[r]),void 0===s&&(s={});for(var l=s.startingTune?parseInt(s.startingTune,10):0,h=new e(a),u=new n,d=0;d<r.length;d++){var f=r[d];if("*"===f||"string"==typeof f&&(f=document.getElementById(f)),f)if(l>=0&&l<h.tunes.length){u.parse(h.tunes[l].abc,s,h.tunes[l].startPos-h.header.length);var p=u.getTune();s.tablature&&(i.init(),p.tablatures=i.preparePlugins(p,l,s));var m=u.getWarnings();m&&(p.warnings=m);var g=t(f,p,d,h.tunes[l].abc);o.push(g||p)}else f.innerHTML&&(f.innerHTML="");l++}return o}},s.extractMeasures=function(t){for(var r=[],n=new e(t),a=0;a<n.tunes.length;a++){for(var i=n.tunes[a],o=i.abc.split("K:"),c=o[1].split("\n"),l=o[0]+"K:"+c[0]+"\n",h=null,u=null,d=null,f=[],p=!1,m=s.parseOnly(i.abc)[0],g=m.getPickupLength()>0,v=0;v<m.lines.length;v++){var b=m.lines[v];if(b.staff)for(var y=0;y<1;y++)for(var w=b.staff[y],x=0;x<1;x++)for(var k=w.voices[x],C=0;C<k.length;C++){var T=k[C];if(null===d&&T.startChar>=0&&(d=T.startChar,u=void 0===T.chord?h:null),T.chord&&(h=T),"bar"===T.el_type){if(p){var _={abc:i.abc.substring(d,T.endChar)};(h=u&&u.chord&&u.chord.length>0?u.chord[0].name:null)&&(_.lastChord=h),T.startEnding&&(_.startEnding=T.startEnding),T.endEnding&&(_.endEnding=T.endEnding),f.push(_),d=null,p=!1}}else"note"===T.el_type&&(p=!0)}}r.push({header:l,measures:f,hasPickup:g})}return r}}(),e.exports=s},4528:(e,t,r)=>{var n=r(7306),a=r(4909),i=r(9697),s=r(4840),o=r(1138),c=r(302),l={};function h(){var e=window.innerWidth;for(var t in l)if(l.hasOwnProperty(t)){var r=l[t];e-=2*r.offsetLeft,r.style.width=e+"px"}}try{window.addEventListener("resize",h),window.addEventListener("orientationChange",h)}catch(e){}function u(e,t,r,n,a){r.viewportHorizontal?(e.innerHTML='<div class="abcjs-inner"></div>',r.scrollHorizontal?(e.style.overflowX="auto",e.style.overflowY="hidden"):e.style.overflow="hidden",l[e.id]=e,e=e.children[0]):r.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 i(e,r);(s.engraveABC(t,n,a),t.engraver=s,r.viewportVertical||r.viewportHorizontal)&&(e.parentNode.style.width=e.style.width)}function d(e,t,r,n){function i(e){var t=new a;return t.formatting=e.formatting,t.media=e.media,t.version=e.version,t}for(var s,o=[],l=0;l<t.lines.length;l++){var h=t.lines[l];s||(s=i(t)),0===l&&s.copyTopInfo(t),s.lines.push(h),h.staff&&(o.push(s),s=void 0)}if(s)for(var d=o[o.length-1],f=0;f<s.lines.length;f++)d.lines.push(s.lines[f]);(s=o[o.length-1]).copyBottomInfo(t);var p={};for(var m in r)r.hasOwnProperty(m)&&(p[m]=r[m]);var g=p.paddingtop,v=p.paddingbottom,b=e.parentNode.scrollTop,y=e.parentNode.scrollLeft;e.innerHTML="";for(var w=0,x=0;x<o.length;x++){var k=document.createElement("div");e.appendChild(k),0===x?(p.paddingtop=g,p.paddingbottom=-20):x===o.length-1?(p.paddingtop=10,p.paddingbottom=v):(p.paddingtop=10,p.paddingbottom=-20),x<o.length-1&&(o[x].formatting=c.clone(o[x].formatting),o[x].formatting.stretchlast=!0),u(k,o[x],p,n,w),w+=o[x].lines.length,0===x?t.engraver=o[x].engraver:t.engraver.staffgroups?o[x].engraver.staffgroups.length>0&&t.engraver.staffgroups.push(o[x].engraver.staffgroups[0]):t.engraver.staffgroups=o[x].engraver.staffgroups}(y||b)&&e.parentNode.scrollTo(y,b)}e.exports=function(e,t,r,a,c){var l,h={};if(r){for(l in r)r.hasOwnProperty(l)&&(h[l]=r[l]);h.warnings_id&&h.tablature&&(h.tablature.warning_id=h.warnings_id)}if(a)for(l in a)a.hasOwnProperty(l)&&("listener"===l?a[l].highlight&&(h.clickListener=a[l].highlight):h[l]=a[l]);if(c)for(l in c)c.hasOwnProperty(l)&&(h[l]=c[l]);return n.renderEngine((function(e,t,r,n){var a=!1;return"*"===e&&(a=!0,(e=document.createElement("div")).setAttribute("style","visibility: hidden;"),document.body.appendChild(e)),h.afterParsing&&h.afterParsing(t,r,n),!a&&h.wrap&&h.staffwidth?(t=function(e,t,r,n,a){var c=new i(e,a).getMeasureWidths(t),l=o.calcLineWraps(t,c,a);if(l.reParse){var h=new s;h.parse(n,l.revisedParams),t=h.getTune();var f=h.getWarnings();f&&(t.warnings=f)}!a.oneSvgPerLine||t.lines.length<2?u(e,t,l.revisedParams,r,0):d(e,t,l.revisedParams,r);return t.explanation=l.explanation,t}(e,t,r,n,h),t):(a||!h.oneSvgPerLine||t.lines.length<2?u(e,t,h,r,0):d(e,t,h,r),a&&e.parentNode.removeChild(e),null)}),e,t,h)}},4909:(e,t,r)=>{var n=r(302),a=r(4046),i=r(7636),s=r(4738),o=r(5252);e.exports=function(){function e(e,t,r,n){for(var a=0;a<n.length;a++)e[r][n[a]]=t[r][n[a]]}function t(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(t){var r=["tempo","title","header","rhythm","origin","composer","author","partOrder"];e(this,t,"metaText",r),e(this,t,"metaTextInfo",r)},this.copyBottomInfo=function(t){var r=["unalignedWords","book","source","discography","notes","transcription","history","abc-copyright","abc-creator","abc-edited-by","footer"];e(this,t,"metaText",r),e(this,t,"metaTextInfo",r)},this.getBeatLength=function(){var e=this.getMeterFraction(),t=1;return(6===e.num||9===e.num||12===e.num||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<e.length;n++)if(e[n].staff)for(var a=0;a<e[n].staff.length;a++)for(var i=0;i<e[n].staff[a].voices.length;i++)for(var s=e[n].staff[a].voices[i],o=1,c=0;c<s.length;c++){var l=s[c].rest&&"spacer"===s[c].rest.type;if(s[c].startTriplet&&(o=s[c].tripletMultiplier),s[c].duration&&!l&&"tempo"!==s[c].el_type&&(r+=s[c].duration*o),s[c].endTriplet&&(o=1),r>=t&&(r-=t),"bar"===s[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){var t;if(e)t=e;else{var r=this.metaText?this.metaText.tempo:null;t=this.getBpm(r)}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 r=0;r<t.staff.length;r++){var n=t.staff[r].meter;if(n)return n}}return{type:"common_time"}},this.getMeterFraction=function(){var e=this.getMeter(),t=4,r=4;return e&&("specified"===e.type?(t=parseInt(e.value[0].num,10),r=parseInt(e.value[0].den,10)):"cut_time"===e.type?(t=2,r=2):"common_time"===e.type&&(t=4,r=4)),this.meter={num:t,den:r},this.meter},this.getKeySignature=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var r=0;r<t.staff.length;r++)if(t.staff[r].key)return t.staff[r].key}return{}},this.getElementFromChar=function(e){for(var t=0;t<this.lines.length;t++){var r=this.lines[t];if(r.staff)for(var n=0;n<r.staff.length;n++)for(var a=r.staff[n],i=0;i<a.voices.length;i++)for(var s=a.voices[i],o=0;o<s.length;o++){var c=s[o];if(c.startChar&&c.endChar&&c.startChar<=e&&c.endChar>e)return c}}return null},this.addElementToEvents=function(e,t,r,a,i,s,o,c,l,h){if(t.hint)return{isTiedState:void 0,duration:0};var u=t.durationClass?t.durationClass:t.duration;if(t.abcelem.rest&&"spacer"===t.abcelem.rest.type&&(u=0),u>0){for(var d=[],f=0;f<t.elemset.length;f++)null!==t.elemset[f]&&d.push(t.elemset[f]);var p=t.startTie;if(void 0!==l)e["event"+l].elements.push(d),h&&(e["event"+r]||(e["event"+r]={type:"event",milliseconds:r,line:s,measureNumber:o,top:a,height:i,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),e["event"+r].measureStart=!0,h=!1),p||(l=void 0);else{if(e["event"+r]){if(e["event"+r].left?e["event"+r].left=Math.min(e["event"+r].left,t.x):e["event"+r].left=t.x,e["event"+r].elements.push(d),e["event"+r].startCharArray.push(t.abcelem.startChar),e["event"+r].endCharArray.push(t.abcelem.endChar),null===e["event"+r].startChar&&(e["event"+r].startChar=t.abcelem.startChar),null===e["event"+r].endChar&&(e["event"+r].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length){e["event"+r].midiPitches||(e["event"+r].midiPitches=[]);for(f=0;f<t.abcelem.midiPitches.length;f++)e["event"+r].midiPitches.push(t.abcelem.midiPitches[f])}if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){e["event"+r].midiGraceNotePitches||(e["event"+r].midiGraceNotePitches=[]);for(var m=0;m<t.abcelem.midiGraceNotePitches.length;m++)e["event"+r].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[m])}}else e["event"+r]={type:"event",milliseconds:r,line:s,measureNumber:o,top:a,height:i,left:t.x,width:t.w,elements:[d],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?n.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(e["event"+r].midiGraceNotePitches=n.cloneArray(t.abcelem.midiGraceNotePitches));h&&(e["event"+r].measureStart=!0,h=!1),p&&(l=r)}}return{isTiedState:l,duration:u/c,nextIsBar:h||"bar"===t.type}},this.makeVoicesArray=function(){for(var e=[],t=[],r={},n=0;n<this.engraver.staffgroups.length;n++){var i=this.engraver.staffgroups[n];if(i&&i.staffs&&i.staffs.length>0)for(var s=i.staffs[0],o=s.absoluteY,c=o-s.top*a.STEP,l=i.staffs[i.staffs.length-1],h=(o=l.absoluteY)-l.bottom*a.STEP-c,u=i.voices,d=0;d<u.length;d++){var f=!1;e[d]||(e[d]=[]),void 0===t[d]&&(t[d]=0);for(var p=u[d].children,m=0;m<p.length;m++)"tempo"===p[m].type&&(r[t[d]]=this.getBpm(p[m].abcelem)),e[d].push({top:c,height:h,line:i.line,measureNumber:t[d],elem:p[m]}),"bar"===p[m].type&&f&&t[d]++,"note"!==p[m].type&&"rest"!==p[m].type||(f=!0)}}return this.tempoLocations=r,e},this.setupEvents=function(e,r,n,a){a||(a=1);for(var i,s=[],o={},c=e,l=!0,h=this.makeVoicesArray(),u=0,d=0;d<h.length;d++){var f=c,p=Math.round(1e3*f),m=0,g=-1,v=h[d],b=n;r=this.getBeatLength()*b/60;for(var y=-1,w=0;w<v.length;w++){var x=v[w].measureNumber;y!==x&&this.tempoLocations[x]&&(b=this.tempoLocations[x],r=a*this.getBeatLength()*b/60,y=x);var k,C=v[w].elem,T=this.addElementToEvents(o,C,p,v[w].top,v[w].height,v[w].line,v[w].measureNumber,r,i,l);if(i=T.isTiedState,l=T.nextIsBar,f+=T.duration,C.duration>0&&o["event"+p]&&(k="event"+p),p=Math.round(1e3*f),"bar"===C.type){var _=C.abcelem.type,S="bar_right_repeat"===_||"bar_dbl_repeat"===_,A="1"===C.abcelem.startEnding,E="bar_left_repeat"===_||"bar_dbl_repeat"===_||"bar_right_repeat"===_;if(S){w>0&&(o[k].endX=C.x),-1===g&&(g=w);var N=0;y=-1;for(var M=m;M<g;M++){y!==(x=v[M].measureNumber)&&this.tempoLocations[x]&&(b=this.tempoLocations[x],r=a*this.getBeatLength()*b/60,y=x);var B=v[M].elem;i=(T=this.addElementToEvents(o,B,p,v[M].top,v[M].height,v[M].line,v[M].measureNumber,r,i,l)).isTiedState,l=T.nextIsBar,f+=T.duration,N=p,p=Math.round(1e3*f)}o["event"+N]&&(o["event"+N].endX=v[g].elem.x),l=!0,g=-1}A&&(g=w),E&&(m=w)}}u=Math.max(u,p)}return function(e){for(var t,r,n,a,i=e.length-1;i>=0;i--){var s=e[i];"bar"===s.type?(s.top=n,s.nextTop=t,t=n,s.bottom=a,s.nextBottom=r,r=a):"event"===s.type&&(n=s.top,a=s.top+s.height)}}(s=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t.sort((function(e,t){var r=e.milliseconds-t.milliseconds;return 0!==r?r:"bar"===e.type?-1:1}))}(o)),function(e,r){if(r.length<1)return;for(var n=0;n<r.length-1;n++){var a=r[n],i=t(r,n+1);if(null!==a.left){var s=i&&a.top===i.top?i.left:e[a.line].staffGroup.w;void 0!==a.endX?s>a.left&&(a.endX=Math.min(a.endX,s)):a.endX=s}}var o=r[r.length-1];o.endX=e[o.line].staffGroup.w}(this.lines,s),s.push({type:"end",milliseconds:u}),this.addUsefulCallbackInfo(s,b*a),s},this.addUsefulCallbackInfo=function(e,t){for(var r=this.millisecondsPerMeasure(t),n=0;n<e.length;n++){e[n].millisecondsPerMeasure=r}},this.getBpm=function(e){var t;if(e){t=e.bpm;var r=this.getBeatLength();t=t*(e.duration&&e.duration.length>0?e.duration[0]:r)/r}if(!t){t=180;var n=this.getMeterFraction();n&&3!==n.num&&n.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."),void(this.noteTimings=[]);var r=this.metaText?this.metaText.tempo:null,n=this.getBpm(r),a=1;e?r&&(a=e/n):e=n;var i=this.getBeatLength(),s=e/60,o=this.getBarLength()/i*t/s;o&&(o-=this.getPickupLength()/i/s);var c=i*s;return this.noteTimings=this.setupEvents(o,c,e,a),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=i(this,e);return s(t,e,this.formatting.percmap)},this.deline=function(e){return o(this.lines,e)}}},5252:e=>{function t(e,t){return"abselem"===e?"abselem":t}function r(e,t){e.el_type="meter",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function n(e,t){e.el_type="key",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function a(e,t){e.el_type="clef",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function i(e,t,r){e.el_type="font",e.type=r,e.startChar=-1,e.endChar=-1;for(var n=0;n<t.length;n++)t[n].unshift(e)}function s(e,r){return!e||JSON.stringify(e,t)===JSON.stringify(r,t)}function o(e){for(var t={},r=Object.keys(e),n=0;n<r.length;n++)if("staff"!==r[n])t[r[n]]=e[r[n]];else{t.staff=[];for(var a=0;a<e.staff.length;a++){for(var i={},s=Object.keys(e.staff[a]),o=0;o<s.length;o++)if("voices"!==s[o])i[s[o]]=e.staff[a][s[o]];else{i.voices=[];for(var c=0;c<e.staff[a].voices.length;c++)i.voices.push([].concat(e.staff[a].voices[c]))}t.staff.push(i)}}return t}e.exports=function(e,t){t||(t={});for(var c=!!t.lineBreaks,l=[],h=!1,u=[],d=[],f=[],p=[],m=[],g=[],v=[],b=0;b<e.length;b++){var y=e[b];if(y.staff){if(h&&!y.vskip)for(var w=l[l.length-1],x=0;x<w.staff.length;x++){var k=y.staff[x],C=w.staff[x];if(k&&(s(k.meter,u[x])||(r(k.meter,k.voices),u[x]=k.meter,delete k.meter),s(k.key,d[x])||(n(k.key,k.voices),d[x]=k.key,delete k.key),k.title&&(C.abbrevTitle=k.title),s(k.clef,f[x])||(a(k.clef,k.voices),f[x]=k.clef,delete k.clef),s(k.vocalfont,p[x])||(i(k.vocalfont,k.voices,"vocalfont"),p[x]=k.vocalfont,delete k.vocalfont),s(k.gchordfont,m[x])||(i(k.gchordfont,k.voices,"gchordfont"),m[x]=k.gchordfont,delete k.gchordfont),s(k.tripletfont,g[x])||(i(k.tripletfont,k.voices,"tripletfont"),g[x]=k.tripletfont,delete k.tripletfont),s(k.annotationfont,v[x])||(i(k.annotationfont,k.voices,"annotationfont"),v[x]=k.annotationfont,delete k.annotationfont)),k)for(var T=0;T<C.voices.length;T++){var _=C.voices[T],S=k.voices[T];c&&_.push({el_type:"break"}),S&&(C.voices[T]=_.concat(S))}}else{for(var A=0;A<y.staff.length;A++)d[A]=y.staff[A].key,u[A]=y.staff[A].meter,f[A]=y.staff[A].clef;l.push(o(y))}h=!0}else h=!1,l.push(y)}return l}},9047:e=>{try{if("function"!=typeof window.CustomEvent){var t=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r};t.prototype=window.Event.prototype,window.CustomEvent=t}}catch(e){}var r=function(e){this.textarea=document.getElementById(e),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 r=this.textarea.createTextRange();r.collapse(!0),r.moveEnd("character",t),r.moveStart("character",e),r.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},683:(e,t,r)=>{var n=r(302),a=r(1155),i=r(5538),s=r(4528),o=r(9047);var c=function(e,t){this.abcjsParams=function(e){var t,r={};if(e.abcjsParams)for(t in e.abcjsParams)e.abcjsParams.hasOwnProperty(t)&&(r[t]=e.abcjsParams[t]);if(e.midi_options)for(t in e.midi_options)e.midi_options.hasOwnProperty(t)&&(r[t]=e.midi_options[t]);if(e.parser_options)for(t in e.parser_options)e.parser_options.hasOwnProperty(t)&&(r[t]=e.parser_options[t]);if(e.render_options)for(t in e.render_options)e.render_options.hasOwnProperty(t)&&(r[t]=e.render_options[t]);return r.tablature&&e.warnings_id&&(r.tablature.warnings_id=e.warnings_id),r}(t),t.indicate_changed&&(this.indicate_changed=!0),this.editarea="string"==typeof e?new o(e):e,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),t.canvas_id?this.div=t.canvas_id:t.paper_id?this.div=t.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)),t.selectionChangeCallback&&(this.selectionChangeCallback=t.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),t.synth&&i()&&(this.synth={el:t.synth.el,cursorControl:t.synth.cursorControl,options:t.synth.options}),t.generate_midi&&(this.generate_midi=t.generate_midi,this.abcjsParams.generateDownload&&("string"==typeof t.midi_download_id?this.downloadMidi=document.getElementById(t.midi_download_id):t.midi_download_id&&(this.downloadMidi=t.midi_download_id)),!1!==this.abcjsParams.generateInline&&("string"==typeof t.midi_id?this.inlineMidi=document.getElementById(t.midi_id):t.midi_id&&(this.inlineMidi=t.midi_id))),t.warnings_id?"string"==typeof t.warnings_id?this.warningsdiv=document.getElementById(t.warnings_id):this.warningsdiv=t.warnings_id:t.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=t.onchange,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(e,t){return function(e,t){var r=e.className;return r.length>0&&(r===t||new RegExp("(^|\\s)"+t+"(\\s|$)").test(r))}(e,t)||(e.className+=(e.className?" ":"")+t),e},this.removeClassName=function(e,t){return e.className=n.strip(e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ")),e},this.setReadOnly=function(e){var t="abc_textarea_readonly",r=this.editarea.getElem();e?(r.setAttribute("readonly","yes"),this.addClassName(r,t)):(r.removeAttribute("readonly"),this.removeClassName(r,t))}};c.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 a,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],t,this.synth.options)}},c.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}},c.prototype.paramChanged=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this.abcjsParams[t]=e[t]);this.currentAbc="",this.fireChanged()},c.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()}},c.prototype.parseABC=function(){var e=this.editarea.getString();return e===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=e,!0)},c.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(e){}this.selectionChangeCallback&&this.selectionChangeCallback(e.start,e.end)},c.prototype.fireSelectionChanged=function(){this.updateSelection()},c.prototype.setDirtyStyle=function(e){if(void 0!==this.indicate_changed){var t,r,a="abc_textarea_dirty",i=this.editarea.getElem();e?function(e,t){var r=e.className;return r.length>0&&(r===t||new RegExp("(^|\\s)"+t+"(\\s|$)").test(r))}(t=i,r=a)||(t.className+=(t.className?" ":"")+r):function(e,t){e.className=n.strip(e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," "))}(i,a)}},c.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)}},c.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},c.prototype.isDirty=function(){return void 0!==this.indicate_changed&&this.editarea.initialText!==this.editarea.getString()},c.prototype.highlight=function(e,t,r,n,a,i){this.editarea.setSelection(e.startChar,e.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(e.startChar,e.endChar),this.clientClickListener&&this.clientClickListener(e,t,r,n,a,i)},c.prototype.pause=function(e){this.bIsPaused=e,e||this.fireChanged()},c.prototype.millisecondsPerMeasure=function(){return this.synth&&this.synth.synthControl&&this.synth.synthControl.visualObj?this.synth.synthControl.visualObj.millisecondsPerMeasure():0},c.prototype.pauseMidi=function(e){this.midiPause=e,e||this.redrawMidi()},e.exports=c},3728:(e,t,r)=>{var n,a=r(9740);!function(){"use strict";function e(e,t,r){for(var n=Object.keys(t),a=0;a<n.length;a++)n[a]=parseFloat(n[a]);n.sort((function(e,t){return e-t}));for(var i=0,s=0;s<n.length;s++){var o=t[n[s]];if(n[s]>i){var c=(n[s]-i)*r;e.addRest(c),i=n[s]}for(var l=0;l<o.length;l++){var h=o[l];h.volume?e.startNote(h.pitch,h.volume,h.cents):e.endNote(h.pitch)}}}n=function(t,r){void 0===r&&(r={});var n=t.setUpAudio(r),i=a(),s=t.metaText?t.metaText.title:void 0;s&&s.length>128&&(s=s.substring(0,124)+"...");var o=t.getKeySignature(),c=t.getMeterFraction(),l=n.tempo/60;i.setGlobalInfo(n.tempo,s,o,c);for(var h=0;h<n.tracks.length;h++){i.startTrack();for(var u={},d=0;d<n.tracks[h].length;d++){var f=n.tracks[h][d];switch(f.cmd){case"text":i.setText(f.type,f.text);break;case"program":var p=0;r.pan&&r.pan.length>h&&(p=r.pan[h]),i.setChannel(f.channel,p),i.setInstrument(f.instrument);break;case"note":var m=f.gap*l,g=f.start,v=g+f.duration-m;u[g]||(u[g]=[]),u[g].push({pitch:f.pitch,volume:f.volume,cents:f.cents}),u[v]||(u[v]=[]),u[v].push({pitch:f.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+f.cmd)}}e(i,u,1920),i.endTrack()}return i.getData()}}(),e.exports=n},302:e=>{var t={clone:function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},cloneArray:function(e){for(var r=[],n=0;n<e.length;n++)r.push(t.clone(e[n]));return r},cloneHashOfHash:function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=t.clone(e[n]));return r},cloneHashOfArrayOfHash:function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=t.cloneArray(e[n]));return r},gsub:function(e,t,r){return e.split(t).join(r)},strip:function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(e,t){return 0===e.indexOf(t)},endsWith:function(e,t){var r=e.length-t.length;return r>=0&&e.lastIndexOf(t)===r},each:function(e,t,r){for(var n=0,a=e.length;n<a;n++)t.apply(r,[e[n],n])},last:function(e){return 0===e.length?null:e[e.length-1]},compact:function(e){for(var t=[],r=0;r<e.length;r++)e[r]&&t.push(e[r]);return t},detect:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return!0;return!1}};try{[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))}catch(e){}e.exports=t},4840:(e,t,r)=>{var n=r(302),a=r(6968),i=r(8289),s=r(4557),o=r(2371),c=r(1138),l=r(4909),h=r(3682);e.exports=function(){"use strict";var e,t=new l,r=new h(t),u="",d="";function f(e,t,r){e.positioning||(e.positioning={}),e.positioning[t]=r}function p(e,t,r){e.fonts||(e.fonts={}),e.fonts[t]=r}this.getTune=function(){var e={formatting:t.formatting,lines:t.lines,media:t.media,metaText:t.metaText,metaTextInfo:t.metaTextInfo,version:t.version,addElementToEvents:t.addElementToEvents,addUsefulCallbackInfo:t.addUsefulCallbackInfo,getTotalTime:t.getTotalTime,getTotalBeats:t.getTotalBeats,getBarLength:t.getBarLength,getBeatLength:t.getBeatLength,getBeatsPerMeasure:t.getBeatsPerMeasure,getBpm:t.getBpm,getMeter:t.getMeter,getMeterFraction:t.getMeterFraction,getPickupLength:t.getPickupLength,getKeySignature:t.getKeySignature,getElementFromChar:t.getElementFromChar,makeVoicesArray:t.makeVoicesArray,millisecondsPerMeasure:t.millisecondsPerMeasure,setupEvents:t.setupEvents,setTiming:t.setTiming,setUpAudio:t.setUpAudio,deline:t.deline};return t.lineBreaks&&(e.lineBreaks=t.lineBreaks),t.visualTranspose&&(e.visualTranspose=t.visualTranspose),e};var m,g,v={reset:function(){for(var e in this)this.hasOwnProperty(e)&&"function"!=typeof this[e]&&delete this[e];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.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[e].decoration!==t[e].decoration||(this[e].face!==t[e].face||(this[e].size!==t[e].size||(this[e].style!==t[e].style||this[e].weight!==t[e].weight)))},addFormattingOptions:function(e,t,r){"note"===r?("auto"!==this.vocalPosition&&f(e,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&f(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&f(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&f(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&f(e,"volumePosition",this.volumePosition),this.differentFont("annotationfont",t)&&p(e,"annotationfont",this.annotationfont),this.differentFont("gchordfont",t)&&p(e,"gchordfont",this.gchordfont),this.differentFont("vocalfont",t)&&p(e,"vocalfont",this.vocalfont),this.differentFont("tripletfont",t)&&p(e,"tripletfont",this.tripletfont)):"bar"===r&&("auto"!==this.dynamicPosition&&f(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&f(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&f(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&f(e,"volumePosition",this.volumePosition),this.differentFont("measurefont",t)&&p(e,"measurefont",this.measurefont),this.differentFont("repeatfont",t)&&p(e,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var e=0;e<this.inTie.length;e++)if(this.endingHoldOver.inTie.push([]),this.inTie[e])for(var t=0;t<this.inTie[e].length;t++)this.endingHoldOver.inTie[e].push(this.inTie[e][t]);for(var r in this.inTieChord)this.inTieChord.hasOwnProperty(r)&&(this.endingHoldOver.inTieChord[r]=this.inTieChord[r])},restoreStartEndingHoldOvers:function(){if(this.endingHoldOver.inTie){this.inTie=[],this.inTieChord={};for(var e=0;e<this.endingHoldOver.inTie.length;e++){this.inTie.push([]);for(var t=0;t<this.endingHoldOver.inTie[e].length;t++)this.inTie[e].push(this.endingHoldOver.inTie[e][t])}for(var r in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(r)&&(this.inTieChord[r]=this.endingHoldOver.inTieChord[r])}}},b=function(e){var t=n.gsub(e,""," ");return t=n.gsub(t,"&","&"),t=n.gsub(t,"<","<"),n.gsub(t,">",">")},y=function(t,r,n){r||(r=" ");var a=r.charAt(n);" "===a&&(a="SPACE");var i,s=b(r.substring(n-64,n))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+a+"</span>"+b(r.substring(n+1).substring(0,64));!function(e){v.warnings||(v.warnings=[]),v.warnings.push(e)}("Music Line:"+e.lineIndex+":"+(n+1)+": "+t+": "+s),i={message:t,line:r,startChar:v.iChar+n,column:n},v.warningObjects||(v.warningObjects=[]),v.warningObjects.push(i)};this.getWarnings=function(){return v.warnings},this.getWarningObjects=function(){return v.warningObjects};var w=function(t,r){if(r.indexOf("")>=0)u+=r;else if(r=u+r,u="",t){"-"!==(r=n.strip(r)).charAt(r.length-1)&&(r+=" ");for(var a=[],i=0,s=!1,o=function(t){var o=n.strip(r.substring(i,t));if(i=t+1,o.length>0){s&&(o=n.gsub(o,"~"," "));var c=r.charAt(t);return"_"!==c&&"-"!==c&&(c=" "),a.push({syllable:e.translateString(o),divider:c}),s=!1,!0}return!1},c=0;c<r.length;c++)switch(r.charAt(c)){case" ":case"":o(c);break;case"-":!o(c)&&a.length>0&&(n.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"~":s=!0}n.each(t,(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," ")),void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else y("Can't add words before the first line of music",t,0)},x=function(t,r){if(r.indexOf("")>=0)d+=r;else if(r=d+r,d="",t){"-"!==(r=n.strip(r)).charAt(r.length-1)&&(r+=" ");for(var a=[],i=0,s=!1,o=function(t){var o=n.strip(r.substring(i,t));if(i=t+1,o.length>0){s&&(o=n.gsub(o,"~"," "));var c=r.charAt(t);return"_"!==c&&"-"!==c&&(c=" "),a.push({syllable:e.translateString(o),divider:c}),s=!1,!0}return!1},c=0;c<r.length;c++)switch(r.charAt(c)){case" ":case"":o(c);break;case"-":!o(c)&&a.length>0&&(n.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"~":s=!0}n.each(t,(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)}}))}else y("Can't add symbols before the first line of music",t,0)},k=function(e){if(n.startsWith(e,"%%")){var t=a.addDirective(e.substring(2));t&&y(t,e,2)}else{var i=e.indexOf("%");if(i>=0&&(e=e.substring(0,i)),0!==(e=e.replace(/\s+$/,"")).length)if(u)w(r.getCurrentVoice(),e.substring(2));else if(d)x(r.getCurrentVoice(),e.substring(2));else if(e.length<2||":"!==e.charAt(1)||g.lineContinuation)g.parseMusic(e);else{var s=m.parseHeader(e);s.regular&&g.parseMusic(e),s.newline&&g.startNewLine(),s.words&&w(r.getCurrentVoice(),e.substring(2)),s.symbols&&x(r.getCurrentVoice(),e.substring(2))}}};function C(e,t){e.push({el_type:"hint"});for(var r=0;r<t.length;r++){var a=t[r],i=n.clone(a);if(e.push(i),"bar"===a.el_type)return}}function T(e,t){for(var r=0;r<e.length;r++){var n=e[r],a=t[r];if(a)for(var i=0;i<a.voices.length;i++){var s=a.voices[i],o=n.voices[i];o&&C(o,s)}}}this.parse=function(l,h,f){h||(h={}),f||(f=0),t.reset();var p=(l=l.replace(/\r\n?/g,"\n")+"\n").split("\n\\");if(p.length>1){for(var b=1;b<p.length;b++)for(;p[b].length>0&&"\n"!==p[b][0];)p[b]=p[b].substr(1),p[b-1]+=" ";l=p.join(" ")}var C=(l=l.replace(/\\([ \t]*)(%.*)*\n/g,(function(e,t,r){return t+""+(r?Array(r.length+1).join(" "):"")+"\n"}))).split("\n");0===n.last(C).length&&C.pop(),e=new o(C,v),m=new i(e,y,v,t,r),g=new s(e,y,v,t,r,m),h.print&&(t.media="print"),v.reset(),v.iChar=f,h.visualTranspose?(v.globalTranspose=parseInt(h.visualTranspose),0===v.globalTranspose?v.globalTranspose=void 0:r.setVisualTranspose(h.visualTranspose)):v.globalTranspose=void 0,h.lineBreaks&&(v.lineBreaks=h.lineBreaks),m.reset(e,y,v,t);try{h.format&&a.globalFormatting(h.format);for(var _=e.nextLine();_;){if(h.header_only&&!1===v.is_in_header)throw"normal_abort";if(h.stop_on_warning&&v.warnings)throw"normal_abort";var S=v.is_in_header;k(_),S&&!v.is_in_header&&(r.setRunningFont("annotationfont",v.annotationfont),r.setRunningFont("gchordfont",v.gchordfont),r.setRunningFont("tripletfont",v.tripletfont),r.setRunningFont("vocalfont",v.vocalfont)),_=e.nextLine()}u&&w(r.getCurrentVoice(),""),d&&x(r.getCurrentVoice(),""),v.openSlurs=r.cleanUp(v.barsperstaff,v.staffnonote,v.openSlurs)}catch(e){if("normal_abort"!==e)throw e}var A=792,E=612;switch(v.papersize){case"legal":A=1008,E=612;break;case"A4":A=842.4,E=597.6}if(v.landscape){var N=A;A=E,E=N}t.formatting.pagewidth||(t.formatting.pagewidth=E),t.formatting.pageheight||(t.formatting.pageheight=A),h.hint_measures&&function(){for(var e=0;e<t.lines.length;e++){var r=t.lines[e].staff;if(r){for(var n=e+1;n<t.lines.length&&void 0===t.lines[n].staff;)n++;n<t.lines.length&&T(r,t.lines[n].staff)}}}(),c.wrapLines(t,v.lineBreaks)}}},5533:(e,t,r)=>{var n=r(302);e.exports=function(e){"use strict";for(var t="",r=(e=n.strip(e)).split("\nX:"),a=1;a<r.length;a++)r[a]="X:"+r[a];var i=0,s=[];if(n.each(r,(function(e){s.push({abc:e,startPos:i}),i+=e.length+1})),s.length>1&&!n.startsWith(s[0].abc,"X:")){var o=s.shift().abc.split("\n");n.each(o,(function(e){n.startsWith(e,"%%")&&(t+=e+"\n")}))}var c=t;return n.each(s,(function(e){var r=e.abc.indexOf("\n\n");r>0&&(e.abc=e.abc.substring(0,r)),e.pure=e.abc,e.abc=t+e.abc,e.title="";var a=e.pure.split("T:");a.length>1&&(a=a[1].split("\n"),e.title=n.strip(a[0]));var i=e.pure.substring(2,e.pure.indexOf("\n"));e.id=n.strip(i)})),{header:c,tunes:s}}},6968:(e,t,r)=>{var n=r(302),a={};!function(){"use strict";var e,t,r,i,s;a.initialize=function(n,a,o,c,l){e=n,t=a,i=c,s=l,(r=o).annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},r.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},r.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},r.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},r.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},i.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},i.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},i.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},i.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},i.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},i.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},i.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},i.formatting.annotationfont=r.annotationfont,i.formatting.gchordfont=r.gchordfont,i.formatting.historyfont=r.historyfont,i.formatting.infofont=r.infofont,i.formatting.measurefont=r.measurefont,i.formatting.partsfont=r.partsfont,i.formatting.repeatfont=r.repeatfont,i.formatting.textfont=r.textfont,i.formatting.tripletfont=r.tripletfont,i.formatting.vocalfont=r.vocalfont,i.formatting.wordsfont=r.wordsfont};var o={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},c=function(e,r,n,a,i){function s(){var s=parseInt(e[0].token);return e.shift(),r?0===e.length?{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s}:1===e.length&&"box"===e[0].token&&o[i]?{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s,box:!0}:(t("Extra parameters in font definition.",n,a),{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s}):(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:s})}if("*"===e[0].token){if(e.shift(),"number"===e[0].type)return s();t("Expected font size number after *.",n,a)}if("number"===e[0].type)return s();for(var c,l=[],h="normal",u="normal",d="none",f=!1,p="face",m=!1;e.length;){var g=e.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?l.length>0&&"-"===g.token?(m=!0,l[l.length-1]=l[l.length-1]+g.token):m?(m=!1,l[l.length-1]=l[l.length-1]+g.token):l.push(g.token):"number"===g.type?(c?t("Font size specified twice in font definition.",n,a):c=g.token,p="modifier"):"bold"===v?h="bold":"italic"===v?u="italic":"underline"===v?d="underline":"box"===v?(o[i]?f=!0:t('This font style doesn\'t support "box"',n,a),p="finished"):"utf"===v?(g=e.shift(),p="size"):t("Unknown parameter "+g.token+" in font definition.",n,a);break;case"size":"number"===g.type?c?t("Font size specified twice in font definition.",n,a):c=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?(o[i]?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===c?r?c=r.size:(t("Must specify the size of the font since there is no default value.",n,a),c=12):c=parseFloat(c),""===(l=l.join(" "))&&(r?l=r.face:(t("Must specify the name of the font since there is no default value.",n,a),l="sans-serif"));var b=function(e){switch(e){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}}(l),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=c,f&&(y.box=!0),y):(y.face=l,y.weight=h,y.style=u,y.decoration=d,y.size=c,f&&(y.box=!0),y)},l=function(e,t,n){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(r[e]=c(t,r[e],n,0,e),r.is_in_header&&(i.formatting[e]=r[e]),null)},h=function(e,t){var r="";n.each(t,(function(e){r+=e.token}));var a=parseFloat(r);if(isNaN(a)||0===a)return'Directive "'+e+'" requires a number as a parameter.';i.formatting.scale=a},u=["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"],d=function(e,t,n,a,i){if(1!==n.length||"number"!==n[0].type)return'Directive "'+t+'" requires a number as a parameter.';var s=n[0].intt;return void 0!==a&&s<a?'Directive "'+t+'" requires a number greater than or equal to '+a+" as a parameter.":void 0!==i&&s>i?'Directive "'+t+'" requires a number less than or equal to '+i+" as a parameter.":(r[e]=s,null)},f=function(e,t,n){if(1===n.length&&("true"===n[0].token||"false"===n[0].token))return r[e]="true"===n[0].token,null;var a=d(e,t,n,0,1);return null!==a?a:(r[e]=1===r[e],null)},p=function(e,t,n,a){if(1!==n.length)return'Directive "'+t+'" requires one of [ '+a.join(", ")+" ] as a parameter.";for(var i=n[0].token,s=!1,o=0;!s&&o<a.length;o++)a[o]===i&&(s=!0);return s?(r[e]=i,null):'Directive "'+t+'" requires one of [ '+a.join(", ")+" ] as a parameter."},m=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],g=["gchord","ptstress","beatstring"],v=["bassvol","chordvol","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","vol","volinc"],b=["program"],y=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],w=["beat"],x=["drone"],k=["portamento"],C=["expand","grace","trim"],T=["drum","chordname"];a.parseFontChangeLine=function(e){var t=e.split("$");if(t.length>1&&r.setfont){for(var n=[{text:t[0]}],a=1;a<t.length;a++)"0"===t[a].charAt(0)?n.push({text:t[a].substring(1)}):"1"===t[a].charAt(0)&&r.setfont[1]?n.push({font:r.setfont[1],text:t[a].substring(1)}):"2"===t[a].charAt(0)&&r.setfont[2]?n.push({font:r.setfont[2],text:t[a].substring(1)}):"3"===t[a].charAt(0)&&r.setfont[3]?n.push({font:r.setfont[3],text:t[a].substring(1)}):"4"===t[a].charAt(0)&&r.setfont[4]?n.push({font:r.setfont[4],text:t[a].substring(1)}):n[n.length-1].text+="$"+t[a];if(n.length>1)return n}return e};var _=["auto","above","below","hidden"];function S(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};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+")"}}a.addDirective=function(o){var A=e.tokenize(o,0,o.length);if(0===A.length||"alpha"!==A[0].type)return null;var E=o.substring(o.indexOf(A[0].token)+A[0].token.length);E=e.stripComment(E);var N,M=A.shift().token.toLowerCase(),B="";switch(M){case"bagpipes":i.formatting.bagpipes=!0;break;case"flatbeams":i.formatting.flatbeams=!0;break;case"jazzchords":i.formatting.jazzchords=!0;break;case"landscape":r.landscape=!0;break;case"papersize":r.papersize=E;break;case"graceslurs":if(1!==A.length)return"Directive graceslurs requires one parameter: 0 or 1";if("0"===A[0].token||"false"===A[0].token)i.formatting.graceSlurs=!1;else{if("1"!==A[0].token&&"true"!==A[0].token)return"Directive graceslurs requires one parameter: 0 or 1 (received "+A[0].token+")";i.formatting.graceSlurs=!0}break;case"stretchlast":var P=S(A);if(void 0!==P.value&&(i.formatting.stretchlast=P.value),P.error)return P.error;break;case"titlecaps":r.titlecaps=!0;break;case"titleleft":i.formatting.titleleft=!0;break;case"measurebox":i.formatting.measurebox=!0;break;case"vocal":return p("vocalPosition",M,A,_);case"dynamic":return p("dynamicPosition",M,A,_);case"gchord":return p("chordPosition",M,A,_);case"ornament":return p("ornamentPosition",M,A,_);case"volume":return p("volumePosition",M,A,_);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 function(t,r){var n=e.getMeasurement(r);return 0===n.used||0!==r.length?'Directive "'+t+'" requires a measurement as a parameter.':(i.formatting[t]=n.value,null)}(M,A);case"voicescale":if(1!==A.length||"number"!==A[0].type)return"voicescale requires one float as a parameter";var L=A.shift();return r.currentVoice&&(r.currentVoice.scale=L.floatt,s.changeVoiceScale(r.currentVoice.scale)),null;case"vskip":var H=Math.round(function(t,r){var n=e.getMeasurement(r);return 0===n.used||0!==r.length?{error:'Directive "'+t+'" requires a measurement as a parameter.'}:n.value}(M,A));return H.error?H.error:(s.addSpacing(H),null);case"scale":h(M,A);break;case"sep":if(0===A.length)s.addSeparator(14,14,85,{startChar:r.iChar,endChar:r.iChar+5});else{var z=e.getMeasurement(A);if(0===z.used)return'Directive "'+M+'" requires 3 numbers: space above, space below, length of line';var O=z.value;if(0===(z=e.getMeasurement(A)).used)return'Directive "'+M+'" requires 3 numbers: space above, space below, length of line';var F=z.value;if(0===(z=e.getMeasurement(A)).used||0!==A.length)return'Directive "'+M+'" requires 3 numbers: space above, space below, length of line';var D=z.value;s.addSeparator(O,F,D,{startChar:r.iChar,endChar:r.iChar+E.length})}break;case"barsperstaff":if(null!==(B=d("barsperstaff",M,A)))return B;break;case"staffnonote":if(1!==A.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===A[0].token)r.staffnonote=!0;else{if("1"!==A[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+A[0].token+")";r.staffnonote=!1}break;case"printtempo":if(null!==(B=f("printTempo",M,A)))return B;break;case"partsbox":if(null!==(B=f("partsBox",M,A)))return B;r.partsfont.box=r.partsBox;break;case"freegchord":if(null!==(B=f("freegchord",M,A)))return B;break;case"measurenb":case"barnumbers":if(null!==(B=d("barNumbers",M,A)))return B;break;case"setbarnb":if(1!==A.length||"number"!==A[0].type)return"Directive setbarnb requires a number as a parameter.";r.currBarNumber=s.setBarNumberImmediate(A[0].intt);break;case"begintext":var I="";for(N=e.nextLine();N&&0!==N.indexOf("%%endtext");)n.startsWith(N,"%%")?I+=N.substring(2)+"\n":I+=N+"\n",N=e.nextLine();s.addText(I,{startChar:r.iChar,endChar:r.iChar+I.length+7});break;case"continueall":r.continueall=!0;break;case"beginps":for(N=e.nextLine();N&&0!==N.indexOf("%%endps");)e.nextLine();t("Postscript ignored",o,0);break;case"deco":E.length>0&&r.ignoredDecorations.push(E.substring(0,E.indexOf(" "))),t("Decoration redefinition ignored",o,0);break;case"text":var j=e.translateString(E);s.addText(a.parseFontChangeLine(j),{startChar:r.iChar,endChar:r.iChar+E.length+7});break;case"center":var V=e.translateString(E);s.addCentered(a.parseFontChangeLine(V));break;case"font":break;case"setfont":var Y=e.tokenize(E,0,E.length);if(Y.length>=4&&"-"===Y[0].token&&"number"===Y[1].type){var q=parseInt(Y[1].token);q>=1&&q<=4&&(r.setfont||(r.setfont=[]),Y.shift(),Y.shift(),r.setfont[q]=c(Y,r.setfont[q],o,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(M,A,o);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(e,t,r){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(i.formatting[e]=c(t,i.formatting[e],r,0,e),null)}(M,A,o);case"barlabelfont":case"barnumberfont":case"barnumfont":return l("measurefont",A,o);case"staves":case"score":r.score_is_present=!0;for(var G,W=function(e,t,a,i,s){(t||0===r.staves.length)&&r.staves.push({index:r.staves.length,numVoices:0});var o=n.last(r.staves);void 0!==a&&void 0===o.bracket&&(o.bracket=a),void 0!==i&&void 0===o.brace&&(o.brace=i),s&&(o.connectBarLines="end"),void 0===r.voices[e]&&(r.voices[e]={staffNum:o.index,index:o.numVoices},o.numVoices++)},R=!1,X=!1,U=!1,K=!1,Q=!1,$=!1,J=!1,Z=function(){if(J=!0,G){var e="start";G.staffNum>0&&("start"!==r.staves[G.staffNum-1].connectBarLines&&"continue"!==r.staves[G.staffNum-1].connectBarLines||(e="continue")),r.staves[G.staffNum].connectBarLines=e}};A.length;){var ee=A.shift();switch(ee.token){case"(":R?t("Can't nest parenthesis in %%score",o,ee.start):(R=!0,K=!0);break;case")":!R||K?t("Unexpected close parenthesis in %%score",o,ee.start):R=!1;break;case"[":X?t("Can't nest brackets in %%score",o,ee.start):(X=!0,Q=!0);break;case"]":!X||Q?t("Unexpected close bracket in %%score",o,ee.start):(X=!1,r.staves[G.staffNum].bracket="end");break;case"{":U?t("Can't nest braces in %%score",o,ee.start):(U=!0,$=!0);break;case"}":!U||$?t("Unexpected close brace in %%score",o,ee.start):(U=!1,r.staves[G.staffNum].brace="end");break;case"|":Z();break;default:for(var te="";("alpha"===ee.type||"number"===ee.type)&&(te+=ee.token,ee.continueId);)ee=A.shift();W(te,!R||K,Q?"start":X?"continue":void 0,$?"start":U?"continue":void 0,J),K=!1,Q=!1,$=!1,J=!1,G=r.voices[te],"staves"===M&&Z()}}break;case"newpage":var re=e.getInt(E);s.addNewPage(0===re.digits?-1:re.value);break;case"abc":var ne=E.split(" ");switch(ne[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var ae=ne.shift();s.addMetaText(M+ae,ne.join(" "),{startChar:r.iChar,endChar:r.iChar+E.length+5});break;default:return"Unknown directive: "+M+ne[0]}break;case"header":case"footer":var ie=e.getMeat(E,0,E.length);'"'===(ie=E.substring(ie.start,ie.end)).charAt(0)&&'"'===ie.charAt(ie.length-1)&&(ie=ie.substring(1,ie.length-1));var se=ie.split("\t"),oe={};oe=1===se.length?{left:"",center:se[0],right:""}:2===se.length?{left:se[0],center:se[1],right:""}:{left:se[0],center:se[1],right:se[2]},se.length>3&&t("Too many tabs in "+M+": "+se.length+" found.",E,0),s.addMetaTextObj(M,oe,{startChar:r.iChar,endChar:r.iChar+o.length});break;case"midi":var ce=e.tokenize(E,0,E.length,!0);ce.length>0&&"="===ce[0].token&&ce.shift(),0===ce.length?t("Expected midi command",E,0):function(e,r,n){var a=e.shift().token,i=[];if(m.indexOf(a)>=0)0!==e.length&&t("Unexpected parameter in MIDI "+a,n,0);else if(g.indexOf(a)>=0)1!==e.length?t("Expected one parameter in MIDI "+a,n,0):i.push(e[0].token);else if(v.indexOf(a)>=0)1!==e.length?t("Expected one parameter in MIDI "+a,n,0):"number"!==e[0].type?t("Expected one integer parameter in MIDI "+a,n,0):i.push(e[0].intt);else if(b.indexOf(a)>=0)1!==e.length&&2!==e.length?t("Expected one or two parameters in MIDI "+a,n,0):"number"!==e[0].type||2===e.length&&"number"!==e[1].type?t("Expected integer parameter in MIDI "+a,n,0):(i.push(e[0].intt),2===e.length&&i.push(e[1].intt));else if(y.indexOf(a)>=0)2!==e.length?t("Expected two parameters in MIDI "+a,n,0):"number"!==e[0].type||"number"!==e[1].type?t("Expected two integer parameters in MIDI "+a,n,0):(i.push(e[0].intt),i.push(e[1].intt));else if(k.indexOf(a)>=0)2!==e.length?t("Expected two parameters in MIDI "+a,n,0):"alpha"!==e[0].type||"number"!==e[1].type?t("Expected one string and one integer parameters in MIDI "+a,n,0):(i.push(e[0].token),i.push(e[1].intt));else if("drummap"===a)2===e.length&&"alpha"===e[0].type&&"number"===e[1].type?(r.formatting||(r.formatting={}),r.formatting.midi||(r.formatting.midi={}),r.formatting.midi.drummap||(r.formatting.midi.drummap={}),r.formatting.midi.drummap[e[0].token]=e[1].intt,i=r.formatting.midi.drummap):3===e.length&&"punct"===e[0].type&&"alpha"===e[1].type&&"number"===e[2].type?(r.formatting||(r.formatting={}),r.formatting.midi||(r.formatting.midi={}),r.formatting.midi.drummap||(r.formatting.midi.drummap={}),r.formatting.midi.drummap[e[0].token+e[1].token]=e[2].intt,i=r.formatting.midi.drummap):t("Expected one note name and one integer parameter in MIDI "+a,n,0);else if(C.indexOf(a)>=0)3!==e.length||"number"!==e[0].type||"/"!==e[1].token||"number"!==e[2].type?t("Expected fraction parameter in MIDI "+a,n,0):(i.push(e[0].intt),i.push(e[2].intt));else if(w.indexOf(a)>=0)4!==e.length?t("Expected four parameters in MIDI "+a,n,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type?t("Expected four integer parameters in MIDI "+a,n,0):(i.push(e[0].intt),i.push(e[1].intt),i.push(e[2].intt),i.push(e[3].intt));else if(x.indexOf(a)>=0)5!==e.length?t("Expected five parameters in MIDI "+a,n,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type||"number"!==e[4].type?t("Expected five integer parameters in MIDI "+a,n,0):(i.push(e[0].intt),i.push(e[1].intt),i.push(e[2].intt),i.push(e[3].intt),i.push(e[4].intt));else if(b.indexOf(a)>=0)1!==e.length||4!==e.length?t("Expected one or two parameters in MIDI "+a,n,0):"number"!==e[0].type?t("Expected integer parameter in MIDI "+a,n,0):4===e.length?("octave"!==e[1].token&&t("Expected octave parameter in MIDI "+a,n,0),"="!==e[2].token&&t("Expected octave parameter in MIDI "+a,n,0),"number"!==e[3].type&&t("Expected integer parameter for octave in MIDI "+a,n,0)):(i.push(e[0].intt),4===e.length&&i.push(e[3].intt));else if(T.indexOf(a)>=0)if(e.length<2)t("Expected string parameter and at least one integer parameter in MIDI "+a,n,0);else if("alpha"!==e[0].type)t("Expected string parameter and at least one integer parameter in MIDI "+a,n,0);else{var o=e.shift();for(i.push(o.token);e.length>0;)"number"!==(o=e.shift()).type&&t("Expected integer parameter in MIDI "+a,n,0),i.push(o.intt)}s.hasBeginMusic()?s.appendElement("midi",-1,-1,{cmd:a,params:i}):(void 0===r.formatting.midi&&(r.formatting.midi={}),r.formatting.midi[a]=i)}(ce,i,E);break;case"percmap":var le=function(e){var t=e.split(/\s+/);if(2!==t.length&&3!==t.length)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var r=t[0],n=parseInt(t[1],10);if((isNaN(n)||n<35||n>81)&&t[1]&&(n=u.indexOf(t[1].toLowerCase())+35),isNaN(n)||n<35||n>81)return{error:'Expected drum name, received "'+t[1]+'"'};var a={sound:n};return 3===t.length&&(a.noteHead=t[2]),{key:r,value:a}}(E);le.error?t(le.error,o,8):(i.formatting.percmap||(i.formatting.percmap={}),i.formatting.percmap[le.key]=le.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":i.formatting[M]=E;break;default:return"Unknown directive: "+M}return null},a.globalFormatting=function(n){for(var a in n)if(n.hasOwnProperty(a)){var s,o=""+n[a],c=e.tokenize(o,0,o.length);switch(a){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(a,c,o);break;case"scale":h(a,c);break;case"partsbox":null!==(s=f("partsBox",a,c))&&t(s),r.partsfont.box=r.partsBox;break;case"freegchord":null!==(s=f("freegchord",a,c))&&t(s);break;case"fontboxpadding":1===c.length&&"number"===c[0].type||t('Directive "'+a+'" requires a number as a parameter.'),i.formatting.fontboxpadding=c[0].floatt;break;case"stretchlast":var u=S(c);if(void 0!==u.value&&(i.formatting.stretchlast=u.value),u.error)return u.error;break;default:t("Formatting directive unrecognized: ",a,0)}}}}(),e.exports=a},8289:(e,t,r)=>{var n=r(302),a=r(6968),i=r(6483);e.exports=function(e,t,r,s,o){this.reset=function(e,t,r,n){i.initialize(e,t,r,n,o),a.initialize(e,t,r,n,o)},this.reset(e,t,r,s),this.setTitle=function(t){if(r.hasMainTitle)o.addSubtitle(e.translateString(e.stripComment(t)),{startChar:r.iChar,endChar:r.iChar+t.length+2});else{var n=e.translateString(e.theReverser(e.stripComment(t)));r.titlecaps&&(n=n.toUpperCase()),o.addMetaText("title",n,{startChar:r.iChar,endChar:r.iChar+t.length+2}),r.hasMainTitle=!0}},this.setMeter=function(n){if("C"===(n=e.stripComment(n)))return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"common_time"};if("C|"===n)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"cut_time"};if("o"===n)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===n)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===n)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===n)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===n.length||"none"===n.toLowerCase())return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),null;var a=e.tokenize(n,0,n.length);try{var i=function(){var e=function(){var e={value:0,num:""},t=a.shift();for("("===t.token&&(t=a.shift());;){if("number"!==t.type)throw"Expected top number of meter";if(e.value+=parseInt(t.token),e.num+=t.token,0===a.length||"/"===a[0].token)return e;if(")"===(t=a.shift()).token){if(0===a.length||"/"===a[0].token)return e;throw"Unexpected paren in meter"}if("."!==t.token&&"+"!==t.token)throw"Expected top number of meter";if(e.num+=t.token,0===a.length)throw"Expected top number of meter";t=a.shift()}return e}();if(0===a.length)return e;var t=a.shift();if("/"!==t.token)throw"Expected slash in meter";if("number"!==(t=a.shift()).type)throw"Expected bottom number of meter";return e.den=t.token,e.value=e.value/parseInt(e.den),e};if(0===a.length)throw"Expected meter definition in M: line";for(var s={type:"specified",value:[]},o=0;;){var c=i();o+=c.value;var l={num:c.num};if(void 0!==c.den&&(l.den=c.den),s.value.push(l),0===a.length)break}return!0===r.havent_set_length&&(r.default_length=o<.75?.0625:.125,r.havent_set_length=!1),s}catch(e){t(e,n,0)}return null},this.calcTempo=function(e){var t=1/4;r.meter&&"specified"===r.meter.type?t=1/parseInt(r.meter.value[0].den):r.origMeter&&"specified"===r.origMeter.type&&(t=1/parseInt(r.origMeter.value[0].den));for(var n=0;n<e.duration;n++)e.duration[n]=t*e.duration[n];return e},this.resolveTempo=function(){r.tempo&&(this.calcTempo(r.tempo),s.metaText.tempo=r.tempo,delete r.tempo)},this.addUserDefinition=function(e,a,i){var s=e.indexOf("=",a);if(-1!==s){var o=n.strip(e.substring(a,s)),c=n.strip(e.substring(s+1));if(1===o.length){-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(o)?0!==c.length?(void 0===r.macros&&(r.macros={}),r.macros[o]=c):t("Missing macro definition",e,a):t("Macro definitions must be H-Y, h-w, or tilde",e,a)}else t("Macro definitions can only be one character",e,a)}else t("Need an = in a macro definition",e,a)},this.setDefaultLength=function(e,t,a){var i=n.gsub(e.substring(t,a)," ","").split("/");if(2===i.length){var s=parseInt(i[0]),o=parseInt(i[1]);o>0&&(r.default_length=s/o,r.havent_set_length=!1)}else 1===i.length&&"1"===i[0]&&(r.default_length=1,r.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(n,a,i,s){try{var o=e.tokenize(n,a,i);if(0===o.length)throw"Missing parameter in Q: field";var l={startChar:s+a-2,endChar:s+i},h=!0,u=o.shift();if("quote"===u.type&&(l.preString=u.token,u=o.shift(),0===o.length))return c[l.preString.toLowerCase()]&&(l.bpm=c[l.preString.toLowerCase()],l.suppressBpm=!0),{type:"immediate",tempo:l};if("alpha"===u.type&&"C"===u.token){if(0===o.length)throw"Missing tempo after C in Q: field";if("punct"===(u=o.shift()).type&&"="===u.token){if(0===o.length)throw"Missing tempo after = in Q: field";if("number"!==(u=o.shift()).type)throw"Expected number after = in Q: field";l.duration=[1],l.bpm=parseInt(u.token)}else{if("number"!==u.type)throw"Expected number or equal after C in Q: field";if(l.duration=[parseInt(u.token)],0===o.length)throw"Missing = after duration in Q: field";if("punct"!==(u=o.shift()).type||"="!==u.token)throw"Expected = after duration in Q: field";if(0===o.length)throw"Missing tempo after = in Q: field";if("number"!==(u=o.shift()).type)throw"Expected number after = in Q: field";l.bpm=parseInt(u.token)}}else{if("number"!==u.type)throw"Unknown value in Q: field";var d=parseInt(u.token);if(0===o.length||"quote"===o[0].type)l.duration=[1],l.bpm=d;else{if(h=!1,"punct"!==(u=o.shift()).type&&"/"!==u.token)throw"Expected fraction in Q: field";if("number"!==(u=o.shift()).type)throw"Expected fraction in Q: field";var f=parseInt(u.token);for(l.duration=[d/f];o.length>0&&"="!==o[0].token&&"quote"!==o[0].type;){if("number"!==(u=o.shift()).type)throw"Expected fraction in Q: field";if(d=parseInt(u.token),"punct"!==(u=o.shift()).type&&"/"!==u.token)throw"Expected fraction in Q: field";if("number"!==(u=o.shift()).type)throw"Expected fraction in Q: field";f=parseInt(u.token),l.duration.push(d/f)}if("punct"!==(u=o.shift()).type&&"="!==u.token)throw"Expected = in Q: field";if("number"!==(u=o.shift()).type)throw"Expected tempo in Q: field";l.bpm=parseInt(u.token)}}if(0!==o.length&&("quote"===(u=o.shift()).type&&(l.postString=u.token,u=o.shift()),0!==o.length))throw"Unexpected string at end of Q: field";return!1===r.printTempo&&(l.suppress=!0),{type:h?"delaySet":"immediate",tempo:l}}catch(e){return t(e,n,a),{type:"none"}}},this.letter_to_inline_header=function(n,c,l){var h=e.eatWhiteSpace(n,c);if(c+=h,n.length>=c+5&&"["===n.charAt(c)&&":"===n.charAt(c+2)){var u=n.indexOf("]",c),d=r.iChar+c,f=r.iChar+u+1;switch(n.substring(c,c+3)){case"[I:":var p=a.addDirective(n.substring(c+3,u));return p&&t(p,n,c),[u-c+1+h];case"[M:":var m=this.setMeter(n.substring(c+3,u));return o.hasBeginMusic()&&m?o.appendStartingElement("meter",d,f,m):r.meter=m,[u-c+1+h];case"[K:":var g=i.parseKey(n.substring(c+3,u));return g.foundClef&&o.hasBeginMusic()&&o.appendStartingElement("clef",d,f,r.clef),g.foundKey&&o.hasBeginMusic()&&o.appendStartingElement("key",d,f,i.fixKey(r.clef,r.key)),[u-c+1+h];case"[P:":return l||s.lines.length<=s.lineNum?r.partForNextLine={title:n.substring(c+3,u),startChar:d,endChar:f}:o.appendElement("part",d,f,{title:n.substring(c+3,u)}),[u-c+1+h];case"[L:":return this.setDefaultLength(n,c+3,u),[u-c+1+h];case"[Q:":if(u>0){var v=this.setTempo(n,c+3,u,r.iChar);return"delaySet"===v.type?o.hasBeginMusic()?o.appendElement("tempo",d,f,this.calcTempo(v.tempo)):r.tempoForNextLine=["tempo",d,f,this.calcTempo(v.tempo)]:"immediate"===v.type&&(!l&&o.hasBeginMusic()?o.appendElement("tempo",d,f,v.tempo):r.tempoForNextLine=["tempo",d,f,v.tempo]),[u-c+1+h,n.charAt(c+1),n.substring(c+3,u)]}break;case"[V:":if(u>0)return i.parseVoice(n,c+3,u),[u-c+1+h,n.charAt(c+1),n.substring(c+3,u)]}}return[0]},this.letter_to_body_header=function(e,s){if(e.length>=s+3)switch(e.substring(s,s+2)){case"I:":var c=a.addDirective(e.substring(s+2));return c&&t(c,e,s),[e.length];case"M:":var l=this.setMeter(e.substring(s+2));return o.hasBeginMusic()&&l&&o.appendStartingElement("meter",r.iChar+s,r.iChar+e.length,l),[e.length];case"K:":var h=i.parseKey(e.substring(s+2));return h.foundClef&&o.hasBeginMusic()&&o.appendStartingElement("clef",r.iChar+s,r.iChar+e.length,r.clef),h.foundKey&&o.hasBeginMusic()&&o.appendStartingElement("key",r.iChar+s,r.iChar+e.length,i.fixKey(r.clef,r.key)),[e.length];case"P:":return o.hasBeginMusic()&&o.appendElement("part",r.iChar+s,r.iChar+e.length,{title:e.substring(s+2)}),[e.length];case"L:":return this.setDefaultLength(e,s+2,e.length),[e.length];case"Q:":var u=e.indexOf("",s+2);-1===u&&(u=e.length);var d=this.setTempo(e,s+2,u,r.iChar);return"delaySet"===d.type?o.appendElement("tempo",r.iChar+s,r.iChar+e.length,this.calcTempo(d.tempo)):"immediate"===d.type&&o.appendElement("tempo",r.iChar+s,r.iChar+e.length,d.tempo),[u,e.charAt(s),n.strip(e.substring(s+2))];case"V:":return i.parseVoice(e,s+2,e.length),[e.length,e.charAt(s),n.strip(e.substring(s+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(n){var c=l[n.charAt(0)];if(void 0!==c)return"unalignedWords"===c?o.addMetaTextArray(c,a.parseFontChangeLine(e.translateString(e.stripComment(n.substring(2)))),{startChar:r.iChar,endChar:r.iChar+n.length}):o.addMetaText(c,e.translateString(e.stripComment(n.substring(2))),{startChar:r.iChar,endChar:r.iChar+n.length}),{};var h=r.iChar,u=h+n.length;switch(n.charAt(0)){case"H":for(o.addMetaText("history",e.translateString(e.stripComment(n.substring(2))),{startChar:r.iChar,endChar:r.iChar+n.length}),n=e.peekLine();n&&":"!==n.charAt(1);)e.nextLine(),o.addMetaText("history",e.translateString(e.stripComment(n)),{startChar:r.iChar,endChar:r.iChar+n.length}),n=e.peekLine();break;case"K":this.resolveTempo();var d=i.parseKey(n.substring(2));!r.is_in_header&&o.hasBeginMusic()&&(d.foundClef&&o.appendStartingElement("clef",h,u,r.clef),d.foundKey&&o.appendStartingElement("key",h,u,i.fixKey(r.clef,r.key))),r.is_in_header=!1;break;case"L":this.setDefaultLength(n,2,n.length);break;case"M":r.origMeter=r.meter=this.setMeter(n.substring(2));break;case"P":r.is_in_header?o.addMetaText("partOrder",e.translateString(e.stripComment(n.substring(2))),{startChar:r.iChar,endChar:r.iChar+n.length}):r.partForNextLine={title:e.translateString(e.stripComment(n.substring(2))),startChar:h,endChar:u};break;case"Q":var f=this.setTempo(n,2,n.length,r.iChar);"delaySet"===f.type?r.tempo=f.tempo:"immediate"===f.type&&(s.metaText.tempo?r.tempoForNextLine=["tempo",h,u,f.tempo]:s.metaText.tempo=f.tempo);break;case"T":this.setTitle(n.substring(2));break;case"U":this.addUserDefinition(n,2,n.length);break;case"V":if(i.parseVoice(n,2,n.length),!r.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":t("Ignored header",n,0);break;default:return{regular:!0}}return{}}}},6483:(e,t,r)=>{var n=r(302),a=r(6968),i=r(4846),s={};!function(){var e,t,r,o;s.initialize=function(n,a,i,s,c){e=n,t=a,r=i,s,o=c},s.standardKey=function(e,t,n,a){var s={acc:"sharp",note:"f"},o={acc:"sharp",note:"c"},c={acc:"sharp",note:"g"},l={acc:"sharp",note:"d"},h={acc:"sharp",note:"A"},u={acc:"sharp",note:"e"},d={acc:"sharp",note:"B"},f={acc:"flat",note:"B"},p={acc:"flat",note:"e"},m={acc:"flat",note:"A"},g={acc:"flat",note:"d"},v={acc:"flat",note:"G"},b={acc:"flat",note:"c"},y={acc:"flat",note:"F"},w={"C#":[s,o,c,l,h,u,d],"A#m":[s,o,c,l,h,u,d],"G#Mix":[s,o,c,l,h,u,d],"D#Dor":[s,o,c,l,h,u,d],"E#Phr":[s,o,c,l,h,u,d],"F#Lyd":[s,o,c,l,h,u,d],"B#Loc":[s,o,c,l,h,u,d],"F#":[s,o,c,l,h,u],"D#m":[s,o,c,l,h,u],"C#Mix":[s,o,c,l,h,u],"G#Dor":[s,o,c,l,h,u],"A#Phr":[s,o,c,l,h,u],BLyd:[s,o,c,l,h,u],"E#Loc":[s,o,c,l,h,u],B:[s,o,c,l,h],"G#m":[s,o,c,l,h],"F#Mix":[s,o,c,l,h],"C#Dor":[s,o,c,l,h],"D#Phr":[s,o,c,l,h],ELyd:[s,o,c,l,h],"A#Loc":[s,o,c,l,h],E:[s,o,c,l],"C#m":[s,o,c,l],BMix:[s,o,c,l],"F#Dor":[s,o,c,l],"G#Phr":[s,o,c,l],ALyd:[s,o,c,l],"D#Loc":[s,o,c,l],A:[s,o,c],"F#m":[s,o,c],EMix:[s,o,c],BDor:[s,o,c],"C#Phr":[s,o,c],DLyd:[s,o,c],"G#Loc":[s,o,c],D:[s,o],Bm:[s,o],AMix:[s,o],EDor:[s,o],"F#Phr":[s,o],GLyd:[s,o],"C#Loc":[s,o],G:[s],Em:[s],DMix:[s],ADor:[s],BPhr:[s],CLyd:[s],"F#Loc":[s],C:[],Am:[],GMix:[],DDor:[],EPhr:[],FLyd:[],BLoc:[],F:[f],Dm:[f],CMix:[f],GDor:[f],APhr:[f],BbLyd:[f],ELoc:[f],Bb:[f,p],Gm:[f,p],FMix:[f,p],CDor:[f,p],DPhr:[f,p],EbLyd:[f,p],ALoc:[f,p],Eb:[f,p,m],Cm:[f,p,m],BbMix:[f,p,m],FDor:[f,p,m],GPhr:[f,p,m],AbLyd:[f,p,m],DLoc:[f,p,m],Ab:[f,p,m,g],Fm:[f,p,m,g],EbMix:[f,p,m,g],BbDor:[f,p,m,g],CPhr:[f,p,m,g],DbLyd:[f,p,m,g],GLoc:[f,p,m,g],Db:[f,p,m,g,v],Bbm:[f,p,m,g,v],AbMix:[f,p,m,g,v],EbDor:[f,p,m,g,v],FPhr:[f,p,m,g,v],GbLyd:[f,p,m,g,v],CLoc:[f,p,m,g,v],Gb:[f,p,m,g,v,b],Ebm:[f,p,m,g,v,b],DbMix:[f,p,m,g,v,b],AbDor:[f,p,m,g,v,b],BbPhr:[f,p,m,g,v,b],CbLyd:[f,p,m,g,v,b],FLoc:[f,p,m,g,v,b],Cb:[f,p,m,g,v,b,y],Abm:[f,p,m,g,v,b,y],GbMix:[f,p,m,g,v,b,y],DbDor:[f,p,m,g,v,b,y],EbPhr:[f,p,m,g,v,b,y],FbLyd:[f,p,m,g,v,b,y],BbLoc:[f,p,m,g,v,b,y],"A#":[f,p],"B#":[],"D#":[f,p,m],"E#":[f],"G#":[f,p,m,g],Gbm:[s,o,c,l,h,u,d],none:[]};return i.keySignature(r,w,e,t,n,a)};var c={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}},l=function(e,t){var r=c[e];return(r?r.mid:0)+t};s.fixClef=function(e){var t=c[e.type];t&&(e.clefPos=t.pitch,e.type=t.clef)},s.deepCopyKey=function(e){var t={accidentals:[],root:e.root,acc:e.acc,mode:e.mode};return n.each(e.accidentals,(function(e){t.accidentals.push(n.clone(e))})),t};var h={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};s.addPosToKey=function(e,t){var r=e.verticalPos;n.each(t.accidentals,(function(e){var t=h[e.note];t-=r,e.verticalPos=t})),t.impliedNaturals&&n.each(t.impliedNaturals,(function(e){var t=h[e.note];t-=r,e.verticalPos=t})),r<-10?(n.each(t.accidentals,(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&&n.each(t.impliedNaturals,(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)}))):r<-4?(n.each(t.accidentals,(function(e){e.verticalPos-=7,-8!==r||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&n.each(t.impliedNaturals,(function(e){e.verticalPos-=7,-8!==r||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)}))):r>=7&&(n.each(t.accidentals,(function(e){e.verticalPos+=7})),t.impliedNaturals&&n.each(t.impliedNaturals,(function(e){e.verticalPos+=7})))},s.fixKey=function(e,t){var r=n.clone(t);return s.addPosToKey(e,r),r};var u=function(e){var t=0,r=e.charAt(t++);"^"!==r&&"_"!==r||(r=e.charAt(t++));var n=h[r];for(void 0===n&&(n=6);t<e.length;t++)if(","===e.charAt(t))n-=7;else{if("'"!==e.charAt(t))break;n+=7}return{mid:n-6,str:e.substring(t)}};s.parseKey=function(n){0===n.length&&(n="none");var i=e.tokenize(n,0,n.length),o={};if(0===i.length)return t("Must pass in key signature.",n,0),o;switch(i[0].token){case"HP":a.addDirective("bagpipes"),r.key={root:"HP",accidentals:[],acc:"",mode:""},o.foundKey=!0,i.shift();break;case"Hp":a.addDirective("bagpipes"),r.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},o.foundKey=!0,i.shift();break;case"none":r.key={root:"none",accidentals:[],acc:"",mode:""},o.foundKey=!0,i.shift();break;default:var c=e.getKeyPitch(i[0].token);if(c.len>0){o.foundKey=!0;var h="",u="";i[0].token.length>1?i[0].token=i[0].token.substring(1):i.shift();var d=c.token;if(i.length>0){var f=e.getSharpFlat(i[0].token);if(f.len>0&&(i[0].token.length>1?i[0].token=i[0].token.substring(1):i.shift(),d+=f.token,h=f.token),i.length>0){var p=e.getMode(i[0].token);p.len>0&&(i.shift(),d+=p.token,u=p.token)}if(void 0===s.standardKey(d,c.token,h,0))return t("Unsupported key signature: "+d,n,0),o}var m=s.deepCopyKey(r.key),g=r.globalTranspose?-r.globalTranspose:0;if(r.key=s.deepCopyKey(s.standardKey(d,c.token,h,g)),r.key.mode=u,m){for(var v,b=0;b<r.key.accidentals.length;b++)for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&r.key.accidentals[b].note.toLowerCase()===m.accidentals[v].note.toLowerCase()&&(m.accidentals[v].note=null);for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&(r.key.impliedNaturals||(r.key.impliedNaturals=[]),r.key.impliedNaturals.push({acc:"natural",note:m.accidentals[v].note}))}}}if(0===i.length)return o;if("exp"===i[0].token&&i.shift(),0===i.length)return o;if("oct"===i[0].token&&i.shift(),0===i.length)return o;var y,w=e.getKeyAccidentals2(i);if(w.warn&&t(w.warn,n,0),w.accs){o.foundKey||(o.foundKey=!0,r.key={root:"none",acc:"",mode:"",accidentals:[]}),function(e){for(var t=0;t<e.length;t++)"b"===e[t].note?e[t].note="B":"a"===e[t].note?e[t].note="A":"F"===e[t].note?e[t].note="f":"E"===e[t].note?e[t].note="e":"D"===e[t].note?e[t].note="d":"C"===e[t].note?e[t].note="c":"G"===e[t].note&&"sharp"===e[t].acc?e[t].note="g":"g"===e[t].note&&"flat"===e[t].acc&&(e[t].note="G")}(w.accs);for(var x=0;x<w.accs.length;x++){for(var k=!1,C=0;C<r.key.accidentals.length&&!k;C++)r.key.accidentals[C].note===w.accs[x].note&&(k=!0,r.key.accidentals[C].acc!==w.accs[x].acc&&(r.key.accidentals[C].acc=w.accs[x].acc,r.key.explicitAccidentals||(r.key.explicitAccidentals=[]),r.key.explicitAccidentals.push(w.accs[x])));if(!k&&(r.key.explicitAccidentals||(r.key.explicitAccidentals=[]),r.key.explicitAccidentals.push(w.accs[x]),r.key.accidentals.push(w.accs[x]),r.key.impliedNaturals))for(var T=0;T<r.key.impliedNaturals.length;T++)r.key.impliedNaturals[T].note===w.accs[x].note&&r.key.impliedNaturals.splice(T,1)}}for(;i.length>0;)switch(i[0].token){case"m":case"middle":if(i.shift(),0===i.length)return t("Expected = after middle",n,0),o;if("="!==(y=i.shift()).token){t("Expected = after middle",n,y.start);break}if(0===i.length)return t("Expected parameter after middle=",n,0),o;var _=e.getPitchFromTokens(i);_.warn&&t(_.warn,n,0),_.position&&(r.clef.verticalPos=_.position-6);break;case"transpose":if(i.shift(),0===i.length)return t("Expected = after transpose",n,0),o;if("="!==(y=i.shift()).token){t("Expected = after transpose",n,y.start);break}if(0===i.length)return t("Expected parameter after transpose=",n,0),o;if("number"!==i[0].type){t("Expected number after transpose",n,i[0].start);break}r.clef.transpose=i[0].intt,i.shift();break;case"stafflines":if(i.shift(),0===i.length)return t("Expected = after stafflines",n,0),o;if("="!==(y=i.shift()).token){t("Expected = after stafflines",n,y.start);break}if(0===i.length)return t("Expected parameter after stafflines=",n,0),o;if("number"!==i[0].type){t("Expected number after stafflines",n,i[0].start);break}r.clef.stafflines=i[0].intt,i.shift();break;case"staffscale":if(i.shift(),0===i.length)return t("Expected = after staffscale",n,0),o;if("="!==(y=i.shift()).token){t("Expected = after staffscale",n,y.start);break}if(0===i.length)return t("Expected parameter after staffscale=",n,0),o;if("number"!==i[0].type){t("Expected number after staffscale",n,i[0].start);break}r.clef.staffscale=i[0].floatt,i.shift();break;case"style":if(i.shift(),0===i.length)return t("Expected = after style",n,0),o;if("="!==(y=i.shift()).token){t("Expected = after style",n,y.start);break}if(0===i.length)return t("Expected parameter after style=",n,0),o;switch(i[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":r.style=i[0].token,i.shift();break;default:t("error parsing style element: "+i[0].token,n,i[0].start)}break;case"clef":if(i.shift(),0===i.length)return t("Expected = after clef",n,0),o;if("="!==(y=i.shift()).token){t("Expected = after clef",n,y.start);break}if(0===i.length)return t("Expected parameter after clef=",n,0),o;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var S=i.shift();switch(S.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":case"c":S.token="alto";break;case"F":case"f":S.token="bass";break;case"G":case"g":S.token="treble";break;default:t("Expected clef name. Found "+S.token,n,S.start)}i.length>0&&"number"===i[0].type&&(S.token+=i[0].token,i.shift()),i.length>1&&("-"===i[0].token||"+"===i[0].token||"^"===i[0].token||"_"===i[0].token)&&"8"===i[1].token&&(S.token+=i[0].token+i[1].token,i.shift(),i.shift()),r.clef={type:S.token,verticalPos:l(S.token,0)},r.currentVoice&&void 0!==r.currentVoice.transpose&&(r.clef.transpose=r.currentVoice.transpose),o.foundClef=!0;break;default:t("Unknown parameter: "+i[0].token,n,i[0].start),i.shift()}return o};s.parseVoice=function(n,a,i){var s=e.getMeat(n,a,i),c=s.start,h=s.end,d=e.getToken(n,c,h);if(0!==d.length){var f=!1;void 0===r.voices[d]&&(r.voices[d]={},f=!0,r.score_is_present&&t("Can't have an unknown V: id when the %score directive is present",n,c)),c+=d.length,c+=e.eatWhiteSpace(n,c);for(var p={startStaff:f},m=function(r){var a=e.getVoiceToken(n,c,h);void 0!==a.warn?t("Expected value for "+r+" in voice: "+a.warn,n,c):void 0!==a.err?t("Expected value for "+r+" in voice: "+a.err,n,c):0===a.token.length&&'"'!==n.charAt(c)?t("Expected value for "+r+" in voice",n,c):p[r]=a.token,c+=a.len},g=function(a,i,s){var o=e.getVoiceToken(n,c,h);void 0!==o.warn?t("Expected value for "+i+" in voice: "+o.warn,n,c):void 0!==o.err?t("Expected value for "+i+" in voice: "+o.err,n,c):0===o.token.length&&'"'!==n.charAt(c)?t("Expected value for "+i+" in voice",n,c):("number"===s&&(o.token=parseFloat(o.token)),r.voices[a][i]=o.token),c+=o.len},v=function(r,a){var i=e.getVoiceToken(n,c,h);if(void 0!==i.warn)t("Expected value for "+r+" in voice: "+i.warn,n,c);else if(void 0!==i.err)t("Expected value for "+r+" in voice: "+i.err,n,c);else{if(0!==i.token.length||'"'===n.charAt(c))return"number"===a&&(i.token=parseFloat(i.token)),i.token;t("Expected value for "+r+" in voice",n,c)}c+=i.len},b=function(a,i){var s=e.getVoiceToken(n,c,h);if(void 0!==s.warn)t("Expected one of (_B, _E, _b, _e) for "+i+" in voice: "+s.warn,n,c);else if(0===s.token.length&&'"'!==n.charAt(c))t("Expected one of (_B, _E, _b, _e) for "+i+" in voice",n,c);else{var o={_B:2,_E:9,_b:-10,_e:-3}[s.token];o?r.voices[a][i]=o:t("Expected one of (_B, _E, _b, _e) for "+i+" in voice",n,c)}c+=s.len};c<h;){var y=e.getVoiceToken(n,c,h);if(c+=y.len,y.warn)t("Error parsing voice: "+y.warn,n,c);else{var w=null;switch(y.token){case"clef":case"cl":m("clef");var x=0;void 0!==p.clef&&(p.clef=p.clef.replace(/[',]/g,""),-1!==p.clef.indexOf("+16")&&(x+=14,p.clef=p.clef.replace("+16","")),p.verticalPos=l(p.clef,x));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,,":p.clef=y.token.replace(/[',]/g,""),p.verticalPos=l(p.clef,0),r.voices[d].clef=y.token;break;case"staves":case"stave":case"stv":m("staves");break;case"brace":case"brc":m("brace");break;case"bracket":case"brk":m("bracket");break;case"name":case"nm":m("name");break;case"subname":case"sname":case"snm":m("subname");break;case"merge":p.startStaff=!1;break;case"stem":case"stems":void 0!==(w=e.getVoiceToken(n,c,h)).warn?t("Expected value for stems in voice: "+w.warn,n,c):void 0!==w.err?t("Expected value for stems in voice: "+w.err,n,c):"up"===w.token||"down"===w.token?r.voices[d].stem=w.token:t("Expected up or down for voice stem",n,c),c+=w.len;break;case"up":case"down":r.voices[d].stem=y.token;break;case"middle":case"m":m("verticalPos"),p.verticalPos=u(p.verticalPos).mid;break;case"gchords":case"gch":r.voices[d].suppressChords=!0,"0"===(w=e.getVoiceToken(n,c,h)).token&&(c+=w.len);break;case"space":case"spc":m("spacing");break;case"scale":g(d,"scale","number");break;case"score":b(d,"scoreTranspose");break;case"transpose":g(d,"transpose","number");break;case"stafflines":g(d,"stafflines","number");break;case"staffscale":g(d,"staffscale","number");break;case"octave":g(d,"octave","number");break;case"volume":g(d,"volume","number");break;case"cue":var k=v("cue","string");r.voices[d].scale="on"===k?.6:1;break;case"style":void 0!==(w=e.getVoiceToken(n,c,h)).warn?t("Expected value for style in voice: "+w.warn,n,c):void 0!==w.err?t("Expected value for style in voice: "+w.err,n,c):"normal"===w.token||"harmonic"===w.token||"rhythm"===w.token||"x"===w.token||"triangle"===w.token?r.voices[d].style=w.token:t("Expected one of [normal, harmonic, rhythm, x, triangle] for voice style",n,c),c+=w.len}}c+=e.eatWhiteSpace(n,c)}if((p.startStaff||0===r.staves.length)&&(r.staves.push({index:r.staves.length,meter:r.origMeter}),r.score_is_present||(r.staves[r.staves.length-1].numVoices=0)),void 0===r.voices[d].staffNum){r.voices[d].staffNum=r.staves.length-1;var C=0;for(var T in r.voices)r.voices.hasOwnProperty(T)&&r.voices[T].staffNum===r.voices[d].staffNum&&C++;r.voices[d].index=C-1}var _=r.staves[r.voices[d].staffNum];r.score_is_present||_.numVoices++,p.clef&&(_.clef={type:p.clef,verticalPos:p.verticalPos}),p.spacing&&(_.spacing_below_offset=p.spacing),p.verticalPos&&(_.verticalPos=p.verticalPos),p.name&&(_.name?_.name.push(p.name):_.name=[p.name]),p.subname&&(_.subname?_.subname.push(p.subname):_.subname=[p.subname]),function(e){r.currentVoice=r.voices[e],o.setCurrentVoice(r.currentVoice.staffNum,r.currentVoice.index)}(d)}else t("Expected a voice id",n,c)}}(),e.exports=s},4557:(e,t,r)=>{var n,a,i,s,o,c,l=r(302),h=r(6483),u=r(4846),d=function(e,t,r,l,h,u){n=e,a=t,i=r,s=l,o=h,c=u,this.lineContinuation=!1},f=function(e,t,r){if(void 0===e.inTie[t])return!1;var n=e.currentVoice?e.currentVoice.index:0;return!(!e.inTie[t][n]||void 0===r.pitches&&"spacer"===r.rest.type)},p={};d.prototype.parseMusic=function(e){c.resolveTempo(),i.is_in_header=!1;for(var t=0,r=i.iChar;n.isWhiteSpace(e.charAt(t))&&t<e.length;)t++;if(t!==e.length&&"%"!==e.charAt(t)){var h=i.start_new_line;void 0===i.continueall?i.start_new_line=!0:i.start_new_line=!1;var u=0,d=c.letter_to_body_header(e,t);d[0]>0&&(t+=d[0],"V"===d[1]&&this.startNewLine());for(var w=0;t<e.length;){var x=t;if("%"===e.charAt(t))break;var k=c.letter_to_inline_header(e,t,h);if(k[0]>0)t+=k[0],"V"===k[1]&&(h=!0);else{var C;for((!o.hasBeginMusic()||h&&!this.lineContinuation)&&(this.startNewLine(),h=!1);;)if((C=n.eatWhiteSpace(e,t))>0&&(t+=C),t>0&&""===e.charAt(t-1)&&(C=c.letter_to_body_header(e,t))[0]>0&&("V"===C[1]&&this.startNewLine(),t=C[0],i.start_new_line=!1),(C=S(e,t))[0]>0&&(t+=C[0]),(C=g(e,t))[0]>0){p.chord||(p.chord=[]);var T=n.translateString(C[1]);T=T.replace(/;/g,"\n");for(var E=!1,B=0;B<p.chord.length;B++)p.chord[B].position===C[2]&&(E=!0,p.chord[B].name+="\n"+T);!1===E&&(null===C[2]&&C[3]?p.chord.push({name:T,rel_position:C[3]}):p.chord.push({name:T,position:C[2]})),t+=C[0];var P=n.skipWhiteSpace(e.substring(t));P>0&&(p.force_end_beam_last=!0),t+=P}else if((C=-1==="ABCDEFGabcdefgxyzZ[]|^_{".indexOf(e.charAt(t))?_(e,t):[0])[0]>0)null===C[1]?t+1<e.length&&this.startNewLine():C[1].length>0&&(0===C[1].indexOf("style=")?p.style=C[1].substr(6):(void 0===p.decoration&&(p.decoration=[]),"beambr1"===C[1]?p.beambr=1:"beambr2"===C[1]?p.beambr=2:p.decoration.push(C[1]))),t+=C[0];else{if(!((C=v(e,t))[0]>0))break;p.gracenotes=C[1],t+=C[0]}if((C=A(e,t))[0]>0){w=0,void 0!==p.gracenotes&&(p.rest={type:"spacer"},p.duration=.125,i.addFormattingOptions(p,s.formatting,"note"),o.appendElement("note",r+t,r+t+C[0],p),i.measureNotEmpty=!0,p={});var L={type:C[1]};if(0===L.type.length)a("Unknown bar type",e,t);else{if(i.inEnding&&"bar_thin"!==L.type&&(L.endEnding=!0,i.inEnding=!1),C[2]&&(L.startEnding=C[2],i.inEnding&&(L.endEnding=!0),i.inEnding=!0,"bar_right_repeat"===C[1]?i.restoreStartEndingHoldOvers():i.duplicateStartEndingHoldOvers()),void 0!==p.decoration&&(L.decoration=p.decoration),void 0!==p.chord&&(L.chord=p.chord),L.startEnding&&void 0===i.barFirstEndingNum?i.barFirstEndingNum=i.currBarNumber:L.startEnding&&L.endEnding&&i.barFirstEndingNum?i.currBarNumber=i.barFirstEndingNum:L.endEnding&&(i.barFirstEndingNum=void 0),"bar_invisible"!==L.type&&i.measureNotEmpty)(void 0===i.currentVoice||0===i.currentVoice.staffNum&&0===i.currentVoice.index)&&(i.currBarNumber++,i.barNumbers&&i.currBarNumber%i.barNumbers==0&&(L.barNumber=i.currBarNumber));i.addFormattingOptions(p,s.formatting,"bar"),o.appendElement("bar",r+t,r+t+C[0],L),i.measureNotEmpty=!1,p={}}t+=C[0]}else if("&"===e[t])(C=b(e,t))[0]>0&&(o.appendElement("overlay",r,r+1,{}),t+=1,w++);else{if((C=N(e,t)).consumed>0&&(void 0!==C.startSlur&&(p.startSlur=C.startSlur),C.dottedSlur&&(p.dottedSlur=!0),void 0!==C.triplet&&(u>0?a("Can't nest triplets",e,t):(p.startTriplet=C.triplet,p.tripletMultiplier=C.tripletQ/C.triplet,p.tripletR=C.num_notes,u=void 0===C.num_notes?C.triplet:C.num_notes)),t+=C.consumed),"["===e.charAt(t)){t++;for(var O=null,F=!1,D=!1;!D;){var I=_(e,t);I[0]>0&&(t+=I[0]);var j=H(e,t,{},!1);if(null!==j&&void 0!==j.pitch)I[0]>0&&0!==I[1].indexOf("style=")&&(void 0===p.decoration&&(p.decoration=[]),p.decoration.push(I[1])),j.end_beam&&(p.end_beam=!0,delete j.end_beam),void 0===p.pitches?(p.duration=j.duration,p.pitches=[j]):p.pitches.push(j),delete j.duration,I[0]>0&&0===I[1].indexOf("style=")&&(p.pitches[p.pitches.length-1].style=I[1].substr(6)),i.inTieChord[p.pitches.length]&&(j.endTie=!0,i.inTieChord[p.pitches.length]=void 0),j.startTie&&(i.inTieChord[p.pitches.length]=!0),t=j.endChar,delete j.endChar;else if(" "===e.charAt(t))a("Spaces are not allowed in chords",e,t),t++;else{if(t<e.length&&"]"===e.charAt(t)){t++,0!==i.next_note_duration&&(p.duration=p.duration*i.next_note_duration,i.next_note_duration=0),f(i,w,p)&&(l.each(p.pitches,(function(e){e.endTie=!0})),m(i,w,!1)),u>0&&(!p.rest||"spacer"!==p.rest.type)&&0===--u&&(p.endTriplet=!0);for(var V=!1;t<e.length&&!V;){switch(e.charAt(t)){case" ":case"\t":M(p);break;case")":void 0===p.endSlur?p.endSlur=1:p.endSlur++;break;case"-":l.each(p.pitches,(function(e){e.startTie={}})),m(i,w,!0);break;case">":case"<":var Y=z(e,t);t+=Y[0]-1,i.next_note_duration=Y[2],O?O*=Y[1]:O=Y[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var q=n.getFraction(e,t);O=q.value,t=q.index," "===e.charAt(t)&&(F=!0),"-"===e.charAt(t)||")"===e.charAt(t)||" "===e.charAt(t)||"<"===e.charAt(t)||">"===e.charAt(t)?t--:V=!0;break;default:V=!0}V||t++}}else a("Expected ']' to end the chords",e,t);void 0!==p.pitches&&(null!==O&&(p.duration=p.duration*O,F&&M(p)),i.addFormattingOptions(p,s.formatting,"note"),o.appendElement("note",r+x,r+t,p),i.measureNotEmpty=!0,p={}),D=!0}}}else{var G={},W=H(e,t,G,!0);if(void 0!==G.endTie&&m(i,w,!0),null!==W){void 0!==W.pitch?(p.pitches=[{}],void 0!==W.accidental&&(p.pitches[0].accidental=W.accidental),p.pitches[0].pitch=W.pitch,p.pitches[0].name=W.name,(W.midipitch||0===W.midipitch)&&(p.pitches[0].midipitch=W.midipitch),void 0!==W.endSlur&&(p.pitches[0].endSlur=W.endSlur),void 0!==W.endTie&&(p.pitches[0].endTie=W.endTie),void 0!==W.startSlur&&(p.pitches[0].startSlur=W.startSlur),void 0!==p.startSlur&&(p.pitches[0].startSlur=p.startSlur),void 0!==p.dottedSlur&&(p.pitches[0].dottedSlur=!0),void 0!==W.startTie&&(p.pitches[0].startTie=W.startTie),void 0!==p.startTie&&(p.pitches[0].startTie=p.startTie)):(p.rest=W.rest,void 0!==W.endSlur&&(p.endSlur=W.endSlur),void 0!==W.endTie&&(p.rest.endTie=W.endTie),void 0!==W.startSlur&&(p.startSlur=W.startSlur),void 0!==W.startTie&&(p.rest.startTie=W.startTie),void 0!==p.startTie&&(p.rest.startTie=p.startTie)),void 0!==W.chord&&(p.chord=W.chord),void 0!==W.duration&&(p.duration=W.duration),void 0!==W.decoration&&(p.decoration=W.decoration),void 0!==W.graceNotes&&(p.graceNotes=W.graceNotes),delete p.startSlur,delete p.dottedSlur,f(i,w,p)&&(void 0!==p.pitches?p.pitches[0].endTie=!0:"spacer"!==p.rest.type&&(p.rest.endTie=!0),m(i,w,!1)),(W.startTie||p.startTie)&&m(i,w,!0),t=W.endChar,u>0&&(!W.rest||"spacer"!==W.rest.type)&&0===--u&&(p.endTriplet=!0),W.end_beam&&M(p),p.rest&&"rest"===p.rest.type&&1===p.duration&&y(i)<=1&&(p.rest.type="whole",p.duration=y(i));p.duration<1&&-1===[.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].indexOf(p.duration)&&0!==p.duration&&(p.rest&&"spacer"===p.rest.type||a("Duration not representable: "+e.substring(x,t),e,t)),i.addFormattingOptions(p,s.formatting,"note"),o.appendElement("note",r+x,r+t,p),i.measureNotEmpty=!0,p={}}}t===x&&(" "!==e.charAt(t)&&"`"!==e.charAt(t)&&a("Unknown character ignored",e,t),t++)}}}this.lineContinuation=e.indexOf("")>=0||d[0]>0,this.lineContinuation||(p={})}};var m=function(e,t,r){var n=e.currentVoice?e.currentVoice.index:0;void 0===e.inTie[t]&&(e.inTie[t]=[]),e.inTie[t][n]=r},g=function(e,t){if('"'===e.charAt(t)){var r=n.getBrackettedSubstring(e,t,5);if(r[2]||a("Missing the closing quote while parsing the chord symbol",e,t),r[0]>0&&r[1].length>0&&"^"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="above";else if(r[0]>0&&r[1].length>0&&"_"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="below";else if(r[0]>0&&r[1].length>0&&"<"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="left";else if(r[0]>0&&r[1].length>0&&">"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="right";else if(r[0]>0&&r[1].length>0&&"@"===r[1].charAt(0)){r[1]=r[1].substring(1);var s=n.getFloat(r[1]);0===s.digits&&a("Missing first position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(s.digits),","!==r[1][0]&&a("Missing comma absolutely positioned annotation.",e,t),r[1]=r[1].substring(1);var o=n.getFloat(r[1]);0===o.digits&&a("Missing second position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(o.digits);var c=n.skipWhiteSpace(r[1]);r[1]=r[1].substring(c),r[2]=null,r[3]={x:s.value,y:o.value}}else!0!==i.freegchord&&(r[1]=r[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),r[1]=r[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),r[2]="default",r[1]=u.chordName(i,r[1]);return r}return[0,""]},v=function(e,t){if("{"===e.charAt(t)){var r=n.getBrackettedSubstring(e,t,1,"}");r[2]||a("Missing the closing '}' while parsing grace note",e,t),")"===e[t+r[0]]&&(r[0]++,r[1]+=")");for(var s=[],o=0,c=!1;o<r[1].length;){var l=!1;"/"===r[1].charAt(o)&&(l=!0,o++);var h=H(r[1],o,{},!1);null!==h?(h.duration=h.duration/(8*i.default_length),l&&(h.acciaccatura=!0),s.push(h),c&&(h.endTie=!0,c=!1),h.startTie&&(c=!0),o=h.endChar,delete h.endChar,h.end_beam&&(h.endBeam=!0,delete h.end_beam)):(" "===r[1].charAt(o)?s.length>0&&(s[s.length-1].endBeam=!0):a("Unknown character '"+r[1].charAt(o)+"' while parsing grace note",e,t),o++)}if(s.length)return[r[0],s]}return[0]};function b(e,t){if("&"===e.charAt(t)){for(var r=t;e.charAt(t)&&":"!==e.charAt(t)&&"|"!==e.charAt(t);)t++;return[t-r,e.substring(r+1,t)]}return[0]}function y(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 w=["trill","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","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"],x=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],k=["crescendo(","crescendo)","diminuendo(","diminuendo)"],C=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],T=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],_=function(e,t){var r=i.macros[e.charAt(t)];if(void 0!==r)return"!"!==r.charAt(0)&&"+"!==r.charAt(0)||(r=r.substring(1)),"!"!==r.charAt(r.length-1)&&"+"!==r.charAt(r.length-1)||(r=r.substring(0,r.length-1)),l.detect(w,(function(e){return r===e}))?[1,r]:l.detect(x,(function(e){return r===e}))?("hidden"===i.volumePosition&&(r=""),[1,r]):l.detect(k,(function(e){return"hidden"===i.dynamicPosition&&(r=""),r===e}))?[1,r]:(l.detect(i.ignoredDecorations,(function(e){return r===e}))||a("Unknown macro: "+r,e,t),[1,""]);switch(e.charAt(t)){case".":if("("===e[t+1]||"-"===e[t+1])break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var s=n.getBrackettedSubstring(e,t,5);return s[1].length>1&&("^"===s[1].charAt(0)||"_"===s[1].charAt(0))&&(s[1]=s[1].substring(1)),l.detect(w,(function(e){return s[1]===e}))?s:l.detect(x,(function(e){return s[1]===e}))?("hidden"===i.volumePosition&&(s[1]=""),s):l.detect(k,(function(e){return s[1]===e}))?("hidden"===i.dynamicPosition&&(s[1]=""),s):l.detect(C,(function(e){return s[1]===e[0]&&(s[1]=e[1],!0)}))?s:l.detect(T,(function(e){return s[1]===e[0]&&(s[1]=e[1],!0)}))?("hidden"===i.dynamicPosition&&(s[1]=""),s):"!"!==e.charAt(t)||1!==s[0]&&"!"===e.charAt(t+s[0]-1)?(a("Unknown decoration: "+s[1],e,t),s[1]="",s):[1,null];case"H":return[1,"fermata"];case"J":return[1,"slide"];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"]}return[0,0]},S=function(e,t){for(var r=t;n.isWhiteSpace(e.charAt(t));)t++;return[t-r]},A=function(e,t){var r=n.getBarLine(e,t);if(0===r.len)return[0,""];if(r.warn)return a(r.warn,e,t),[r.len,""];for(var i=0;i<e.length&&" "===e.charAt(t+r.len+i);i++);var s=r.len;if("["===e.charAt(t+r.len+i)&&(r.len+=i+1),'"'===e.charAt(t+r.len)&&"["===e.charAt(t+r.len-1)){var o=n.getBrackettedSubstring(e,t+r.len,5);return[r.len+o[0],r.token,o[1]]}var c=n.getTokenOf(e.substring(t+r.len),"1234567890-,");return 0===c.len||"-"===c.token[0]?[s,r.token]:[r.len+c.len,r.token,c.token]},E={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2},N=function(e,t){var r={},i=t;for("."===e[t]&&"("===e[t+1]&&(r.dottedSlur=!0,t++);"("===e.charAt(t)||n.isWhiteSpace(e.charAt(t));)"("===e.charAt(t)&&(t+1<e.length&&e.charAt(t+1)>="2"&&e.charAt(t+1)<="9"?(void 0!==r.triplet?a("Can't nest triplets",e,t):(r.triplet=e.charAt(t+1)-"0",r.tripletQ=E[r.triplet],r.num_notes=r.triplet,t+2<e.length&&":"===e.charAt(t+2)&&(t+3<e.length&&":"===e.charAt(t+3)?t+4<e.length&&e.charAt(t+4)>="1"&&e.charAt(t+4)<="9"?(r.num_notes=e.charAt(t+4)-"0",t+=3):a("expected number after the two colons after the triplet to mark the duration",e,t):t+3<e.length&&e.charAt(t+3)>="1"&&e.charAt(t+3)<="9"?(r.tripletQ=e.charAt(t+3)-"0",t+4<e.length&&":"===e.charAt(t+4)?t+5<e.length&&e.charAt(t+5)>="1"&&e.charAt(t+5)<="9"&&(r.num_notes=e.charAt(t+5)-"0",t+=4):t+=2):a("expected number after the triplet to mark the duration",e,t))),t++):void 0===r.startSlur?r.startSlur=1:r.startSlur++),t++;return r.consumed=t-i,r};d.prototype.startNewLine=function(){var e={startChar:-1,endChar:-1};i.partForNextLine.title&&(e.part=i.partForNextLine),e.clef=i.currentVoice&&void 0!==i.staves[i.currentVoice.staffNum].clef?l.clone(i.staves[i.currentVoice.staffNum].clef):l.clone(i.clef);var t=i.currentVoice?i.currentVoice.scoreTranspose:0;if(e.key=h.standardKey(i.key.root+i.key.acc+i.key.mode,i.key.root,i.key.acc,t),e.key.mode=i.key.mode,i.key.impliedNaturals&&(e.key.impliedNaturals=i.key.impliedNaturals),i.key.explicitAccidentals)for(var r=0;r<i.key.explicitAccidentals.length;r++){for(var n=!1,a=0;a<e.key.accidentals.length;a++)e.key.accidentals[a].note===i.key.explicitAccidentals[r].note&&(e.key.accidentals[a].acc=i.key.explicitAccidentals[r].acc,n=!0);n||e.key.accidentals.push(i.key.explicitAccidentals[r])}if(i.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,h.addPosToKey(e.clef,e.key),null!==i.meter?(i.currentVoice?(l.each(i.staves,(function(e){e.meter=i.meter})),e.meter=i.staves[i.currentVoice.staffNum].meter,i.staves[i.currentVoice.staffNum].meter=null):e.meter=i.meter,i.meter=null):i.currentVoice&&i.staves[i.currentVoice.staffNum].meter&&(e.meter=i.staves[i.currentVoice.staffNum].meter,i.staves[i.currentVoice.staffNum].meter=null),i.currentVoice&&i.currentVoice.name&&(e.name=i.currentVoice.name),i.vocalfont&&(e.vocalfont=i.vocalfont),i.tripletfont&&(e.tripletfont=i.tripletfont),i.gchordfont&&(e.gchordfont=i.gchordfont),i.style&&(e.style=i.style),i.currentVoice){var s=i.staves[i.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[i.currentVoice.index]),s.subname&&(e.subname=s.subname[i.currentVoice.index]),i.currentVoice.stem&&(e.stem=i.currentVoice.stem),i.currentVoice.stafflines&&(e.stafflines=i.currentVoice.stafflines),i.currentVoice.staffscale&&(e.staffscale=i.currentVoice.staffscale),i.currentVoice.scale&&(e.scale=i.currentVoice.scale),i.currentVoice.style&&(e.style=i.currentVoice.style),i.currentVoice.transpose&&(e.clef.transpose=i.currentVoice.transpose)}var c=void 0===i.currentVoice||0===i.currentVoice.staffNum&&0===i.currentVoice.index;0===i.barNumbers&&c&&1!==i.currBarNumber&&(e.barNumber=i.currBarNumber),o.startNewLine(e),i.key.impliedNaturals&&delete i.key.impliedNaturals,i.partForNextLine={},4===i.tempoForNextLine.length&&o.appendElement(i.tempoForNextLine[0],i.tempoForNextLine[1],i.tempoForNextLine[2],i.tempoForNextLine[3]),i.tempoForNextLine=[]};var M=function(e){return void 0!==e.duration&&e.duration<.25&&(e.end_beam=!0),e},B={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},P={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"},L={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"},H=function(e,t,r,a){var c,l=function(e){return"octave"===e||"duration"===e||"Zduration"===e||"broken_rhythm"===e||"end_slur"===e};"."===e[t]&&"-"===e[t+1]&&(c=!0,t++);for(var h="startSlur",d=!1;;){switch(e.charAt(t)){case"(":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;void 0===r.startSlur?r.startSlur=1:r.startSlur++;break;case")":if(!l(h))return null;void 0===r.endSlur?r.endSlur=1:r.endSlur++;break;case"^":if("startSlur"===h)r.accidental="sharp",h="sharp2";else{if("sharp2"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="dblsharp",h="pitch"}break;case"_":if("startSlur"===h)r.accidental="flat",h="flat2";else{if("flat2"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="dblflat",h="pitch"}break;case"=":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="natural",h="pitch";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)return l(h)?(r.endChar=t,r):null;if(r.pitch=B[e.charAt(t)],r.name=e.charAt(t),r.accidental&&(r.name=L[r.accidental]+r.name),u.note(i,r),h="octave",a&&0!==i.next_note_duration?(r.duration=i.default_length*i.next_note_duration,i.next_note_duration=0,d=!0):r.duration=i.default_length,i.clef&&"perc"===i.clef.type||i.currentVoice&&"perc"===i.currentVoice.clef){var f=e.charAt(t);r.accidental&&(f=L[r.accidental]+f),s.formatting&&s.formatting.midi&&s.formatting.midi.drummap&&(r.midipitch=s.formatting.midi.drummap[f])}break;case",":if("octave"!==h)return l(h)?(r.endChar=t,r):null;r.pitch-=7,r.name+=",";break;case"'":if("octave"!==h)return l(h)?(r.endChar=t,r):null;r.pitch+=7,r.name+="'";break;case"x":case"X":case"y":case"z":case"Z":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;r.rest={type:P[e.charAt(t)]},delete r.accidental,delete r.startSlur,delete r.startTie,delete r.endSlur,delete r.endTie,delete r.end_beam,delete r.grace_notes,r.rest.type.indexOf("multimeasure")>=0?(r.duration=s.getBarLength(),r.rest.text=1,h="Zduration"):(a&&0!==i.next_note_duration?(r.duration=i.default_length*i.next_note_duration,i.next_note_duration=0,d=!0):r.duration=i.default_length,h="duration");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 p=n.getFraction(e,t);for(r.duration=r.duration*p.value,r.endChar=p.index;p.index<e.length&&(n.isWhiteSpace(e.charAt(p.index))||"-"===e.charAt(p.index));)"-"===e.charAt(p.index)?r.startTie={}:r=M(r),p.index++;t=p.index-1,h="broken_rhythm"}else if("sharp2"===h)r.accidental="quartersharp",h="pitch";else{if("flat2"!==h){if("Zduration"===h){var m=n.getNumber(e,t);return r.duration=m.num*s.getBarLength(),r.rest.text=m.num,r.endChar=m.index,r}return null}r.accidental="quarterflat",h="pitch"}break;case"-":if("startSlur"===h)o.addTieToLastNote(c),r.endTie=!0;else{if("octave"!==h&&"duration"!==h&&"end_slur"!==h)return"broken_rhythm"===h?(r.endChar=t,r):null;if(r.startTie={},d||!a)return n.isWhiteSpace(e.charAt(t+1))&&M(r),r.endChar=t+1,r;h="broken_rhythm"}break;case" ":case"\t":if(!l(h))return null;r.end_beam=!0,c=!1;do{"."===e.charAt(t)&&"-"===e.charAt(t+1)&&(c=!0,t++),"-"===e.charAt(t)&&(r.startTie={},c&&(r.startTie.style="dotted")),t++}while(t<e.length&&(n.isWhiteSpace(e.charAt(t))||"-"===e.charAt(t))||"."===e.charAt(t)&&"-"===e.charAt(t+1));if(r.endChar=t,d||!a||"<"!==e.charAt(t)&&">"!==e.charAt(t))return r;t--,h="broken_rhythm";break;case">":case"<":if(!l(h))return null;if(!a)return r.endChar=t,r;var g=z(e,t);t+=g[0]-1,i.next_note_duration=g[2],r.duration=g[1]*r.duration,h="end_slur";break;default:return l(h)?(r.endChar=t,r):null}if(++t===e.length)return l(h)?(r.endChar=t,r):null}return null},z=function(e,t){switch(e.charAt(t)){case">":return t<e.length-2&&">"===e.charAt(t+1)&&">"===e.charAt(t+2)?[3,1.875,.125]:t<e.length-1&&">"===e.charAt(t+1)?[2,1.75,.25]:[1,1.5,.5];case"<":return t<e.length-2&&"<"===e.charAt(t+1)&&"<"===e.charAt(t+2)?[3,.125,1.875]:t<e.length-1&&"<"===e.charAt(t+1)?[2,.25,1.75]:[1,.5,1.5]}return null};e.exports=d},2371:(e,t,r)=>{var n=r(302),a=function(e,t){this.lineIndex=0,this.lines=e,this.multilineVars=t,this.skipWhiteSpace=function(e){for(var t=0;t<e.length;t++)if(!this.isWhiteSpace(e.charAt(t)))return t;return e.length};var r=function(e,t){return t>=e.length};this.eatWhiteSpace=function(e,t){for(var r=t;r<e.length;r++)if(!this.isWhiteSpace(e.charAt(r)))return r-t;return r-t},this.getKeyPitch=function(e){var t=this.skipWhiteSpace(e);if(r(e,t))return{len:0};switch(e.charAt(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.charAt(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<e.length&&(e.charAt(t)>="a"&&e.charAt(t)<="z"||e.charAt(t)>="A"&&e.charAt(t)<="Z");)t++;return t},n=this.skipWhiteSpace(e);if(r(e,n))return{len:0};var a=e.substring(n,n+3).toLowerCase();switch((a.length>1&&" "===a.charAt(1)||"^"===a.charAt(1)||"_"===a.charAt(1)||"="===a.charAt(1))&&(a=a.charAt(0)),a){case"mix":return{len:t(e,n),token:"Mix"};case"dor":return{len:t(e,n),token:"Dor"};case"phr":return{len:t(e,n),token:"Phr"};case"lyd":return{len:t(e,n),token:"Lyd"};case"loc":return{len:t(e,n),token:"Loc"};case"aeo":case"min":case"m":return{len:t(e,n),token:"m"};case"maj":case"ion":return{len:t(e,n),token:""}}return{len:0}},this.getClef=function(e,t){var a=e,i=this.skipWhiteSpace(e);if(r(e,i))return{len:0};var s=!1,o=e.substring(i);if(n.startsWith(o,"clef=")&&(s=!0,o=o.substring(5),i+=5),0===o.length&&s)return{len:i+5,warn:"No clef specified: "+a};var c=this.skipWhiteSpace(o);if(r(o,c))return{len:0};c>0&&(i+=c,o=o.substring(c));var l=null;if(n.startsWith(o,"treble"))l="treble";else if(n.startsWith(o,"bass3"))l="bass3";else if(n.startsWith(o,"bass"))l="bass";else if(n.startsWith(o,"tenor"))l="tenor";else if(n.startsWith(o,"alto2"))l="alto2";else if(n.startsWith(o,"alto1"))l="alto1";else if(n.startsWith(o,"alto"))l="alto";else if(!t&&s&&n.startsWith(o,"none"))l="none";else if(n.startsWith(o,"perc"))l="perc";else if(!t&&s&&n.startsWith(o,"C"))l="tenor";else if(!t&&s&&n.startsWith(o,"F"))l="bass";else{if(t||!s||!n.startsWith(o,"G"))return{len:i+5,warn:"Unknown clef specified: "+a};l="treble"}return o=o.substring(l.length),(c=this.isMatch(o,"+8"))>0?l+="+8":(c=this.isMatch(o,"-8"))>0&&(l+="-8"),{len:i+l.length,token:l,explicit:s}},this.getBarLine=function(e,t){switch(e.charAt(t)){case"]":switch(++t,e.charAt(t)){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++t,e.charAt(t)>="1"&&e.charAt(t)<="9"||'"'===e.charAt(t)?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(++t,e.charAt(t)){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++t,e.charAt(t)){case"]":return++t,"|"===e.charAt(t)?(++t,":"===e.charAt(t)?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"}):{len:3,token:"bar_right_repeat"};case"|":return++t,":"===e.charAt(t)?{len:4,token:"bar_dbl_repeat"}:{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(++t,"|"!==e.charAt(t))return e.charAt(t)>="1"&&e.charAt(t)<="9"||'"'===e.charAt(t)?{len:1,token:"bar_invisible"}:{len:0};switch(++t,e.charAt(t)){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}break;case"|":switch(++t,e.charAt(t)){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++t,":"===e.charAt(t)?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var r=0;":"===e.charAt(t+r);)r++;return{len:1+r,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(e,t){for(var r=0;r<e.length;r++)if(t.indexOf(e.charAt(r))<0)return{len:r,token:e.substring(0,r)};return{len:r,token:e}},this.getToken=function(e,t,r){for(var n=t;n<r&&!this.isWhiteSpace(e.charAt(n));)n++;return e.substring(t,n)},this.isMatch=function(e,t){var a=this.skipWhiteSpace(e);return r(e,a)?0:n.startsWith(e.substring(a),t)?a+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;){var r;if("^"===e[0].token){if(r="sharp",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+r};switch(e[0].token){case"^":r="dblsharp",e.shift();break;case"/":r="quartersharp",e.shift()}}else if("="===e[0].token)r="natural",e.shift();else{if("_"!==e[0].token)return{accs:t};if(r="flat",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+r};switch(e[0].token){case"_":r="dblflat",e.shift();break;case"/":r="quarterflat",e.shift()}}if(0===e.length)return{accs:t,warn:"Expected note name after "+r};switch(e[0].token.charAt(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:r,note:e[0].token.charAt(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 "+r+" Found: "+e[0].token}}}return{accs:t}},this.getKeyAccidental=function(e){var t={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},n=this.skipWhiteSpace(e);if(r(e,n))return{len:0};var a=null;switch(e.charAt(n)){case"^":case"_":case"=":a=e.charAt(n);break;default:return{len:0}}if(n++,r(e,n))return{len:1,warn:"Expected note name after accidental"};switch(e.charAt(n)){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:n+1,token:{acc:t[a],note:e.charAt(n)}};case"^":case"_":case"/":if(a+=e.charAt(n),n++,r(e,n))return{len:2,warn:"Expected note name after accidental"};switch(e.charAt(n)){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:n+1,token:{acc:t[a],note:e.charAt(n)}};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||"\t"===e||""===e},this.getMeat=function(e,t,r){var n=e.indexOf("%",t);for(n>=0&&n<r&&(r=n);t<r&&(" "===e.charAt(t)||"\t"===e.charAt(t)||""===e.charAt(t));)t++;for(;t<r&&(" "===e.charAt(r-1)||"\t"===e.charAt(r-1)||""===e.charAt(r-1));)r--;return{start:t,end:r}};var a=function(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"},i=function(e){return e>="0"&&e<="9"};this.tokenize=function(e,t,r,n){var s=this.getMeat(e,t,r);t=s.start,r=s.end;for(var o,c=[];t<r;){if('"'===e.charAt(t)){for(o=t+1;o<r&&'"'!==e.charAt(o);)o++;c.push({type:"quote",token:e.substring(t+1,o),start:t+1,end:o}),o++}else if(a(e.charAt(t))){if(o=t+1,n)for(;o<r&&!this.isWhiteSpace(e.charAt(o));)o++;else for(;o<r&&a(e.charAt(o));)o++;c.push({type:"alpha",token:e.substring(t,o),continueId:i(e.charAt(o)),start:t,end:o}),t=o+1}else if("."===e.charAt(t)&&i(e.charAt(o+1))){o=t+1;for(var l;o<r&&i(e.charAt(o));)o++;l=parseFloat(e.substring(t,o)),c.push({type:"number",token:e.substring(t,o),intt:null,floatt:l,continueId:a(e.charAt(o)),start:t,end:o}),t=o+1}else if(i(e.charAt(t))||"-"===e.charAt(t)&&i(e.charAt(o+1))){o=t+1;for(var h,u=null;o<r&&i(e.charAt(o));)o++;if("."===e.charAt(o)&&i(e.charAt(o+1)))for(o++;o<r&&i(e.charAt(o));)o++;else u=parseInt(e.substring(t,o));h=parseFloat(e.substring(t,o)),c.push({type:"number",token:e.substring(t,o),intt:u,floatt:h,continueId:a(e.charAt(o)),start:t,end:o}),t=o+1}else" "===e.charAt(t)||"\t"===e.charAt(t)||c.push({type:"punct",token:e.charAt(t),start:t,end:t+1}),o=t+1;t=o}return c},this.getVoiceToken=function(e,t,r){for(var n=t;n<r&&this.isWhiteSpace(e.charAt(n))||"="===e.charAt(n);)n++;if('"'===e.charAt(n)){var a=e.indexOf('"',n+1);return-1===a||a>=r?{len:1,err:"Missing close quote"}:{len:a-t+1,token:this.translateString(e.substring(n+1,a))}}for(var i=n;i<r&&!this.isWhiteSpace(e.charAt(i))&&"="!==e.charAt(i);)i++;return{len:i-t+1,token:e.substring(n,i)}};var s={"`a":"à","'a":"á","^a":"â","~a":"ã",'"a':"ä",oa:"å",aa:"å","=a":"ā",ua:"ă",";a":"ą","`e":"è","'e":"é","^e":"ê",'"e':"ë","=e":"ē",ue:"ĕ",";e":"ę",".e":"ė","`i":"ì","'i":"í","^i":"î",'"i':"ï","=i":"ī",ui:"ĭ",";i":"į","`o":"ò","'o":"ó","^o":"ô","~o":"õ",'"o':"ö","=o":"ō",uo:"ŏ","/o":"ø","`u":"ù","'u":"ú","^u":"û","~u":"ũ",'"u':"ü",ou:"ů","=u":"ū",uu:"ŭ",";u":"ų","`A":"À","'A":"Á","^A":"Â","~A":"Ã",'"A':"Ä",oA:"Å",AA:"Å","=A":"Ā",uA:"Ă",";A":"Ą","`E":"È","'E":"É","^E":"Ê",'"E':"Ë","=E":"Ē",uE:"Ĕ",";E":"Ę",".E":"Ė","`I":"Ì","'I":"Í","^I":"Î","~I":"Ĩ",'"I':"Ï","=I":"Ī",uI:"Ĭ",";I":"Į",".I":"İ","`O":"Ò","'O":"Ó","^O":"Ô","~O":"Õ",'"O':"Ö","=O":"Ō",uO:"Ŏ","/O":"Ø","`U":"Ù","'U":"Ú","^U":"Û","~U":"Ũ",'"U':"Ü",oU:"Ů","=U":"Ū",uU:"Ŭ",";U":"Ų",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",ss:"ß","'c":"ć","^c":"ĉ",uc:"č",cc:"ç",".c":"ċ",cC:"Ç","'C":"Ć","^C":"Ĉ",uC:"Č",".C":"Ċ","~N":"Ñ","~n":"ñ","=s":"š",vs:"š",DH:"Ð",dh:"ð",HO:"Ő",Ho:"ő",HU:"Ű",Hu:"ű","'Y":"Ý","'y":"ý","^Y":"Ŷ","^y":"ŷ",'"Y':"Ÿ",'"y':"ÿ",vS:"Š",vZ:"Ž",vz:"ž"},o={"#":"♯",b:"♭","=":"♮"},c={201:"♯",202:"♭",203:"♮",241:"¡",242:"¢",252:"a",262:"2",272:"o",302:"Â",312:"Ê",322:"Ò",332:"Ú",342:"â",352:"ê",362:"ò",372:"ú",243:"£",253:"«",263:"3",273:"»",303:"Ã",313:"Ë",323:"Ó",333:"Û",343:"ã",353:"ë",363:"ó",373:"û",244:"¤",254:"¬",264:" ́",274:"1⁄4",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"1⁄2",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"3⁄4",306:"Æ",316:"Î",326:"Ö",336:"Þ",346:"æ",356:"î",366:"ö",376:"þ",247:"§",257:" ̄",267:"·",277:"¿",307:"Ç",317:"Ï",327:"×",337:"ß",347:"ç",357:"ï",367:"÷",377:"ÿ",250:" ̈",260:"°",270:" ̧",300:"À",310:"È",320:"Ð",330:"Ø",340:"à",350:"è",360:"ð",370:"ø",251:"©",261:"±",271:"1",301:"Á",311:"É",321:"Ñ",331:"Ù",341:"á",351:"é",361:"ñ",371:"ù"};this.translateString=function(e){var t=e.split("\\");if(1===t.length)return e;var r=null;return n.each(t,(function(e){if(null===r)r=e;else{var t=s[e.substring(0,2)];void 0!==t?r+=t+e.substring(2):void 0!==(t=c[e.substring(0,3)])?r+=t+e.substring(3):(t=o[e.substring(0,1)],r+=void 0!==t?t+e.substring(1):"\\"+e)}})),r},this.getNumber=function(e,t){for(var r=0;t<e.length;)switch(e.charAt(t)){case"0":r*=10,t++;break;case"1":r=10*r+1,t++;break;case"2":r=10*r+2,t++;break;case"3":r=10*r+3,t++;break;case"4":r=10*r+4,t++;break;case"5":r=10*r+5,t++;break;case"6":r=10*r+6,t++;break;case"7":r=10*r+7,t++;break;case"8":r=10*r+8,t++;break;case"9":r=10*r+9,t++;break;default:return{num:r,index:t}}return{num:r,index:t}},this.getFraction=function(e,t){var r=1,n=1;if("/"!==e.charAt(t)){var a=this.getNumber(e,t);r=a.num,t=a.index}if("/"===e.charAt(t)){if(t++,"/"===e.charAt(t)){for(var i=.5;"/"===e.charAt(t++);)i/=2;return{value:r*i,index:t-1}}var s=t,o=this.getNumber(e,t);0===o.num&&s===t&&(o.num=2),0!==o.num&&(n=o.num),t=o.index}return{value:r/n,index:t}},this.theReverser=function(e){return n.endsWith(e,", The")?"The "+e.substring(0,e.length-5):n.endsWith(e,", A")?"A "+e.substring(0,e.length-3):e},this.stripComment=function(e){var t=e.indexOf("%");return t>=0?n.strip(e.substring(0,t)):n.strip(e)},this.getInt=function(e){var t=parseInt(e);if(isNaN(t))return{digits:0};var r=""+t;return{value:t,digits:e.indexOf(r)+r.length}},this.getFloat=function(e){var t=parseFloat(e);if(isNaN(t))return{digits:0};var r=""+t;return{value:t,digits:e.indexOf(r)+r.length}},this.getMeasurement=function(e){if(0===e.length)return{used:0};var t=1,r="";if("-"===e[0].token)e.shift(),r="-",t++;else if("number"!==e[0].type)return{used:0};if(r+=e.shift().token,0===e.length)return{used:1,value:parseInt(r)};var n=e.shift();if("."===n.token){if(t++,0===e.length)return{used:t,value:parseInt(r)};if("number"===e[0].type&&(r=r+"."+(n=e.shift()).token,t++,0===e.length))return{used:t,value:parseFloat(r)};n=e.shift()}switch(n.token){case"pt":return{used:t+1,value:parseFloat(r)};case"cm":return{used:t+1,value:parseFloat(r)/2.54*72};case"in":return{used:t+1,value:72*parseFloat(r)};default:return e.unshift(n),{used:t,value:parseFloat(r)}}return{used:0}};var l=function(e){for(;-1!==e.indexOf("\\n");)e=e.replace("\\n","\n");return e};this.getBrackettedSubstring=function(e,t,r,n){for(var a=n||e.charAt(t),i=t+1;i<e.length&&e.charAt(i)!==a;)++i;return e.charAt(i)===a?[i-t+1,l(e.substring(t+1,i)),!0]:((i=t+r)>e.length-1&&(i=e.length-1),[i-t+1,l(e.substring(t+1,i)),!1])}};a.prototype.peekLine=function(){return this.lines[this.lineIndex]},a.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=a},4846:e=>{var t={},r={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},n=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],a=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];t.keySignature=function(e,t,i,s,o,c){if("perc"===e.clef.type)return{accidentals:t[i],root:s,acc:o};c||(c=0),e.localTransposeVerticalMovement=0,e.localTransposePreferFlats=!1;var l=t[i];if(!l)return e.key;if(e.localTranspose=(e.globalTranspose?e.globalTranspose:0)+c,!e.localTranspose)return{accidentals:l,root:s,acc:o};if(e.globalTransposeOrigKeySig=l,e.localTranspose%12==0)return e.localTransposeVerticalMovement=e.localTranspose/12*7,{accidentals:l,root:s,acc:o};var h=i[0];"b"===i[1]||"#"===i[1]?(h+=i[1],i=i.substr(2)):i=i.substr(1);for(var u=r[h]+e.localTranspose;u<0;)u+=12;u>11&&(u%=12);var d="m"===i[0]?a[u]:n[u],f=d+i,p=t[f];p.length>0&&"flat"===p[0].acc&&(e.localTransposePreferFlats=!0);var m=f.charCodeAt(0)-h.charCodeAt(0);return e.localTranspose>0?m<0?m+=7:0===m&&("#"!==h[1]&&"b"!==f[1]||(m+=7)):e.localTranspose<0&&(m>0?m-=7:0===m&&("b"!==h[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),{accidentals:p,root:d[0],acc:d.length>1?d[1]:""}};var i=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],s=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],o=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],c=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];t.chordName=function(e,t){if(e.localTranspose&&e.localTranspose%12!=0){for(var r=e.localTranspose;r<0;)r+=12;r>11&&(r%=12);for(var n=(t=(t=(t=(t=(t=(t=(t=(t=e.freegchord?(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/Cb/g,"`~11`")).replace(/Db/g,"`~1`")).replace(/Eb/g,"`~3`")).replace(/Fb/g,"`~4`")).replace(/Gb/g,"`~6`")).replace(/Ab/g,"`~8`")).replace(/Bb/g,"`~10`")).replace(/C#/g,"`~1`")).replace(/D#/g,"`~3`")).replace(/E#/g,"`~5`")).replace(/F#/g,"`~6`")).replace(/G#/g,"`~8`")).replace(/A#/g,"`~10`")).replace(/B#/g,"`~0`"):(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/C♭/g,"`~11`")).replace(/D♭/g,"`~1`")).replace(/E♭/g,"`~3`")).replace(/F♭/g,"`~4`")).replace(/G♭/g,"`~6`")).replace(/A♭/g,"`~8`")).replace(/B♭/g,"`~10`")).replace(/C♯/g,"`~1`")).replace(/D♯/g,"`~3`")).replace(/E♯/g,"`~5`")).replace(/F♯/g,"`~6`")).replace(/G♯/g,"`~8`")).replace(/A♯/g,"`~10`")).replace(/B♯/g,"`~0`")).replace(/C/g,"`~0`")).replace(/D/g,"`~2`")).replace(/E/g,"`~4`")).replace(/F/g,"`~5`")).replace(/G/g,"`~7`")).replace(/A/g,"`~9`")).replace(/B/g,"`~11`")).split("`"),a=0;a<n.length;a++)if("~"===n[a][0]){var l=parseInt(n[a].substr(1),10);(l+=r)>11&&(l-=12),e.freegchord?n[a]=e.localTransposePreferFlats?c[l]:o[l]:n[a]=e.localTransposePreferFlats?s[l]:i[l]}t=n.join("")}return t};var l=["c","d","e","f","g","a","b"];var h={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},u={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"};t.note=function(e,t){if(e.localTranspose&&"perc"!==e.clef.type){var r=t.pitch;if(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.accidental){var n=function(e,t,r,n,a){for(var i=l[(e+49)%7],s=0,o=0;o<n.length;o++)n[o].note.toLowerCase()===i&&(s=h[n[o].acc]);for(var c=h[r]-s,u=l[(t+49)%7],d=0,f=0;f<a.accidentals.length;f++)a.accidentals[f].note.toLowerCase()===u&&(d=h[a.accidentals[f].acc]);var p=c+d;return p<-2&&(t--,p+="c"===u||"f"===u?1:2),p>2&&(t++,p-="b"===u||"e"===u?1:2),[t,p]}(r,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=n[0],t.accidental=u[n[1]]}}},e.exports=t},3682:(e,t,r)=>{var n=r(6483),a=r(302);e.exports=function(e){var t=this;function r(e,t){for(var r=t-1;r>0&&"bar"!==e[r].el_type;r--);return r}this.setVisualTranspose=function(t){t&&(e.visualTranspose=t)},this.resolveOverlays=function(){for(var t=!1,n=[],i=0;i<e.lines.length;i++){var s=e.lines[i];if(s.staff)for(var o=0;o<s.staff.length;o++){for(var c=s.staff[o],l=[],h=0;h<c.voices.length;h++){var u=c.voices[h];l.push({hasOverlay:!1,voice:[],snip:[]}),n[i]=0;for(var d=0,f=!1,p=0,m=-1,g=0;g<u.length;g++){var v=u[g];if("overlay"!==v.el_type||f)"bar"===v.el_type?(f?(f=!1,l[h].snip.push({start:m,len:g-m}),l[h].voice.push(v)):(d>0&&l[h].voice.push({el_type:"note",duration:d,rest:{type:"invisible"},startChar:v.startChar,endChar:v.endChar}),l[h].voice.push(v)),d=0):"note"===v.el_type?f?l[h].voice.push(v):(d+=v.duration,n[i]+=v.duration):"scale"!==v.el_type&&"stem"!==v.el_type&&"overlay"!==v.el_type&&"style"!==v.el_type&&"transpose"!==v.el_type||l[h].voice.push(v);else{t=!0,f=!0,m=g,l[h].hasOverlay=!0,0===p&&(p=n[i]);for(var b=0;b<i;b++)n[b]&&e.lines[b].staff&&c.voices.length>=e.lines[b].staff[0].voices.length&&e.lines[b].staff[0].voices.push([{el_type:"note",duration:n[b],rest:{type:"invisible"},startChar:v.startChar,endChar:v.endChar}])}}l[h].hasOverlay&&0===l[h].snip.length&&l[h].snip.push({start:m,len:u.length-m})}for(h=0;h<l.length;h++){var y=l[h];if(y.hasOverlay){y.voice.splice(0,0,{el_type:"stem",direction:"down"}),c.voices.push(y.voice);for(var w=y.snip.length-1;w>=0;w--){var x=y.snip[w];c.voices[h].splice(x.start,x.len),c.voices[h].splice(x.start+1,0,{el_type:"stem",direction:"auto"});var k=r(c.voices[h],x.start);c.voices[h].splice(k,0,{el_type:"stem",direction:"up"})}for(w=0;w<c.voices[c.voices.length-1].length;w++){c.voices[c.voices.length-1][w]=a.clone(c.voices[c.voices.length-1][w]);var C=c.voices[c.voices.length-1][w];"bar"===C.el_type&&C.startEnding&&delete C.startEnding,"bar"===C.el_type&&C.endEnding&&delete C.endEnding}}}}}return t},this.cleanUp=function(t,r,i){this.closeLine(),delete e.runningFonts,e.metaText.tempo&&e.metaText.tempo.bpm&&!e.metaText.tempo.duration&&(e.metaText.tempo.duration=[e.getBeatLength()]);var s,o,c,l=!1;for(s=0;s<e.lines.length;s++)if(void 0!==e.lines[s].staff){var h=!1;for(o=0;o<e.lines[s].staff.length;o++)if(void 0===e.lines[s].staff[o])l=!0,e.lines[s].staff[o]=null;else for(c=0;c<e.lines[s].staff[o].voices.length;c++)void 0===e.lines[s].staff[o].voices[c]?e.lines[s].staff[o].voices[c]=[]:this.containsNotes(e.lines[s].staff[o].voices[c])&&(h=!0);h||(e.lines[s]=null,l=!0)}if(l&&(e.lines=a.compact(e.lines),a.each(e.lines,(function(e){e.staff&&(e.staff=a.compact(e.staff))}))),t)for(;p(e.lines,t););if(r){for(l=!1,s=0;s<e.lines.length;s++)if(void 0!==e.lines[s].staff)for(o=0;o<e.lines[s].staff.length;o++){var u=!1;for(c=0;c<e.lines[s].staff[o].voices.length;c++)this.containsNotesStrict(e.lines[s].staff[o].voices[c])&&(u=!0);u||(l=!0,e.lines[s].staff[o]=null)}l&&a.each(e.lines,(function(e){e.staff&&(e.staff=a.compact(e.staff))}))}for(function(e){for(var t=!0,r=0;r<e.length;r++){var n=e[r];if(n.staff){for(var a=0;a<n.staff.length;a++){var i=n.staff[a];if(i.title){for(var s=!1,o=0;o<i.title.length;o++)i.title[o]?(i.title[o]=t?i.title[o].name:i.title[o].subname,i.title[o]?s=!0:i.title[o]=""):i.title[o]="";s||delete i.title}}t=!1}}}(e.lines),s=0;s<e.lines.length;s++)if(e.lines[s].staff)for(o=0;o<e.lines[s].staff.length;o++)delete e.lines[s].staff[o].workingClef;for(;this.resolveOverlays(););function d(e,t,r){var n;i[t]||(i[t]=[]),i[t][r]||(i[t][r]=[]);for(var s=function(e,s,o){if(void 0===i[t][r][o]){for(n=0;n<i[t][r].length;n++)if(void 0!==i[t][r][n]){o=n;break}if(void 0===i[t][r][o]){var c=100*o+1;a.each(e.endSlur,(function(e){c===e&&--c})),i[t][r][o]=[c]}}for(var l,h=0;h<s;h++)l=i[t][r][o].pop(),e.endSlur.push(l);return 0===i[t][r][o].length&&delete i[t][r][o],l},o=function(e,n,s,o){e.startSlur=[],void 0===i[t][r][s]&&(i[t][r][s]=[]);for(var c=100*s+1,l=0;l<n;l++)o&&(a.each(o,(function(e){c===e&&++c})),a.each(o,(function(e){c===e&&++c})),a.each(o,(function(e){c===e&&++c}))),a.each(i[t][r][s],(function(e){c===e&&++c})),a.each(i[t][r][s],(function(e){c===e&&++c})),i[t][r][s].push(c),e.startSlur.push({label:c}),e.dottedSlur&&(e.startSlur[e.startSlur.length-1].style="dotted",delete e.dottedSlur),c++},c=0;c<e.length;c++){var l=e[c];if("note"===l.el_type){if(l.gracenotes)for(var h=0;h<l.gracenotes.length;h++){if(l.gracenotes[h].endSlur){var u=l.gracenotes[h].endSlur;l.gracenotes[h].endSlur=[];for(var d=0;d<u;d++)s(l.gracenotes[h],1,20)}l.gracenotes[h].startSlur&&(n=l.gracenotes[h].startSlur,o(l.gracenotes[h],n,20))}if(l.endSlur&&(n=l.endSlur,l.endSlur=[],s(l,n,0)),l.startSlur&&o(l,n=l.startSlur,0),l.pitches){for(var f=[],p=0;p<l.pitches.length;p++)if(l.pitches[p].endSlur){var m=l.pitches[p].endSlur;l.pitches[p].endSlur=[];for(var g=0;g<m;g++){var v=s(l.pitches[p],1,p+1);f.push(v)}}for(p=0;p<l.pitches.length;p++)l.pitches[p].startSlur&&(n=l.pitches[p].startSlur,o(l.pitches[p],n,p+1,f));l.gracenotes&&l.pitches[0].endSlur&&100===l.pitches[0].endSlur[0]&&l.pitches[0].startSlur&&(l.gracenotes[0].endSlur?l.gracenotes[0].endSlur.push(l.pitches[0].startSlur[0].label):l.gracenotes[0].endSlur=[l.pitches[0].startSlur[0].label],1===l.pitches[0].endSlur.length?delete l.pitches[0].endSlur:100===l.pitches[0].endSlur[0]?l.pitches[0].endSlur.shift():100===l.pitches[0].endSlur[l.pitches[0].endSlur.length-1]&&l.pitches[0].endSlur.pop(),1===i[t][r][1].length?delete i[t][r][1]:i[t][r][1].pop())}}}}function f(e){n.fixClef(e)}function p(e,t){for(s=0;s<e.length;s++)if(void 0!==e[s].staff)for(o=0;o<e[s].staff.length;o++){var r=[];for(c=0;c<e[s].staff[o].voices.length;c++)for(var n=e[s].staff[o].voices[c],i=0,l=0;l<n.length;l++)if("bar"===n[l].el_type){if(++i>=t&&l<n.length-1){var h=m(e,s);if(!h){var u=JSON.parse(JSON.stringify(e[s]));e.push(a.clone(u)),h=e[e.length-1];for(var d=0;d<h.staff.length;d++)for(var f=0;f<h.staff[d].voices.length;f++)h.staff[d].voices[f]=[]}var p=l+1,g=e[s].staff[o].voices[c].slice(p);return e[s].staff[o].voices[c]=e[s].staff[o].voices[c].slice(0,p),h.staff[o].voices[c]=r.concat(g.concat(h.staff[o].voices[c])),!0}}else n[l].duration||r.push(n[l])}return!1}function m(e,t){for(t++;e.length>t;){if(e[t].staff)return e[t];t++}return null}for(e.lineNum=0;e.lineNum<e.lines.length;e.lineNum++){var g=e.lines[e.lineNum].staff;if(g)for(e.staffNum=0;e.staffNum<g.length;e.staffNum++)for(g[e.staffNum].clef&&f(g[e.staffNum].clef),e.voiceNum=0;e.voiceNum<g[e.staffNum].voices.length;e.voiceNum++){var v=g[e.staffNum].voices[e.voiceNum];d(v,e.staffNum,e.voiceNum);for(var b=0;b<v.length;b++)"clef"===v[b].el_type&&f(v[b]);if(v.length>0&&v[v.length-1].barNumber){var y=m(e.lines,e.lineNum);y&&(y.staff[0].barNumber=v[v.length-1].barNumber),delete v[v.length-1].barNumber}}}return delete e.staffNum,delete e.voiceNum,delete e.lineNum,delete e.potentialStartBeam,delete e.potentialEndBeam,delete e.vskipPending,i},e.reset(),this.getLastNote=function(){if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff&&e.lines[e.lineNum].staff[e.staffNum]&&e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])for(var t=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum].length-1;t>=0;t--){var r=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum][t];if("note"===r.el_type)return r}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(){e.potentialStartBeam&&e.potentialEndBeam&&(e.potentialStartBeam.startBeam=!0,e.potentialEndBeam.endBeam=!0),delete e.potentialStartBeam,delete e.potentialEndBeam},this.appendElement=function(r,n,i,s){var o=e;s.el_type=r,null!==n&&(s.startChar=n),null!==i&&(s.endChar=i);var c=function(){void 0!==o.potentialStartBeam&&void 0!==o.potentialEndBeam&&(o.potentialStartBeam.startBeam=!0,o.potentialEndBeam.endBeam=!0),delete o.potentialStartBeam,delete o.potentialEndBeam};"note"===r?t.getDuration(s)>=.25||s.force_end_beam_last&&void 0!==o.potentialStartBeam?c():s.end_beam&&void 0!==o.potentialStartBeam?void 0===s.rest?(o.potentialStartBeam.startBeam=!0,s.endBeam=!0,delete o.potentialStartBeam,delete o.potentialEndBeam):c():void 0===s.rest&&(void 0===o.potentialStartBeam?s.end_beam||(o.potentialStartBeam=s,delete o.potentialEndBeam):o.potentialEndBeam=s):c();delete s.end_beam,delete s.force_end_beam_last,function(e){var t=o.lines[o.lineNum].staff[o.staffNum];if(t){if(void 0!==e.pitches){var r=t.workingClef.verticalPos;a.each(e.pitches,(function(e){e.verticalPos=e.pitch-r}))}if(void 0!==e.gracenotes){var n=t.workingClef.verticalPos;a.each(e.gracenotes,(function(e){e.verticalPos=e.pitch-n}))}t.voices[o.voiceNum].push(e)}}(s)},this.appendStartingElement=function(t,r,n,i){var s;this.closeLine(),"key"===t&&(s=i.impliedNaturals,delete i.impliedNaturals,delete i.explicitAccidentals);var o=a.clone(i);if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff){e.lines[e.lineNum].staff.length<=e.staffNum&&(e.lines[e.lineNum].staff[e.staffNum]={},e.lines[e.lineNum].staff[e.staffNum].clef=a.clone(e.lines[e.lineNum].staff[0].clef),e.lines[e.lineNum].staff[e.staffNum].key=a.clone(e.lines[e.lineNum].staff[0].key),e.lines[e.lineNum].staff[0].meter&&(e.lines[e.lineNum].staff[e.staffNum].meter=a.clone(e.lines[e.lineNum].staff[0].meter)),e.lines[e.lineNum].staff[e.staffNum].workingClef=a.clone(e.lines[e.lineNum].staff[0].workingClef),e.lines[e.lineNum].staff[e.staffNum].voices=[[]]),"clef"===t&&(e.lines[e.lineNum].staff[e.staffNum].workingClef=o);for(var c=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum],l=0;l<c.length;l++){if("note"===c[l].el_type||"bar"===c[l].el_type)return o.el_type=t,o.startChar=r,o.endChar=n,s&&(o.accidentals=s.concat(o.accidentals)),void c.push(o);if(c[l].el_type===t)return o.el_type=t,o.startChar=r,o.endChar=n,s&&(o.accidentals=s.concat(o.accidentals)),void(c[l]=o)}e.lines[e.lineNum].staff[e.staffNum][t]=i}},this.pushLine=function(t){e.vskipPending&&(t.vskip=e.vskipPending,delete e.vskipPending),e.lines.push(t)},this.addSubtitle=function(e,t){this.pushLine({subtitle:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addSpacing=function(t){e.vskipPending=t},this.addNewPage=function(e){this.pushLine({newpage:e})},this.addSeparator=function(e,t,r,n){this.pushLine({separator:{spaceAbove:Math.round(e),spaceBelow:Math.round(t),lineLength:Math.round(r),startChar:n.startChar,endChar:n.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){t.appendElement("scale",null,null,{size:e})},this.startNewLine=function(r){var n=e;this.closeLine();var a=function(e){var r=n.lines[n.lineNum].staff[n.staffNum];if(r.voices[n.voiceNum]=[],r.title||(r.title=[]),r.title[n.voiceNum]={name:e.name,subname:e.subname},e.style&&t.appendElement("style",null,null,{head:e.style}),e.stem)t.appendElement("stem",null,null,{direction:e.stem});else if(n.voiceNum>0){if(void 0!==r.voices[0]){for(var a=!1,i=0;i<r.voices[0].length;i++)"stem"===r.voices[0].el_type&&(a=!0);if(!a){r.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}}t.appendElement("stem",null,null,{direction:"down"})}e.scale&&t.appendElement("scale",null,null,{size:e.scale})},i=function(e){e.key&&e.key.impliedNaturals&&(e.key.accidentals=e.key.accidentals.concat(e.key.impliedNaturals),delete e.key.impliedNaturals),n.lines[n.lineNum].staff[n.staffNum]={voices:[],clef:e.clef,key:e.key,workingClef:e.clef},void 0!==e.stafflines&&(n.lines[n.lineNum].staff[n.staffNum].clef.stafflines=e.stafflines,n.lines[n.lineNum].staff[n.staffNum].workingClef.stafflines=e.stafflines),e.staffscale&&(n.lines[n.lineNum].staff[n.staffNum].staffscale=e.staffscale),e.annotationfont&&t.setLineFont("annotationfont",e.annotationfont),e.gchordfont&&t.setLineFont("gchordfont",e.gchordfont),e.tripletfont&&t.setLineFont("tripletfont",e.tripletfont),e.vocalfont&&t.setLineFont("vocalfont",e.vocalfont),e.bracket&&(n.lines[n.lineNum].staff[n.staffNum].bracket=e.bracket),e.brace&&(n.lines[n.lineNum].staff[n.staffNum].brace=e.brace),e.connectBarLines&&(n.lines[n.lineNum].staff[n.staffNum].connectBarLines=e.connectBarLines),e.barNumber&&(n.lines[n.lineNum].staff[n.staffNum].barNumber=e.barNumber),a(e),e.part&&t.appendElement("part",e.part.startChar,e.part.endChar,{title:e.part.title}),void 0!==e.meter&&(n.lines[n.lineNum].staff[n.staffNum].meter=e.meter),n.vskipPending&&(n.lines[n.lineNum].vskip=n.vskipPending,delete n.vskipPending)};void 0===e.lines[e.lineNum]?function(e){n.lines[n.lineNum]={staff:[]},i(e)}(r):void 0===e.lines[e.lineNum].staff?(e.lineNum++,this.startNewLine(r)):void 0===e.lines[e.lineNum].staff[e.staffNum]?i(r):void 0===e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum]?a(r):this.containsNotes(e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])?(e.lineNum++,this.startNewLine(r)):r.part&&t.appendElement("part",r.part.startChar,r.part.endChar,{title:r.part.title})},this.setRunningFont=function(t,r){e.runningFonts[t]=r},this.setLineFont=function(t,r){if(e.runningFonts[t]){for(var n=!1,a=Object.keys(r),i=0;i<a.length;i++)e.runningFonts[t][a[i]]!==r[a[i]]&&(n=!0);n&&(e.lines[e.lineNum].staff[e.staffNum][t]=r)}e.runningFonts[t]=r},this.setBarNumberImmediate=function(e){var t=this.getCurrentVoice();if(t&&t.length>0){var r=t[t.length-1];if("bar"!==r.el_type)return e-1;void 0!==r.barNumber&&(r.barNumber=e)}return e},this.hasBeginMusic=function(){for(var t=0;t<e.lines.length;t++)if(e.lines[t].staff)return!0;return!1},this.isFirstLine=function(t){for(var r=t-1;r>=0;r--)if(void 0!==e.lines[r].staff)return!1;return!0},this.getCurrentVoice=function(){var t=e.lines[e.lineNum];if(!t)return null;var r=t.staff[e.staffNum];return r&&void 0!==r.voices[e.voiceNum]?r.voices[e.voiceNum]:null},this.setCurrentVoice=function(t,r){e.staffNum=t,e.voiceNum=r;for(var n=0;n<e.lines.length;n++)if(e.lines[n].staff&&(void 0===e.lines[n].staff[t]||void 0===e.lines[n].staff[t].voices[r]||!this.containsNotes(e.lines[n].staff[t].voices[r])))return void(e.lineNum=n);e.lineNum=n},this.addMetaText=function(t,r,n){void 0===e.metaText[t]?(e.metaText[t]=r,e.metaTextInfo[t]=n):(e.metaText[t]+="\n"+r,e.metaTextInfo[t].endChar=n.endChar)},this.addMetaTextArray=function(t,r,n){void 0===e.metaText[t]?(e.metaText[t]=[r],e.metaTextInfo[t]=n):(e.metaText[t].push(r),e.metaTextInfo[t].endChar=n.endChar)},this.addMetaTextObj=function(t,r,n){e.metaText[t]=r,e.metaTextInfo[t]=n}}},1138:e=>{function t(e,t){for(var r=[],n=[],a=0,i=0;i<e.length;i++){var s=e[i],o=a+s;if(o<t)a=o;else t-a<o-t&&a>0?(r.push(i-1),n.push(Math.round(a-s)),a=s):i<e.length-1&&(r.push(i),n.push(Math.round(a)),a=0)}return n.push(Math.round(a)),{lineBreaks:r,totals:n}}function r(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r]);return t}function n(e,t,n,a,i,s,o,c,l,h,u){for(var d=h;d<e.length;d++){var f=e[d];n+=f,a+=f;var p=Math.abs(n-t[c]);if(Math.abs(p-s)<t[0]/10)if(p<s){var m=r(i),g=r(l);g.push(d-1),m.push(a-f),u.push({accumulator:n,lineAccumulator:f,lineWidths:m,lastVariance:Math.abs(n-t[c+1]),highestVariance:Math.max(o,s),currLine:c+1,lineBreaks:g,startIndex:d+1})}else p>s&&d<e.length-1&&(m=r(i),g=r(l),u.push({accumulator:n,lineAccumulator:a,lineWidths:m,lastVariance:p,highestVariance:Math.max(o,p),currLine:c,lineBreaks:g,startIndex:d+1}));p>s?(l.push(d-1),c++,o=Math.max(o,s),s=Math.abs(n-t[c]),i.push(a-f),a=f):s=p}i.push(a)}function a(e,t,r,a){for(var i=Math.ceil(e.total/t),s=Math.floor(e.total/i),o=[],c=0;c<i;c++)o.push(s*(c+1));var l=[];l.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var h=0;h<l.length;)n(e.measureWidths,o,l[h].accumulator,l[h].lineAccumulator,l[h].lineWidths,l[h].lastVariance,l[h].highestVariance,l[h].currLine,l[h].lineBreaks,l[h].startIndex,l),h++;for(c=0;c<l.length;c++){var u=l[c];u.variances=[],u.aveVariance=0;for(var d=0;d<u.lineWidths.length;d++){var f=u.lineWidths[d];u.variances.push(f-o[0]),u.aveVariance+=Math.abs(f-o[0])}u.aveVariance=u.aveVariance/u.lineWidths.length,a.attempts.push({type:"optimizeLineWidths",lineBreaks:u.lineBreaks,variances:u.variances,aveVariance:u.aveVariance,widths:e.measureWidths})}var p=9999999,m=-1;for(c=0;c<l.length;c++)(u=l[c]).aveVariance<p&&(p=u.aveVariance,m=c);return{failed:!1,lineBreaks:l[m].lineBreaks,variance:l[m].highestVariance}}function i(e,t,r){for(var n=[],a=[],i=0,s=!1,o=0;o<e.length;o++)(i+=e[o])>t&&(s=!0),o%r==r-1&&(o!==e.length-1&&n.push(o),a.push(Math.round(i)),i=0);return{failed:s,totals:a,lineBreaks:n}}e.exports={wrapLines:function(e,t){if(t&&0!==e.lines.length){var r=e.deline({lineBreaks:!1}),n=function(e,t){for(var r=[],n=0,a=0,i=0,s=0;s<e.length;s++){var o=e[s];if(o.staff){var c=a,l=t[n];n++;for(var h=0;h<o.staff.length;h++)for(var u=o.staff[h],d=0;d<u.voices.length;d++){i=c;for(var f=0,p=0,m=u.voices[d],g=0,v=0;v<m.length;v++){"bar"===m[v].el_type&&(l[p]===f&&(r.push({ogLine:s,line:i,staff:h,voice:d,start:g,end:v}),g=v+1,i++,a=Math.max(a,i),p++),f++)}r.push({ogLine:s,line:i,staff:h,voice:d,start:g,end:m.length}),i++,a=Math.max(a,i)}}else r.push({ogLine:s,line:i}),i++,a=Math.max(a,i)}return r}(r,t);e.lines=function(e,t){for(var r=[],n=[],a=[],i=0;i<t.length;i++){var s=t[i];if(e[s.ogLine].staff){var o=e[s.ogLine].staff[s.staff];if(r[s.line]||(r[s.line]={staff:[]}),!r[s.line].staff[s.staff]){r[s.line].staff[s.staff]={voices:[]};for(var c=Object.keys(o),l=0;l<c.length;l++){var h="voices"===c[l];"meter"===c[l]&&0!==s.line&&(h=!0),h||(r[s.line].staff[s.staff][c[l]]=o[c[l]])}n[s.staff]&&(r[s.line].staff[s.staff].key=n[s.staff])}r[s.line].staff[s.staff].voices[s.voice]||(r[s.line].staff[s.staff].voices[s.voice]=[]),r[s.line].staff[s.staff].voices[s.voice]=e[s.ogLine].staff[s.staff].voices[s.voice].slice(s.start,s.end+1),a[10*s.staff+s.voice]&&r[s.line].staff[s.staff].voices[s.voice].unshift({el_type:"stem",direction:a[10*s.staff+s.voice].direction});for(var u=r[s.line].staff[s.staff].voices[s.voice],d=u.length-1;d>=0;d--)if("key"===u[d].el_type){n[s.staff]={root:u[d].root,acc:u[d].acc,mode:u[d].mode,accidentals:u[d].accidentals.filter((function(e){return"natural"!==e.acc}))};break}for(d=u.length-1;d>=0;d--)if("stem"===u[d].el_type){a[10*s.staff+s.voice]={direction:u[d].direction};break}}else r[s.line]=e[s.ogLine]}for(var f=0;f<r.length;f++)r[f].staff&&(r[f].staff=r[f].staff.filter((function(e){return null!=e})));return r}(r,n),e.lineBreaks=n}},calcLineWraps:function(e,r,n){if(0===r.length||n.staffwidth<r[0].left)return{reParse:!1,explanation:"Staff width is narrower than the margin",revisedParams:n};var s=n.scale?Math.max(n.scale,.1):1,o=n.wrap.minSpacing?Math.max(parseFloat(n.wrap.minSpacing),1):1,c=n.wrap.minSpacingLimit?Math.max(parseFloat(n.wrap.minSpacingLimit),1):o-.1,l=n.wrap.maxSpacing?Math.max(parseFloat(n.wrap.maxSpacing),1):void 0;n.wrap.lastLineLimit&&!l&&(l=Math.max(parseFloat(n.wrap.lastLineLimit),1));for(var h=n.wrap.preferredMeasuresPerLine?Math.max(parseInt(n.wrap.preferredMeasuresPerLine,10),0):void 0,u=[],d=[],f=0;f<r.length;f++){var p=r[f],m=n.staffwidth-p.left,g=m/o/s,v=m/c/s,b={widths:p,lineBreakPoint:g,minLineSize:m/l/s,attempts:[],staffWidth:n.staffwidth,minWidth:Math.round(v)},y=null;if(h){var w=i(p.measureWidths,g,h);b.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:h,lineBreaks:w.lineBreaks,failed:w.failed,totals:w.totals}),w.failed||(y=w.lineBreaks)}if(!y){var x=t(p.measureWidths,g);b.attempts.push({type:"Free Form",lineBreaks:x.lineBreaks,totals:x.totals}),(y=x.lineBreaks).length>0&&p.measureWidths.length<25&&(x=a(p,g,0,b),b.attempts.push({type:"Optimize",failed:x.failed,reason:x.reason,lineBreaks:x.lineBreaks,totals:x.totals}),x.failed||(y=x.lineBreaks))}u.push(y),d.push(b)}var k=function(e,t,r){var n={lineBreaks:e,staffwidth:t};for(var a in r)r.hasOwnProperty(a)&&"wrap"!==a&&"staffwidth"!==a&&(n[a]=r[a]);return{revisedParams:n}}(u,n.staffwidth,n);return k.explanation=d,k.reParse=!0,k}}},4738:(e,t,r)=>{var n,a=r(302),i=r(7508);!function(){"use strict";var e,t,r,s,o,c,l,h,u,d,f,p,m,g,v,b,y,w,x,k,C,T,_,S=1,A={num:4,den:4},E=64,N=48,M=!1,B=!1,P=!0,L=105,H=95,z=85,O=.25,F=0,D={},I=0;function j(e){for(var t=u.length-1;t>=0;t--)if("program"===u[t].cmd)return void(u[t].channel=e)}function V(e){return e/1e6}function Y(e){return Math.round(e*S*1e6)/1e6}function q(e){switch(parseInt(e.den,10)){case 2:return.5;case 4:return.25;case 8:return e.num%3==0?.375:.125;case 16:return.125}return.25}n=function(n,a,i){a||(a={}),e=[],t=[0,0,0,0,0,0,0],!1,s=[],o=a.qpm,c=void 0,S=1,l=void 0,h=void 0,u=void 0,d=void 0,f=0,_=i,A={num:4,den:4},p=[],m=!1,v=n.length,g=!1,b=[],E=64,N=48,y=void 0,w=void 0,M=!!a.chordsOff,B=!1,P=!0,L=105,H=95,z=85,O=.25,k=void 0,C=void 0,F=0,T=[],!1,D={},n.length>0&&n[0].length>0&&(I=n[0][0].pickupLength),function(e,t){for(var r=0;r<e.length;r++){for(var n=e[r],a={},i=t.qpm,s=0,o=1,c=0;c<n.length;c++){var l=n[c];if("tempo"!==l.el_type){l.time=s;var h=l.duration?l.duration:0;if(s+=Math.round(h*o*1e6),l.pitches){for(var u=0;u<l.pitches.length;u++){var d=l.pitches[u];if(d)if(d.duration=l.duration,d.startTie)void 0===a[d.pitch]?a[d.pitch]={el:c,pitch:u}:(n[a[d.pitch].el].pitches[a[d.pitch].pitch].duration+=d.duration,l.pitches[u]=null);else if(d.endTie){var f=a[d.pitch];if(f){var p=d.duration;delete n[f.el].pitches[f.pitch].startTie,n[f.el].pitches[f.pitch].duration+=p,l.pitches[u]=null,delete a[d.pitch]}else delete d.endTie}}delete l.duration}}else i?o=l.qpm?i/l.qpm:1:i=l.qpm}for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];delete n[g.el].pitches[g.pitch].startTie}}}(n,a);for(var Y=0;Y<n.length;Y++){r=0,-1;var G=n[Y];u=[{cmd:"program",channel:Y,instrument:l}],d=void 0,x=0;var W=!1;(!0===a.voicesOff||a.voicesOff&&a.voicesOff.length&&a.voicesOff.indexOf(Y)>=0)&&(W=!0);for(var R=0;R<G.length;R++){var X=G[R];switch(X.el_type){case"name":d={cmd:"text",type:"name",text:X.trackName};break;case"note":U(X,W)&&(m=Y);break;case"key":t=$(X);break;case"meter":c||(c=X),O=q(A=X);break;case"tempo":o?S=X.qpm?o/X.qpm:1:o=X.qpm;break;case"transpose":r=X.transpose;break;case"bar":p.length>0&&(!1===m||Y===m)&&(se(x,V(X.time)),b=[]),e=[],0===Y&&ce(n.length+1),B=!1,w=y,x=V(X.time);break;case"bagpipes":!0;break;case"instrument":if(void 0===l&&(l=X.program),h=X.program,u.length>0&&"program"===u[u.length-1].cmd)u[u.length-1].instrument=X.program;else{var K;for(K=u.length-1;K>=0&&"program"!==u[K].cmd;K--);(K<0||u[K].instrument!==X.program)&&u.push({cmd:"program",channel:0,instrument:X.program})}break;case"channel":j(X.channel);break;case"drum":D=oe(X.params);break;case"gchord":a.chordsOff||(M=X.tacet);break;case"beat":L=X.beats[0],H=X.beats[1],z=X.beats[2];break;case"vol":k=X.volume;break;case"volinc":C=X.volume;break;case"beataccents":P=X.value;break;default:console.log("MIDI creation. Unknown el_type: "+X.el_type+"\n")}}void 0===u[0].instrument&&(u[0].instrument=l||0),d&&u.unshift(d),s.push(u),p.length>0&&(g=!0),T.length>0&&!0}return a.detuneOctave&&function(e,t){for(var r={},n=0;n<e.length;n++)for(var a=0;a<e[n].length;a++){var i=e[n][a];"note"===i.cmd&&(void 0===r[i.start]&&(r[i.start]=[]),r[i.start].push({track:n,event:a,pitch:i.pitch}))}var s=Object.keys(r);for(n=0;n<s.length;n++){var o=r[s[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,h=!1;for(a=0;!h&&a<o.length-1;a++)o[a].pitch%12===l&&(h=!0);if(h){var u=e[c.track][c.event];u.cents||(u.cents=0),u.cents+=t}}}}(s,parseInt(a.detuneOctave,10)),p.length>0&&s.push(p),T.length>0&&s.push(T),{tempo:o,instrument:l,tracks:s,totalDuration:f}};var G=["break","(break)","no chord","n.c.","tacet"];function W(e,t,r){return(r-e)/t}function R(e){var t=!1,n=function(e){if(M)return"break";if(g||!e.chord||0===e.chord.length)return null;for(var t=0;t<e.chord.length;t++){var r=e.chord[t];if("default"===r.position)return r.name;if(G.indexOf(r.name.toLowerCase())>=0)return"break"}return null}(e);if(n){var a=function(e){if(0===e.length)return;if("break"===e)return{chick:[]};var t=e.substring(0,1);if("("===t){if(0===(e=e.substring(1,e.length-2)).length)return;t=e.substring(0,1)}var n=ee[t];if(!n)return;var a=r;for(;a<-8;)a+=12;for(;a>8;)a-=12;var i,s=(n+=a)-5;1===e.length&&(i=re(n,""));var o=e.substring(1),c=o.substring(0,1);"b"===c||"♭"===c?(n--,s--,o=o.substring(1)):"#"!==c&&"♯"!==c||(n++,s++,o=o.substring(1));var l=o.split("/");if((i=re(n,l[0])).length>=3){s=s+(i[2]-i[0])-7}if(2===l.length){if(ee[l[1].substring(0,1)]){var h={"#":1,"♯":1,b:-1,"♭":-1}[l[1].substring(1)]||0;s=n=ee[l[1].substring(0,1)]+h+a}}return{boom:n,boom2:s,chick:i}}(n);if(a){0===p.length&&(t=!0,p.push({cmd:"program",channel:v,instrument:0})),y=a;var i=W(x,q(A),V(e.time));b.push({chord:y,beat:i,start:V(e.time)})}}return t}function X(e,t){var r=t.start,n=t.duration,a=Y(1/32);switch(e){case"trill":for(var i=1;n>0;)u.push({cmd:"note",pitch:t.pitch+i,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i=1===i?0:1,n-=a,r+=a;break;case"mordent":u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),n-=a,r+=a,u.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),n-=a,r+=a,u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:n,gap:0,instrument:h});break;case"lowermordent":u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),n-=a,r+=a,u.push({cmd:"note",pitch:t.pitch-1,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),n-=a,r+=a,u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:n,gap:0,instrument:h});break;case"turn":a=t.duration/5,u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),u.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r+a,duration:a,gap:0,instrument:h,style:"decoration"}),u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r+2*a,duration:a,gap:0,instrument:h,style:"decoration"}),u.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r+3*a,duration:a,gap:0,instrument:h,style:"decoration"}),u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r+4*a,duration:a,gap:0,instrument:h});break;case"roll":for(;n>0;)u.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),n-=2*a,r+=2*a}}function U(e,t){u.length;var r,n=function(e,t){if(t)return 0;var r;if(k)r=k,k=void 0;else if(P)if(I>e)r=z;else{A.num,A.den;var n=W(x,q(A),e);r=0===n?L:parseInt(n,10)===n?H:z}else r=H;return C&&(r+=C,C=void 0),r<0&&(r=0),r>127&&(r=127),t?0:r}(V(e.time),t),s=R(e);if(e.gracenotes&&e.pitches&&e.pitches.length>0&&e.pitches[0]&&(r=function(e,t){for(var r,n=0,a=[],i=0;i<e.length;i++)n+=(r=e[i]).duration;var s=t/2/n;for(i=0;i<e.length;i++){var o={pitch:Q(r=e[i]),duration:r.duration*s};o=J(o),a.push(o)}return a}(e.gracenotes,e.pitches[0].duration),e.elem&&(e.elem.midiGraceNotePitches=function(e,t,r,n){var a=[];r=Math.round(r);for(var i=0;i<e.length;i++){var s=e[i];u.push({cmd:"note",pitch:s.pitch,volume:r,start:t,duration:s.duration,gap:0,instrument:n,style:"grace"}),a.push({pitch:s.pitch,durationInMeasures:s.duration,volume:r,instrument:n}),t+=s.duration}return a}(r,V(e.time),2*n/3,h))),e.elem){var c=V(e.time),l=c/O/o*60*1e3;if(void 0===e.elem.currentTrackMilliseconds)e.elem.currentTrackMilliseconds=l,e.elem.currentTrackWholeNotes=c;else if(void 0===e.elem.currentTrackMilliseconds.length)e.elem.currentTrackMilliseconds!==l&&(e.elem.currentTrackMilliseconds=[e.elem.currentTrackMilliseconds,l],e.elem.currentTrackWholeNotes=[e.elem.currentTrackWholeNotes,c]);else{for(var d=!1,p=0;p<e.elem.currentTrackMilliseconds.length;p++)e.elem.currentTrackMilliseconds[p]===l&&(d=!0);d||(e.elem.currentTrackMilliseconds.push(l),e.elem.currentTrackWholeNotes.push(c))}}if(e.pitches){var m="",g=function(e,t){var r={};if(e.decoration)for(var n=0;n<e.decoration.length;n++)"staccato"===e.decoration[n]?r.thisBreakBetweenNotes="staccato":"tenuto"===e.decoration[n]?r.thisBreakBetweenNotes="tenuto":"accent"===e.decoration[n]?r.velocity=Math.min(127,1.5*t):"trill"===e.decoration[n]?r.noteModification="trill":"lowermordent"===e.decoration[n]?r.noteModification="lowermordent":"uppermordent"===e.decoration[n]||"mordent"===e.decoration[n]?r.noteModification="mordent":"turn"===e.decoration[n]?r.noteModification="turn":"roll"===e.decoration[n]&&(r.noteModification="roll");return r}(e,n);g.thisBreakBetweenNotes&&(m=g.thisBreakBetweenNotes),g.velocity&&(n=g.velocity);var v=e.pitches;if("rhythm"===e.style&&(B=!0,y&&y.chick)){v=[];for(var b=0;b<y.chick.length;b++){var w=a.clone(e.pitches[0]);w.actualPitch=y.chick[b],v.push(w)}}e.elem&&(e.elem.midiPitches=[]);for(var T=0;T<v.length;T++){var S=v[T];if(S){S.startSlur&&(F+=S.startSlur.length),S.endSlur&&(F-=S.endSlur.length);var E=S.actualPitch?S.actualPitch:Q(S);if(128===h&&_){var N=i(S);N&&_[N]&&(E=_[N].sound)}var M={cmd:"note",pitch:E,volume:n,start:V(e.time),duration:Y(S.duration),instrument:h};if(M=J(M),e.gracenotes&&(M.duration=M.duration/2,M.start=M.start+M.duration),e.elem&&e.elem.midiPitches.push(M),g.noteModification)X(g.noteModification,M);else{switch(F>0?M.endType="tenuto":m&&(M.endType=m),M.endType){case"tenuto":M.gap=-.001;break;case"staccato":var D=.4*M.duration;M.gap=o/60*D;break;default:M.gap=0}u.push(M)}}}u.length-1}var j=function(e){return e.pitches&&e.pitches.length>0&&e.pitches[0]?e.pitches[0].duration:e.elem?e.elem.duration:e.duration}(e);return f=Math.max(f,V(e.time)+Y(j)),s}var K=[0,2,4,5,7,9,11];function Q(n){if(void 0!==n.midipitch)return n.midipitch;var a=n.pitch;if(n.accidental)switch(n.accidental){case"sharp":e[a]=1;break;case"flat":e[a]=-1;break;case"natural":e[a]=0;break;case"dblsharp":e[a]=2;break;case"dblflat":e[a]=-2;break;case"quartersharp":e[a]=.25;break;case"quarterflat":e[a]=-.25}var i=12*function(e){return Math.floor(e/7)}(a)+K[Z(a)]+60;return void 0!==e[a]?i+=e[a]:i+=t[Z(a)],i+=r}function $(e){var t=[0,0,0,0,0,0,0];if(!e.accidentals)return t;for(var r=0;r<e.accidentals.length;r++){var n,a=e.accidentals[r];switch(a.acc){case"flat":n=-1;break;case"quarterflat":n=-.25;break;case"sharp":n=1;break;case"quartersharp":n=.25;break;default:n=0}t[Z(a.note.toLowerCase().charCodeAt(0)-"c".charCodeAt(0))]+=n}return t}function J(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 Z(e){return(e%=7)<0&&(e+=7),e}var ee={A:33,B:35,C:36,D:38,E:40,F:41,G:43};var te={dim:[0,3,6],"°":[0,3,6],"˚":[0,3,6],dim7:[0,3,6,9],"°7":[0,3,6,9],"˚7":[0,3,6,9],ø7:[0,3,6,10],"m7(b5)":[0,3,6,10],m7b5:[0,3,6,10],"m7♭5":[0,3,6,10],"-7(b5)":[0,3,6,10],"-7b5":[0,3,6,10],"7b5":[0,4,6,10],"7(b5)":[0,4,6,10],"7♭5":[0,4,6,10],"7(b9,b5)":[0,4,6,10,13],"7b9,b5":[0,4,6,10,13],"7(#9,b5)":[0,4,6,10,15],"7#9b5":[0,4,6,10,15],"maj7(b5)":[0,4,6,11],maj7b5:[0,4,6,11],"13(b5)":[0,4,6,10,14,21],"13b5":[0,4,6,10,14,21],m:[0,3,7],"-":[0,3,7],m6:[0,3,7,9],"-6":[0,3,7,9],m7:[0,3,7,10],"-7":[0,3,7,10],"-(b6)":[0,3,7,8],"-b6":[0,3,7,8],"-6/9":[0,3,7,9,14],"-7(b9)":[0,3,7,10,13],"-7b9":[0,3,7,10,13],"-maj7":[0,3,7,11],"-9+7":[0,3,7,11,13],"-11":[0,3,7,11,14,17],m11:[0,3,7,11,14,17],"-maj9":[0,3,7,11,14],"-∆9":[0,3,7,11,14],mM9:[0,3,7,11,14],M:[0,4,7],6:[0,4,7,9],"6/9":[0,4,7,9,14],"6add9":[0,4,7,9,14],69:[0,4,7,9,14],7:[0,4,7,10],9:[0,4,7,10,14],11:[0,7,10,14,17],13:[0,4,7,10,14,21],"7b9":[0,4,7,10,13],"7♭9":[0,4,7,10,13],"7(b9)":[0,4,7,10,13],"7(#9)":[0,4,7,10,15],"7#9":[0,4,7,10,15],"(13)":[0,4,7,10,14,21],"7(9,13)":[0,4,7,10,14,21],"7(#9,b13)":[0,4,7,10,15,20],"7(#11)":[0,4,7,10,14,18],"7#11":[0,4,7,10,14,18],"7(b13)":[0,4,7,10,20],"7b13":[0,4,7,10,20],"9(#11)":[0,4,7,10,14,18],"9#11":[0,4,7,10,14,18],"13(#11)":[0,4,7,10,18,21],"13#11":[0,4,7,10,18,21],maj7:[0,4,7,11],"∆7":[0,4,7,11],Δ7:[0,4,7,11],maj9:[0,4,7,11,14],"maj7(9)":[0,4,7,11,14],"maj7(11)":[0,4,7,11,17],"maj7(#11)":[0,4,7,11,18],"maj7(13)":[0,4,7,14,21],"maj7(9,13)":[0,4,7,11,14,21],"7sus4":[0,5,7,10],m7sus4:[0,3,7,10,17],sus4:[0,5,7],sus2:[0,2,7],"7sus2":[0,2,7,10],"9sus4":[0,5,7,10,14],"13sus4":[0,5,7,10,14,21],aug7:[0,4,8,10],"+7":[0,4,8,10],"+":[0,4,8],"7#5":[0,4,8,10],"7♯5":[0,4,8,10],"7+5":[0,4,8,10],"9#5":[0,4,8,10,14],"9♯5":[0,4,8,10,14],"9+5":[0,4,8,10,14],"-7(#5)":[0,3,8,10],"-7#5":[0,3,8,10],"7(#5)":[0,4,8,10],"7(b9,#5)":[0,4,8,10,13],"7b9#5":[0,4,8,10,13],"maj7(#5)":[0,4,8,11],"maj7#5":[0,4,8,11],"maj7(#5,#11)":[0,4,8,11,18],"maj7#5#11":[0,4,8,11,18],"9(#5)":[0,4,8,10,14],"13(#5)":[0,4,8,10,14,21],"13#5":[0,4,8,10,14,21]};function re(e,t){var r=te[t];r||(r="ma"===t.slice(0,2).toLowerCase()||"M"===t.charAt(0)?te.M:"m"===t.charAt(0)||"-"===t.charAt(0)?te.m:te.M),e+=12;for(var n=[],a=0;a<r.length;a++)n.push(e+r[a]);return n}function ne(e,t,r,n,a){void 0!==e&&p.push({cmd:"note",pitch:e,volume:r,start:x+n*Y(t),duration:Y(a),gap:0,instrument:0})}function ae(e,t,r,n,a){for(var i=0;i<e.length;i++)p.push({cmd:"note",pitch:e[i],volume:r,start:x+n*Y(t),duration:Y(a),gap:0,instrument:0})}var ie={"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"],"6/8":["boom","","chick","boom2","","chick"],"9/8":["boom","","chick","boom2","","chick","boom2","","chick"],"12/8":["boom","","chick","boom2","","chick","boom","","chick","boom2","","chick"]};function se(e,t){var r=A.num,n=A.den,a=1/n,i=a/2,s=ie[r+"/"+n],o=parseInt(r,10)/parseInt(n,10)-(t-e)/S;if(Math.abs(o)<1e-5&&(o=!1),!s||o){s=[];for(var c=(t-e)/S/a,l=0;l<c;l++)s.push("chick")}if(0===b.length&&b.push({beat:0,chord:y}),0!==b[0].beat&&y&&w&&b.unshift({beat:0,chord:w}),1!==b.length){for(var h=.125===a?3:1,u={},d=0;d<b.length;d++){var f=b[d];u[""+Math.round(f.beat*h)]=f}for(var p=0;p<s.length;p++){var m,g;if(u[""+p]&&(m=u[""+p]),!B&&m)switch(s[p]){case"boom":u[""+(p+1)]?ae(m.chord.chick,a,N,p,i):(ne(m.chord.boom,a,E,p,i),g=m.chord.boom);break;case"boom2":u[""+(p+1)]?ae(m.chord.chick,a,N,p,i):g===m.chord.boom?(ne(m.chord.boom2,a,E,p,i),g=void 0):(ne(m.chord.boom,a,E,p,i),g=m.chord.boom);break;case"chick":ae(m.chord.chick,a,N,p,i);break;case"":u[""+p]&&ae(m.chord.chick,a,N,p,i)}}}else for(var v=b[0].beat;v<s.length;v++)if(!B)switch(s[v]){case"boom":ne(b[0].chord.boom,a,E,v,i);break;case"boom2":ne(b[0].chord.boom2,a,E,v,i);break;case"chick":ae(b[0].chord.chick,a,N,v,i)}}function oe(e){if(0===e.pattern.length||!1===e.on)return{on:!1};for(var t=e.pattern[0],r=[],n="",a=0,i=0;i<t.length;i++)if("d"===t[i]&&a++,"d"===t[i]||"z"===t[i])0!==n.length?(r.push(n),n=t[i]):n+=t[i];else{if(0===n.length)return{on:!1};n+=t[i]}if(0!==n.length&&r.push(n),e.pattern.length!==2*a+1)return{on:!1};for(var s={on:!0,bars:e.bars,pattern:[]},o=q(A),c=0,l=0;l<r.length;l++){n=r[l];for(var h=1,u=!1,d=0,f=1;f<n.length;f++)switch(n[f]){case"/":0!==d&&(h*=d),d=0,u=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=10*d+n[f];break;default:return{on:!1}}u?(0===d&&(d=2),h/=d):d&&(h*=d),"d"===n[0]?(s.pattern.push({len:h*o,pitch:e.pattern[1+c],velocity:e.pattern[1+c+a]}),c++):s.pattern.push({len:h*o,pitch:null})}for(var p=0,m=A.num/A.den,g=0;g<s.pattern.length;g++)p+=s.pattern[g].len;var v=p/(e.bars?e.bars:1)/m;for(g=0;g<s.pattern.length;g++)s.pattern[g].len=s.pattern[g].len/v;return s}function ce(e){if(0!==T.length||D.on){var t=A.num/A.den;if(0===T.length){if(f<t)return;T.push({cmd:"program",channel:e,instrument:128})}if(D.on)for(var r=x,n=0;n<D.pattern.length;n++){var a=Y(D.pattern[n].len);D.pattern[n].pitch&&T.push({cmd:"note",pitch:D.pattern[n].pitch,volume:D.pattern[n].velocity,start:r,duration:a,gap:0,instrument:128}),r+=a}}}}(),e.exports=n},9740:(e,t,r)=>{var n,a=r(5600);!function(){"use strict";function e(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setAttribute(r,t[r]);return e}function t(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}t.prototype.setTempo=function(e){0===this.trackcount&&(this.startTrack(),this.track+="%00%FF%51%03"+i(Math.round(6e7/e),6),this.endTrack())},t.prototype.setGlobalInfo=function(e,t,n,a){if(0===this.trackcount){this.startTrack();var s=Math.round(6e7/e);this.track+="%00%FF%51%03"+i(s,6),n&&(this.track+=function(e){if(!e||!e.accidentals)return"";for(var t="%00%FF%59%02",r=0,n=256,a=0;a<e.accidentals.length;a++)"sharp"===e.accidentals[a].acc?r++:"flat"===e.accidentals[a].acc&&n--;var s=i(256!==n?n:r,2),o="m"===e.mode?"%01":"%00";return t+s+o}(n)),a&&(this.track+=function(e){var t,r="%00%FF%58%04"+i(e.num,2),n={1:0,2:1,4:2,8:3,16:4,32:5}[e.den];if(!n)return"";switch(r+=i(n,2),e.num+"/"+e.den){case"2/4":case"3/4":case"4/4":case"5/4":t=24;break;case"6/4":t=72;break;case"2/2":case"3/2":case"4/2":t=48;break;case"3/8":case"6/8":case"9/8":case"12/8":t=36}return t?(r+=i(t,2))+"%08":""}(a)),t&&(this.track+=r(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=i(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){if("name"===e)this.trackName=r(t,"%03")},t.prototype.setInstrument=function(e){this.trackInstrument="%00%C0"+i(e,2),this.instrument=e},t.prototype.setChannel=function(e,t){this.channel=e;var r="%00%B"+this.channel.toString(16);this.track+=r+"%79%00",this.track+=r+"%40%00",this.track+=r+"%5B%30",t||(t=0),t=Math.round(64*(t+1)),this.track+=r+"%0A"+i(t,2),this.track+=r+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};function r(e,t){for(var r="",n=0;n<e.length;n++)r+=i(e.charCodeAt(n),2);return"%00%FF"+t+i(r.length/3,2)+r}function i(e,t){var r=e.toString(16);for(r=r.split(".")[0];r.length<t;)r="0"+r;return r.length>t&&(r=r.substring(0,t)),function(e){for(var t="",r=0;r<e.length;r+=2)t+="%",t+=e.substr(r,2);return t}(r)}function s(e){var t=(e=Math.round(e))%128;return i(2*(e-t)+t,4)}function o(e){var t=0,r=[];for(e=Math.round(e);0!==e;)r.push(127&e),e>>=7;for(var n=r.length-1;n>=0;n--){t<<=8;var a=r[n];0!==n&&(a|=128),t|=a}var s=t.toString(16).length;return i(t,s+=s%2)}t.prototype.startNote=function(e,t,r){if(this.track+=o(this.silencelength),this.silencelength=0,r){this.track+="%e"+this.channel.toString(16);var n=Math.round(4096*a(r));this.track+=s(8192+n),this.track+=o(0),this.noteWarped[e]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+e.toString(16)+i(t,2)},t.prototype.endNote=function(e){this.track+=o(this.silencelength),this.silencelength=0,this.noteWarped[e]&&(this.track+="%e"+this.channel.toString(16),this.track+=s(8192),this.track+=o(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"+i(this.trackcount,4)+"%01%e0"+this.trackstrings},t.prototype.embed=function(t,r){var n=this.getData(),a=e(document.createElement("a"),{href:n});if(a.innerHTML="download midi",t.insertBefore(a,t.firstChild),!r){var i=e(document.createElement("embed"),{src:n,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});t.insertBefore(i,t.firstChild)}},n=function(){return new t}}(),e.exports=n},7636:(e,t,r)=>{var n,a=r(302);!function(){"use strict";var e,t=128;function r(e,t,r){for(var n=0,a=t+1;a<e.length;a++)if("note"===e[a].el_type&&n++,e[a].decoration&&e[a].decoration.indexOf(r)>=0)return n;return n}function i(e,t,r){for(var n=Math.min(e.length,t+3),a=t;a<n;a++)if("note"===e[a].el_type&&e[a].decoration)for(var i=0;i<e[a].decoration.length;i++)if(r.indexOf(e[a].decoration[i])>=0)return e[a].decoration[i];return null}function s(e){for(var t=0;t<e.length;t++)for(var r=e[t],n=r.length-1;n>=0&&"bar"!==r[n].el_type;)r[n].noChordVoice=!0,n--}function o(e,t){if(e&&!(e.length<=t)&&e[t].title)return e[t].title.join(" ")}function c(e,t){var r=1/4;e.duration&&(r=e.duration[0]);var n=60;return e.bpm&&(n=e.bpm),r*n/t}function l(t){var r;switch(t.type){case"common_time":r={el_type:"meter",num:4,den:4};break;case"cut_time":r={el_type:"meter",num:2,den:2};break;case"specified":r={el_type:"meter",num:t.value[0].num,den:t.value[0].den};break;default:r={el_type:"meter"}}return e=r.num/r.den,r}function h(e){for(var t=[],r=0;r<e.length;r++)"natural"!==e[r].acc&&t.push(e[r]);return t}function u(e,t){f(e,"HP"===t.root?{el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:{el_type:"key",accidentals:h(t.accidentals)})}function d(e,t){f(e,l(t))}function f(e,t){for(var r=e.length-1;r>=0;r--)if(e[r].el_type===t.el_type)return void(JSON.stringify(e[r])!==JSON.stringify(t)&&e.push(t));e.push(t)}n=function(n,h){var p,m=(h=h||{}).program||0,g=h.midiTranspose||0;n.visualTranspose&&(g-=n.visualTranspose);var v=h.channel||0,b=!1,y=h.drum||"",w=h.drumBars||1,x=h.drumIntro||0,k=""!==y,C=[];m=parseInt(m,10),g=parseInt(g,10),10===(v=parseInt(v,10))&&(m=t),y=y.split(" "),w=parseInt(w,10),x=parseInt(x,10);var T=n.formatting.bagpipes;T&&(m=71);var _=[];if(n.formatting.midi){var S=n.formatting.midi;S.program&&S.program.length>0&&(m=S.program[0],S.program.length>1&&(m=S.program[1],v=S.program[0]),b=!0),S.transpose&&(g=S.transpose[0]),S.channel&&(v=S.channel[0],b=!0),S.drum&&(y=S.drum),S.drumbars&&(w=S.drumbars[0]),S.drumon&&(k=!0),10===v&&(m=t),S.beat&&_.push({el_type:"beat",beats:S.beat}),S.nobeataccents&&_.push({el_type:"beataccents",value:!1})}p=h.qpm?parseInt(h.qpm,10):n.metaText.tempo?c(n.metaText.tempo,n.getBeatLength()):h.defaultQpm?h.defaultQpm:180;var A=[];T&&A.push({el_type:"bagpipes"}),A.push({el_type:"instrument",program:m}),v&&A.push({el_type:"channel",channel:v}),g&&A.push({el_type:"transpose",transpose:g}),A.push({el_type:"tempo",qpm:p});for(var E=0;E<_.length;E++)A.push(_[E]);var N,M=[],B=[],P=[],L=[0],H={};H[0]={el_type:"tempo",qpm:p,timing:0};for(var z=[],O=[],F=!1,D=n.lines,I=0;I<D.length;I++){var j=D[I];if(j.staff){for(var V=j.staff,Y=0,q=0;q<V.length;q++)for(var G=V[q],W=0;W<G.voices.length;W++){var R=G.voices[W];if(!M[Y]){M[Y]=[].concat(JSON.parse(JSON.stringify(A)));var X=o(j.staff,Y);X&&M[Y].unshift({el_type:"name",trackName:X})}if(g&&"perc"===G.clef.type&&M[Y].push({el_type:"transpose",transpose:0}),G.clef&&"perc"===G.clef.type&&!b)for(var U=0;U<M[Y].length;U++)"instrument"===M[Y][U].el_type&&(M[Y][U].program=t);else G.key&&u(M[Y],G.key);G.meter&&d(M[Y],G.meter),!F&&k&&(M[Y].push({el_type:"drum",params:{pattern:y,bars:w,on:k,intro:x}}),F=!0),G.clef&&"perc"!==G.clef.type&&G.clef.transpose&&(G.clef.el_type="clef",M[Y].push({el_type:"transpose",transpose:G.clef.transpose})),G.clef&&G.clef.type&&(G.clef.type.indexOf("-8")>=0?M[Y].push({el_type:"transpose",transpose:-12}):G.clef.type.indexOf("+8")>=0&&M[Y].push({el_type:"transpose",transpose:12})),n.formatting.midi&&n.formatting.midi.drumoff&&(M[Y].push({el_type:"bar"}),M[Y].push({el_type:"drum",params:{pattern:"",on:!1}}));var K=0,Q=0,$=0,J=0;N=[105,95,85,1];for(var Z=0;Z<R.length;Z++){var ee=R[Z];switch(ee.el_type){case"note":if(B[W]&&(N[0]+=B[W],N[1]+=B[W],N[2]+=B[W],M[Y].push({el_type:"beat",beats:N.slice(0)})),P[W]&&(N[0]+=P[W],N[1]+=P[W],N[2]+=P[W],M[Y].push({el_type:"beat",beats:N.slice(0)})),e(ee),!ee.rest||"spacer"!==ee.rest.type){var te={elem:ee,el_type:"note",timing:L[Y]};if(ee.style?te.style=ee.style:C[Y]&&(te.style=C[Y]),te.duration=0===ee.duration?.25:ee.duration,ee.startTriplet){if(Q=ee.tripletMultiplier,$=ee.startTriplet*Q*ee.duration,ee.startTriplet!=ee.tripletR&&Z+ee.tripletR<=R.length){for(var re=0,ne=Z;ne<Z+ee.tripletR;ne++)re+=R[ne].duration;$=Q*re}te.duration=te.duration*Q,te.duration=Math.round(1e6*te.duration)/1e6,J=te.duration}else Q&&(ee.endTriplet?(Q=0,te.duration=Math.round(1e6*($-J))/1e6):(te.duration=te.duration*Q,te.duration=Math.round(1e6*te.duration)/1e6,J+=te.duration));ee.rest&&(te.rest=ee.rest),ee.decoration&&(te.decoration=ee.decoration.slice(0)),ee.pitches&&(te.pitches=a.cloneArray(ee.pitches)),ee.gracenotes&&(te.gracenotes=a.cloneArray(ee.gracenotes)),ee.chord&&(te.chord=a.cloneArray(ee.chord)),M[Y].push(te),"rhythm"===ee.style&&(!0,s(M)),K++,L[Y]+=te.duration}break;case"key":case"keySignature":u(M[Y],ee);break;case"meter":d(M[Y],ee);break;case"clef":ee.transpose&&M[Y].push({el_type:"transpose",transpose:ee.transpose}),ee.type&&(ee.type.indexOf("-8")>=0?M[Y].push({el_type:"transpose",transpose:-12}):ee.type.indexOf("+8")>=0&&M[Y].push({el_type:"transpose",transpose:12}));break;case"tempo":p=c(ee,n.getBeatLength()),M[Y].push({el_type:"tempo",qpm:p,timing:L[Y]}),H[""+L[Y]]={el_type:"tempo",qpm:p,timing:L[Y]};break;case"bar":K>0&&M[Y].push({el_type:"bar"}),e(ee),K=0;var ae="bar_right_repeat"===ee.type||"bar_dbl_repeat"===ee.type,ie="1"===ee.startEnding,se="bar_left_repeat"===ee.type||"bar_dbl_repeat"===ee.type||"bar_right_repeat"===ee.type;if(ae){var oe=z[Y];oe||(oe=0);var ce=O[Y];ce||(ce=M[Y].length);for(var le=oe;le<ce;le++){var he=a.clone(M[Y][le]);he.pitches&&(he.pitches=a.cloneArray(he.pitches)),M[Y].push(he)}O[Y]=void 0,z[Y]=void 0}ie&&(O[Y]=M[Y].length),se&&(z[Y]=M[Y].length),!1;break;case"style":C[Y]=ee.head;break;case"timeSignature":M[Y].push(l(ee));break;case"part":case"stem":case"scale":case"break":case"font":break;case"midi":var ue=!1;switch(ee.cmd){case"drumon":k=!0,ue=!0;break;case"drumoff":k=!1,ue=!0;break;case"drum":y=ee.params,ue=!0;break;case"drumbars":w=ee.params[0],ue=!0;break;case"drummap":break;case"channel":10===ee.params[0]&&M[Y].push({el_type:"instrument",program:t});break;case"program":f(M[Y],{el_type:"instrument",program:ee.params[0]}),b=!0;break;case"transpose":M[Y].push({el_type:"transpose",transpose:ee.params[0]});break;case"gchordoff":M[Y].push({el_type:"gchord",tacet:!0});break;case"gchordon":M[Y].push({el_type:"gchord",tacet:!1});break;case"beat":M[Y].push({el_type:"beat",beats:ee.params});break;case"nobeataccents":M[Y].push({el_type:"beataccents",value:!1});break;case"beataccents":M[Y].push({el_type:"beataccents",value:!0});break;case"vol":M[Y].push({el_type:"vol",volume:ee.params[0]});break;case"volinc":M[Y].push({el_type:"volinc",volume:ee.params[0]});break;default:console.log("MIDI seq: midi cmd not handled: ",ee.cmd,ee)}ue&&(M[0].push({el_type:"drum",params:{pattern:y,bars:w,intro:x,on:k}}),F=!0);break;default:console.log("MIDI: element type "+ee.el_type+" not handled.")}}L[++Y]||(L[Y]=0)}function e(e){var t,n={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(e.decoration)if(e.decoration.indexOf("pppp")>=0?t="pppp":e.decoration.indexOf("ppp")>=0?t="ppp":e.decoration.indexOf("pp")>=0?t="pp":e.decoration.indexOf("p")>=0?t="p":e.decoration.indexOf("mp")>=0?t="mp":e.decoration.indexOf("mf")>=0?t="mf":e.decoration.indexOf("f")>=0?t="f":e.decoration.indexOf("ff")>=0?t="ff":e.decoration.indexOf("fff")>=0?t="fff":e.decoration.indexOf("ffff")>=0&&(t="ffff"),t&&(N=n[t].slice(0),M[Y].push({el_type:"beat",beats:N.slice(0)}),B[W]=!1,P[W]=!1),e.decoration.indexOf("crescendo(")>=0){var a=r(R,Z,"crescendo)"),s=Math.min(127,N[0]+50),o=i(R,Z+a+1,Object.keys(n));o&&(s=n[o][0]),B[W]=a>0&&Math.floor((s-N[0])/a),P[W]=!1}else if(e.decoration.indexOf("crescendo)")>=0)B[W]=!1;else if(e.decoration.indexOf("diminuendo(")>=0){var c=r(R,Z,"diminuendo)"),l=Math.max(15,N[0]-50),h=i(R,Z+c+1,Object.keys(n));h&&(l=n[h][0]),B[W]=!1,P[W]=c>0&&Math.floor((l-N[0])/c)}else e.decoration.indexOf("diminuendo)")>=0&&(P[W]=!1)}}}if(function(e,t){if(!t||0===t.length)return;for(var r=Object.keys(t),n=0;n<e.length;n++)for(var a=e[n],i=t[0]?t[0].qpm:0,s=0;s<a.length;s++){var o=a[s];"tempo"===o.el_type&&(i=o.qpm),r.indexOf(""+o.timing)>=0&&i!==t[""+o.timing].qpm&&(i=t[""+o.timing].qpm,"tempo"===o.el_type?(o.qpm=t[""+o.timing].qpm,s++):(e[n].splice(s,0,{el_type:"tempo",qpm:t[""+o.timing].qpm,timing:o.timing}),s+=2))}}(M,H),x)for(var de=n.getPickupLength(),fe=0;fe<M.length;fe++){for(var pe=0;"note"!==M[fe][pe].el_type&&M[fe].length>pe;)pe++;if(M[fe].length>pe)for(ne=0;ne<x;ne++)0===de||ne<x-1?M[fe].splice(pe,0,{el_type:"note",rest:{type:"rest"},duration:e},{el_type:"bar"}):M[fe].splice(pe,0,{el_type:"note",rest:{type:"rest"},duration:e-de})}return M.length>0&&M[0].length>0&&(M[0][0].pickupLength=n.getPickupLength()),M}}(),e.exports=n},9366:(e,t,r)=>{var n=r(2988);e.exports=function(){return window.abcjsAudioContext||n(),window.abcjsAudioContext}},5600:e=>{e.exports=function(e){return Math.pow(2,e/1200)}},6210:(e,t,r)=>{var n=r(5002);e.exports=function(e){for(var t=[],r=0;r<e.tracks.length;r++)t.push([]);var a=n[0];return e.tracks.forEach((function(e,r){e.forEach((function(e){switch(e.cmd){case"note":if(e.duration>0){var i=e.gap?e.gap:0,s=e.duration;i=Math.min(i,2*s/3);var o={pitch:e.pitch,instrument:a,start:Math.round(1e6*e.start)/1e6,end:Math.round(1e6*(e.start+s-i))/1e6,volume:e.volume};e.style&&(o.style=e.style),e.cents&&(o.cents=e.cents),t[r].push(o)}break;case"program":a=n[e.instrument];break;case"text":break;default:console.log("Unhandled midi event",e)}}))})),t}},38:(e,t,r)=>{var n=r(5538),a=r(2988),i=r(9366),s=r(302),o=r(9274),c=r(7523),l=r(1950),h=r(3021),u=r(1032);function d(e,t,r,s,o){var c=!0;if(i()?c="suspended"===i().state:a(),!n())throw{status:"NotSupported",message:"This browser does not support audio."};(c||o)&&r&&r.classList.add("abcjs-loading"),c?i().resume().then((function(){s?s().then((function(n){f(e,t,r,o)})):f(e,t,r,o)})):f(e,t,r,o)}function f(e,t,r,n){n?e(t).then((function(){r&&r.classList.remove("abcjs-loading")})):(e(t),r&&r.classList.remove("abcjs-loading"))}e.exports=function(e,t){var r=this;if("string"==typeof e){var n=e;if(!(e=document.querySelector(n)))throw new Error('Cannot find element "'+n+'" in the DOM.')}else if(!(e instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");if(r.parent=e,r.options={},t&&(r.options=s.clone(t)),r.options.ac&&a(r.options.ac),function(e,t){var r=!!t.loopHandler,n=!!t.restartHandler,a=!!t.playHandler||!!t.playPromiseHandler,i=!!t.progressHandler,s=!!t.warpHandler,d=!1!==t.hasClock,f='<div class="abcjs-inline-audio">\n';if(r){var p=t.repeatTitle?t.repeatTitle:"Click to toggle play once/repeat.";f+='<button type="button" class="abcjs-midi-loop abcjs-btn" title="'+p+'" aria-label="'+(t.repeatAria?t.repeatAria:p)+'">'+o+"</button>\n"}if(n){var m=t.restartTitle?t.restartTitle:"Click to go to beginning.";f+='<button type="button" class="abcjs-midi-reset abcjs-btn" title="'+m+'" aria-label="'+(t.restartAria?t.restartAria:m)+'">'+u+"</button>\n"}if(a){var g=t.playTitle?t.playTitle:"Click to play/pause.";f+='<button type="button" class="abcjs-midi-start abcjs-btn" title="'+g+'" aria-label="'+(t.playAria?t.playAria:g)+'">'+c+l+h+"</button>\n"}if(i){var v=t.randomTitle?t.randomTitle:"Click to change the playback position.";f+='<button type="button" class="abcjs-midi-progress-background" title="'+v+'" aria-label="'+(t.randomAria?t.randomAria:v)+'"><span class="abcjs-midi-progress-indicator"></span></button>\n'}d&&(f+='<span class="abcjs-midi-clock"></span>\n');if(s){var b=t.warpTitle?t.warpTitle:"Change the playback speed.";f+='<span class="abcjs-tempo-wrapper"><label><input class="abcjs-midi-tempo" type="number" min="1" max="300" value="100" title="'+b+'" aria-label="'+(t.warpAria?t.warpAria:b)+'">%</label><span> (<span class="abcjs-midi-current-tempo"></span> '+(t.bpm?t.bpm:"BPM")+")</span></span>\n"}f+='<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>',f+="</div>\n",e.innerHTML=f}(r.parent,r.options),function(e){var t=!!e.options.loopHandler,r=!!e.options.restartHandler,n=!!e.options.playHandler||!!e.options.playPromiseHandler,a=!!e.options.progressHandler,i=!!e.options.warpHandler,s=e.parent.querySelector(".abcjs-midi-start");t&&e.parent.querySelector(".abcjs-midi-loop").addEventListener("click",(function(t){d(e.options.loopHandler,t,s,e.options.afterResume)}));r&&e.parent.querySelector(".abcjs-midi-reset").addEventListener("click",(function(t){d(e.options.restartHandler,t,s,e.options.afterResume)}));n&&s.addEventListener("click",(function(t){d(e.options.playPromiseHandler||e.options.playHandler,t,s,e.options.afterResume,!!e.options.playPromiseHandler)}));a&&e.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",(function(t){d(e.options.progressHandler,t,s,e.options.afterResume)}));i&&e.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",(function(t){d(e.options.warpHandler,t,s,e.options.afterResume)}))}(r),r.disable=function(e){var t=r.parent.querySelector(".abcjs-inline-audio");e?t.classList.add("abcjs-disabled"):t.classList.remove("abcjs-disabled")},r.setWarp=function(e,t){r.parent.querySelector(".abcjs-midi-tempo").value=Math.round(t),r.setTempo(e)},r.setTempo=function(e){var t=r.parent.querySelector(".abcjs-midi-current-tempo");t&&(t.innerHTML=Math.round(e))},r.resetAll=function(){for(var e=r.parent.querySelectorAll(".abcjs-pushed"),t=0;t<e.length;t++){e[t].classList.remove("abcjs-pushed")}},r.pushPlay=function(e){var t=r.parent.querySelector(".abcjs-midi-start");t&&(e?t.classList.add("abcjs-pushed"):t.classList.remove("abcjs-pushed"))},r.pushLoop=function(e){var t=r.parent.querySelector(".abcjs-midi-loop");t&&(e?t.classList.add("abcjs-pushed"):t.classList.remove("abcjs-pushed"))},r.setProgress=function(e,t){var n=r.parent.querySelector(".abcjs-midi-progress-background"),a=r.parent.querySelector(".abcjs-midi-progress-indicator");if(n&&a){var i=n.clientWidth*e;a.style.left=i+"px";var s=r.parent.querySelector(".abcjs-midi-clock");if(s){var o=t*e/1e3,c=Math.floor(o/60),l=Math.floor(o%60),h=l<10?"0"+l:l;s.innerHTML=c+":"+h}}},r.options.afterResume){var f=!1;r.options.ac?f="suspended"!==r.options.ac.state:i()&&(f="suspended"!==i().state),f&&r.options.afterResume()}}},107:(e,t,r)=>{var n=r(6092),a=r(6210),i=r(2988),s=r(9366),o=r(5538),c=r(6691),l=r(5002),h=r(5899),u=r(3924),d=r(5663),f="MIDI is not supported in this browser.",p="https://paulrosen.github.io/midi-js-soundfonts/abcjs/",m="https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/";e.exports=function(){var e=this;e.audioBufferPossible=void 0,e.directSource=[],e.startTimeSec=void 0,e.pausedTimeSec=void 0,e.audioBuffers=[],e.duration=void 0,e.isRunning=!1,e.init=function(t){t||(t={}),i(t.audioContext);var r=s().currentTime;if(e.debugCallback=t.debugCallback,e.debugCallback&&e.debugCallback("init called"),e.audioBufferPossible=e._deviceCapable(),!e.audioBufferPossible)return Promise.reject({status:"NotSupported",message:f});var n=t.options?t.options:{};e.soundFontUrl=n.soundFontUrl?n.soundFontUrl:m,"/"!==e.soundFontUrl[e.soundFontUrl.length-1]&&(e.soundFontUrl+="/"),n.soundFontVolumeMultiplier||0===n.soundFontVolumeMultiplier?e.soundFontVolumeMultiplier=n.soundFontVolumeMultiplier:e.soundFontUrl===m||"https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/"===e.soundFontUrl?e.soundFontVolumeMultiplier=3:e.soundFontUrl===p?e.soundFontVolumeMultiplier=.4:e.soundFontVolumeMultiplier=1,n.programOffsets?e.programOffsets=n.programOffsets:e.soundFontUrl===p?e.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}:e.programOffsets={};var a=void 0!==n.fadeLength?parseInt(n.fadeLength,10):NaN;if(e.fadeLength=isNaN(a)?200:a,a=void 0!==n.noteEnd?parseInt(n.noteEnd,10):NaN,e.noteEnd=isNaN(a)?0:a,e.pan=n.pan,e.meterSize=1,t.visualObj){e.flattened=t.visualObj.setUpAudio(n),t.visualObj.getMeterFraction().den&&(e.meterSize=t.visualObj.getMeterFraction().num/t.visualObj.getMeterFraction().den)}else{if(!t.sequence)return Promise.reject(new Error("Must pass in either a visualObj or a sequence"));e.flattened=t.sequence}e.millisecondsPerMeasure=t.millisecondsPerMeasure?t.millisecondsPerMeasure:t.visualObj?t.visualObj.millisecondsPerMeasure(e.flattened.tempo):1e3,e.beatsPerMeasure=t.visualObj?t.visualObj.getBeatsPerMeasure():4,e.sequenceCallback=n.sequenceCallback,e.callbackContext=n.callbackContext,e.onEnded=n.onEnded;var o={},h=[],u=l[0];e.flattened.tracks.forEach((function(e){e.forEach((function(e){if("program"===e.cmd&&l[e.instrument]&&(u=l[e.instrument]),void 0!==e.pitch){var t=e.pitch,r=c[t];r?(o[u]||(o[u]={}),d[u]&&d[u][r]?h.push(u+":"+r):o[u][r]=!0):console.log("Can't find note: ",t)}}))})),e.debugCallback&&e.debugCallback("note gathering time = "+Math.floor(1e3*(s().currentTime-r))+"ms"),r=s().currentTime;var g=[];Object.keys(o).forEach((function(e){Object.keys(o[e]).forEach((function(t){g.push({instrument:e,note:t})}))}));for(var v=[],b=0;b<g.length;b+=256)v.push(g.slice(b,b+256));return new Promise((function(t,n){var a={cached:h,error:[],loaded:[]},i=0,o=function(){i<v.length?e._loadBatch(v[i],e.soundFontUrl,r).then((function(e){r=s().currentTime,e&&(e.error&&(a.error=a.error.concat(e.error)),e.loaded&&(a.loaded=a.loaded.concat(e.loaded))),i++,o()}),n):t(a)};o()}))},e._loadBatch=function(t,r,a,i){var o=[];return t.forEach((function(e){o.push(n(r,e.instrument,e.note,s()))})),Promise.all(o).then((function(n){e.debugCallback&&e.debugCallback("mp3 load time = "+Math.floor(1e3*(s().currentTime-a))+"ms");for(var o=[],c=[],l=[],h=[],u=0;u<n.length;u++){var d=n[u],f=d.instrument+":"+d.name;"loaded"===d.status?o.push(f):"pending"===d.status?l.push(f):"cached"===d.status?c.push(f):h.push(f+" "+d.message)}if(l.length>0){if(i?i*=2:i=50,i<9e4)return new Promise((function(t,n){setTimeout((function(){var s=[];for(u=0;u<l.length;u++)f=l[u].split(":"),s.push({instrument:f[0],note:f[1]});e._loadBatch(s,r,a,i).then((function(e){t(e)})).catch((function(e){n(e)}))}),i)}));for(var p=[],m=0;m<t.length;m++)p.push(t[m].instrument+"/"+t[m].note);return Promise.reject(new Error("timeout attempting to load: "+p.join(", ")))}return Promise.resolve({loaded:o,cached:c,error:h})})).catch((function(e){}))},e.prime=function(){var t=e.fadeLength/1e3;return e.isRunning=!1,e.audioBufferPossible?(e.debugCallback&&e.debugCallback("prime called"),new Promise((function(r){var n=s().currentTime,i=e.millisecondsPerMeasure/1e3/e.meterSize;if(e.duration=e.flattened.totalDuration*i,e.duration<=0)return e.audioBuffers=[],r({status:"empty",seconds:0});e.duration+=t;var o=Math.floor(s().sampleRate*e.duration);e.stop();var c=a(e.flattened);e.sequenceCallback&&e.sequenceCallback(c,e.callbackContext);var l=function(e,t){if(null==t)return null;var r=[];if(!t.length){var n=parseFloat(t);if(n*(e-1)>2)return null;for(var a=e%2==0,i=a?0-n/2:0,s=i+n,o=0;o<e;o++)(a=o%2==0)?(r.push(i),i-=n):(r.push(s),s+=n);return r}if(e===t.length){for(var c=!0,l=0;l<t.length;l++){var h=parseFloat(t[l]);h>=-1&&h<=1?r.push(h):c=!1}if(c)return r}return null}(c.length,e.pan),h={};c.forEach((function(e,t){var r=l&&l.length>t?l[t]:0;e.forEach((function(e){var t=e.instrument+":"+e.pitch+":"+e.volume+":"+Math.round(1e3*(e.end-e.start))/1e3+":"+r+":"+i+":"+e.cents;h[t]||(h[t]=[]),h[t].push(e.start)}))}));for(var d=[],f=s().createBuffer(2,o,s().sampleRate),p=0;p<Object.keys(h).length;p++){var m=Object.keys(h)[p],g=m.split(":"),v=void 0!==g[6]?parseFloat(g[6]):0;g={instrument:g[0],pitch:parseInt(g[1],10),volume:parseInt(g[2],10),len:parseFloat(g[3]),pan:parseFloat(g[4]),tempoMultiplier:parseFloat(g[5]),cents:v},d.push(u(f,s().sampleRate,g,h[m],e.soundFontVolumeMultiplier,e.programOffsets[g.instrument],t,e.noteEnd/1e3))}e.audioBuffers=[f],e.debugCallback&&(e.debugCallback("sampleRate = "+s().sampleRate),e.debugCallback("totalSamples = "+o),e.debugCallback("creationTime = "+Math.floor(1e3*(s().currentTime-n))+"ms")),Promise.all(d).then((function(){r({status:"ok",seconds:0})}))}))):Promise.reject(new Error(f))},e.start=function(){if(!e.audioBufferPossible)throw new Error(f);e.debugCallback&&e.debugCallback("start called");var t=e.pausedTimeSec?e.pausedTimeSec:0;e._kickOffSound(t),e.startTimeSec=s().currentTime-t,e.pausedTimeSec=void 0,e.debugCallback&&e.debugCallback("MIDI STARTED",e.startTimeSec)},e.pause=function(){if(!e.audioBufferPossible)throw new Error(f);return e.debugCallback&&e.debugCallback("pause called"),e.pausedTimeSec=e.stop(),e.pausedTimeSec},e.resume=function(){e.start()},e.seek=function(t,r){var n;switch(r){case"seconds":n=t;break;case"beats":n=t*e.millisecondsPerMeasure/e.beatsPerMeasure/1e3;break;default:n=(e.duration-e.fadeLength/1e3)*t}if(!e.audioBufferPossible)throw new Error(f);e.debugCallback&&e.debugCallback("seek called sec="+n),e.isRunning?(e.stop(),e._kickOffSound(n)):e.pausedTimeSec=n,e.pausedTimeSec=n},e.stop=function(){return e.isRunning=!1,e.pausedTimeSec=void 0,e.directSource.forEach((function(e){try{e.stop()}catch(e){console.log("direct source didn't stop:",e)}})),e.directSource=[],s().currentTime-e.startTimeSec},e.finished=function(){e.startTimeSec=void 0,e.pausedTimeSec=void 0,e.isRunning=!1},e.download=function(){return h(e)},e._deviceCapable=function(){return!!o()||(console.warn(f),e.debugCallback&&e.debugCallback(f),!1)},e._kickOffSound=function(t){e.isRunning=!0,e.directSource=[],e.audioBuffers.forEach((function(t,r){e.directSource[r]=s().createBufferSource(),e.directSource[r].buffer=t,e.directSource[r].connect(s().destination)})),e.directSource.forEach((function(e){e.start(0,t)})),e.onEnded&&(e.directSource[0].onended=function(){e.onEnded(e.callbackContext)})}}},5899:e=>{e.exports=function(e){return window.URL.createObjectURL(function(e){var t,r,n=e[0],a=n.numberOfChannels,i=n.length*a*2+44,s=new ArrayBuffer(i),o=new DataView(s),c=[],l=0,h=0;for(d(1179011410),d(i-8),d(1163280727),d(544501094),d(16),u(1),u(a),d(n.sampleRate),d(2*n.sampleRate*a),u(2*a),u(16),d(1635017060),d(i-h-4),t=0;t<a;t++)c.push(n.getChannelData(t));for(;h<i;){for(t=0;t<c.length;t++)r=0|(.5+(r=Math.max(-1,Math.min(1,c[t][l])))<0?32768*r:32767*r),o.setInt16(h,r,!0),h+=2;l++}return new Blob([s],{type:"audio/wav"});function u(e){o.setUint16(h,e,!0),h+=2}function d(e){o.setUint32(h,e,!0),h+=4}}(e.audioBuffers))}},3170:(e,t,r)=>{var n=r(7306),a=r(3728);var i=function(e,t,r,n){var a=["abcjs-download-midi","abcjs-midi-"+n];t.downloadClass&&a.push(t.downloadClass);var i='<div class="'+a.join(" ")+'">';t.preTextDownload&&(i+=t.preTextDownload);var s,o,c=e.metaText&&e.metaText.title?e.metaText.title:"Untitled";return s=t.downloadLabel&&((o=t.downloadLabel)&&"[object Function]"==={}.toString.call(o))?t.downloadLabel(e,n):t.downloadLabel?t.downloadLabel.replace(/%T/,c):'Download MIDI for "'+c+'"',c=c.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_"),i+='<a download="'+(t.fileName?t.fileName:c+".midi")+'" href="'+r+'">'+s+"</a>",t.postTextDownload&&(i+=t.postTextDownload),i+"</div>"};e.exports=function(e,t){var r={};if(t)for(var s in t)t.hasOwnProperty(s)&&(r[s]=t[s]);function o(e,t,n){var s=a(t,r);switch(r.midiOutputType){case"encoded":return s;case"binary":var o=s.replace("data:audio/midi,","");o=(o=o.replace(/MThd/g,"%4d%54%68%64")).replace(/MTrk/g,"%4d%54%72%6b");for(var c=new ArrayBuffer(o.length/3),l=new Uint8Array(c),h=0;h<o.length/3;h++){var u=3*h+1,d=parseInt(o.substring(u,u+2),16);l[h]=d}return l;default:return i(t,r,s,n)}}return r.generateInline=!1,"string"==typeof e?n.renderEngine(o,"*",e,r):o(0,e,0)}},3021: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'},9274:e=>{e.exports='\n<svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" preserveAspectRatio="xMidYMid meet">\n\t<g transform="translate(0,700) scale(0.1,-0.1)" >\n\t<path d="M3111 6981 c-20 -37 -90 -55 -364 -96 -120 -18 -190 -33 -244 -55\n\t-42 -17 -124 -42 -182 -56 -78 -18 -119 -34 -157 -60 -28 -19 -86 -46 -128\n\t-60 -43 -13 -107 -42 -144 -64 -37 -23 -84 -46 -106 -52 -21 -7 -56 -29 -79\n\t-50 -22 -22 -61 -50 -86 -63 -26 -13 -67 -40 -91 -60 -24 -20 -65 -47 -90 -60\n\t-25 -13 -53 -31 -61 -41 -8 -9 -32 -30 -54 -46 -75 -54 -486 -460 -512 -507\n\t-15 -25 -48 -69 -75 -98 -26 -28 -48 -57 -48 -63 0 -6 -18 -29 -39 -53 -21\n\t-23 -56 -71 -77 -107 -20 -36 -50 -80 -65 -97 -16 -18 -33 -52 -40 -75 -12\n\t-47 -47 -115 -84 -166 -13 -18 -30 -56 -38 -83 -8 -27 -34 -80 -56 -118 -33\n\t-53 -46 -91 -62 -167 -12 -63 -34 -127 -59 -179 -42 -84 -60 -166 -60 -270 0\n\t-90 26 -122 125 -154 54 -17 96 -19 430 -20 305 -1 381 2 430 14 82 22 140 51\n\t153 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\t107 19 28 44 74 55 101 10 28 34 67 53 87 18 20 49 61 68 90 19 30 44 63 57\n\t74 13 11 36 40 52 65 59 94 232 270 306 313 20 11 57 37 82 58 25 20 70 52\n\t100 72 30 19 66 47 79 61 13 14 49 35 80 46 30 12 80 37 111 56 31 19 95 45\n\t143 58 48 12 110 37 139 55 63 40 127 55 323 76 83 9 208 28 279 41 156 29\n\t165 29 330 4 453 -71 514 -84 606 -130 31 -16 83 -36 116 -45 32 -9 84 -34\n\t115 -56 31 -21 82 -48 113 -60 32 -11 72 -33 89 -48 18 -16 59 -45 92 -65 33\n\t-21 74 -51 90 -66 17 -15 49 -40 73 -54 52 -32 65 -61 50 -113 -8 -31 -61 -90\n\t-277 -308 -300 -303 -361 -382 -369 -481 -2 -29 0 -66 6 -81 13 -40 88 -138\n\t115 -151 12 -6 54 -26 92 -44 l70 -33 945 -2 c520 -1 975 2 1012 7 64 8 191\n\t50 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\t7 -44 26 -64 55 -60 84 -77 97 -140 110 -44 9 -76 10 -127 2 -59 -9 -77 -17\n\t-134 -62 -37 -28 -172 -155 -301 -281 -129 -127 -249 -237 -267 -245 -25 -10\n\t-41 -11 -71 -2 -58 15 -112 45 -124 69 -6 11 -35 35 -64 54 -28 18 -58 41 -66\n\t50 -8 9 -41 35 -75 58 -33 22 -77 56 -99 75 -21 18 -64 46 -95 61 -31 14 -73\n\t39 -93 55 -20 15 -70 40 -110 55 -40 15 -97 44 -127 64 -29 21 -78 44 -107 53\n\t-30 8 -77 31 -105 51 -42 28 -73 39 -173 60 -68 14 -154 39 -196 58 -95 43\n\t-131 51 -343 76 -209 24 -242 32 -279 70 l-30 29 -328 0 c-312 0 -330 -1 -339\n\t-19z"></path>\n\t<path d="M254 2875 c-89 -16 -107 -26 -145 -78 -32 -44 -62 -66 -91 -67 -17 0\n\t-18 -61 -18 -1140 l0 -1140 24 0 c16 0 41 -17 72 -50 40 -42 61 -55 117 -72\n\tl69 -21 82 23 c44 12 96 30 114 39 18 9 148 132 290 272 141 141 267 261 279\n\t268 51 26 86 14 176 -61 32 -26 62 -48 66 -48 5 0 36 -25 70 -55 34 -30 74\n\t-61 89 -69 15 -8 37 -28 50 -45 12 -17 50 -45 84 -62 34 -17 78 -44 98 -60 19\n\t-16 61 -37 93 -48 32 -11 81 -37 107 -56 27 -20 76 -45 109 -56 33 -12 75 -31\n\t93 -44 62 -45 93 -58 191 -82 54 -12 130 -37 168 -54 68 -29 180 -58 226 -59\n\t62 0 183 -64 183 -96 0 -12 88 -14 639 -14 l639 0 12 30 c18 44 76 66 233 89\n\t89 14 160 30 200 47 34 15 106 42 159 60 54 18 112 44 130 57 47 35 85 52 146\n\t67 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\t31 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\t48 380 362 408 405 15 23 40 51 55 63 15 12 36 38 46 58 11 21 37 57 58 82 22\n\t25 49 62 62 83 13 20 38 56 57 78 19 23 50 74 69 113 19 39 46 86 59 104 14\n\t18 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\t47 103 68 206 10 52 32 117 51 155 29 56 33 74 34 140 0 94 -10 108 -101 138\n\t-61 20 -83 21 -463 21 -226 0 -421 -4 -451 -10 -63 -12 -86 -30 -110 -85 -10\n\t-22 -33 -63 -52 -92 -21 -31 -42 -80 -53 -123 -11 -44 -32 -93 -56 -128 -20\n\t-32 -47 -83 -59 -115 -12 -32 -37 -77 -56 -100 -19 -23 -50 -65 -69 -94 -19\n\t-29 -44 -57 -54 -63 -11 -5 -29 -27 -42 -47 -52 -85 -234 -277 -300 -315 -25\n\t-15 -53 -38 -62 -51 -9 -14 -42 -39 -74 -57 -32 -18 -75 -48 -95 -66 -21 -18\n\t-59 -44 -85 -58 -26 -13 -72 -40 -100 -59 -35 -24 -78 -41 -128 -52 -47 -11\n\t-99 -31 -139 -56 -69 -42 -94 -49 -391 -110 -245 -51 -425 -66 -595 -50 -168\n\t16 -230 27 -330 61 -47 16 -123 35 -170 44 -98 17 -123 25 -172 58 -20 14 -71\n\t37 -114 53 -44 15 -95 40 -115 56 -20 16 -70 42 -110 59 -40 16 -88 45 -108\n\t63 -20 19 -55 46 -78 61 -24 14 -49 35 -55 47 -7 11 -34 33 -60 49 -50 31 -65\n\t61 -53 102 4 13 130 147 281 298 236 238 277 283 299 335 15 32 35 71 46 86\n\t12 18 19 44 19 76 0 42 -8 63 -53 138 -92 151 11 139 -1207 141 -798 2 -1030\n\t0 -1086 -11z"></path>\n\t</g>\n</svg>\n'},1950: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'},7523: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'},1032: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'},5002: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"]},6092:(e,t,r)=>{var n=r(5663);e.exports=function(e,t,r,a){n[t]||(n[t]={});var i=n[t];return i[r]||(i[r]=new Promise((function(n,i){var s=new XMLHttpRequest;let o=e+t+"-mp3/"+r+".mp3";s.open("GET",o,!0),s.responseType="arraybuffer",s.onload=function(){if(200===s.status){var e=a.decodeAudioData(s.response,n,(function(){i(Error("Can't decode sound at "+o))}));e&&"function"==typeof e.catch&&e.catch(i)}else i(Error("Can't load sound at "+o))},s.onerror=function(){i(Error("Can't load sound at "+o))},s.send()})).catch((e=>{throw console.error("Didn't load note",t,r,":",e.message),e}))),i[r]}},6691: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"}},7508: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"};e.exports=function(e){var r=(e.accidental?e.accidental[0]:"x")+e.verticalPos;return t[r]}},3924:(e,t,r)=>{var n=r(5663),a=r(6691),i=r(5600);var s=function(e,t,r){for(var n=0;n<2;n++)for(var a=t.getChannelData(n),i=e.getChannelData(n),s=0;s<a.length;s++)i[s+r]+=a[s]};e.exports=function(e,t,r,o,c,l,h,u){var d=window.OfflineAudioContext||window.webkitOfflineAudioContext,f=r.len*r.tempoMultiplier;l&&(f+=l/1e3),(f-=u)<0&&(f=.005);var p=new d(2,Math.floor((f+h)*t),t),m=a[r.pitch];n[r.instrument][m].then((function(n){var a=p.createBufferSource();a.buffer=n;var u,d=r.volume/96*c;return a.gainNode=p.createGain(),r.pan&&p.createStereoPanner&&(a.panNode=p.createStereoPanner(),a.panNode.pan.setValueAtTime(r.pan,0)),a.gainNode.gain.value=d,a.gainNode.gain.linearRampToValueAtTime(a.gainNode.gain.value,f),a.gainNode.gain.linearRampToValueAtTime(0,f+h),r.cents&&(a.playbackRate.value=i(r.cents)),a.panNode?(a.panNode.connect(p.destination),a.gainNode.connect(a.panNode)):a.gainNode.connect(p.destination),a.connect(a.gainNode),a.start(0),a.noteOff?a.noteOff(f+h):a.stop(f+h),p.oncomplete=function(n){if(n.renderedBuffer)for(var a=0;a<o.length;a++){var i=o[a]*r.tempoMultiplier;l&&(i-=l/1e3),i<0&&(i=0),i=Math.floor(i*t),s(e,n.renderedBuffer,i)}u()},p.startRendering(),new Promise((function(e){u=e}))})).catch((function(){}))}},1147:(e,t,r)=>{var n=r(8883),a=r(107),i=r(9366);function s(e,t){var r=new a;return r.init({sequence:e,millisecondsPerMeasure:t}).then((function(){return r.prime()})).then((function(){return r.start(),Promise.resolve()}))}e.exports=function(e,t,r){for(var a=new n,o=0;o<e.length;o++){var c=e[o],l=a.addTrack();if(a.setInstrument(l,c.instrument),0===o&&t)for(var h=0;h<t.length;h++){var u=t[h];a.appendNote(l,u.pitch,1/64,u.volume,u.cents)}a.appendNote(l,c.pitch,c.duration,c.volume,c.cents)}var d=i();return"suspended"===d.state?d.resume().then((function(){return s(a,r)})):s(a,r)}},2988:e=>{e.exports=function(e){if(e)window.abcjsAudioContext=e;else if(!window.abcjsAudioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return!1;window.abcjsAudioContext=new t}return"suspended"!==window.abcjsAudioContext.state}},5663:e=>{e.exports={}},5538:(e,t,r)=>{var n=r(9366);e.exports=function(){if(!window.Promise)return!1;if(!(window.AudioContext||window.webkitAudioContext||navigator.mozAudioContext||navigator.msAudioContext))return!1;var e=n();return e?void 0!==e.resume:void 0}},1155:(e,t,r)=>{var n=r(38),a=r(107),i=r(4778),s=r(9366);e.exports=function(){var e=this;e.warp=100,e.cursorControl=null,e.visualObj=null,e.timer=null,e.midiBuffer=null,e.options=null,e.currentTempo=null,e.control=null,e.isLooping=!1,e.isStarted=!1,e.isLoaded=!1,e.isLoading=!1,e.load=function(t,r,a){a||(a={}),e.control=new n(t,{loopHandler:a.displayLoop?e.toggleLoop:void 0,restartHandler:a.displayRestart?e.restart:void 0,playPromiseHandler:a.displayPlay?e.play:void 0,progressHandler:a.displayProgress?e.randomAccess:void 0,warpHandler:a.displayWarp?e.onWarp:void 0,afterResume:e.init}),e.cursorControl=r,e.disable(!0)},e.disable=function(t){e.control&&e.control.disable(t)},e.setTune=function(t,r,n){return e.visualObj=t,e.disable(!1),e.options=n,e.control&&(e.pause(),e.setProgress(0,1),e.control.resetAll(),e.restart(),e.isStarted=!1),e.isLooping=!1,r?e.go():Promise.resolve({status:"no-audio-context"})},e.go=function(){e.isLoading=!0;var t,r=100*e.visualObj.millisecondsPerMeasure()/e.warp;return e.currentTempo=Math.round(e.visualObj.getBeatsPerMeasure()/r*6e4),e.control&&e.control.setTempo(e.currentTempo),e.percent=0,e.midiBuffer||(e.midiBuffer=new a),s().resume().then((function(t){return e.midiBuffer.init({visualObj:e.visualObj,options:e.options,millisecondsPerMeasure:r})})).then((function(r){return t=r,e.midiBuffer.prime()})).then((function(){var r=16;return e.cursorControl&&void 0!==e.cursorControl.beatSubdivisions&&parseInt(e.cursorControl.beatSubdivisions,10)>=1&&parseInt(e.cursorControl.beatSubdivisions,10)<=64&&(r=parseInt(e.cursorControl.beatSubdivisions,10)),e.timer=new i(e.visualObj,{beatCallback:e.beatCallback,eventCallback:e.eventCallback,lineEndCallback:e.lineEndCallback,qpm:e.currentTempo,extraMeasuresAtBeginning:e.cursorControl?e.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:e.cursorControl?e.cursorControl.lineEndAnticipation:0,beatSubdivisions:r}),e.cursorControl&&e.cursorControl.onReady&&"function"==typeof e.cursorControl.onReady&&e.cursorControl.onReady(e),e.isLoaded=!0,e.isLoading=!1,Promise.resolve({status:"created",notesStatus:t})}))},e.destroy=function(){e.timer&&(e.timer.reset(),e.timer.stop(),e.timer=null),e.midiBuffer&&(e.midiBuffer.stop(),e.midiBuffer=null),e.setProgress(0,1),e.control&&e.control.resetAll()},e.play=function(){return e.runWhenReady(e._play,void 0)},e.runWhenReady=function(t,r){return e.visualObj?e.isLoading?(n=500,new Promise((function(e){setTimeout(e,n)}))).then((function(){return e.isLoading?e.runWhenReady(t,r):t(r)})):e.isLoaded?t(r):e.go().then((function(){return t(r)})):Promise.resolve({status:"loading"});var n},e._play=function(){return s().resume().then((function(){return e.isStarted=!e.isStarted,e.isStarted?(e.cursorControl&&e.cursorControl.onStart&&"function"==typeof e.cursorControl.onStart&&e.cursorControl.onStart(),e.midiBuffer.start(),e.timer.start(e.percent),e.control&&e.control.pushPlay(!0)):e.pause(),Promise.resolve({status:"ok"})}))},e.pause=function(){e.timer&&(e.timer.pause(),e.midiBuffer.pause(),e.control&&e.control.pushPlay(!1))},e.toggleLoop=function(){e.isLooping=!e.isLooping,e.control&&e.control.pushLoop(e.isLooping)},e.restart=function(){e.timer&&(e.timer.setProgress(0),e.midiBuffer.seek(0))},e.randomAccess=function(t){return e.runWhenReady(e._randomAccess,t)},e._randomAccess=function(t){var r=t.target.classList.contains("abcjs-midi-progress-indicator")?t.target.parentNode:t.target,n=(t.x-r.offsetLeft)/r.offsetWidth;return n<0&&(n=0),n>1&&(n=1),e.seek(n),Promise.resolve({status:"ok"})},e.seek=function(t,r){e.timer&&e.midiBuffer&&(e.timer.setProgress(t,r),e.midiBuffer.seek(t,r))},e.setWarp=function(t){if(parseInt(t,10)>0){e.warp=parseInt(t,10);var r=e.isStarted,n=e.percent;return e.destroy(),e.isStarted=!1,e.go().then((function(){return e.setProgress(n,1e3*e.midiBuffer.duration),e.control&&e.control.setWarp(e.currentTempo,e.warp),r?e.play().then((function(){return e.seek(n),Promise.resolve()})):(e.seek(n),Promise.resolve())}))}return Promise.resolve()},e.onWarp=function(t){var r=t.target.value;return e.setWarp(r)},e.setProgress=function(t,r){e.percent=t,e.control&&e.control.setProgress(t,r)},e.finished=function(){if(e.timer.reset(),e.isLooping)return e.timer.start(0),e.midiBuffer.finished(),e.midiBuffer.start(),"continue";e.timer.stop(),e.isStarted&&(e.control&&e.control.pushPlay(!1),e.isStarted=!1,e.midiBuffer.finished(),e.cursorControl&&e.cursorControl.onFinished&&"function"==typeof e.cursorControl.onFinished&&e.cursorControl.onFinished(),e.setProgress(0,1))},e.beatCallback=function(t,r,n,a){var i=t/r;e.setProgress(i,n),e.cursorControl&&e.cursorControl.onBeat&&"function"==typeof e.cursorControl.onBeat&&e.cursorControl.onBeat(t,r,n,a)},e.eventCallback=function(t){if(!t)return e.finished();e.cursorControl&&e.cursorControl.onEvent&&"function"==typeof e.cursorControl.onEvent&&e.cursorControl.onEvent(t)},e.lineEndCallback=function(t,r){e.cursorControl&&e.cursorControl.onLineEnd&&"function"==typeof e.cursorControl.onLineEnd&&e.cursorControl.onLineEnd(t,r)},e.getUrl=function(){return e.midiBuffer.download()},e.download=function(t){var r=e.getUrl(),n=document.createElement("a");document.body.appendChild(n),n.setAttribute("style","display: none;"),n.href=r,n.download=t||"output.wav",n.click(),window.URL.revokeObjectURL(r),document.body.removeChild(n)}}},8883:e=>{e.exports=function(){var e=this;e.tracks=[],e.totalDuration=0,e.currentInstrument=[],e.starts=[],e.addTrack=function(){return e.tracks.push([]),e.currentInstrument.push(0),e.starts.push(0),e.tracks.length-1},e.setInstrument=function(t,r){e.tracks[t].push({channel:0,cmd:"program",instrument:r}),e.currentInstrument[t]=r},e.appendNote=function(t,r,n,a,i){var s={cmd:"note",duration:n,gap:0,instrument:e.currentInstrument[t],pitch:r,start:e.starts[t],volume:a};i&&(s.cents=i),e.tracks[t].push(s),e.starts[t]+=n,e.totalDuration=Math.max(e.totalDuration,e.starts[t])}}},5779:e=>{e.exports=function(e){}},2603:(e,t,r)=>{var n=r(7760);function a(e){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=["E,","A","D","G","B","e"]),e.tuning=this.tuning,this.strings=new n(e)}a.prototype.notesToNumber=function(e,t){return this.strings.notesToNumber(e,t)},a.prototype.stringToPitch=function(e){return this.strings.stringToPitch(e)},e.exports=a},9994:(e,t,r)=>{var n=r(704),a=r(3842),i=r(5106),s=r(2603),o=r(5779);function c(){}c.prototype.init=function(e,t,r){var i=new a(e,t,r);this._super=i,this.abcTune=e,this.linePitch=3,this.nbLines=6,this.isTabBig=!0,this.capo=r.capo,this.transpose=r.visualTranspose,this.tablature=new n(this.nbLines,this.linePitch);var o=new s(this);this.semantics=o},c.prototype.render=function(e,t,r){this._super.inError||(this.tablature.bypass(t)||(o(this.abcTune),new i(this,e,t,r).doLayout()))};e.exports=function(){return{name:"GuitarTab",tablature:c}}},7760:(e,t,r)=>{var n=r(451),a=r(6100);function i(e,t){for(var r=[],a=0;a<t.length;a++){var i=o(e,new n.TabNote(t[a].name));r.push(i)}return function(e,t){for(var r=0;r<t.length-1;r++){var n=t[r],a=t[r+1];if(n.str==a.str){if(n.str==e.strings.length-1)return n.num="?",void(a.num="?");a.num<n.num?(a.str++,a=s(e,a.note,a.str,e.secondPos,e.strings[a.str].length)):(n.str++,n=s(e,n.note,n.str,e.secondPos,e.strings[n.str].length)),t[r]=n,t[r+1]=a}}}(e,r),r}function s(e,t,r,n,a){var i=e.strings;t.checkKeyAccidentals(e.accidentals),n&&(i=n);var s=t.emitNoAccidentals(),o=i[r].indexOf(s),c=t.acc;if(-1!=o){if(n&&(o+=a),(t.isFlat||-1==t.acc)&&0==o){var l=t.getAccidentalEquiv();o=i[++r].indexOf(l.emit()),c=0}return{num:o+c,str:r,note:t}}return null}function o(e,t){var r=null,a=0,i=e.strings[e.strings.length-1],o=new n.TabNote(i[0]);if(t.isLowerThan(o))return{num:"?",str:e.strings.length-1,note:t,error:t.emit()+": unexpected note for instrument"};for(;a<e.strings.length;){if(r=s(e,t,a))return r;a++}return null}function c(e,t){var r={num:"?",str:0,note:t};e.push(r),e.error=t.emit()+": unexpected note for instrument"}function l(e){var t=e.tuning,r=e.capo,i=e._super.params.highestNote;if(this.linePitch=e.linePitch,this.highestNote="a'",i&&(this.highestNote=i),this.capo=0,r&&(this.capo=r),this.tuning=t,this.capo>0&&(this.capoTuning=function(e){var t=null,r=e.tuning;if(e.capo>0){t=[];for(var a=0;a<r.length;a++){for(var i=new n.TabNote(r[a]),s=0;s<e.capo;s++)i=i.nextNote();t[a]=i.emit()}}return t}(this)),this.strings=function(e){var t=[],r=e.tuning;e.capo>0&&(r=e.capoTuning);for(var n=r.length-1,i=0;i<r.length;i++){var s=e.highestNote;i!=r.length-1&&(s=r[i+1]);var o=new a(r[i],s).build();if(o.error)return o;t[n--]=o}return t}(this),this.strings.error)return e._super.setError(this.strings.error),void(e.inError=!0);this.secondPos=function(e){var t=[];t[0]=[];for(var r=e.strings,n=1;n<r.length;n++)t[n]=r[n-1];return t}(this)}l.prototype.stringToPitch=function(e){return 5.3+(this.strings.length-1-e)*this.linePitch},l.prototype.notesToNumber=function(e,t){var r,a,s=null,l=null;if(e&&(l=[],e.length>1?(l=i(this,e)).error&&(s=l.error):(a=o(this,r=new n.TabNote(e[0].name)))?l.push(a):(c(l,r),s=l.error)),s)return l;var h=null;if(t){h=[];for(var u=0;u<t.length;u++)(a=o(this,r=new n.TabNote(t[u].name)))?h.push(a):(c(h,r),s=l.error)}return{notes:l,graces:h,error:s}},l.prototype.toString=function(){return this.tuning.join("").replaceAll(",","").toUpperCase()},l.prototype.tabInfos=function(e){var t=e._super.params.label;if(t){var r="";return-1!=t.indexOf("%T")&&(r=this.toString(),e.capo>0&&(r+=" capo:"+e.capo),t=t.replace("%T",r)),t}return""},e.exports=l},704:e=>{function t(e,t){this.numLines=e,this.lineSpace=t,this.verticalSize=this.numLines*this.lineSpace;this.bar={pitch:3,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,r){switch(e.type){case"bar":t.pitch=this.bar.pitch,t.pitch2=this.bar.pitch2,t.height=this.height;break;case"symbol":var n=this.bar.pitch2/2;if("dots.dot"==e.name)return r?(t.pitch=n,!1):(t.pitch=n+this.lineSpace,!0)}return r},e.exports=t},451:e=>{var t=["A","B","C","D","E","F","G"];function r(e){var t,r=!1,n=e,a=!1,i=null,s=null,o=!1,c=0;e.startsWith("_")?(r=!0,c=-1,"/"==e[1]?(r=!1,s="v",c=0):"_"==e[1]&&(o=!0,c-=1)):e.startsWith("^")?(a=!0,c=1,"/"==e[1]?(a=!1,s="^",c=0):"^"==e[1]&&(o=!0,c+=1)):e.startsWith("=")&&(i=!0,c=0),((t=r||a||null!=s)||i)&&(n=null!=s||o?e.slice(2):e.slice(1));var l=(e.match(/,/g)||[]).length,h=(e.match(/'/g)||[]).length;this.name=n,this.acc=c,this.isSharp=a,this.isKeySharp=!1,this.isDouble=o,this.isAltered=t,this.isFlat=r,this.isKeyFlat=!1,this.natural=i,this.quarter=s,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=l,this.isQuoted=h}function n(e){var t=new r(e.name);return t.hasComma=e.hasComma,t.isLower=e.isLower,t.isQuoted=e.isQuoted,t.isSharp=e.isSharp,t.isKeySharp=e.isKeySharp,t.isFlat=e.isFlat,t.isKeyFlat=e.isKeyFlat,t}r.prototype.sameNoteAs=function(e){return this.name==e.name&&this.hasComma==e.hasComma&&this.isLower==e.isLower&&this.isQuoted==e.isQuoted&&this.isSharp==e.isSharp&&this.isFlat==e.isFlat},r.prototype.isLowerThan=function(e){var t=["C","D","E","F","G","A","B"];if(this.hasComma>e.hasComma)return!0;if(e.hasComma>this.hasComma)return!1;if(this.isQuoted>e.isQuoted)return!1;if(e.isQuoted>this.isQuoted)return!0;if(this.isLower){if(!e.isLower)return!1}else if(e.isLower)return!0;var r=e.name[0].toUpperCase(),n=this.name[0].toUpperCase();return t.indexOf(n)<t.indexOf(r)},r.prototype.checkKeyAccidentals=function(e){if(e)for(var t=this.name,r=0;r<e.length;r++){var n=e[r];t==n.note.toUpperCase()&&("flat"==n.acc&&(this.acc=-1,this.isKeyFlat=!0),"sharp"==n.acc&&(this.acc=1,this.isKeySharp=!0))}},r.prototype.getAccidentalEquiv=function(){var e=n(this);return e.isSharp||e.isKeySharp?((e=e.nextNote()).isFlat=!0,e.isSharp=!1,e.isKeySharp=!1):(e.isFlat||e.isKeyFlat)&&((e=e.prevNote()).isSharp=!0,e.isFlat=!1,e.isKeyFlat=!1),e},r.prototype.nextNote=function(){var e=n(this);if(this.isSharp||this.isKeySharp)e.isSharp=!1,e.isKeySharp=!1;else if("E"!=this.name&&"B"!=this.name)return e.isSharp=!0,e;var r=t.indexOf(this.name);return r==t.length-1?r=0:r++,e.name=t[r],"C"==e.name&&(e.hasComma>0?e.hasComma--:e.isLower?e.isQuoted=!0:e.isLower=!0),e},r.prototype.prevNote=function(){var e=n(this);if(this.isSharp)return e.isSharp=!1,e;var r=t.indexOf(this.name);return 0==r?r=t.length-1:r--,e.name=t[r],"B"==e.name&&(e.isLower?e.hasComma=1:e.hasComma>0?e.hasComma++:e.isQuoted>0?e.isQuoted-=1:e.isLower=!0),this.isFlat?(e.isFlat=!1,e):("E"!=this.name&&"B"!=this.name&&(e.isSharp=!0),e)},r.prototype.emitNoAccidentals=function(){var e=this.name;this.isLower&&(e=e.toLowerCase());for(var t=0;t<this.isQuoted;t++)e+="'";for(var r=0;r<this.hasComma;r++)e+=",";return e},r.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 r=1;r<=this.isQuoted;r++)e+="'"}return e},e.exports={TabNote:r,notes:t}},6100:(e,t,r)=>{var n=r(451),a=n.notes;function i(e,t){this.fromN=new n.TabNote(e),this.toN=new n.TabNote(t)}i.prototype.build=function(){var e=this.fromN,t=this.toN;if(t.isLowerThan(e)){var r=e.emit();return{error:"Invalid string Instrument tuning : "+t.emit()+" string lower than "+r+" string"}}var n=[],i=a.indexOf(e.name),s=a.indexOf(t.name);if(-1==i||-1==s)return n;for(var o=!1;!o;)n.push(e.emit()),(e=e.nextNote()).sameNoteAs(t)&&(o=!0);return n},e.exports=i},6835:(e,t,r)=>{var n=r(704),a=r(3842),i=r(5106),s=r(2578),o=r(654);function c(){}c.prototype.init=function(e,t,r){var i=new a(e,t,r);this.abcTune=e,this._super=i,this.linePitch=3,this.nbLines=4,this.isTabBig=!1,this.capo=r.capo,this.transpose=r.visualTranspose,this.tablature=new n(this.nbLines,this.linePitch);var o=new s(this);this.semantics=o},c.prototype.render=function(e,t,r){this._super.inError||(this.tablature.bypass(t)||(o(this.abcTune),new i(this,e,t,r).doLayout()))};e.exports=function(){return{name:"ViolinTab",tablature:c}}},654:e=>{e.exports=function(e){}},2578:(e,t,r)=>{var n=r(7760);function a(e){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=["G,","D","A","e"]),e.tuning=this.tuning,this.strings=new n(e)}a.prototype.notesToNumber=function(e,t){return this.strings.notesToNumber(e,t)},a.prototype.stringToPitch=function(e){return this.strings.stringToPitch(e)},e.exports=a},9886:(e,t,r)=>{var n=r(6157),a=r(3400),i=r(7671);function s(e,t){for(var r in t)t.hasOwnProperty(r)&&(Array.isArray(t[r])||null!=(n=t[r])&&n.constructor===Object||(e[r]=t[r]));var n}function o(e){var t=new n("",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")),t}function c(e,t){var r=o(e);if(t)for(var n=e.children,i=!0,c=0;c<n.length;c++){var l=n[c],h=new a("",0,0,0,"");s(h,l),i=t.tablature.setRelative(l,h,i),r.children.push(h)}return r}function l(e,t,r){var i="tab.tiny",s=7.5;e.isTabBig&&(i="tab.big",s=10);var o=new n({el_type:"tab",icon:i,Ypos:s},0,0,"symbol",0);o.x=t;var c=new a(i,0,0,7.5,"tab");return c.x=r,o.children.push(c),"tab"==o.abcelem.el_type&&(c.pitch=s),o}function h(e){if(e.extra)for(var t=0;t<e.extra.length;t++){var r=e.extra[t];if("lyric"==r.type)return{bottom:r.bottom,height:r.height}}return null}function u(){this.accidentals=null}function d(e,t,r,n,i){var s=n.num;null!=n.note.quarter&&(s=s.toString(),s+=n.note.quarter);var o=e.semantics.stringToPitch(n.str);r.notes.push({num:s,str:n.str,pitch:n.note.emit()});var c=new a(s,0,0,o+.3,{type:"tabNumber"});return c.x=t,c.isGrace=i,c.isAltered=n.note.isAltered,c}function f(e,t){var r=0;if(e.extra)for(var n=0;n<e.extra.length;n++)if(e.extra[n].c.indexOf("noteheads")>=0){if(r===t)return e.extra[n].x+e.extra[n].w/2;r++}return-1}function p(e){if(e.abcelem){var t=e.abcelem;if(t.rest)return t.gracenotes}return null}function m(e,t,r,n){if(e.transpose){for(var a=0;a<r.length;a++)r[a]=t.transposeNote(r[a]);if(n)for(var i=0;i<n.length;i++)n[i]=t.transposeNote(n[i])}}function g(e,t,r){var n=e.semantics.notesToNumber(t,r);if(n.error)return e._super.setError(n.error),n;if(n.graces&&n.notes){var a=n.notes.length-1;n.notes[a].graces=n.graces}return n}function v(e,t,r,n,a){for(var i=0;i<n.length;i++){var s={el_type:"note",startChar:r.abcelem.startChar,endChar:r.abcelem.endChar,notes:[],grace:!0},o=d(e,f(r,i),s,n[i],!0);t.children.push(o),a.push(s)}}u.prototype.build=function(e,t,r,n,a,s){var u=function(e){for(var t=0,r=0;r<e.length;r++)e[r].tabNameInfos||t++;return t}(t),b=t[a+n],y=t[u+a+n],w=null,x=null,k=null;"clef"!=b.children[0].abcelem.el_type&&"none"!=s&&b.children.splice(0,0,s);for(var C=0;C<b.children.length;C++){var T=b.children[C],_=T.x,S=_;switch(T.isClef&&y.children.push(l(e,_,S)),T.type){case"staff-extra key-signature":this.accidentals=T.abcelem.accidentals,e.semantics.strings.accidentals=this.accidentals,e.transpose&&(w=new i(T.abcelem.accidentals,e.transpose));break;case"bar":var A=!1;C===b.children.length-1&&(A=!0);var E=c(T,e);if(E.abcelem.barNumber){delete E.abcelem.barNumber;for(var N=0;N<E.children.length;N++)if("barNumber"===E.children[N].type){E.children.splice(N,1);break}}E.abcelem.lastBar=A,y.children.push(E),r.push({el_type:T.abcelem.el_type,type:T.abcelem.type,endChar:T.abcelem.endChar,startChar:T.abcelem.startChar,abselem:E});break;case"rest":var M=p(T);if(M){if(m(e,w,null,M),(x=g(e,null,M)).error)return;D={el_type:"note",startChar:T.abcelem.startChar,endChar:T.abcelem.endChar,notes:[],grace:!0},v(e,B,T,x.graces,r)}break;case"note":var B=o(T);B.x=T.heads[0].x+T.heads[0].w/2,B.lyricDim=h(T);var P=T.abcelem.pitches,L=T.abcelem.gracenotes;if(B.type="tabNumber",m(e,w,P,L),(x=g(e,P,L)).error)return;if(x.graces){var H=x.notes.length-1;x.notes[H].graces=x.graces}k={el_type:"note",startChar:T.abcelem.startChar,endChar:T.abcelem.endChar,notes:[]};for(var z=0;z<x.notes.length;z++){var O=x.notes[z];if(O.graces)for(var F=0;F<O.graces.length;F++){var D={el_type:"note",startChar:T.abcelem.startChar,endChar:T.abcelem.endChar,notes:[],grace:!0},I=d(e,f(T,F),D,O.graces[F],!0);B.children.push(I),r.push(D)}var j=d(e,B.x+T.heads[z].dx,k,O,!1);B.children.push(j)}k.abselem=B,r.push(k),y.children.push(B)}}},e.exports=u},3842:e=>{function t(e,t,r){this.tune=e,this.params=r,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},5106:(e,t,r)=>{var n=r(7849),a=r(9886),i=r(4046);function s(e,t,r,n){this.renderer=t,this.plugin=e,this.line=r,this.absolutes=new a,this.staffIndex=n,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 r=t;r>=0;r--)if(!e[r].isTabStaff)return r;return-1}function l(e,t){return"clef"===e[t].children[0].abcelem.el_type?null:0==t?"none":e[t-1].children[0]}s.prototype.doLayout=function(){var e=this.line.staff;if(e){var t=e[0];if(t&&t.clef&&0==t.clef.stafflines)return void this.plugin._super.setError("No tablatures when stafflines=0");e.splice(e.length,0,this.tabStaff)}var r=this.line.staffGroup,a=r.voices,s=function(e){for(var t=0,r=0;r<e.children.length;r++){var n=e.children[r];n.specialY&&n.specialY.lyricHeightBelow>t&&(t=n.specialY.lyricHeightBelow)}return t}(a[0]),h=this.staffIndex,u=r.staffs[h],d=u.top+3+s;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=e.staffIndex,n=0,a=0,i=0;;){if(!t[n])return-1;if(t[n].isTabStaff||(i=t[n].voices.length),t[n].isTabStaff){if(a++,o(n,t)&&a<i)return n+1}else if(a=0,n>=r){if(n+1==t.length)return n+1;if(!t[n+1].isTabStaff)return n+1}if(++n>t.length)return-1}}(this,r.staffs);if(-1!==p){f.parentIndex=p-1,r.staffs.splice(p,0,f),r.height+=this.tabSize+3;var m,g,v,b,y,w,x=function(e,t){for(var r=t;r>=0;r--)if(!e[r].isTabStaff)return e[r];return null}(r.staffs,p),k=1;(function(e,t){return 1===function(e){for(var t=0,r=0;r<e.length;r++)e[r].isTabStaff||t++;return t}(e)&&t.voices.length>1})(r.staffs,x)&&(k=x.voices.length),this.tabStaff.voices=[];for(var C=0;C<k;C++){var T=new n(0,0),_=(g=T,v=void 0,b=void 0,y=void 0,w=void 0,v=(m=this).plugin.semantics.strings,b=m.renderer.controller.getTextSize,y=v.tabInfos(m.plugin),w=b.calc(y,"tablabelfont","text instrumentname"),g.tabNameInfos={textSize:w,name:y},w.height/i.STEP);r.staffs[this.staffIndex].top+=_,r.height+=_*i.STEP,T.staff=f,a.splice(a.length,0,T);var S=l(a,C+this.staffIndex);this.tabStaff.voices[C]=[],this.absolutes.build(this.plugin,a,this.tabStaff.voices[C],C,this.staffIndex,S)}!function(e){for(var t=0;t<e.length;t++)if(e[t].isTabStaff){var r=c(e,t);e[t].hasStaff=e[r],e[r].hasTab||(e[r].hasTab=[]),e[r].hasTab.push(e[t])}}(r.staffs)}},e.exports=s},7671:(e,t,r)=>{var n=r(451);function a(e,t){var r=t.getAccidentalEquiv();return e.note.toUpperCase()==r.name.toUpperCase()?(r.isSharp=!1,r.isFlat=!1,r):t}function i(e,t){if("sharp"==e.acc){if(t.isFlat)return a(e,t);t.isSharp&&(e.note.toUpperCase()==t.name.toUpperCase()?(t.isSharp=!1,t.isKeySharp=!0):e.note.toUpperCase()==t.name.toUpperCase()&&(t.natural=!0))}else if("flat"==e.acc){if(t.isSharp)return a(e,t);t.isFlat?e.note.toUpperCase()==t.name.toUpperCase()&&(t.isFlat=!1,t.isKeyFlat=!0):e.note.toUpperCase()==t.name.toUpperCase()&&(t.natural=!0)}return t}function s(e,t){for(var r=e.transposedKey,n=0;n<r.length;n++)t=i(r[n],t);return t}function o(e,t){this.transposeBy=t,this.transposedKey=e,this.lastEnd=this.kEnd+1}o.prototype.transposeNote=function(e){var t=e,r=new n.TabNote(t.name);if(this.transposeBy>0)for(var a=0;a<this.transposeBy;a++)r=s(this,r.nextNote());else if(this.transposeBy<0)for(var i=this.transposeBy;i<0;i++)r=s(this,r.prevNote());return t.name=r.emit(),t},o.prototype.upgradeSource=function(e,t,r){!function(e,t,r,n){if(e.lastEnd)for(;r>e.lastEnd;)e.updatedSrc.push(e.abcSrc[e.lastEnd]),e.lastEnd++;for(var a=t.split(""),i=0;i<a.length;i++)e.updatedSrc.push(a[i]);for(var s=r+i;n>=s;)e.updatedSrc.push(a[s]),s++;e.lastEnd=n}(this,new n.TabNote(e.name).emit(),t,r-1)},e.exports=o},6157:(e,t,r)=>{r(8877);var n=r(6389),a=r(3277),i=function(e,t,r,n,a,i){i||(i={}),this.tuneNumber=a,this.abcelem=e,this.duration=t,this.durationClass=i.durationClassOveride?i.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}};i.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},i.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)},i.prototype.addHead=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.heads[this.heads.length]=e,this.addRight(e)},i.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)},i.prototype.addFixed=function(e){this._addChild(e)},i.prototype.addFixedX=function(e){this._addChild(e)},i.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)},i.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])},i.prototype._addChild=function(e){e.parent=this,this.children[this.children.length]=e,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)},i.prototype.pushTop=function(e){void 0!==e&&(void 0===this.top?this.top=e:this.top=Math.max(e,this.top))},i.prototype.pushBottom=function(e){void 0!==e&&(void 0===this.bottom?this.bottom=e:this.bottom=Math.min(e,this.bottom))},i.prototype.setX=function(e){this.x=e;for(var t=0;t<this.children.length;t++)this.children[t].setX(e)},i.prototype.center=function(e,t){var r=(t.x-e.x)/2+e.x;this.x=r-this.w/2;for(var n=0;n<this.children.length;n++)this.children[n].setX(this.x)},i.prototype.setHint=function(){this.hint=!0},i.prototype.highlight=function(e,t){n.bind(this)(e,t)},i.prototype.unhighlight=function(e,t){a.bind(this)(e,t)},e.exports=i},5764:(e,t,r)=>{var n=r(6157),a=r(7397),i=r(8128),s=r(7020),o=r(9241),c=r(5067),l=r(9361),h=r(8507),u=r(7802),d=r(4438),f=r(3400),p=r(4046),m=r(5525),g=r(4471),v=r(1989),b=r(374),y=r(7849),w=r(3419),x=r(7508),k=r(302),C=function(e){var t=0;return e.duration&&(t=e.duration),t},T=!1,_={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"},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"}},S=function(e,t,r){this.decoration=new h,this.getTextSize=e,this.tuneNumber=t,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.reset()};function A(e,t){var r=e[t];if("note"!==r.el_type||!r.startBeam||r.endBeam)return{count:1,elem:r};for(var n=[];t<e.length&&"note"===e[t].el_type&&(n.push(e[t]),!e[t].endBeam);)t++;return{count:n.length,elem:n}}function E(e){if(e.pitches){N(e);for(var t=0,r=0;r<e.pitches.length;r++)t+=e.pitches[r].verticalPos;e.averagepitch=t/e.pitches.length,e.minpitch=e.pitches[0].verticalPos,e.maxpitch=e.pitches[e.pitches.length-1].verticalPos}}S.prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},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},S.prototype.setStemHeight=function(e){this.stemHeight=Math.round(10*e/p.STEP)/10},S.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t},S.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},S.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)},S.prototype.containsLyrics=function(e){for(var t=0;t<e.length;t++)for(var r=0;r<e[t].voices.length;r++)for(var n=0;n<e[t].voices[r].length;n++){var a=e[t].voices[r][n];if(a.lyric)return void(a.positioning&&"below"!==a.positioning.vocalPosition||(this.hasVocals=!0))}},S.prototype.createABCLine=function(e,t,r){this.minY=2,this.containsLyrics(e);var n=new m(this.getTextSize);this.tempoSet=!1;for(var a=0;a<e.length;a++)T&&this.restoreState(),T=!1,this.createABCStaff(n,e[a],t,a,r);return n},S.prototype.createABCStaff=function(e,t,r,n,a){e.getTextSize.updateFonts(t);for(var c=0;c<t.voices.length;c++){var h=new y(c,t.voices.length);0===c?(h.barfrom="start"===t.connectBarLines||"continue"===t.connectBarLines,h.barto="continue"===t.connectBarLines||"end"===t.connectBarLines):h.duplicate=!0,t.title&&t.title[c]&&(h.header=t.title[c].replace(/\\n/g,"\n"),h.headerPosition=6+e.getTextSize.baselineToCenter(h.header,"voicefont","staff-extra voice-name",c,t.voices.length)/p.STEP),t.clef&&"perc"===t.clef.type&&(h.isPercussion=!0);var u=(!this.initialClef||0===a)&&s(t.clef,this.tuneNumber);u&&(0===c&&t.barNumber&&this.addMeasureNumber(t.barNumber,u),h.addChild(u),this.startlimitelem=u);var d=o(t.key,this.tuneNumber);if(d&&(h.addChild(d),this.startlimitelem=d),t.meter){"specified"===t.meter.type?this.measureLength=t.meter.value[0].num/t.meter.value[0].den:this.measureLength=1;var f=l(t.meter,this.tuneNumber);h.addChild(f),this.startlimitelem=f}h.duplicate&&(h.children=[]);var m=t.clef.stafflines||0===t.clef.stafflines?t.clef.stafflines:5;e.addVoice(h,n,m);var g=1===m;this.createABCVoice(t.voices[c],r,n,c,g,h),e.setStaffLimits(h),0===c&&("start"===t.brace||!e.brace&&t.brace?(e.brace||(e.brace=[]),e.brace.push(new i(h,"brace"))):"end"===t.brace&&e.brace?e.brace[e.brace.length-1].setBottomStaff(h):"continue"===t.brace&&e.brace&&e.brace[e.brace.length-1].continuing(h),"start"===t.bracket||!e.bracket&&t.bracket?(e.bracket||(e.bracket=[]),e.bracket.push(new i(h,"bracket"))):"end"===t.bracket&&e.bracket?e.bracket[e.bracket.length-1].setBottomStaff(h):"continue"===t.bracket&&e.bracket&&e.bracket[e.bracket.length-1].continuing(h))}},S.prototype.createABCVoice=function(e,t,r,a,i,s){this.popCrossLineElems(r,a),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new u("",null,null),s.addOther(this.partstartelem));var o=s.voicetotal<2?-1:s.voicenumber;for(var l in this.slurs)this.slurs.hasOwnProperty(l)&&(this.slurs[l]=new v({force:this.slurs[l].force,voiceNumber:o,stemDir:this.slurs[l].stemDir,style:this.slurs[l].dotted}),T&&this.slurs[l].setHint(),s.addOther(this.slurs[l]));for(var h=0;h<this.ties.length;h++)this.ties[h]=new v({force:this.ties[h].force,stemDir:this.ties[h].stemDir,voiceNumber:o,style:this.ties[h].dotted}),T&&this.ties[h].setHint(),s.addOther(this.ties[h]);for(var d=0;d<this.abcline.length;d++)E(this.abcline[d]),this.minY=Math.min(this.abcline[d].minpitch,this.minY);for(var f=0===r,p=0;p<this.abcline.length;){var m=A(this.abcline,p),b=this.createABCElement(f,i,s,m.elem);if(b)for(h=0;h<b.length;h++){if(!this.tempoSet&&t&&!t.suppress){this.tempoSet=!0;var y=new n(t,0,0,"tempo",this.tuneNumber,{});y.addFixedX(new g(t,this.tuneNumber,c)),s.addChild(y)}s.addChild(b[h])}p+=m.count}this.pushCrossLineElems(r,a)},S.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)},S.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)},S.prototype.createABCElement=function(e,t,r,a){var i=[];switch(a.el_type){case void 0:i=this.createBeam(t,r,a);break;case"note":i[0]=this.createNote(a,!1,t,r),this.triplet&&this.triplet.isClosed()&&(r.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":i[0]=this.createBarLine(r,a,e),r.duplicate&&i.length>0&&(i[0].invisible=!0);break;case"meter":i[0]=l(a,this.tuneNumber),this.startlimitelem=i[0],r.duplicate&&i.length>0&&(i[0].invisible=!0);break;case"clef":if(i[0]=s(a,this.tuneNumber),!i[0])return null;r.duplicate&&i.length>0&&(i[0].invisible=!0);break;case"key":var h=o(a,this.tuneNumber);h&&(i[0]=h,this.startlimitelem=i[0]),r.duplicate&&i.length>0&&(i[0].invisible=!0);break;case"stem":this.stemdir="auto"===a.direction?void 0:a.direction;break;case"part":var u=new n(a,0,0,"part",this.tuneNumber),d=this.getTextSize.calc(a.title,"partsfont","part");u.addFixedX(new f(a.title,0,0,void 0,{type:"part",height:d.height/p.STEP})),i[0]=u;break;case"tempo":var m=new n(a,0,0,"tempo",this.tuneNumber);m.addFixedX(new g(a,this.tuneNumber,c)),i[0]=m;break;case"style":"normal"===a.head?delete this.style:this.style=a.head;break;case"hint":T=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=a.size;break;default:var v=new n(a,0,0,"unsupported",this.tuneNumber);v.addFixed(new f("element type "+a.el_type,0,0,void 0,{type:"debug"})),i[0]=v}return i},S.prototype.createBeam=function(e,t,r){var n=[],i=new a(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,r[0]);T&&i.setHint();for(var s=0;s<r.length;s++){var o=r[s],c=this.createNote(o,!0,e,t);n.push(c),i.add(c),this.triplet&&this.triplet.isClosed()&&(t.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return i.calcDir(),t.addBeam(i),n};var N=function(e){var t;do{t=!0;for(var r=0;r<e.pitches.length-1;r++)if(e.pitches[r].pitch>e.pitches[r+1].pitch){t=!1;var n=e.pitches[r];e.pitches[r]=e.pitches[r+1],e.pitches[r+1]=n}}while(!t)},M=function(e,t,r,n,a,i,s,o,c){for(var l=r;l>11;l--)l%2!=0||n||e.addFixed(new f(null,o,(a+4)*c,l,{type:"ledger"}));for(l=t;l<1;l++)l%2!=0||n||e.addFixed(new f(null,o,(a+4)*c,l,{type:"ledger"}));for(l=0;l<i.length;l++){var h=a;"down"===s&&(h=-h),e.addFixed(new f(null,h+o,(a+4)*c,i[l],{type:"ledger"}))}};function B(e,t){for(var r=0;r<e.length;r++)if(JSON.stringify(e[r])===JSON.stringify(t))return;e.push(t)}S.prototype.addGraceNotes=function(e,t,r,n,i,s,o){var l=.6;i=Math.round(.7*i);var h,u,p=null;e.gracenotes.length>1&&(p=new a(i,"grace",s),T&&p.setHint(),p.mainNote=r);var m=[];for(u=e.gracenotes.length-1;u>=0;u--)o+=10,m[u]=o,e.gracenotes[u].accidental&&(o+=7);for(u=0;u<e.gracenotes.length;u++){var g=e.gracenotes[u].verticalPos;h=p?null:_.uflags[s?5:3];var b=c(r,"noteheads.quarter",e.gracenotes[u],{dir:"up",headx:-m[u],extrax:-m[u],flag:h,scale:l*this.voiceScale,accidentalSlot:[]});b.notehead.highestVert=b.notehead.pitch+i;var y=b.notehead;if(this.addSlursAndTies(r,e.gracenotes[u],y,t,"up",!0),r.addExtra(y),e.gracenotes[u].acciaccatura){var w=e.gracenotes[u].verticalPos+4.2,x=p?5:6;r.addRight(new f("flags.ugrace",-m[u]+x,0,w,{scalex:l,scaley:l}))}if(p){var k=e.gracenotes[u].duration/2;s&&(k/=2);var C={heads:[y],abcelem:{averagepitch:g,minpitch:g,maxpitch:g,duration:k}};p.add(C)}else{var S=g+1/3*l,A=g+4.2,E=y.dx+y.w;r.addExtra(new f(null,E,0,S,{type:"stem",pitch2:A,linewidth:-.6}))}M(r,g,g,!1,d.getSymbolWidth("noteheads.quarter"),[],!0,y.dx-1,.6);var N=e.rest&&("spacer"===e.rest.type||"invisible"===e.rest.type);0!==u||s||!this.graceSlurs||N||t.addOther(new v({anchor1:y,anchor2:n,isGrace:!0}))}return p&&(p.calcDir(),t.addBeam(p)),o},S.prototype.addNoteToAbcElement=function(e,t,r,n,a,i,s,o,l){var h,u,p,m,g,v=0,b=0,y=0,w=[],k=[],T=0,S=t.averagepitch>=6?"down":"up";for(n&&(S=n),(a=t.style?t.style:a)&&"normal"!==a||(a="note"),(m=i?_[a].nostem:_[a][-s])||console.log("noteSymbol:",a,s,i),g="down"===S?t.pitches.length-2:1;"down"===S?g>=0:g<t.pitches.length;g="down"===S?g-1:g+1){var A=t.pitches["down"===S?g+1:g-1],E=t.pitches[g],N="down"===S?A.pitch-E.pitch:E.pitch-A.pitch;N<=1&&!A.printer_shift&&(E.printer_shift=N?"different":"same",(E.verticalPos>11||E.verticalPos<1)&&w.push(E.verticalPos-E.verticalPos%2),"down"===S?b=d.getSymbolWidth(m)+2:v=d.getSymbolWidth(m)+2)}var M=t.pitches.length;for(g=0;g<t.pitches.length;g++){var P,L;if(!o)P="down"===S&&0!==g||"up"===S&&g!==M-1?null:_["down"===S?"dflags":"uflags"][-s];if(t.pitches[g].style)L=_[t.pitches[g].style][-s];else if(l.isPercussion&&this.percmap){L=m;var H=this.percmap[x(t.pitches[g])];H&&H.noteHead&&_[H.noteHead]&&(L=_[H.noteHead][-s])}else L=m;if(t.pitches[g].highestVert=t.pitches[g].verticalPos,("up"===n||"up"===S)&&0===g||("down"===n||"down"===S)&&g===M-1){if((t.startSlur||1===M)&&(t.pitches[g].highestVert=t.pitches[M-1].verticalPos,C(t)<1&&("up"===n||"up"===S)&&(t.pitches[g].highestVert+=6)),t.startSlur)for(t.pitches[g].startSlur||(t.pitches[g].startSlur=[]),p=0;p<t.startSlur.length;p++)B(t.pitches[g].startSlur,t.startSlur[p]);if(t.endSlur)for(t.pitches[g].highestVert=t.pitches[M-1].verticalPos,C(t)<1&&("up"===n||"up"===S)&&(t.pitches[g].highestVert+=6),t.pitches[g].endSlur||(t.pitches[g].endSlur=[]),p=0;p<t.endSlur.length;p++)B(t.pitches[g].endSlur,t.endSlur[p])}var z=!o&&s<=-1,O=c(e,L,t.pitches[g],{dir:S,extrax:-b,flag:P,dot:r,dotshiftx:v,scale:this.voiceScale,accidentalSlot:k,shouldExtendStem:!n,printAccidentals:!l.isPercussion});T=Math.max(d.getSymbolWidth(L),T),e.extraw-=O.extraLeft,(h=O.notehead)&&(this.addSlursAndTies(e,t.pitches[g],h,l,z?S:null,!1),t.gracenotes&&t.gracenotes.length>0&&(h.bottom=h.bottom-1),e.addHead(h)),b+=O.accidentalshiftx,y=Math.max(y,O.dotshiftx)}if(z){var F=Math.round(70*this.voiceScale)/10,D="down"===S?t.minpitch-F:t.minpitch+1/3;D>6&&!n&&(D=6);var I="down"===S?t.maxpitch-1/3:t.maxpitch+F;I<6&&!n&&(I=6);var j="down"===S||0===e.heads.length?0:e.heads[0].w,V="down"===S?1:-1;h&&"noteheads.slash.quarter"===h.c&&("down"===S?I-=1:D+=1),e.addRight(new f(null,j,0,D,{type:"stem",pitch2:I,linewidth:V})),u=Math.min(D,I)}return{noteHead:h,roomTaken:b,roomTakenRight:y,min:u,additionalLedgers:w,dir:S,symbolWidth:T}},S.prototype.addLyric=function(e,t){var r="";k.each(t.lyric,(function(e){var t=" "===e.divider?"":e.divider;r+=e.syllable+t+"\n"}));var n=this.getTextSize.calc(r,"vocalfont","lyric"),a=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new f(r,0,n.width,void 0,{type:"lyric",position:a,height:n.height/p.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))},S.prototype.createNote=function(e,t,r,a){var i,s=null,o=0,l=0,h=0,u=[],p=C(e),m=!1;0===p&&(m=!0,p=.25,t=!0);for(var g=Math.floor(Math.log(p)/Math.log(2)),v=0,y=Math.pow(2,g),x=y/2;y<p;v++,y+=x,x/=2);e.startTriplet&&(this.tripletmultiplier=e.tripletMultiplier);var k=p*this.tripletmultiplier;e.rest&&"multimeasure"===e.rest.type&&(k=1),e.rest&&"invisible-multimeasure"===e.rest.type&&(k=this.measureLength*e.rest.text);var S=e.rest?"rest":"note",A=new n(e,k,1,S,this.tuneNumber,{durationClassOveride:e.duration*this.tripletmultiplier});if(T&&A.setHint(),e.rest){this.measureLength===p&&"invisible"!==e.rest.type&&"spacer"!==e.rest.type&&e.rest.type.indexOf("multimeasure")<0&&(e.rest.type="whole");var E=function(e,t,r,n,a,i,s,o,l){var h,u,p,m,g=7;switch(a&&("down"===i&&(g=3),"up"===i&&(g=11)),s&&(g=r<.5||r<1?7:5),t.rest.type){case"whole":h=_.rest[0],t.averagepitch=g,t.minpitch=g,t.maxpitch=g,n=0;break;case"rest":h="rhythm"===t.style?_.rhythm[-o]:_.rest[-o],t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"invisible":case"invisible-multimeasure":case"spacer":h="",t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"multimeasure":h=_.rest.multi,t.averagepitch=g,t.minpitch=g,t.maxpitch=g,n=0;var v=d.getSymbolWidth(h);e.addHead(new f(h,v,2*v,7));var b=new f(""+t.rest.text,v,v,16,{type:"multimeasure-text"});e.addExtra(b)}if(t.rest.type.indexOf("multimeasure")<0&&"invisible"!==t.rest.type){var y=c(e,h,{verticalPos:g},{dot:n,scale:l});(u=y.notehead)&&(e.addHead(u),p=y.accidentalshiftx,m=y.dotshiftx)}return{noteHead:u,roomTaken:p,roomTakenRight:m}}(A,e,p,v,a.voicetotal>1,this.stemdir,r,g,this.voiceScale);s=E.noteHead,o=E.roomTaken,l=E.roomTakenRight}else{var N=this.addNoteToAbcElement(A,e,v,this.stemdir,this.style,m,g,t,a);void 0!==N.min&&(this.minY=Math.min(N.min,this.minY)),s=N.noteHead,o=N.roomTaken,l=N.roomTakenRight,u=N.additionalLedgers,i=N.dir,h=N.symbolWidth}if(void 0!==e.lyric&&this.addLyric(A,e),void 0!==e.gracenotes&&(o+=this.addGraceNotes(e,a,A,s,this.stemHeight*this.voiceScale,this.isBagpipes,o)),e.decoration&&this.decoration.createDecoration(a,e.decoration,A.top,s?s.w:0,A,o,i,A.bottom,e.positioning,this.hasVocals),e.barNumber&&A.addFixed(new f(e.barNumber,-10,0,0,{type:"barNumber"})),M(A,e.minpitch,e.maxpitch,e.rest,h,u,i,-2,1),void 0!==e.chord){var B=w(this.getTextSize,A,e,o,l,h,this.jazzchords);o=B.roomTaken,l=B.roomTakenRight}return e.startTriplet&&(this.triplet=new b(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),A},S.prototype.addSlursAndTies=function(e,t,r,n,a,i){if(t.endTie&&this.ties.length>0){for(var s=!1,o=0;o<this.ties.length;o++)if(this.ties[o].anchor1&&this.ties[o].anchor1.pitch===r.pitch){this.ties[o].setEndAnchor(r),this.ties.splice(o,1),s=!0;break}s||(this.ties[0].setEndAnchor(r),this.ties.splice(0,1))}var c,l,h=n.voicetotal<2?-1:n.voicenumber;if(t.startTie){var u=new v({anchor1:r,force:"down"===this.stemdir||"up"===this.stemdir,stemDir:this.stemdir,isGrace:i,voiceNumber:h,style:t.startTie.style});T&&u.setHint(),this.ties[this.ties.length]=u,n.addOther(u),e.startTie=!0}if(t.endSlur)for(var d=0;d<t.endSlur.length;d++)l=t.endSlur[d],this.slurs[l]?((c=this.slurs[l]).setEndAnchor(r),delete this.slurs[l]):(c=new v({anchor2:r,stemDir:this.stemdir,voiceNumber:h}),T&&c.setHint(),n.addOther(c)),this.startlimitelem&&c.setStartX(this.startlimitelem);else if(!i)for(var f in this.slurs)this.slurs.hasOwnProperty(f)&&this.slurs[f].addInternalNote(r);if(t.startSlur)for(d=0;d<t.startSlur.length;d++)l=t.startSlur[d].label,c=new v({anchor1:r,stemDir:this.stemdir,voiceNumber:h,style:t.startSlur[d].style}),T&&c.setHint(),this.slurs[l]=c,n.addOther(c)},S.prototype.addMeasureNumber=function(e,t){var r=this.getTextSize.calc(e,"measurefont","bar-number"),n=r.width>18&&"treble"===t.abcelem.type?-7:0;t.addFixed(new f(e,n,r.width,11+r.height/p.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))},S.prototype.createBarLine=function(e,t,r){var a=new n(t,0,10,"bar",this.tuneNumber),i=null,s=0;t.barNumber&&this.addMeasureNumber(t.barNumber,a);var o="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type,c="bar_left_repeat"!==t.type&&"bar_thick_thin"!==t.type&&"bar_invisible"!==t.type,l="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,h="bar_left_repeat"===t.type||"bar_thick_thin"===t.type||"bar_thin_thin"===t.type||"bar_dbl_repeat"===t.type,d="bar_left_repeat"===t.type||"bar_dbl_repeat"===t.type;if(o||d){for(var p in this.slurs)this.slurs.hasOwnProperty(p)&&this.slurs[p].setEndX(a);this.startlimitelem=a}if(o&&(a.addRight(new f("dots.dot",s,1,7)),a.addRight(new f("dots.dot",s,1,5)),s+=6),c&&(i=new f(null,s,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(i)),"bar_invisible"===t.type&&(i=new f(null,s,1,2,{type:"none",pitch2:10,linewidth:.6}),a.addRight(i)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,l?3:1,a,0,"down",2,t.positioning,this.hasVocals),l&&(i=new f(null,s+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),a.addRight(i),s+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=i,this.partstartelem=null),h&&(i=new f(null,s+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(i)),d&&(s+=3,a.addRight(new f("dots.dot",s,1,7)),a.addRight(new f("dots.dot",s,1,5))),t.startEnding&&r){var m=this.getTextSize.calc(t.startEnding,"repeatfont","").width;a.minspacing+=m+10,this.partstartelem=new u(t.startEnding,i,null),e.addOther(this.partstartelem)}return a.extraw-=5,a},e.exports=S},7397:e=>{var t=function(e,t,r,n){this.type="BeamElem",this.isflat=!!r,this.isgrace=!(!t||"grace"!==t),this.forceup=!!(this.isgrace||t&&"up"===t),this.forcedown=!(!t||"down"!==t),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=e,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};t.prototype.setHint=function(){this.hint=!0},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.calcDir=function(){var e,t;if(this.average=(e=this.total,(t=this.elems.length)?e/t:0),this.forceup)this.stemsUp=!0;else if(this.forcedown)this.stemsUp=!1;else{this.stemsUp=this.average<6}for(var r=this.stemsUp?"up":"down",n=0;n<this.elems.length;n++)for(var a=0;a<this.elems[n].heads.length;a++)this.elems[n].heads[a].stemDir=r},e.exports=t},8128:e=>{var t=function(e,t){this.startVoice=e,this.type=t};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},7020:(e,t,r)=>{var n=r(6157),a=r(4438),i=r(3400);e.exports=function(e,t){var r,s=0;e.el_type="clef";var o=new n(e,0,10,"staff-extra clef",t);switch(o.isClef=!0,e.type){case"treble":r="clefs.G";break;case"tenor":case"alto":r="clefs.C";break;case"bass":r="clefs.F";break;case"treble+8":r="clefs.G",s=1;break;case"tenor+8":case"alto+8":r="clefs.C",s=1;break;case"bass+8":r="clefs.F",s=1;break;case"treble-8":r="clefs.G",s=-1;break;case"tenor-8":case"alto-8":r="clefs.C",s=-1;break;case"bass-8":r="clefs.F",s=-1;break;case"none":return null;case"perc":r="clefs.perc";break;default:o.addFixed(new i("clef="+e.type,0,0,void 0,{type:"debug"}))}if(r){var c=a.symbolHeightInPitches(r),l=function(e){switch(e){case"clefs.G":return-5;case"clefs.C":case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}(r);if(o.addRight(new i(r,5,a.getSymbolWidth(r),e.clefPos,{top:c+e.clefPos+l,bottom:e.clefPos+l})),0!==s){var h=2/3,u=(a.getSymbolWidth(r)-a.getSymbolWidth("8")*h)/2,d=s>0?o.top+3:o.bottom-1,f=s>0?o.top+3:o.bottom-3,p=f-2;"bass-8"===e.type&&(d=3,u=0),o.addRight(new i("8",5+u,a.getSymbolWidth("8")*h,d,{scalex:h,scaley:h,top:f,bottom:p}))}}return o}},9241:(e,t,r)=>{var n=r(6157),a=r(4438),i=r(3400),s=r(302);e.exports=function(e,t){if(e.el_type="keySignature",!e.accidentals||0===e.accidentals.length)return null;var r=new n(e,0,10,"staff-extra key-signature",t);r.isKeySig=!0;var o=0;return s.each(e.accidentals,(function(e){var t,n=0;switch(e.acc){case"sharp":t="accidentals.sharp",n=-3;break;case"natural":t="accidentals.nat";break;case"flat":t="accidentals.flat",n=-1.2;break;case"quartersharp":t="accidentals.halfsharp",n=-2.5;break;case"quarterflat":t="accidentals.halfflat",n=-1.2;break;default:t="accidentals.flat"}r.addRight(new i(t,o,a.getSymbolWidth(t),e.verticalPos,{thickness:a.symbolHeightInPitches(t),top:e.verticalPos+a.symbolHeightInPitches(t)+n,bottom:e.verticalPos+n})),o+=a.getSymbolWidth(t)+2}),this),r}},5067:(e,t,r)=>{var n=r(4438),a=r(3400);e.exports=function(e,t,r,i){i||(i={});var s,o=void 0!==i.dir?i.dir:null,c=void 0!==i.headx?i.headx:0,l=void 0!==i.extrax?i.extrax:0,h=void 0!==i.flag?i.flag:null,u=void 0!==i.dot?i.dot:0,d=void 0!==i.dotshiftx?i.dotshiftx:0,f=void 0!==i.scale?i.scale:1,p=void 0!==i.accidentalSlot?i.accidentalSlot:[],m=void 0!==i.shouldExtendStem&&i.shouldExtendStem,g=void 0===i.printAccidentals||i.printAccidentals,v=r.verticalPos,b=0,y=0,w=0;if(void 0===t)e.addFixed(new a("pitch is undefined",0,0,0,{type:"debug"}));else if(""===t)s=new a(null,0,0,v);else{var x=c;if(r.printer_shift){var k="same"===r.printer_shift?1:0;x="down"===o?-n.getSymbolWidth(t)*f+k:n.getSymbolWidth(t)*f-k}var C={scalex:f,scaley:f,thickness:n.symbolHeightInPitches(t)*f,name:r.name};if((s=new a(t,x,n.getSymbolWidth(t)*f,v,C)).stemDir=o,h){var T=v+("down"===o?-7:7)*f;m&&("down"===o&&T>6&&(T=6),"up"===o&&T<6&&(T=6));var _="down"===o?c:c+s.w-.6;e.addRight(new a(h,_,n.getSymbolWidth(h)*f,T,{scalex:f,scaley:f}))}for(y=s.w+d-2+5*u;u>0;u--){var S=1-Math.abs(v)%2;e.addRight(new a("dots.dot",s.w+d-2+5*u,n.getSymbolWidth("dots.dot"),v+S))}}if(s&&(s.highestVert=r.highestVert),g&&r.accidental){var A;switch(r.accidental){case"quartersharp":A="accidentals.halfsharp";break;case"dblsharp":A="accidentals.dblsharp";break;case"sharp":A="accidentals.sharp";break;case"quarterflat":A="accidentals.halfflat";break;case"flat":A="accidentals.flat";break;case"dblflat":A="accidentals.dblflat";break;case"natural":A="accidentals.nat"}for(var E=!1,N=l,M=0;M<p.length;M++)if(v-p[M][0]>=6){p[M][0]=v,N=p[M][1],E=!0;break}!1===E&&(N-=n.getSymbolWidth(A)*f+2,p.push([v,N]),b=n.getSymbolWidth(A)*f+2);var B=n.symbolHeightInPitches(A);e.addExtra(new a(A,N,n.getSymbolWidth(A),v,{scalex:f,scaley:f,top:v+B/2,bottom:v-B/2})),w=n.getSymbolWidth(A)/2}return{notehead:s,accidentalshiftx:b,dotshiftx:y,extraLeft:w}}},9361:(e,t,r)=>{var n=r(6157),a=r(4438),i=r(3400);e.exports=function(e,t){e.el_type="timeSignature";var r=new n(e,0,10,"staff-extra time-signature",t);if("specified"===e.type)for(var s=0,o=0;o<e.value.length;o++)if(0!==o&&(r.addRight(new i("+",s+1,a.getSymbolWidth("+"),6,{thickness:a.symbolHeightInPitches("+")})),s+=a.getSymbolWidth("+")+2),e.value[o].den){for(var c=0,l=0;l<e.value[o].num.length;l++)c+=a.getSymbolWidth(e.value[o].num.charAt(l));var h=0;for(l=0;l<e.value[o].num.length;l++)h+=a.getSymbolWidth(e.value[o].den.charAt(l));var u=Math.max(c,h);r.addRight(new i(e.value[o].num,s+(u-c)/2,c,8,{thickness:a.symbolHeightInPitches(e.value[o].num.charAt(0))})),r.addRight(new i(e.value[o].den,s+(u-h)/2,h,4,{thickness:a.symbolHeightInPitches(e.value[o].den.charAt(0))})),s+=u}else{for(var d=0,f=0;f<e.value[o].num.length;f++)d+=a.getSymbolWidth(e.value[o].num.charAt(f));r.addRight(new i(e.value[o].num,s,d,6,{thickness:a.symbolHeightInPitches(e.value[o].num.charAt(0))})),s+=d}else"common_time"===e.type?r.addRight(new i("timesig.common",0,a.getSymbolWidth("timesig.common"),6,{thickness:a.symbolHeightInPitches("timesig.common")})):"cut_time"===e.type?r.addRight(new i("timesig.cut",0,a.getSymbolWidth("timesig.cut"),6,{thickness:a.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===e.type?r.addRight(new i("timesig.imperfectum",0,a.getSymbolWidth("timesig.imperfectum"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===e.type?r.addRight(new i("timesig.imperfectum2",0,a.getSymbolWidth("timesig.imperfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===e.type?r.addRight(new i("timesig.perfectum",0,a.getSymbolWidth("timesig.perfectum"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===e.type?r.addRight(new i("timesig.perfectum2",0,a.getSymbolWidth("timesig.perfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",e);return r}},602:e=>{e.exports=function(e,t,r,n){this.type="CrescendoElem",this.anchor1=e,this.anchor2=t,this.dir=r,"above"===n?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0}},8507:(e,t,r)=>{var n=r(5499),a=r(602),i=r(4438),s=r(3400),o=r(1989),c=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},l=function(e,t,r,n,a){function o(e,t){var o="down"===a?function(){if(0===n.heads.length)return 2;for(var e=n.heads[0].pitch,t=1;t<n.heads.length;t++)e=Math.min(e,n.heads[t].pitch);return e}()+1:function(){if(0===n.heads.length)return 10;for(var e=n.heads[0].pitch,t=1;t<n.heads.length;t++)e=Math.max(e,n.heads[t].pitch);return e}()+9;"down"!==a&&1===t&&o--;var c=r/2;c+="down"===a?-5:3;for(var l=0;l<t;l++)o-=1,n.addFixedX(new s(e,c,i.getSymbolWidth(e),o))}for(var c=0;c<e.length;c++)switch(e[c]){case"/":o("flags.ugrace",1);break;case"//":o("flags.ugrace",2);break;case"///":o("flags.ugrace",3);break;case"////":o("flags.ugrace",4)}};c.prototype.dynamicDecoration=function(e,t,r,n){for(var i,s,o=0;o<t.length;o++)switch(t[o]){case"diminuendo(":this.startDiminuendoX=r,i=void 0;break;case"diminuendo)":i={start:this.startDiminuendoX,stop:r},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=r,s=void 0;break;case"crescendo)":s={start:this.startCrescendoX,stop:r},this.startCrescendoX=void 0}i&&e.addOther(new a(i.start,i.stop,">",n)),s&&e.addOther(new a(s.start,s.stop,"<",n))},c.prototype.createDecoration=function(e,t,r,a,c,h,u,d,f,p){f||(f={ornamentPosition:"above",volumePosition:p?"above":"below",dynamicPosition:p?"above":"below"}),function(e,t,r,a){for(var i=0;i<t.length;i++)switch(t[i]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var s=new n(r,t[i],a);e.addOther(s)}}(e,t,c,f.volumePosition),this.dynamicDecoration(e,t,c,f.dynamicPosition),l(t,0,a,c,u);var m=function(e,t,r,n,a,c,l,h){for(var u,d=0;d<t.length;d++){if("staccato"===t[d]||"tenuto"===t[d]||"accent"===t[d]){var f="scripts."+t[d];if("accent"===t[d]&&(f="scripts.sforzato"),u=void 0===u?"down"===l?r+2:h-2:"down"===l?u+2:u-2,"accent"===t[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"!==i.getSymbolAlign(f)&&(p-=i.getSymbolWidth(f)/2),a.addFixedX(new s(f,p,i.getSymbolWidth(f),u))}if("slide"===t[d]&&a.heads[0]){var m=a.heads[0].pitch,g=new s("",-c-15,0,(m-=2)-1),v=new s("",-c-5,0,m+1);a.addFixedX(g),a.addFixedX(v),e.addOther(new o({anchor1:g,anchor2:v,fixedY:!0}))}}return void 0===u&&(u=r),{above:u,below:a.bottom}}(e,t,r,a,c,h,u,d);m.above=Math.max(m.above,this.minTop);!function(e,t,r,n,a,o,c){function l(e,t){"above"===e?n.above+=t:n.below-=t}function h(e){var t;return"above"===e?(t=n.above)<o&&(t=o):(t=n.below)>c&&(t=c),t}function u(e,n){var a=h(n);r.addFixedX(new s(e,t/2,0,a+2,{type:"decoration",klass:"ornament",thickness:3})),l(n,5)}function d(e,n){var a=t/2;"center"!==i.getSymbolAlign(e)&&(a-=i.getSymbolWidth(e)/2);var o=i.symbolHeightInPitches(e)+1,c=h(n);c="above"===n?c+o/2:c-o/2,r.addFixedX(new s(e,a,i.getSymbolWidth(e),c,{klass:"ornament",thickness:i.symbolHeightInPitches(e)})),l(n,o)}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",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.mordent",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<e.length;m++)switch(e[m]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":u(e[m],a),p=!0;break;case"fine":u("FINE",a),p=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":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"breath":case"umarcato":case"coda":case"segno":d(f[e[m]],a),p=!0;break;case"invertedfermata":d(f[e[m]],"below"),p=!0;break;case"mark":r.klass="mark"}}(t,a,c,m,f.ornamentPosition,this.minTop,this.minBottom);!function(e,t,r){for(var n=0;n<e.length;n++)if("arpeggio"===e[n])for(var a=t.abcelem.minpitch-1;a<=t.abcelem.maxpitch;a+=2)t.addExtra(new s("scripts.arpeggio",2*-i.getSymbolWidth("scripts.arpeggio")-r,0,a+2,{klass:"ornament",thickness:i.symbolHeightInPitches("scripts.arpeggio")}))}(t,c,h)},e.exports=c},5499:e=>{e.exports=function(e,t,r){this.type="DynamicDecoration",this.anchor=e,this.dec=t,"below"===r?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0}},7802:e=>{e.exports=function(e,t,r){this.type="EndingElem",this.text=e,this.anchor1=t,this.anchor2=r,this.endingHeightAbove=5,this.pitch=void 0}},9697:(e,t,r)=>{var n=r(4046),a=r(5764),i=r(6940),s=r(2480),o=r(8426),c=r(2200),l=r(1314),h=r(7340),u=r(2339),d=r(9654),f=r(4035),p=r(3570),m=r(3686),g=r(6142),v=r(4901),b=function(e,t){t=t||{},this.selectionColor=t.selectionColor,this.dragColor=t.dragColor?t.dragColor:t.selectionColor,this.dragging=!!t.dragging,this.selectTypes=t.selectTypes,this.responsive=t.responsive,this.space=3*n.SPACE,this.initialClef=t.initialClef,this.scale=t.scale?parseFloat(t.scale):0,this.classes=new f({shouldAddClasses:t.add_classes}),this.scale>.1||(this.scale=void 0),t.staffwidth?(this.staffwidthScreen=t.staffwidth,this.staffwidthPrint=t.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],t.clickListener&&this.addSelectListener(t.clickListener),this.renderer=new i(e),this.renderer.setPaddingOverride(t),t.showDebug&&(this.renderer.showDebug=t.showDebug),t.jazzchords&&(this.jazzchords=t.jazzchords),this.renderer.controller=this,this.renderer.foregroundColor=t.foregroundColor?t.foregroundColor:"currentColor",t.ariaLabel&&(this.renderer.ariaLabel=t.ariaLabel),this.renderer.minPadding=t.minPadding?t.minPadding:0,this.reset()};b.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},b.prototype.engraveABC=function(e,t,r){void 0===e[0]&&(e=[e]),this.reset();for(var n=0;n<e.length;n++)void 0===t&&(t=n),this.getFontAndAttr=new p(e[n].formatting,this.classes),this.getTextSize=new m(this.getFontAndAttr,this.renderer.paper),this.engraveTune(e[n],t,r)},b.prototype.adjustNonScaledItems=function(e){this.width/=e,this.renderer.adjustNonScaledItems(e)},b.prototype.getMeasureWidths=function(e){this.reset(),this.getFontAndAttr=new p(e.formatting,this.classes),this.getTextSize=new m(this.getFontAndAttr,this.renderer.paper),this.setupTune(e,0),this.constructTuneElements(e),d(this.renderer,e,0,this.space);for(var t,r=[],n=!0,a=0;a<e.lines.length;a++){var i=e.lines[a];if(i.staff){if(n&&(t={left:0,measureWidths:[],total:0},r.push(t),n=!1),i.staffGroup.voices.length>0)for(var s=i.staffGroup.voices[0],o=!1,c=0,l=0;l<s.children.length;l++){var h=s.children[l];o||h.isClef||h.isKeySig||(o=!0,t.left=h.x,c=h.x),"bar"===h.type&&(t.measureWidths.push(h.x-c),t.total+=h.x-c,c=h.x)}}else n=!0}return r},b.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 a(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}),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 r=e.formatting.scale?e.formatting.scale:this.scale;return"resize"===this.responsive&&(r=void 0),void 0===r&&(r=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(r),r},b.prototype.constructTuneElements=function(e){var t,r;e.topText=new l(e.metaText,e.metaTextInfo,e.formatting,e.lines,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.getTextSize);var n=!1,a=!1;for(t=0;t<e.lines.length;t++)if((r=e.lines[t]).staff)a=!0,r.staffGroup=this.engraver.createABCLine(r.staff,n?null:e.metaText.tempo,t),n=!0;else if(r.subtitle){if(a){var i=this.width/2+this.renderer.padding.left;r.nonMusic=new c(this.renderer.spacing.subtitle,e.formatting,r.subtitle,i,this.renderer.padding.left,this.getTextSize)}}else void 0!==r.text?(a=!0,r.nonMusic=new s(r.text,r.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize)):void 0!==r.separator&&r.separator.lineLength&&(a=!0,r.nonMusic=new o(r.separator.spaceAbove,r.separator.lineLength,r.separator.spaceBelow));e.bottomText=new h(e.metaText,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.getTextSize)},b.prototype.engraveTune=function(e,t,r){var n=this.setupTune(e,t);this.constructTuneElements(e);var a=d(this.renderer,e,this.width,this.space);e.tablatures&&v.layoutTablatures(this.renderer,e);var i=g(this.renderer,this.classes,e,this.width,a,this.responsive,n,this.selectTypes,t,r);this.staffgroups=i.staffgroups,this.selectables=i.selectables,u(this)},b.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},b.prototype.addSelectListener=function(e){this.listeners[this.listeners.length]=e},e.exports=b},4438:(e,t,r)=>{var n=r(4046),a={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.32,-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},"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},"noteheads.slash.quarter":{d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},"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},"noteheads.triangle.quarter":{d:[["M",0,0],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9}},i=function(e){for(var t=[],r=0,n=e.length;r<n;r++){t[r]=[];for(var a=0,i=e[r].length;a<i;a++)t[r][a]=e[r][a]}return t},s={printSymbol:function(e,t,r,n,s){if(!a[r])return null;var o=i(a[r].d);o[0][1]+=e,o[0][2]+=t;for(var c="",l=0;l<o.length;l++)c+=o[l].join(" ");return s.path=c,n.path(s)},getPathForSymbol:function(e,t,r,n,s){if(n=n||1,s=s||1,!a[r])return null;var o=i(a[r].d);return 1===n&&1===s||function(e,t,r){for(var n=0,a=e.length;n<a;n++){var i,s,o=e[n];for(i=1,s=o.length;i<s;i++)o[i]*=i%2?t:r}}(o,n,s),o[0][1]+=e,o[0][2]+=t,o},getSymbolWidth:function(e){return a[e]?a[e].w:0},symbolHeightInPitches:function(e){return(a[e]?a[e].h:0)/n.STEP},getSymbolAlign:function(e){return"scripts"===e.substring(0,7)&&"scripts.roll"!==e?"center":"left"},getYCorr:function(e){switch(e){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){a[e]=t}};e.exports=s},3400:e=>{var t=function(e,t,r,n,a){switch(a=a||{},this.x=0,this.c=e,this.dx=t,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.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)return null;if(!this.chordHeightAbove&&!this.chordHeightBelow)return null;var e="chord"===this.type?this.realWidth/2:0,t=this.x-e-0;return{left:t,right:t+this.realWidth+0}},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},6940:(e,t,r)=>{var n=r(4046),a=r(4572),i=function(e){this.paper=new a(e),this.controller=null,this.space=3*n.SPACE,this.padding={},this.reset()};i.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.initVerticalSpace()},i.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.isPrint="print"===e.media,this.setPadding(e)},i.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}},i.prototype.setPadding=function(e){function t(t,r,n,a,i){void 0!==e.formatting[n]?t.padding[r]=e.formatting[n]:void 0!==t.paddingOverride[r]?t.padding[r]=t.paddingOverride[r]:t.isPrint?t.padding[r]=a:t.padding[r]=i}t(this,"top","topmargin",38,15),t(this,"bottom","botmargin",38,15),t(this,"left","leftmargin",68,15),t(this,"right","rightmargin",68,15)},i.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},i.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}},i.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)},i.prototype.calcY=function(e){return this.y-e*n.STEP},i.prototype.moveY=function(e,t){void 0===t&&(t=1),this.y+=e*t},i.prototype.absolutemoveY=function(e){this.y=e},e.exports=i},4046:e=>{var t={FONTEM:360,FONTSIZE:30};t.STEP=93*t.FONTSIZE/720,t.SPACE=10,t.TOPNOTE=15,t.STAVEHEIGHT=100,t.INDENT=50,e.exports=t},5525:(e,t,r)=>{var n=r(1693),a=function(e){this.getTextSize=e,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};a.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])},a.prototype.addVoice=function(e,t,r){var n=this.voices.length;this.voices[n]=e,this.staffs[t]?this.staffs[t].voices.push(n):this.staffs[this.staffs.length]={top:10,bottom:2,lines:r,voices:[n],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]},a.prototype.setHeight=function(){this.height=n(this)},a.prototype.setWidth=function(e){this.w=e;for(var t=0;t<this.voices.length;t++)this.voices[t].setWidth(e)},a.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=a},4471:(e,t,r)=>{var n=r(6157),a=r(3400),i=function(e,t,r){this.type="TempoElement",this.tempo=e,this.tempo.type="tempo",this.tuneNumber=t,this.totalHeightInPitches=6,this.tempoHeightAbove=this.totalHeightInPitches,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(r,e,t))};i.prototype.setX=function(e){this.x=e},i.prototype.createNote=function(e,t,r){var i,s,o,c=.75,l=t.duration[0],h=new n(t,l,1,"tempo",r);l<=1/32?(o="noteheads.quarter",s="flags.u32nd",i=0):l<=1/16?(o="noteheads.quarter",s="flags.u16th",i=0):l<=3/32?(o="noteheads.quarter",s="flags.u16nd",i=1):l<=1/8?(o="noteheads.quarter",s="flags.u8th",i=0):l<=3/16?(o="noteheads.quarter",s="flags.u8th",i=1):l<=1/4?(o="noteheads.quarter",i=0):l<=3/8?(o="noteheads.quarter",i=1):l<=.5?(o="noteheads.half",i=0):l<=3/4?(o="noteheads.half",i=1):l<=1?(o="noteheads.whole",i=0):l<=1.5?(o="noteheads.whole",i=1):l<=2?(o="noteheads.dbl",i=0):(o="noteheads.dbl",i=1);var u,d=e(h,o,{verticalPos:0},{dir:"up",flag:s,dot:i,scale:c}).notehead;if(h.addHead(d),"noteheads.whole"!==o&&"noteheads.dbl"!==o){var f=d.dx+d.w;u=new a(null,f,0,.25,{type:"stem",pitch2:3.75,linewidth:-.6}),h.addRight(u)}return h},e.exports=i},1989:e=>{var t=function(e){this.type="TieElem",this.anchor1=e.anchor1,this.anchor2=e.anchor2,e.isGrace&&(this.isGrace=!0),e.fixedY&&(this.fixedY=!0),e.stemDir&&(this.stemDir=e.stemDir),void 0!==e.voiceNumber&&(this.voiceNumber=e.voiceNumber),void 0!==e.style&&(this.dotted=!0),this.internalNotes=[]};t.prototype.addInternalNote=function(e){this.internalNotes.push(e)},t.prototype.setEndAnchor=function(e){this.anchor2=e},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(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.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},374:e=>{var t=function(e,t,r){this.type="TripletElem",this.anchor1=t,this.number=e,this.durationClass=("d"+Math.round(1e3*t.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&&(this.endingHeightAbove=4)},e.exports=t},7849:e=>{var t=function(e,t){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=e,this.voicetotal=t,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,r=0;t&&r<this.children.length;r++)this.children[r].type.indexOf("staff-extra")<0&&"tempo"!==this.children[r].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 r=t.specialY;r||(r=t),r[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],r[e]):this.specialY[e]=r[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},3419:(e,t,r)=>{var n=r(3400),a=r(4046);const i=r(2004);e.exports=function(e,t,r,s,o,c,l){for(var h=0;h<r.chord.length;h++)for(var u=r.chord[h].position,d=r.chord[h].rel_position,f=r.chord[h].name.split("\n"),p=f.length-1;p>=0;p--){var m,g,v,b=f[p],y=0;"left"===u||"right"===u||"below"===u||"above"===u||d?(g="annotationfont",v="annotation"):(g="gchordfont",v="chord",l&&(b=i(b)));var w=e.attr(g,v),x=e.calc(b,g,v),k=x.width,C=x.height/a.STEP;switch(u){case"left":y=-(s+=k+7),m=r.averagepitch,t.addExtra(new n(b,y,k+4,m,{type:"text",height:C,dim:w,position:"left"}));break;case"right":y=o+=4,m=r.averagepitch,t.addRight(new n(b,y,k+4,m,{type:"text",height:C,dim:w,position:"right"}));break;case"below":t.addRight(new n(b,0,0,void 0,{type:"text",position:"below",height:C,dim:w,realWidth:k}));break;case"above":t.addRight(new n(b,0,0,void 0,{type:"text",position:"above",height:C,dim:w,realWidth:k}));break;default:if(d){var T=d.y+3*a.STEP;t.addRight(new n(b,y+d.x,0,r.minpitch+T/a.STEP,{position:"relative",type:"text",height:C,dim:w}))}else{var _="above";r.positioning&&r.positioning.chordPosition&&(_=r.positioning.chordPosition),"hidden"!==_&&t.addCentered(new n(b,c/2,k,void 0,{type:"chord",position:_,height:C,dim:w,realWidth:k}))}}}return{roomTaken:s,roomTakenRight:o}}},1829:e=>{e.exports=function(e,t,r){if(t.text){t.marginLeft||(t.marginLeft=0),t.klass||(t.klass=""),t.anchor||(t.anchor="start"),t.info||(t.info={startChar:-2,endChar:-2}),t.marginTop&&e.push({move:t.marginTop});var n={left:t.marginLeft,text:t.text,font:t.font,anchor:t.anchor,startChar:t.info.startChar,endChar:t.info.endChar};t.absElemType&&(n.absElemType=t.absElemType),t.inGroup||(n.klass=t.klass),t.name&&(n.name=t.name),e.push(n);var a=r.calc("A",t.font,t.klass),i=t.text.split("\n").length;if("\n"===t.text[t.text.length-1]&&i--,!t.noMove){var s=1.1*a.height*i;e.push({move:Math.round(s)}),t.marginBottom&&e.push({move:t.marginBottom})}}}},7340:(e,t,r)=>{const n=r(1829);function a(e,t,r,n,a,i){this.rows=[],e.unalignedWords&&e.unalignedWords.length>0&&this.unalignedWords(e.unalignedWords,n,a,i),this.extraText(e,n,a,i),e.footer&&r&&this.footer(e.footer,t,n,i)}a.prototype.unalignedWords=function(e,t,r,a){var i="meta-bottom unaligned-words",s="wordsfont";this.rows.push({startGroup:"unalignedWords",klass:"abcjs-meta-bottom abcjs-unaligned-words",name:"words"});var o=a.calc("i",s,i);this.rows.push({move:r.words});for(var c=0;c<e.length;c++)if(""===e[c])this.rows.push({move:o.height});else if("string"==typeof e[c])n(this.rows,{marginLeft:t+50,text:e[c],font:s,klass:i,inGroup:!0,name:"words"},a);else{for(var l=0,h=0,u=0;u<e[c].length;u++){var d=e[c][u],f=d.font?d.font:s;this.rows.push({left:t+50+h,text:d.text,font:f,anchor:"start"});var p=a.calc(d.text,s,i);l=Math.max(l,p.height),h+=p.width," "===d.text[d.text.length-1]&&(h+=o.width)}this.rows.push({move:l})}this.rows.push({move:2*o.height}),this.rows.push({endGroup:"unalignedWords",absElemType:"unalignedWords"})},a.prototype.extraText=function(e,t,r,a){var i="";e.book&&(i+="Book: "+e.book+"\n"),e.source&&(i+="Source: "+e.source+"\n"),e.discography&&(i+="Discography: "+e.discography+"\n"),e.notes&&(i+="Notes: "+e.notes+"\n"),e.transcription&&(i+="Transcription: "+e.transcription+"\n"),e.history&&(i+="History: "+e.history+"\n"),e["abc-copyright"]&&(i+="Copyright: "+e["abc-copyright"]+"\n"),e["abc-creator"]&&(i+="Creator: "+e["abc-creator"]+"\n"),e["abc-edited-by"]&&(i+="Edited By: "+e["abc-edited-by"]+"\n"),i.length>0&&n(this.rows,{marginLeft:t,text:i,font:"historyfont",klass:"meta-bottom extra-text",marginTop:r.info,absElemType:"extraText",name:"description"},a)},a.prototype.footer=function(e,t,r,a){var i="header meta-bottom",s="footerfont";this.rows.push({startGroup:"footer",klass:i}),n(this.rows,{marginLeft:r,text:e.left,font:s,klass:i,name:"footer"},a),n(this.rows,{marginLeft:r+t/2,text:e.center,font:s,klass:i,anchor:"middle",name:"footer"},a),n(this.rows,{marginLeft:r+t,text:e.right,font:s,klass:i,anchor:"end",name:"footer"},a)},e.exports=a},1693:e=>{e.exports=function(e){for(var t=0,r=0;r<e.voices.length;r++){var n=e.voices[r].staff;e.voices[r].duplicate||(t+=n.top,n.bottom<0&&(t+=-n.bottom))}return t}},4035:e=>{var t=function(e){this.shouldAddClasses=e.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),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 r=0;r<t.length;r++)0!==t[r].indexOf("abcjs-")&&t[r].length>0&&(t[r]="abcjs-"+t[r])}return t.join(" ")},e.exports=t},8860:(e,t,r)=>{var n=r(3386),a=r(8678),i=r(4046),s=r(8877),o=r(8914);e.exports=function(e,t,r,c,l){if(!t.invisible){var h=t.children.length>0&&"TempoElement"===t.children[0].type;t.elemset=[],o.beginGroup(e.paper,e.controller);for(var u=0;u<t.children.length;u++){var d=t.children[u];if("TempoElement"===d.type)n(e,d);else a(e,d,r)}var f=t.type;if(("note"===t.type||"rest"===t.type)&&(t.counters=e.controller.classes.getCurrent(),f=(f+=" d"+Math.round(1e3*t.durationClass)/1e3).replace(/\./g,"-"),t.abcelem.pitches))for(var p=0;p<t.abcelem.pitches.length;p++)f+=" p"+t.abcelem.pitches[p].pitch;var m=o.endGroup(f,t.type);if(m)if(h)t.startChar=t.abcelem.startChar,t.endChar=t.abcelem.endChar,c.add(t,m,!1,l);else{t.elemset.push(m);var g=!1;"note"!==t.type&&"tabNumber"!==t.type||(g=!0),c.add(t,m,g,l)}else t.elemset.length>0&&c.add(t,t.elemset[0],"note"===t.type,l);if(t.klass&&s(t.elemset,"mark","","#00ff00"),t.hint&&s(t.elemset,"abcjs-hint","",null),t.abcelem.abselem=t,t.heads&&t.heads.length>0){t.notePositions=[];for(var v=0;v<t.heads.length;v++)t.notePositions.push({x:t.heads[v].x+t.heads[v].w/2,y:l.zero-t.heads[v].pitch*i.STEP})}}}},6176:(e,t,r)=>{var n=r(4273),a=r(3578);function i(e,t,r,n,i,s){r=a(e.calcY(r)),i=a(e.calcY(i)),t=a(t),n=a(n);var o=a(r+s);return"M"+t+" "+r+" L"+n+" "+i+"L"+n+" "+a(i+s)+" L"+t+" "+o+"z"}function s(e,t,r,n,a){return(a-r)/(n-t)}function o(e,t,r,n){return t+(n-e)*r}e.exports=function(e,t){if(0!==t.beams.length){for(var r="",a=0;a<t.beams.length;a++){var c=t.beams[a];if(c.split){for(var l=s(e,c.startX,c.startY,c.endX,c.endY),h=[],u=0;u<c.split.length;u+=2)h.push([c.split[u],c.split[u+1]]);for(u=0;u<h.length;u++){var d=o(c.startX,c.startY,l,h[u][0]),f=o(c.startX,c.startY,l,h[u][1]);r+=i(e,h[u][0],d,h[u][1],f,c.dy)}}else r+=i(e,c.startX,c.startY,c.endX,c.endY,c.dy)}var p=("abcjs-d"+t.duration).replace(/\./g,"-"),m=e.controller.classes.generate("beam-elem "+p);return[n(e,{path:r,stroke:"none",fill:e.foregroundColor,class:m})]}}},7366:(e,t,r)=>{var n=r(7406),a=r(4046),i=r(3080);function s(e,t,r,a){return n("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+r[0],t+a[0],e+r[1],t+a[1],e+r[2],t+a[2],e+r[3],t+a[3],e+r[4],t+a[4],e+r[5],t+a[5],e+r[6],t+a[6])}var o=function(e,t,r,o,c,l,h){var u;if(l){e.paper.openGroup({klass:e.controller.classes.generate("staff-extra voice-name"),"data-name":c});var d=r+(o-r)/2;d-=e.controller.getTextSize.baselineToCenter(l,"voicefont","staff-extra voice-name",0,1),i(e,{x:e.padding.left,y:d,text:l,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return"brace"===c?u=function(e,t,r,n,a){var i=n-r,o=s(t,r,[7.5,-8,21,0,18.5,-10.5,7.5],[0,i/5.5,i/3.14,i/2,i/2.93,i/4.88,0]);return o+=s(t,r,[0,17.5,-7.5,6.6,-5,20,0],[i/2,i/1.46,i/1.22,i,i/1.19,i/1.42,i/2]),e.paper.path({path:o,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(a),"data-name":a})}(e,t,r,o,c):"bracket"===c&&(u=function(e,t,r,i,s){t+=a.STEP;var o=.75*a.STEP,c=.75*a.STEP,l=i-r,h=n("M %f %f l %f %f l %f %f l %f %f z",t,r-c,0,l+2*c,o,0,0,-(l+2*c)),u=2*a.STEP,d=a.STEP;return h+=n("M %f %f q %f %f %f %f q %f %f %f %f z",t+o,r-c,.6*u,.2*d,u,-d,.1*-u,.3*d,-u,d+a.STEP),h+=n("M %f %f q %f %f %f %f q %f %f %f %f z",t+o,r+c+l,.6*u,.2*-d,u,d,.1*-u,.3*-d,-u,-d-a.STEP),e.paper.path({path:h,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(s),"data-name":s})}(e,t,r,o,c)),l&&(u=e.paper.closeGroup()),h.wrapSvgEl({el_type:c,startChar:-1,endChar:-1},u),u};e.exports=function(e,t,r){var n=t.startVoice.staff.absoluteY-10*a.STEP;return t.endVoice&&t.endVoice.staff?t.endY=t.endVoice.staff.absoluteY-2*a.STEP:t.lastContinuedVoice&&t.lastContinuedVoice.staff?t.endY=t.lastContinuedVoice.staff.absoluteY-2*a.STEP:t.endY=t.startVoice.staff.absoluteY-2*a.STEP,o(e,t.x,n,t.endY,t.type,t.header,r)}},2851:(e,t,r)=>{var n=r(7406),a=r(4273),i=r(3578);var s=function(e,t,r,s,o,c,l){t=i(t),r=i(r),s=i(s),o=i(o),c=i(c),l=i(l);var h=n("M %f %f L %f %f M %f %f L %f %f",c,t,l,r,c,s,l,o);return a(e,{path:h,highlight:"stroke",stroke:e.foregroundColor,class:e.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})};e.exports=function(e,t,r){void 0===t.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var n,a=e.calcY(t.pitch)+4,i=t.anchor1?t.anchor1.x:0,o=t.anchor2?t.anchor2.x:800;return n="<"===t.dir?s(e,a+4,a,a+4,a+8,i,o):s(e,a,a+4,a+8,a+4,i,o),r.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},n),[n]}},1589:e=>{e.exports=function(e,t,r){var n=e.paper.rectBeneath(t);return r&&e.paper.text(r,{x:0,y:t.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),n}},6142:(e,t,r)=>{var n=r(7647),a=r(54),i=r(9574),s=r(4046),o=r(6469);function c(e,t,r,a){n(e,t,r,a);var i=t.height*s.STEP;return e.y+=i,t}function l(e,t,r,n){var a=-(r.staffs[r.staffs.length-1].bottom-2),i=(n.staffs[0].top-10+a)*s.STEP;i<t&&e.moveY(t-i)}e.exports=function(e,t,r,n,s,h,u,d,f,p){var m=new o(e.paper,d,f);e.moveY(e.padding.top),i(e,r.topText,m),e.moveY(e.spacing.music);for(var g=[],v=0;v<r.lines.length;v++){t.incrLine();var b=r.lines[v];if(b.staff){b.vskip&&e.moveY(b.vskip),g.length>=1&&l(e,e.spacing.staffSeparation,g[g.length-1],b.staffGroup);var y=c(e,b.staffGroup,m,v);y.line=p+v,g.push(y)}else b.nonMusic&&i(e,b.nonMusic,m)}return t.reset(),e.moveY(24),i(e,r.bottomText,m),a(e,s,u,h),{staffgroups:g,selectables:m.getElements()}}},4301:(e,t,r)=>{var n=r(7080);e.exports=function(e,t,r){void 0===t.pitch&&window.console.error("Dynamic Element y-coordinate not set.");var a=n(e,t.anchor.x,t.pitch,t.dec,{scalex:1,scaley:1,klass:e.controller.classes.generate("decoration dynamics"),fill:e.foregroundColor,stroke:"none",name:"dynamics"});return r.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1,decoration:t.dec},a),[a]}},8193:(e,t,r)=>{var n=r(7406),a=r(3080),i=r(4273),s=r(3578);e.exports=function(e,t,r,o,c){void 0===t.pitch&&window.console.error("Ending Element y-coordinate not set.");var l=s(e.calcY(t.pitch)),h="";t.anchor1&&(r=s(t.anchor1.x+t.anchor1.w),h+=n("M %f %f L %f %f ",r,l,r,s(l+20))),t.anchor2&&(o=s(t.anchor2.x),h+=n("M %f %f L %f %f ",o,l,o,s(l+20))),h+=n("M %f %f L %f %f ",r,l,o,l),e.paper.openGroup({klass:e.controller.classes.generate("ending"),"data-name":"ending"}),i(e,{path:h,stroke:e.foregroundColor,fill:e.foregroundColor,"data-name":"line"}),t.anchor1&&a(e,{x:s(r+5),y:s(e.calcY(t.pitch-.5)),text:t.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:t.text});var u=e.paper.closeGroup();return c.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},u),[u]}},8914:(e,t,r)=>{var n=r(3578);function a(){this.ingroup=!1}a.prototype.beginGroup=function(e,t){this.paper=e,this.controller=t,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},a.prototype.isInGroup=function(){return this.ingroup},a.prototype.addPath=function(e){if(0!==(e=e||[]).length){e[0][0]="m",e[0][1]=n(e[0][1]-this.lastM[0]),e[0][2]=n(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,r=e.length;t<r;t++)"m"===e[t][0]&&(this.lastM[0]+=e[t][1],this.lastM[1]+=e[t][2]),this.path.push(e[t])}},a.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 i=new a;e.exports=i},9574:(e,t,r)=>{var n=r(2856),a=r(3080);e.exports=function(e,t,r){for(var i=0;i<t.rows.length;i++){var s=t.rows[i];if(s.absmove)e.absolutemoveY(s.absmove);else if(s.move)e.moveY(s.move);else if(s.text){var o=s.left?s.left:0,c=a(e,{x:o,y:e.y,text:s.text,type:s.font,klass:s.klass,name:s.name,anchor:s.anchor});s.absElemType&&r.wrapSvgEl({el_type:s.absElemType,name:s.name,startChar:s.startChar,endChar:s.endChar,text:s.text},c)}else if(s.separator)n(e,s.separator);else if(s.startGroup)e.paper.openGroup({klass:s.klass,"data-name":s.name});else if(s.endGroup){var l=e.paper.closeGroup();s.absElemType&&r.wrapSvgEl({el_type:s.absElemType,name:s.name,startChar:s.startChar,endChar:s.endChar,text:""},l)}}}},9054:(e,t,r)=>{var n=r(7406),a=r(3578);e.exports=function(e,t,r,i,s,o,c){c||(c=.35);var l=e.foregroundColor;t=a(t),r=a(r);var h=a(i-c),u=a(i+c),d={path:n("M %f %f L %f %f L %f %f L %f %f z",t,h,r,h,r,u,t,u),stroke:"none",fill:l};return o&&(d["data-name"]=o),s&&(d.class=s),e.paper.pathToBack(d)}},4273:e=>{e.exports=function(e,t,r){return e.paper.path(t)}},9255:(e,t,r)=>{var n=r(8914),a=r(3578);e.exports=function(e,t,r,i,s,o,c){if(r<0||i<s){var l=a(s);s=a(i),i=l}else i=a(i),s=a(s);t=a(t);for(var h=a(t+r),u=[["M",t,i],["L",t,s],["L",h,s],["L",h,i],["z"]],d={path:""},f=0;f<u.length;f++)d.path+=u[f].join(" ");return o&&(d.class=o),c&&(d["data-name"]=c),n.isInGroup()||(d.stroke="none",d.fill=e.foregroundColor),e.paper.pathToBack(d)}},7080:(e,t,r)=>{var n=r(3080),a=r(4438),i=r(8914);function s(e,t,r){var n=r;return"f"===e&&"f"===t&&(n=2*n/3),"p"===e&&"p"===t&&(n=5*n/6),"f"===e&&"z"===t&&(n=5*n/8),n}e.exports=function(e,t,r,o,c){var l,h;if(!o)return null;if(o.length>1&&o.indexOf(".")<0){e.paper.openGroup({"data-name":c.name,klass:c.klass});for(var u=0,d=0;d<o.length;d++){var f=o.charAt(d);h=a.getYCorr(f),(l=a.printSymbol(t+u,e.calcY(r+h),f,e.paper,{stroke:c.stroke,fill:c.fill,"data-name":c.name}))?d<o.length-1&&(u+=s(f,o.charAt(d+1),a.getSymbolWidth(f))):n(e,{x:t,y:e.y,text:"no symbol:"+o,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}return e.paper.closeGroup()}return h=a.getYCorr(o),(l=i.isInGroup()?a.printSymbol(t,e.calcY(r+h),o,e.paper,{"data-name":c.name}):a.printSymbol(t,e.calcY(r+h),o,e.paper,{klass:c.klass,stroke:c.stroke,fill:c.fill,"data-name":c.name}))?l:(n(e,{x:t,y:e.y,text:"no symbol:"+o,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}},8678:(e,t,r)=>{var n=r(3080),a=r(9255),i=r(9841),s=r(7080);e.exports=function(e,t,r){void 0===t.pitch&&window.console.error(t.type+" Relative Element y-coordinate not set.");var o=e.calcY(t.pitch);switch(t.type){case"symbol":if(null===t.c)return null;var c="symbol";t.klass&&(c+=" "+t.klass),t.graphelem=s(e,t.x,t.pitch,t.c,{scalex:t.scalex,scaley:t.scaley,klass:e.controller.classes.generate(c),name:t.name});break;case"debug":t.graphelem=n(e,{x:t.x,y:e.calcY(15),text:""+t.c,type:"debugfont",klass:e.controller.classes.generate("debug-msg"),anchor:"start",centerVertically:!1,dim:t.dim},!1);break;case"tabNumber":var l="tabnumberfont",h="tab-number";t.isGrace&&(l="tabgracefont",o+=2.5,h="tab-grace"),t.graphelem=n(e,{x:t.x,y:o,text:""+t.c,type:l,klass:e.controller.classes.generate(h),anchor:"middle",centerVertically:!1,dim:t.dim,cursor:"default"},!1);break;case"barNumber":t.graphelem=n(e,{x:t.x,y:o,text:""+t.c,type:"measurefont",klass:e.controller.classes.generate("bar-number"),anchor:"middle",dim:t.dim,name:"bar-number"},!0);break;case"lyric":t.graphelem=n(e,{x:t.x,y:o,text:t.c,type:"vocalfont",klass:e.controller.classes.generate("lyric"),anchor:"middle",dim:t.dim,name:"lyric"},!1);break;case"chord":t.graphelem=n(e,{x:t.x,y:o,text:t.c,type:"gchordfont",klass:e.controller.classes.generate("chord"),anchor:"middle",dim:t.dim,lane:t.getLane(),name:"chord"},!1);break;case"decoration":t.graphelem=n(e,{x:t.x,y:o+6,text:t.c,type:"annotationfont",klass:e.controller.classes.generate("annotation"),anchor:"middle",centerVertically:!0,dim:t.dim},!1);break;case"text":t.graphelem=n(e,{x:t.x,y:o,text:t.c,type:"annotationfont",klass:e.controller.classes.generate("annotation"),anchor:"start",centerVertically:t.centerVertically,dim:t.dim,lane:t.getLane(),name:"annotation"},!1);break;case"multimeasure-text":t.graphelem=n(e,{x:t.x+t.w/2,y:o,text:t.c,type:"tempofont",klass:e.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:t.dim},!1);break;case"part":t.graphelem=n(e,{x:t.x,y:o,text:t.c,type:"partsfont",klass:e.controller.classes.generate("part"),anchor:"start",dim:t.dim,name:t.c},!0);break;case"bar":t.graphelem=a(e,t.x,t.linewidth,o,r||e.calcY(t.pitch2),null,"bar");break;case"stem":t.graphelem=a(e,t.x,t.linewidth,o,e.calcY(t.pitch2),"abcjs-stem","stem");break;case"ledger":t.graphelem=i(e,t.x,t.x+t.w,t.pitch,"abcjs-ledger","ledger")}return 1!==t.scalex&&t.graphelem&&function(e,t,r,n,a,i){e.setAttributeOnElement(t,{style:"transform:scale("+r+","+n+");transform-origin:"+a+"px "+i+"px;"})}(e.paper,t.graphelem,t.scalex,t.scaley,t.x,o),t.graphelem}},3578:e=>{e.exports=function(e){return parseFloat(e.toFixed(2))}},6469:(e,t,r)=>{var n=r(6389),a=r(3277);function i(e,t,r){this.elements=[],this.paper=e,this.tuneNumber=r,this.selectTypes=t}i.prototype.getElements=function(){return this.elements},i.prototype.add=function(e,t,r,n){if(this.canSelect(e)){var a;a=void 0===this.selectTypes?{selectable:!1,"data-index":this.elements.length}:{selectable:!0,tabindex:0,"data-index":this.elements.length},this.paper.setAttributeOnElement(t,a);var i={absEl:e,svgEl:t,isDraggable:r};void 0!==n&&(i.staffPos=n),this.elements.push(i)}},i.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)))},i.prototype.wrapSvgEl=function(e,t){var r={tuneNumber:this.tuneNumber,abcelem:e,elemset:[t],highlight:n,unhighlight:a};this.add(r,t,!1)},e.exports=i},2856:e=>{e.exports=function(e,t){var r=Math.round(e.y),n=(e.controller.width-t)/2,a=n+t,i="M "+n+" "+r+" L "+a+" "+r+" L "+a+" "+(r+1)+" L "+n+" "+(r+1)+" L "+n+" "+r+" z";e.paper.pathToBack({path:i,stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:e.controller.classes.generate("defined-text")})}},54:e=>{e.exports=function(e,t,r,n){var a=(t+e.padding.right)*r,i=(e.y+e.padding.bottom)*r;e.isPrint&&(i=Math.max(i,1056));var s="Sheet Music";e.abctune&&e.abctune.metaText&&e.abctune.metaText.title&&(s+=' for "'+e.abctune.metaText.title+'"'),e.paper.setTitle(s);var o=e.ariaLabel?e.ariaLabel:s;e.paper.setAttribute("aria-label",o),e.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;"].join(" ")+"}");var c={overflow:"hidden"};"resize"===n?e.paper.setResponsiveWidth(a,i):(c.width="",c.height=i+"px",r<1?(c.width=a+"px",e.paper.setSize(a/r,i/r)):e.paper.setSize(a,i)),e.paper.setScale(r),e.paper.setParentStyles(c)}},7406:e=>{e.exports=function(){for(var e,t,r,n,a,i=0,s=arguments[i++],o=[];s;){if(t=/^[^\x25]+/.exec(s))o.push(t[0]);else if(t=/^\x25{2}/.exec(s))o.push("%");else{if(!(t=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(s)))throw"Huh ?!";if(null==(e=arguments[t[1]||i++])||null==e)throw"Too few arguments.";if(/[^s]/.test(t[7])&&"number"!=typeof e)throw"Expecting number but found "+typeof e;switch(t[7]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e);break;case"e":e=t[6]?e.toExponential(t[6]):e.toExponential();break;case"f":e=t[6]?parseFloat(e).toFixed(t[6]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&t[6]?e.substring(0,t[6]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(t[7])&&t[2]&&e>0?"+"+e:e,n=t[3]?"0"==t[3]?"0":t[3].charAt(1):" ",a=t[5]-String(e).length,r=t[5]?str_repeat(n,a):"",o.push(t[4]?e+r:r+e)}s=s.substring(t[0].length)}return o.join("")}},7647:(e,t,r)=>{var n=r(4046),a=r(7366),i=r(365),s=r(5123),o=r(1589),c=r(9255),l=r(9574);function h(e,t,r,i,s){if(r)for(var o=0;o<r.length;o++)r[o].isStartVoice(i)&&(r[o].startY=t-10*n.STEP,r[o].elemset=a(e,r[o],s))}function u(e,t,r){for(var a=0;a<r.length;a++)for(var i=t[r[a]].children,s=0;s<i.length;s++){var c=i[s],l=c.getFixedCoords();if(!c.invisible&&void 0!==l.t&&void 0!==l.b){var h=(l.t-l.b)*n.STEP;o(e,{x:l.x,y:e.calcY(l.t),width:l.w,height:h,fill:"#88e888","fill-opacity":.4,stroke:"#4aa93d","stroke-opacity":.8});for(var u=0;u<c.children.length;u++){var d=c.children[u],f=d.getChordDim();if(f){var p=e.calcY(d.pitch);p+=d.dim.font.size*d.getLane(),o(e,{x:f.left,y:p,width:f.right-f.left,height:d.dim.font.size,fill:"none",stroke:"#4aa93d","stroke-opacity":.8})}}}}}e.exports=function(e,t,r,a){var d;!function(e,t){var r=Math.round(e.y);e.paper.pathToBack({path:"M 0 "+r+" L 0 0",stroke:"none",fill:"none","stroke-opacity":0,"fill-opacity":0,class:e.controller.classes.generate(t),"data-vertical":r})}(e,"abcjs-top-of-system");for(var f,p,m=e.y,g=0;g<t.staffs.length;g++){var v=t.staffs[g];e.moveY(n.STEP,v.top),v.absoluteY=e.y,e.showDebug&&(e.showDebug.indexOf("box")>=0&&u(e,t.voices,v.voices),e.showDebug.indexOf("grid")>=0&&(e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:m,y2:m,stroke:"#0000ff"}),o(e,{x:e.padding.left,y:e.calcY(v.originalTop),width:e.controller.width,height:e.calcY(v.originalBottom)-e.calcY(v.originalTop),fill:e.foregroundColor,stroke:e.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),d=0,A(v,"chordHeightAbove"),A(v,"chordHeightBelow"),A(v,"dynamicHeightAbove"),A(v,"dynamicHeightBelow"),A(v,"endingHeightAbove"),A(v,"lyricHeightAbove"),A(v,"lyricHeightBelow"),A(v,"partHeightAbove"),A(v,"tempoHeightAbove"),A(v,"volumeHeightAbove"),A(v,"volumeHeightBelow"))),e.moveY(n.STEP,-v.bottom),e.showDebug&&e.showDebug.indexOf("grid")>=0&&e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:e.y,y2:e.y,stroke:"#0000aa"})}for(var b=2,y=0,w=0;w<t.voices.length;w++){var x=t.voices[w].staff,k=t.voices[w].tabNameInfos;if(e.y=x.absoluteY,e.controller.classes.incrVoice(),!t.voices[w].duplicate){if(f||(f=e.calcY(10)),p=e.calcY(b),0!==x.lines){x.linePitch&&(b=x.linePitch),e.controller.classes.newMeasure();var C=s(e,t.startx,t.w,x.lines,x.linePitch,x.dy);p=C[1],x.bottomLine=p,x.topLine=C[0],x.hasTab&&(y=x.topLine),x.hasStaff&&(y=x.hasStaff.topLine,t.voices[w].barto=!0,t.voices[w].topLine=f)}h(e,x.absoluteY,t.brace,w,r),h(e,x.absoluteY,t.bracket,w,r)}i(e,t.voices[w],y,r,{top:m,zero:e.y,height:t.height*n.STEP});var T=0;if(k){var _={rows:[]};_.rows.push({absmove:p+2});_.rows.push({left:t.startx+8,text:k.name,font:"tablabelfont",klass:"text instrument-name",anchor:"start"}),_.rows.push({move:k.textSize.height}),l(e,_),T=k.textSize.height}e.controller.classes.newMeasure(),t.voices[w].duplicate||(y=e.calcY(2+T))}e.controller.classes.newMeasure();var S=t.staffs.length;function A(t,r){var a=["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(t.positionY[r]){var i=t.specialY[r]*n.STEP;"chordHeightAbove"===r&&t.specialY.chordLines&&t.specialY.chordLines.above&&(i*=t.specialY.chordLines.above),"chordHeightBelow"===r&&t.specialY.chordLines&&t.specialY.chordLines.below&&(i*=t.specialY.chordLines.below),o(e,{x:e.padding.left,y:e.calcY(t.positionY[r]),width:e.controller.width,height:i,fill:a[d],stroke:a[d],"fill-opacity":.4,"stroke-opacity":.4},r.substr(0,4)),(d+=1)>6&&(d=0)}}S>1&&(f=t.staffs[0].topLine,p=t.staffs[S-1].bottomLine,c(e,t.startx,.6,f,p,null)),e.y=m}},9841:(e,t,r)=>{var n=r(9054);e.exports=function(e,t,r,a,i,s,o){var c=e.calcY(a);return n(e,t,r,c,i,s,o)}},5123:(e,t,r)=>{var n=r(9841);e.exports=function(e,t,r,a,i,s){var o="abcjs-top-line",c=2;i&&(c=i),e.paper.openGroup({prepend:!0,klass:e.controller.classes.generate("abcjs-staff")});var l=0,h=0;if(1===a)n(e,t,r,6,o);else for(var u=a-1;u>=0;u--){var d=(u+1)*c;h=e.calcY(d),0==l&&(l=h),n(e,t,r,d,o,null,s),o=void 0}return e.paper.closeGroup(),[l,h]}},3386:(e,t,r)=>{var n=r(8678),a=r(3080);e.exports=function(e,t){var r=t.x;void 0===t.pitch&&window.console.error("Tempo Element y-coordinate not set."),t.tempo.el_type="tempo";var i,s=e.calcY(t.pitch)+2;if(t.tempo.preString){i=a(e,{x:r,y:s,text:t.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,"dominant-baseline":"ideographic",name:"pre"},!0);var o=e.controller.getTextSize.calc(t.tempo.preString,"tempofont","tempo",i).width;r+=o+o/t.tempo.preString.length}if(t.note){t.note.setX(r);for(var c=0;c<t.note.children.length;c++)n(e,t.note.children[c],r);r+=t.note.w+5;var l="= "+t.tempo.bpm;i=a(e,{x:r,y:s,text:l,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"beats"});var h=e.controller.getTextSize.calc(l,"tempofont","tempo",i).width;r+=h+h/l.length}t.tempo.postString&&a(e,{x:r,y:s,text:t.tempo.postString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"post"},!0)}},3080:(e,t,r)=>{var n=r(3578);e.exports=function(e,t,r){var a,i=t.y;if(t.lane){var s=.25*t.dim.font.size;i+=(t.dim.font.size+s)*t.lane}t.dim?(a=t.dim).attr.class=t.klass:a=e.controller.getFontAndAttr.calc(t.type,t.klass),t.anchor&&(a.attr["text-anchor"]=t.anchor),a.attr.x=t.x,a.attr.y=i,t.centerVertically||(a.attr.y+=a.font.size),"debugfont"===t.type&&(console.log("Debug msg: "+t.text),a.attr.stroke="#ff0000"),t.cursor&&(a.attr.cursor=t.cursor);var o=t.text.replace(/\n\n/g,"\n \n");o=o.replace(/^\n/," \n"),a.font.box&&(r||e.paper.openGroup({klass:a.attr.class,fill:e.foregroundColor,"data-name":t.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),t.noClass&&delete a.attr.class,a.attr.x=n(a.attr.x),a.attr.y=n(a.attr.y),t.name&&(a.attr["data-name"]=t.name);var c=e.paper.text(o,a.attr);if(a.font.box){var l=c.getBBox(),h=0;"middle"===a.attr["text-anchor"]?h=l.width/2+a.font.padding:"end"===a.attr["text-anchor"]&&(h=l.width+2*a.font.padding);var u=0;t.centerVertically&&(u=l.height-a.font.padding),e.paper.rect({"data-name":"box",x:Math.round(t.x-h),y:Math.round(i-u),width:Math.round(l.width+2*a.font.padding),height:Math.round(l.height+2*a.font.padding)}),r||(c=e.paper.closeGroup())}return c}},5374:(e,t,r)=>{var n=r(7406),a=r(3578);var i=function(e,t,r){e.anchor1&&e.anchor2?e.anchor1.pitch===e.anchor2.pitch&&0===e.internalNotes.length?e.isTie=!0:e.isTie=!1:e.isTie=!0,e.isTie?(e.calcTieDirection(),e.calcX(t,r),e.calcTieY()):(e.calcSlurDirection(),e.calcX(t,r),e.calcSlurY()),e.avoidCollisionAbove()},s=function(e,t,r,i,s,o,c,l,h){var u=l?1.2:1.5;t=a(t+6),r=a(r+4),i+=o?u:-u,s+=o?u:-u;var d,f=a(e.calcY(i)),p=a(e.calcY(s)),m=r-t,g=p-f,v=Math.sqrt(m*m+g*g),b=m/v,y=g/v,w=v/3.5,x=l?10:25,k=(o?-1:1)*Math.min(x,Math.max(4,w)),C=a(t+w*b-k*y),T=a(f+w*y+k*b),_=a(r-w*b-k*y),S=a(p-w*y+k*b);if(c?c+=" slur":c="slur",c+=l?" tie":" legato",h){c+=" dotted";var A=n("M %f %f C %f %f %f %f %f %f",t,f,C,T,_,S,r,p);d=e.paper.path({path:A,stroke:e.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:e.controller.classes.generate(c),"data-name":l?"tie":"slur"})}else{var E=n("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t,f,C,T,_,S,r,p,a(_-2*y),a(S+2*b),a(C-2*y),a(T+2*b),t,f);d=e.paper.path({path:E,stroke:"none",fill:e.foregroundColor,class:e.controller.classes.generate(c),"data-name":l?"tie":"slur"})}return d};e.exports=function(e,t,r,n,a){i(t,r,n);var o="";t.anchor1?o+="abcjs-start-m"+t.anchor1.parent.counters.measure+"-n"+t.anchor1.parent.counters.note:o+="abcjs-start-edge",t.anchor2?o+=" abcjs-end-m"+t.anchor2.parent.counters.measure+"-n"+t.anchor2.parent.counters.note:o+=" abcjs-end-edge",t.hint&&(o="abcjs-hint");var c=t.fixedY?1.5:0,l=s(e,t.startX,t.endX,t.startY+c,t.endY+c,t.above,o,t.isTie,t.dotted);return a.wrapSvgEl({el_type:"slur",startChar:-1,endChar:-1},l),[l]}},8640:(e,t,r)=>{var n=r(7406),a=r(3080),i=r(4273),s=r(3578);function o(e,t,r,a){return n("M %f %f L %f %f",s(e),s(t),s(r),s(a))}e.exports=function(e,t,r){e.paper.openGroup({klass:e.controller.classes.generate("triplet "+t.durationClass),"data-name":"triplet"}),t.hasBeam||function(e,t,r,n,a){r=e.calcY(r),a=e.calcY(a);var s=5,c="";c+=o(t,r,t,r+s),c+=o(n,a,n,a+s);var l=t+(n-t)/2,h=8,u=(a-r)/(n-t),d=l-h;c+=o(t,r,d,r+(d-t)*u);var f=l+h;c+=o(f,r+(f-t)*u,n,a),i(e,{path:c,stroke:e.foregroundColor,"data-name":"triplet-bracket"})}(e,t.anchor1.x,t.startNote,t.anchor2.x+t.anchor2.w,t.endNote),a(e,{x:t.xTextPos,y:e.calcY(t.yTextPos-1),text:""+t.number,type:"tripletfont",anchor:"middle",centerVertically:!0,noClass:!0,name:""+t.number},!0);var n=e.paper.closeGroup();return r.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},n),n}},365:(e,t,r)=>{var n=r(2851),a=r(4301),i=r(8640),s=r(8193),o=r(5374),c=r(6176),l=r(3080),h=r(8860);function u(e){return"rest"===e.type&&!(!e.abcelem||!e.abcelem.rest||"spacer"===e.abcelem.rest.type)}e.exports=function(e,t,r,d,f){var p,m,g=t.w-1;if(e.staffbottom=t.staff.bottom,t.header){var v=l(e,{x:e.padding.left,y:e.calcY(t.headerPosition),text:t.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:t.header},v)}var b=!1;for(p=0;p<t.children.length;p++){"note"!==(m=t.children[p]).type&&"rest"!==m.type||(b=!0);var y=!1;"staff-extra"===m.type||e.controller.classes.isInMeasure()||(e.controller.classes.startMeasure(),y=!0),m.type,t.staff.isTabStaff&&(m.invisible=!1,"bar"==m.type&&m.abcelem.lastBar&&(r=t.topLine)),h(e,m,t.barto||p===t.children.length-1?r:0,d,f),("note"===m.type||u(m))&&e.controller.classes.incrNote(),"bar"===m.type&&!y&&b&&e.controller.classes.incrMeasure()}for(e.controller.classes.startMeasure(),p=0;p<t.beams.length;p++){var w=t.beams[p];"bar"===w?e.controller.classes.incrMeasure():c(e,w,d)}for(e.controller.classes.startMeasure(),p=0;p<t.otherchildren.length;p++)if("bar"===(m=t.otherchildren[p]))e.controller.classes.incrMeasure();else switch(m.type){case"CrescendoElem":m.elemset=n(e,m,d);break;case"DynamicDecoration":m.elemset=a(e,m,d);break;case"TripletElem":i(e,m,d);break;case"EndingElem":m.elemset=s(e,m,t.startx+10,g,d);break;case"TieElem":m.elemset=o(e,m,t.startx+10,g,d);break;default:console.log(m),h(e,m,t.startx+10,g,d,f)}}},2004:e=>{e.exports=function(e){for(var t=e.split("\n"),r=0;r<t.length;r++){var n=t[r].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/[ABCDEFG][#b]?)?/);n&&(t[r]=(n[1]?n[1]:"")+""+(n[2]?n[2]:"")+""+(n[3]?n[3]:""))}return t.join("\n")}},2480:e=>{e.exports=function(e,t,r,n,a,i){var s,o=e.text;this.rows=[],t&&this.rows.push({move:t});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:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),s=i.calc(o,"textfont","defined-text"),this.rows.push({move:s.height});else if(o){for(var l=0,h=n,u="textfont",d=0;d<o.length;d++)u=o[d].font?o[d].font:"textfont",this.rows.push({left:h,text:o[d].text,font:u,klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),h+=(s=i.calc(o[d].text,r.calc(u,"defined-text").font,"defined-text")).width+s.height/2,l=Math.max(l,s.height);this.rows.push({move:l})}else if(1===e.length){var f=a/2;this.rows.push({left:f,text:e[0].text,font:"textfont",klass:"defined-text",anchor:"middle",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),s=i.calc(e[0].text,"textfont","defined-text"),this.rows.push({move:s.height})}}},3570:e=>{var t=function(e,t){this.formatting=e,this.classes=t};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){var r;r="string"==typeof e?(r=this.formatting[e])?{face:r.face,size:Math.round(4*r.size/3),decoration:r.decoration,style:r.style,weight:r.weight,box:r.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 n=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;return r.padding=r.size*n,{font:r,attr:{"font-size":r.size,"font-style":r.style,"font-family":r.face,"font-weight":r.weight,"text-decoration":r.decoration,class:this.classes.generate(t)}}},e.exports=t},3686:e=>{var t=function(e,t){this.getFontAndAttr=e,this.svg=t};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){var a;a="string"==typeof t?this.attr(t,r):{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(r)}};var i=this.svg.getTextSize(e,a.attr,n);return a.font.box?{height:i.height+4*a.font.padding,width:i.width+4*a.font.padding}:i},t.prototype.baselineToCenter=function(e,t,r,n,a){return.5*this.calc(e,t,r).height+(a-n-2)*this.attr(t,r).font.size},e.exports=t},6389:(e,t,r)=>{var n=r(8877);e.exports=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#ff0000"),n(this.elemset,e,"",t)}},2494:e=>{var t=function(){};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,a){var i=r.children[r.i];if(!i)return 0;var s=e-r.minx,o=r.durationindex+i.duration>0?n:0;if("note"===i.abcelem.el_type&&!i.abcelem.rest&&0!==r.voicenumber&&a){var c=a.children[a.i],l=c&&(i.abcelem.maxpitch<=c.abcelem.maxpitch+1&&i.abcelem.maxpitch>=c.abcelem.minpitch-1||i.abcelem.minpitch<=c.abcelem.maxpitch+1&&i.abcelem.minpitch>=c.abcelem.minpitch-1);if(l&&i.abcelem.minpitch===c.abcelem.minpitch&&i.abcelem.maxpitch===c.abcelem.maxpitch&&c.heads&&c.heads.length>0&&i.heads&&i.heads.length>0&&c.heads[0].c===i.heads[0].c&&(l=!1),l){var h=c.heads&&c.heads.length>0?c.heads[0].realWidth:c.fixed.w;i.adjustedWidth||(i.adjustedWidth=h+i.w),i.w=i.adjustedWidth;for(var u=0;u<i.children.length;u++){var d=i.children[u];d.name.indexOf("accidental")<0&&(d.adjustedWidth||(d.adjustedWidth=d.dx+h),d.dx=d.adjustedWidth)}}}var f=function(e,t){var r=0;"note"!==e.type&&"bar"!==e.type||(r=t);return-e.extraw+r}(i,o);return s<f&&(0===r.i||"bar"!==i.type||"part"!==r.children[r.i-1].type&&"tempo"!==r.children[r.i-1].type)&&(e+=f-s),i.setX(e),r.spacingduration=i.duration,r.minx=e+function(e){return e.w}(i),r.i!==r.children.length-1&&(r.minx+=i.minspacing),this.updateNextX(e,t,r),e},t.shiftRight=function(e,t){var r=t.children[t.i];r&&(r.setX(r.x+e),t.minx+=e,t.nextx+=e)},t.updateNextX=function(e,t,r){r.nextx=e+t*Math.sqrt(8*r.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},8223:(e,t,r)=>{var n=r(3400),a=r(4046),i=r(9762),s=function(e){return void 0===e?0:Math.floor(Math.log(e)/Math.log(2))};function o(e,t,r,n){if(!e.children)return n;for(var a=0;a<e.children.length;a++){var i=e.children[a];t&&void 0!==i.top&&"flags.ugrace"===i.c?n=Math.max(n,i.top-r):t||void 0===i.bottom||"flags.ugrace"!==i.c||(n=Math.max(n,r-i.bottom+7))}return n}function c(e,t,r){var n=t.heads[e?0:t.heads.length-1],a=r.heads[e?0:r.heads.length-1],i=n.x;e&&(i+=n.w-.6);var s=a.x;return[i,s+=e?a.w:.6]}e.exports=function(e){if(0!==e.elems.length&&!e.allrests){var t=function(e,t){var r=e?a.STEP:-a.STEP;t&&(r*=.4);return r}(e.stemsUp,e.isgrace),r=e.elems[0],l=e.elems[e.elems.length-1],h=0,u=e.stemsUp?r.abcelem.maxpitch:r.abcelem.minpitch;h=o(r,e.stemsUp,u,h),h=o(l,e.stemsUp,u,h),h=Math.max(e.stemHeight,h+3);var d=function(e,t,r,n,a,i,s,o,c,l){var h=r-2,u=r-2,d=Math.round(n?Math.max(e+h,c+u):Math.min(e-h,o-u)),f=function(e,t,r,n){if(n)return 0;var a=e-t,i=r/2;a>i&&(a=i);a<-i&&(a=-i);return a}(a,i,t,s),p=d+Math.floor(f/2),m=d+Math.floor(-f/2);l||(n&&d<6||!n&&d>6)&&(p=6,m=6);return[p,m]}(e.average,e.elems.length,h,e.stemsUp,r.abcelem.averagepitch,l.abcelem.averagepitch,e.isflat,e.min,e.max,e.isgrace),f=c(e.stemsUp,r,l);e.addBeam({startX:f[0],endX:f[1],startY:d[0],endY:d[1],dy:t});for(var p=function(e,t,r,n,a){for(var o=[],l=[],h=0;h<e.length;h++){var u=e[h];if(!u.abcelem.rest){var d=u.heads[t?0:u.heads.length-1],f=d.x+(t?d.w:0),p=i(r.startX,r.startY,r.endX,r.endY,f),m=t?-1.5:1.5;n&&(m=2*m/3);var g=u.abcelem.duration;0===g&&(g=.25);for(var v=s(g);v<-3;v++){var b=-4-v;if(l[b]?l[b].single=!1:l[b]={x:f+(t?-.6:0),y:p+m*(b+1),durlog:v,single:!0},h>0&&u.abcelem.beambr&&u.abcelem.beambr<=b+1){l[b].split||(l[b].split=[l[b].x]);var y=c(t,e[h-1],u);l[b].split[l[b].split.length-1]>=y[0]&&(y[0]+=u.w),l[b].split.push(y[0]),l[b].split.push(y[1])}}for(var w=l.length-1;w>=0;w--)if(h===e.length-1||s(e[h+1].abcelem.duration)>-w-4){var x=f,k=p+m*(w+1);l[w].single&&(x=0===h?f+5:f-5,k=i(r.startX,r.startY,r.endX,r.endY,x)+m*(w+1));var C={startX:l[w].x,endX:x,startY:l[w].y,endY:k,dy:a};if(void 0!==l[w].split){var T=l[w].split;C.endX<=T[T.length-1]&&(T[T.length-1]-=u.w),T.push(C.endX),C.split=l[w].split}o.push(C),l=l.slice(0,w)}}}return o}(e.elems,e.stemsUp,e.beams[0],e.isgrace,t),m=0;m<p.length;m++)e.addBeam(p[m]);!function(e,t,r,s,o){for(var c=0;c<e.length;c++){var l=e[c];if(!l.abcelem.rest){var h=!l.addExtra,u=h?o:l,d=l.heads[t?0:l.heads.length-1],f=.2,p=d.pitch+(t?f:-f),m=t?d.w:0;h||(m+=d.dx);var g=d.x+m,v=i(r.startX,r.startY,r.endX,r.endY,g),b=t?-.6:.6;t||(v-=s/2/a.STEP),h&&(m+=l.heads[0].dx),"noteheads.slash.quarter"===d.c&&(t?p+=1:p-=1);var y=new n(null,m,0,p,{type:"stem",pitch2:v,linewidth:b});y.setX(u.x),u.addRight(y)}}}(e.elems,e.stemsUp,e.beams[0],t,e.mainNote)}}},1102:e=>{function t(e,t,r){if(t)for(var n=0;n<t.length;n++)if(t[n].header){var a=r.calc(t[n].header,"voicefont","");e=Math.max(e,a.width)}return e}function r(e,t,r){if(e)for(var a=0;a<e.length;a++)n(t,e[a]),r=Math.max(r,e[a].getWidth());return r}function n(e,t){t.x=e}e.exports=function(e,n,a,i,s){var o,c,l=e.padding.left,h=0;for(o=0;o<a.length;o++)a[o].header&&(c=n.calc(a[o].header,"voicefont",""),h=Math.max(h,c.width));h=t(h,i,n),(h=t(h,s,n))&&(h+=n.calc("A","voicefont","").width);var u=0;return u=r(i,l+=h,u),l+(u=r(s,l,u))}},9762:e=>{e.exports=function(e,t,r,n,a){return t+(n-t)/(r-e)*(a-e)}},9654:(e,t,r)=>{var n=r(6526),a=r(3981),i=r(7998),s=r(1102),o=function(e,t,r,n,a,o,l){for(var h=s(e,n.getTextSize,n.voices,n.brace,n.bracket),u=r,d=0;d<8;d++){var f=i(u,e,l,n,h);if(u=c(o,a.stretchlast,t+e.padding.left,n.w,u,f.spacingUnits,f.minSpace,e.padding.left+e.padding.right),l&&console.log("setXSpace",d,n.w,u,n.minspace),null===u)break}!function(e){for(var t=0;t<e.length;t++)for(var r=e[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 i=r.children[n-1],s=r.children[n+1];a.center(i,s)}}}(n.voices)};function c(e,t,r,n,a,i,s,o){if(e)if(void 0===t){if(n/r<.66)return null}else if(!(1-(n+o)/r<t))return null;return Math.abs(r-n)<2?null:i>0?((a=(r-(n-i*a))/i)*s>50&&(a=50/s),a):null}e.exports=function(e,t,r,i){var s,c,l=r;for(s=0;s<t.lines.length;s++)(c=t.lines[s]).staff&&(o(e,r,i,c.staffGroup,t.formatting,s===t.lines.length-1,!1),c.staffGroup.w>l&&(l=c.staffGroup.w));for(s=0;s<t.lines.length;s++)if((c=t.lines[s]).staffGroup&&c.staffGroup.voices){for(var h=0;h<c.staffGroup.voices.length;h++)n(c.staffGroup.voices[h]);a(e,c.staffGroup)}for(s=0;s<t.lines.length;s++)(c=t.lines[s]).staffGroup&&c.staffGroup.setHeight();return l}},3981:(e,t,r)=>{var n=r(4046),a=1;function i(e,t,r,n){if(e.specialY[r]){var i=e.specialY[r];n&&(i*=n),e.top+=i+a,t[r]=e.top}}function s(e,t,r){var n,a;for(n=0;n<t.children.length;n++)o(e,a=t.children[n],r);for(n=0;n<t.otherchildren.length;n++)switch((a=t.otherchildren[n]).type){case"CrescendoElem":c(e,a);break;case"DynamicDecoration":l(e,a);break;case"EndingElem":h(e,a)}}function o(e,t,r){for(var n=0;n<t.children.length;n++){var a=t.children[n];for(var i in t.specialY)t.specialY.hasOwnProperty(i)&&a[i]&&(a.pitch=e[i],void 0===a.top&&("TempoElement"===a.type?u(e,a):d(e,a,r),t.pushTop(a.top),t.pushBottom(a.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 h(e,t){t.pitch=e.endingHeightAbove-2}function u(e,t){if(t.pitch=e.tempoHeightAbove,t.top=e.tempoHeightAbove,t.bottom=e.tempoHeightAbove,t.note){var r=t.pitch-t.totalHeightInPitches+1;t.note.top=r,t.note.bottom=r;for(var n=0;n<t.note.children.length;n++){var a=t.note.children[n];a.top+=r,a.bottom+=r,a.pitch+=r,void 0!==a.pitch2&&(a.pitch2+=r)}}}function d(e,t,r){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+r.vocal/n.STEP,t.bottom=e.lyricHeightBelow+r.vocal/n.STEP,t.pitch-=r.vocal/n.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=function(e,t){for(var r,o=0;o<t.staffs.length;o++){var c=t.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(e.showDebug&&e.showDebug.indexOf("box")>=0&&(c.originalTop=c.top,c.originalBottom=c.bottom),i(c,l,"lyricHeightAbove"),i(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):(i(c,l,"dynamicHeightAbove"),i(c,l,"volumeHeightAbove")),i(c,l,"partHeightAbove"),i(c,l,"tempoHeightAbove"),c.specialY.lyricHeightBelow&&(c.specialY.lyricHeightBelow+=e.spacing.vocal/n.STEP,l.lyricHeightBelow=c.bottom,c.bottom-=c.specialY.lyricHeightBelow+a),c.specialY.chordHeightBelow){l.chordHeightBelow=c.bottom;var h=c.specialY.chordHeightBelow;c.specialY.chordLines.below&&(h*=c.specialY.chordLines.below),c.bottom-=h+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),e.showDebug&&e.showDebug.indexOf("box")>=0&&(c.positionY=l);for(var u=0;u<c.voices.length;u++){s(l,t.voices[c.voices[u]],e.spacing)}if(void 0!==r){var d=r+(c.top-10),f=e.spacing.systemStaffSeparation/n.STEP-d;f>0&&(c.top+=f)}r=2-c.bottom}}},7998:(e,t,r)=>{var n=r(2494);function a(e){for(var t=0;t<e.length;t++)if(!n.layoutEnded(e[t]))return!1;return!0}function i(e){return e.durationindex-(e.children[e.i]&&e.children[e.i].duration>0?0:5e-7)}function s(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=function(e,t,r,o,c){var l,h=0,u=1e3,d=c;o.startx=d;var f=0;for(r&&console.log("init layout",e),l=0;l<o.voices.length;l++)n.beginLayout(d,o.voices[l]);for(var p=0;!a(o.voices);){for(f=null,l=0;l<o.voices.length;l++)n.layoutEnded(o.voices[l])||f&&!(i(o.voices[l])<f)||(f=i(o.voices[l]));var m=[],g=[];for(l=0;l<o.voices.length;l++){i(o.voices[l])-f>1e-7?g.push(o.voices[l]):m.push(o.voices[l])}p=0;var v=0;for(l=0;l<m.length;l++)n.getNextX(m[l])>d&&(d=n.getNextX(m[l]),p=n.getSpacingUnits(m[l]),v=m[l].spacingduration);h+=p,u=Math.min(u,p),r&&console.log("currentduration: ",f,h,u);var b=void 0;for(l=0;l<m.length;l++){var y=m[l];0===y.voicenumber&&(b=l);var w=void 0!==b&&m[b].voicenumber!==y.voicenumber?m[b]:void 0;s(y,w)||(w=void 0);var x=n.layoutOneItem(d,e,y,t.minPadding,w),k=x-d;if(k>0){d=x;for(var C=0;C<l;C++)n.shiftRight(k,m[C])}}for(l=0;l<g.length;l++)g[l].spacingduration-=v,n.updateNextX(d,e,g[l]);for(l=0;l<m.length;l++){var T=m[l];n.updateIndices(T)}}for(l=0;l<o.voices.length;l++)n.getNextX(o.voices[l])>d&&(d=n.getNextX(o.voices[l]),p=n.getSpacingUnits(o.voices[l]));return function(e){for(var t=0,r=0;r<e.length;r++){var n=e[r],a=n.children.length-1,i=n.children[a];if("bar"==i.abcelem.el_type){var s=i.children[0].x;s>t?t=s:i.children[0].x=t}}}(o.voices),h+=p,o.setWidth(d),{spacingUnits:h,minSpace:u}}},9199:(e,t,r)=>{var n=r(9762);function a(e){return e.stemsUp}e.exports=function(e){if(e.anchor1&&e.anchor2){e.hasBeam=!!e.anchor1.parent.beam&&e.anchor1.parent.beam===e.anchor2.parent.beam;var t=e.anchor1.parent.beam;if(!e.hasBeam||t.elems[0]===e.anchor1.parent&&t.elems[t.elems.length-1]===e.anchor2.parent||(e.hasBeam=!1),e.hasBeam){var r=a(t)?e.anchor1.x+e.anchor1.w:e.anchor1.x;e.yTextPos=function(e,t,r){if(0===r.beams.length)return 0;r=r.beams[0];var a=e+(t-e)/2;return n(r.startX,r.startY,r.endX,r.endY,a)}(r,e.anchor2.x,t),e.yTextPos+=a(t)?3:-2,e.xTextPos=(o=r,c=e.anchor2.x,o+(c-o)/2),e.top=e.yTextPos+1,e.bottom=e.yTextPos-2,a(t)&&(e.endingHeightAbove=4)}else{e.startNote=Math.max(e.anchor1.parent.top,9)+4,e.endNote=Math.max(e.anchor2.parent.top,9)+4,"rest"===e.anchor1.parent.type&&"rest"!==e.anchor2.parent.type?e.startNote=e.endNote:"rest"===e.anchor2.parent.type&&"rest"!==e.anchor1.parent.type&&(e.endNote=e.startNote);for(var i=0,s=0;s<e.middleElems.length;s++)i=Math.max(i,e.middleElems[s].top);((i+=4)>e.startNote||i>e.endNote)&&(e.startNote=i,e.endNote=i),e.flatBeams&&(e.startNote=Math.max(e.startNote,e.endNote),e.endNote=Math.max(e.startNote,e.endNote)),e.yTextPos=e.startNote+(e.endNote-e.startNote)/2,e.xTextPos=e.anchor1.x+(e.anchor2.x+e.anchor2.w-e.anchor1.x)/2,e.top=e.yTextPos+1}}var o,c;delete e.middleElems,delete e.flatBeams}},6526:(e,t,r)=>{var n=r(8223),a=r(9762),i=r(9199);function s(e){for(var t=0;t<e.elems.length;t++){var r=e.elems[t];if(r.top)for(var n=l(r,e),a=0;a<r.children.length;a++){var i=r.children[a];if("ornament"===i.klass&&i.bottom-1.5<n){var s=n-i.bottom+1.5;i.bottom+=s,i.top+=s,i.pitch+=s,n=r.top=i.top}}}}function o(e,t){var r=t.getChordDim();if(r){for(var n=0;n<e.length;n++){if(e[n]<r.left)return n>0&&t.putChordInLane(n),void(e[n]=r.right)}e.push(r.right),t.putChordInLane(e.length-1)}}function c(e){for(var t=0,r=0;r<e.children.length;r++){e.children[r].chordHeightBelow&&t++}return t}function l(e,t){return t=t.beams[0],a(t.startX,t.startY,t.endX,t.endY,e.x)}e.exports=function(e){for(var t=0;t<e.beams.length;t++)if("BeamElem"===e.beams[t].type){n(e.beams[t]),s(e.beams[t]);for(var r=0;r<e.beams[t].elems.length;r++)e.adjustRange(e.beams[t].elems[r])}for(e.staff.specialY.chordLines=function(e){var t,r,n,a=[0],i=[0];for(t=0;t<e.length;t++){for(r=0;r<e[t].children.length;r++)(n=e[t].children[r]).chordHeightAbove&&o(a,n);for(r=e[t].children.length-1;r>=0;r--)(n=e[t].children[r]).chordHeightBelow&&o(i,n)}(a.length>1||i.length>1)&&function(e,t,r){for(var n=0;n<e.length;n++){c(e[n]);for(var a=0;a<e[n].children.length;a++){var i=e[n].children[a];i.chordHeightAbove&&i.invertLane(t)}}}(e,a.length,i.length);return{above:a.length,below:i.length}}(e.children),t=0;t<e.otherchildren.length;t++){var a=e.otherchildren[t];"TripletElem"===a.type&&(i(a),e.adjustRange(a))}e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom)}},2339:(e,t,r)=>{var n=r(4046);function a(e){"keyboard"===this.dragMechanism&&0!==this.dragYStep&&this.dragTarget&&d.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,e),this.dragYStep=0}function i(e){switch(e.keyCode){case 38:case 40:e.preventDefault()}}function s(e){var t=!1,r=e.target.dataset.index;switch(e.keyCode){case 13:case 32:t=!0,this.dragTarget=this.selectables[r],this.dragIndex=r,this.dragMechanism="keyboard",h.bind(this)(e);break;case 38:t=!0,this.dragTarget=this.selectables[r],this.dragIndex=r,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*n.STEP+")"));break;case 40:t=!0,this.dragTarget=this.selectables[r],this.dragIndex=r,this.dragMechanism="keyboard",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*n.STEP+")"));break;case 9:0!==this.dragYStep&&h.bind(this)(e)}t&&e.preventDefault()}function o(e,t){var r,n,a,i=function(e,t){for(var r=0;r<e.length;r++)if(t===e[r].svgEl)return r;return-1}(e.selectables,function(e){if("svg"===e.tagName)return e;for(var t=e.getAttribute("selectable");!t;)t="svg"===(e=e.parentElement).tagName||e.getAttribute("selectable");return e}(t.target));return i>=0?(a=function(e,t,r){return e.x<=t.offsetX&&e.x+e.width>=t.offsetX&&e.y<=t.offsetY&&e.y+e.height>=t.offsetY||Math.abs(t.layerY/r-t.offsetY)<3?[t.offsetX,t.offsetY]:[t.layerX,t.layerY]}(e.selectables[i].svgEl.getBBox(),t,e.scale),r=a[0],n=a[1]):(a=function(e,t){var r,n,a=1,i=1;return t.viewBox.baseVal&&(0!==t.viewBox.baseVal.width&&(a=t.viewBox.baseVal.width/t.clientWidth),0!==t.viewBox.baseVal.height&&(i=t.viewBox.baseVal.height/t.clientHeight)),"svg"===e.target.tagName?(r=e.offsetX,n=e.offsetY):(r=e.layerX,n=e.layerY),[r*=a,n*=i]}(t,e.renderer.paper.svg),i=function(e,t,r){for(var n=9999999,a=-1,i=0;i<e.selectables.length&&n>0;i++){var s=e.selectables[i];if(e.getDim(s),s.dim.left<t&&s.dim.right>t&&s.dim.top<r&&s.dim.bottom>r)a=i,n=0;else if(s.dim.top<r&&s.dim.bottom>r){var o=Math.min(Math.abs(s.dim.left-t),Math.abs(s.dim.right-t));o<n&&(n=o,a=i)}else if(s.dim.left<t&&s.dim.right>t){var c=Math.min(Math.abs(s.dim.top-r),Math.abs(s.dim.bottom-r));c<n&&(n=c,a=i)}else{var l=Math.abs(t-s.dim.left)>Math.abs(t-s.dim.right)?Math.abs(t-s.dim.right):Math.abs(t-s.dim.left),h=Math.abs(r-s.dim.top)>Math.abs(r-s.dim.bottom)?Math.abs(r-s.dim.bottom):Math.abs(r-s.dim.top),u=Math.sqrt(l*l+h*h);u<n&&(n=u,a=i)}}return a>=0&&n<=12?a:-1}(e,r=a[0],n=a[1])),{x:r,y:n,clickedOn:i}}function c(e){var t=o(this,e);t.clickedOn>=0&&0===e.button&&(this.dragTarget=this.selectables[t.clickedOn],this.dragIndex=t.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:t.x,y:t.y},this.dragging&&this.dragTarget.isDraggable&&(!function(e,t){if(e){var r=g(e.svg);r[t]=!0,v(e.svg,r)}}(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function l(e){if(this.dragTarget&&this.dragging&&this.dragTarget.isDraggable&&"mouse"===this.dragMechanism){var t=o(this,e),r=Math.round((t.y-this.dragMouseStart.y)/n.STEP);r!==this.dragYStep&&(this.dragYStep=r,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+r*n.STEP+")"))}}function h(e){this.dragTarget&&(p.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),d.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,e),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),function(e,t){if(e){var r=g(e.svg);delete r[t],v(e.svg,r)}}(this.renderer.svg,"abcjs-dragging-in-progress"))}function u(e){e>=0&&e<this.selectables.length&&(this.dragTarget=this.selectables[e],this.dragIndex=e,this.dragMechanism="keyboard",h.bind(this)({target:this.dragTarget.svgEl}))}function d(e,t,r,n,a){var i=[];if(e.absEl.elemset){for(var s={},o=0;o<e.absEl.elemset.length;o++){var c=e.absEl.elemset[o];if(c)for(var l=c.getAttribute("class").split(" "),h=0;h<l.length;h++)s[l[h]]=!0}for(var d=0;d<Object.keys(s).length;d++)i.push(Object.keys(s)[d])}for(var p={},m=0;m<i.length;m++)f(i[m],"abcjs-v",p,"voice"),f(i[m],"abcjs-l",p,"line"),f(i[m],"abcjs-m",p,"measure");e.staffPos&&(p.staffPos=e.staffPos);for(var g=a.target;!g.dataset.name&&"svg"!==g.tagName.toLowerCase();)g=g.parentNode;for(var v=a.target;!v.dataset.index&&"svg"!==v.tagName.toLowerCase();)v=v.parentNode;p.name=v.dataset.name,p.clickedName=g.dataset.name,p.parentClasses=v.classList,p.clickedClasses=g.classList;for(var b=0;b<this.listeners.length;b++)this.listeners[b](e.absEl.abcelem,e.absEl.tuneNumber,i.join(" "),p,{step:t,max:r,index:n,setSelection:u.bind(this)},a)}function f(e,t,r,n){if(0===e.indexOf(t)){var a=e.replace(t,""),i=parseInt(a,10);""+i===a&&(r[n]=i)}}function p(){for(var e=0;e<this.selected.length;e++)this.selected[e].unhighlight(void 0,this.renderer.foregroundColor);this.selected=[]}function m(e,t){p.bind(this)();for(var r=0;r<this.staffgroups.length;r++)for(var n=this.staffgroups[r].voices,a=0;a<n.length;a++)for(var i=n[a].children,s=0;s<i.length;s++){var o=i[s].abcelem.startChar,c=i[s].abcelem.endChar;(t>o&&e<c||t===e&&t===c)&&(this.selected[this.selected.length]=i[s],i[s].highlight(void 0,this.selectionColor))}}function g(e){var t=e.getAttribute("class");t||(t="");for(var r=t.split(" "),n={},a=0;a<r.length;a++)n[r[a]]=!0;return n}function v(e,t){var r=[];for(var n in t)t.hasOwnProperty(n)&&r.push(n);e.setAttribute("class",r.join(" "))}e.exports=function(e){if(e.rangeHighlight=m,e.dragging)for(var t=0;t<e.selectables.length;t++){var r=e.selectables[t];"true"===r.svgEl.getAttribute("selectable")&&(r.svgEl.setAttribute("tabindex",0),r.svgEl.setAttribute("data-index",t),r.svgEl.addEventListener("keydown",i.bind(e)),r.svgEl.addEventListener("keyup",s.bind(e)),r.svgEl.addEventListener("focus",a.bind(e)))}e.renderer.paper.svg.addEventListener("mousedown",c.bind(e)),e.renderer.paper.svg.addEventListener("mousemove",l.bind(e)),e.renderer.paper.svg.addEventListener("mouseup",h.bind(e))}},8426:e=>{e.exports=function(e,t,r){this.rows=[],e&&this.rows.push({move:e}),this.rows.push({separator:t,absElemType:"separator"}),r&&this.rows.push({move:r})}},8877:e=>{e.exports=function(e,t,r,n){if(e)for(var a=0;a<e.length;a++){var i=e[a],s=i.getAttribute("highlight");s||(s="fill"),i.setAttribute(s,n);var o=i.getAttribute("class");o||(o=""),o=(o=o.replace(r,"")).replace(t,""),t.length>0&&(o.length>0&&" "!==o.charAt(o.length-1)&&(o+=" "),o+=t),i.setAttribute("class",o)}}},2200:e=>{e.exports=function(e,t,r,n,a,i){this.rows=[],e&&this.rows.push({move:e});var s=t.titleleft?"start":"middle",o=t.titleleft?a:n;this.rows.push({left:o,text:r.text,font:"subtitlefont",klass:"text subtitle",anchor:s,startChar:r.startChar,endChar:r.endChar,absElemType:"subtitle",name:"subtitle"});var c=i.calc(r.text,"subtitlefont","text subtitle");this.rows.push({move:c.height})}},4572:e=>{var t="http://www.w3.org/2000/svg";function r(e){this.svg=s(),this.currentGroup=[],e.appendChild(this.svg)}function n(e,t,r){var n=r-e;return"M "+e+" "+t+" l "+n+" 0 l 0 1 l "+-n+" 0 z "}function a(e,t,r){var n=r-t;return"M "+e+" "+t+" l 0 "+n+" l 1 0 l 0 "+-n+" z "}r.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=s(),this.currentGroup=[],e&&(e.innerHTML="",e.appendChild(this.svg))}},r.prototype.setTitle=function(e){var t=document.createElement("title"),r=document.createTextNode(e);t.appendChild(r),this.svg.insertBefore(t,this.svg.firstChild)},r.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 r=this.svg.parentNode.getAttribute("class");r?r.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",r+" 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%";var n=t/e*100;this.svg.parentNode.style["padding-bottom"]=n+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},r.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)},r.prototype.setAttribute=function(e,t){this.svg.setAttribute(e,t)},r.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"]="")},r.prototype.insertStyles=function(e){var r=document.createElementNS(t,"style");r.textContent=e,this.svg.insertBefore(r,this.svg.firstChild)},r.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)},r.prototype.rect=function(e){var t=[],r=e.x,i=e.y,s=e.x+e.width,o=e.y+e.height;return t.push(n(r,i,s)),t.push(n(r,o,s)),t.push(a(s,i,o)),t.push(a(r,o,i)),this.path({path:t.join(" "),stroke:"none","data-name":e["data-name"]})},r.prototype.dottedLine=function(e){var r=document.createElementNS(t,"line");r.setAttribute("x1",e.x1),r.setAttribute("x2",e.x2),r.setAttribute("y1",e.y1),r.setAttribute("y2",e.y2),r.setAttribute("stroke",e.stroke),r.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(r,this.svg.firstChild)},r.prototype.rectBeneath=function(e){var r=document.createElementNS(t,"rect");r.setAttribute("x",e.x),r.setAttribute("width",e.width),r.setAttribute("y",e.y),r.setAttribute("height",e.height),e.stroke&&r.setAttribute("stroke",e.stroke),e["stroke-opacity"]&&r.setAttribute("stroke-opacity",e["stroke-opacity"]),e.fill&&r.setAttribute("fill",e.fill),e["fill-opacity"]&&r.setAttribute("fill-opacity",e["fill-opacity"]),this.svg.insertBefore(r,this.svg.firstChild)},r.prototype.text=function(e,r,n){var a=document.createElementNS(t,"text");for(var i in a.setAttribute("stroke","none"),r)r.hasOwnProperty(i)&&a.setAttribute(i,r[i]);for(var s=(""+e).split("\n"),o=0;o<s.length;o++){var c=document.createElementNS(t,"tspan");if(c.setAttribute("x",r.x?r.x:0),0!==o&&c.setAttribute("dy","1.2em"),-1!==s[o].indexOf("")){var l=s[o].split("");if(c.textContent=l[0],l[1]){var h=document.createElementNS(t,"tspan");h.setAttribute("dy","-0.3em"),h.setAttribute("style","font-size:0.7em"),h.textContent=l[1],c.appendChild(h)}if(l[2]){var u=l[1]?"0.4em":"0.1em",d=document.createElementNS(t,"tspan");d.setAttribute("dy",u),d.setAttribute("style","font-size:0.7em"),d.textContent=l[2],c.appendChild(d)}}else c.textContent=s[o];a.appendChild(c)}return n?n.appendChild(a):this.append(a),a},r.prototype.guessWidth=function(e,t){var r,n=this.createDummySvg(),a=this.text(e,t,n);try{r=a.getBBox(),r=isNaN(r.height)||!r.height?{width:t["font-size"]/2,height:t["font-size"]+2}:{width:r.width,height:r.height}}catch(e){r={width:t["font-size"]/2,height:t["font-size"]+2}}return n.removeChild(a),r},r.prototype.createDummySvg=function(){if(!this.dummySvg){this.dummySvg=s();this.dummySvg.setAttribute("style",["display: block !important;","height: 1px;","width: 1px;","position: absolute;"].join("")),document.querySelector("body").appendChild(this.dummySvg)}return this.dummySvg};var i={};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}r.prototype.getTextSize=function(e,t,r){if("number"==typeof e&&(e=""+e),!e||e.match(/^\s+$/))return{width:0,height:0};var n;if(e.length<20&&(n=e+JSON.stringify(t),i[n]))return i[n];var a,s=!r;r||(r=this.text(e,t));try{a=r.getBBox(),a=isNaN(a.height)||!a.height?this.guessWidth(e,t):{width:a.width,height:a.height}}catch(r){a=this.guessWidth(e,t)}return s&&(this.currentGroup.length>0?this.currentGroup[0].removeChild(r):this.svg.removeChild(r)),n&&(i[n]=a),a},r.prototype.openGroup=function(e){e=e||{};var r=document.createElementNS(t,"g");return e.klass&&r.setAttribute("class",e.klass),e.fill&&r.setAttribute("fill",e.fill),e.stroke&&r.setAttribute("stroke",e.stroke),e["data-name"]&&r.setAttribute("data-name",e["data-name"]),e.prepend?this.prepend(r):this.append(r),this.currentGroup.unshift(r),r},r.prototype.closeGroup=function(){var e=this.currentGroup.shift();return e&&0===e.children.length?(this.svg.removeChild(e),null):e},r.prototype.path=function(e){var r=document.createElementNS(t,"path");for(var n in e)e.hasOwnProperty(n)&&("path"===n?r.setAttributeNS(null,"d",e.path):void 0!==e[n]&&r.setAttributeNS(null,n,e[n]));return this.append(r),r},r.prototype.pathToBack=function(e){var r=document.createElementNS(t,"path");for(var n in e)e.hasOwnProperty(n)&&("path"===n?r.setAttributeNS(null,"d",e.path):r.setAttributeNS(null,n,e[n]));return this.prepend(r),r},r.prototype.append=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.appendChild(e)},r.prototype.prepend=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)},r.prototype.setAttributeOnElement=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setAttributeNS(null,r,t[r])},r.prototype.moveElementToChild=function(e,t){e.appendChild(t)},e.exports=r},1314:(e,t,r)=>{const n=r(1829);e.exports=function(e,t,r,a,i,s,o,c,l){if(this.rows=[],e.header&&s){var h=l.calc("X","headerfont","abcjs-header abcjs-meta-top").height;n(this.rows,{marginLeft:o,text:e.header.left,font:"headerfont",klass:"header meta-top",marginTop:-h,info:t.header,name:"header"},l),n(this.rows,{marginLeft:o+i/2,text:e.header.center,font:"headerfont",klass:"header meta-top",marginTop:-h,anchor:"middle",info:t.header,name:"header"},l),n(this.rows,{marginLeft:o+i,text:e.header.right,font:"headerfont",klass:"header meta-top",marginTop:-h,anchor:"end",info:t.header,name:"header"},l)}s&&this.rows.push({move:c.top});var u=r.titleleft?"start":"middle",d=r.titleleft?o:o+i/2;if(e.title&&n(this.rows,{marginLeft:d,text:e.title,font:"titlefont",klass:"title meta-top",marginTop:c.title,anchor:u,absElemType:"title",info:t.title,name:"title"},l),a.length)for(var f=0;f<a.length&&a[f].subtitle;)n(this.rows,{marginLeft:d,text:a[f].subtitle.text,font:"subtitlefont",klass:"text meta-top subtitle",marginTop:c.subtitle,anchor:u,absElemType:"subtitle",info:a[f].subtitle,name:"subtitle"},l),f++;if(e.rhythm||e.origin||e.composer){if(this.rows.push({move:c.composer}),e.rhythm&&e.rhythm.length>0){!e.composer&&e.origin;n(this.rows,{marginLeft:o,text:e.rhythm,font:"infofont",klass:"meta-top rhythm",absElemType:"rhythm",noMove:!0,info:t.rhythm,name:"rhythm"},l)}var p="";e.composer&&(p+=e.composer),e.origin&&(p+=" ("+e.origin+")"),p.length>0&&n(this.rows,{marginLeft:o+i,text:p,font:"composerfont",klass:"meta-top composer",anchor:"end",absElemType:"composer",info:t.composer,name:"composer"},l)}e.author&&e.author.length>0&&n(this.rows,{marginLeft:o+i,text:e.author,font:"composerfont",klass:"meta-top author",anchor:"end",absElemType:"author",info:t.author,name:"author"},l),e.partOrder&&e.partOrder.length>0&&n(this.rows,{marginLeft:o,text:e.partOrder,font:"partsfont",klass:"meta-top part-order",absElemType:"partOrder",info:t.partOrder,name:"part-order"},l)}},3277:(e,t,r)=>{var n=r(8877);e.exports=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#000000"),n(this.elemset,"",e,t)}},2519:e=>{e.exports="6.0.0-beta.37"}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(9914);function t(){let t=0;for(const r of document.getElementsByClassName("abc")){const n=`abc-${Date.now()}-${t++}`,a=r.textContent,i=document.createElement("div");i.id=n,r.innerHTML="",r.appendChild(i),e.renderAbc(n,a,{responsive:"resize"})}}window.addEventListener("vscode.markdown.updateContent",t),t()})()})();