lollms-webui/utilities/execution_engines/assets/abcjs-basic-min.min.js
Saifeddine ALOUI a9e7c985b9 sync
2024-05-12 02:11:09 +02:00

1 line
458 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.abcjs=t():e.ABCJS=t()}(this,function(){return r={1045:function(e,t,n){var r=n(1185),i=n(6306),a=n(1592),s=n(1028),o=n(5633),c={},r=(c.signature="abcjs-basic v"+r,Object.keys(i).forEach(function(e){c[e]=i[e]}),Object.keys(a).forEach(function(e){c[e]=a[e]}),c.renderAbc=n(6859),c.TimingCallbacks=n(5681),n(6020)),r=(c.setGlyph=r.setSymbol,c.strTranspose=o,n(5594)),o=n(8471),l=n(522),h=n(2029),u=n(6313),d=n(5281),f=n(8702),p=n(5049),m=n(4718),g=n(3450),v=n(562),b=n(9991);c.synth={CreateSynth:r,instrumentIndexToName:o,pitchToNoteName:l,SynthController:g,SynthSequence:h,CreateSynthControl:u,registerAudioContext:d,activeAudioContext:f,supportsAudio:p,playEvent:m,getMidiFile:v,sequence:s,midiRenderer:b},c.Editor=n(5294),c.EditArea=n(2945),e.exports=c},6306:function(e,t,n){var c=n(5681),r={};!function(){"use strict";var s,o;r.startAnimation=function(n,e,r){function i(e){for(var t=0;t<e.length;t++){var n=e[t];n.classList.contains("abcjs-bar")||(n.style.display="none")}}var a;s&&(s.stop(),s=void 0),r.showCursor&&!(o=n.querySelector(".abcjs-cursor"))&&((o=document.createElement("DIV")).className="abcjs-cursor cursor",o.style.position="absolute",n.appendChild(o),n.style.position="relative"),(s=new c(e,{qpm:r.bpm,eventCallback:function(e){var t;e?(e.measureStart&&(t=".abcjs-l"+e.line+".abcjs-m"+e.measureNumber)&&(t=t,r.hideCurrentMeasure?i(n.querySelectorAll(t)):r.hideFinishedMeasures&&(t=t,a&&i(n.querySelectorAll(a)),a=t)),o&&(o.style.left=e.left+"px",o.style.top=e.top+"px",o.style.width=e.width+"px",o.style.height=e.height+"px")):(s.stop(),s=void 0)}})).start()},r.pauseAnimation=function(e){s&&(e?s.pause():s.start())},r.stopAnimation=function(){s&&(s.stop(),s=void 0)}}(),e.exports=r},4321:function(e,t,n){var r=n(6074),h={violin:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},fiddle:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},mandolin:{name:"StringTab",defaultTuning:["G,","D","A","e"],isTabBig:!1,tabSymbolOffset:0},guitar:{name:"StringTab",defaultTuning:["E,","A,","D","G","B","e"],isTabBig:!0,tabSymbolOffset:0},fiveString:{name:"StringTab",defaultTuning:["C,","G,","D","A","e"],isTabBig:!1,tabSymbolOffset:-.95}};e.exports={inited:!1,plugins:{},register:function(e){var t=e.name,e=e.tablature;this.plugins[t]=e},setError:function(e,t){e.warnings?e.warning.push(t):e.warnings=[t]},preparePlugins:function(e,t,n){var r=null;if(n.tablature)for(var i=n.tablature,r=[],a=0;a<i.length;a++){var s=i[a],o=s.instrument;if(null==o)return this.setError(e,"tablature 'instrument' is missing"),r;var c=h[o],l=null;if(l=c?this.plugins[c.name]:l)0!=n.visualTranspose&&(s.visualTranspose=n.visualTranspose),s.abcSrc=n.tablature.abcSrc,r.push({classz:l,tuneNumber:t,params:s,instance:null,tabType:c});else{if(""!==o)return this.setError(e,"Undefined tablature plugin: "+o),r;r.push(null)}}return r},layoutTablatures:function(e,t){var n=t.tablatures,r=0;if(n&&0<n.length)for(var i=n.length,a=0;a<i;++a)n[a]&&n[a].params.firstStaffOnly&&(n[a].params.suppress=!1);for(var s=0;s<t.lines.length;s++){var o=t.lines[s];if(o.staff&&r++,1<r&&n&&0<n.length)for(i=n.length,a=0;a<i;++a)n[a].params.firstStaffOnly&&(n[a].params.suppress=!0);var c,l=o.staff;if(l)for(var h=l.length,u=0;u<l.length;u++)n[u]&&u<h&&(null==(c=n[u]).instance&&(c.instance=new c.classz,c.instance.init(t,c.tuneNumber,c.params,u,c.tabType)),c.instance.render(e,o,u))}},init:function(){this.inited||(this.register(new r),this.inited=!0)}}},5681:function(e){e.exports=function(e,t){var n,h=this;h.qpm=(t=t||{}).qpm?parseInt(t.qpm,10):null,h.qpm||(n=e.metaText?e.metaText.tempo:null,h.qpm=e.getBpm(n)),h.extraMeasuresAtBeginning=t.extraMeasuresAtBeginning?parseInt(t.extraMeasuresAtBeginning,10):0,h.beatCallback=t.beatCallback,h.eventCallback=t.eventCallback,h.lineEndCallback=t.lineEndCallback,h.lineEndAnticipation=t.lineEndAnticipation?parseInt(t.lineEndAnticipation,10):0,h.beatSubdivisions=t.beatSubdivisions?parseInt(t.beatSubdivisions,10):1,h.joggerTimer=null,h.replaceTarget=function(e){h.noteTimings=e.setTiming(h.qpm,h.extraMeasuresAtBeginning),0===e.noteTimings.length&&(h.noteTimings=e.setTiming(0,0)),h.lineEndCallback&&(h.lineEndTimings=function(e,t){for(var n=[],r=null,i=0;i<e.length;i++){var a=e[i];"end"!==a.type&&a.top!==r&&(n.push({measureNumber:a.measureNumber,milliseconds:a.milliseconds-t,top:a.top,bottom:a.top+a.height}),r=a.top)}return n}(e.noteTimings,h.lineEndAnticipation)),h.startTime=null,h.currentBeat=0,h.currentEvent=0,h.currentLine=0,h.currentTime=0,h.isPaused=!1,h.isRunning=!1,h.pausedPercent=null,h.justUnpaused=!1,h.newSeekPercent=0,(h.lastTimestamp=0)!==h.noteTimings.length&&(h.millisecondsPerBeat=1e3/(h.qpm/60)/h.beatSubdivisions,h.lastMoment=h.noteTimings[h.noteTimings.length-1].milliseconds,h.totalBeats=Math.round(h.lastMoment/h.millisecondsPerBeat))},h.replaceTarget(e),h.doTiming=function(e){if(h.lastTimestamp!==e&&(h.lastTimestamp=e,h.startTime||(h.startTime=e),!h.isPaused&&h.isRunning)){for(h.currentTime=e-h.startTime,h.currentTime+=16;h.noteTimings.length>h.currentEvent&&h.noteTimings[h.currentEvent].milliseconds<h.currentTime;){var t;h.eventCallback&&"event"===h.noteTimings[h.currentEvent].type&&(t=h.startTime,h.eventCallback(h.noteTimings[h.currentEvent]),t!==h.startTime&&(h.currentTime=e-h.startTime)),h.currentEvent++}var n;h.lineEndCallback&&h.lineEndTimings.length>h.currentLine&&h.lineEndTimings[h.currentLine].milliseconds<h.currentTime&&h.currentEvent<h.noteTimings.length&&(n=h.noteTimings[h.currentEvent].milliseconds===h.currentTime?h.noteTimings[h.currentEvent]:h.noteTimings[h.currentEvent-1],h.lineEndCallback(h.lineEndTimings[h.currentLine],n,{line:h.currentLine,endTimings:h.lineEndTimings,currentTime:h.currentTime}),h.currentLine++),h.currentTime<h.lastMoment?(requestAnimationFrame(h.doTiming),h.currentBeat*h.millisecondsPerBeat<h.currentTime&&null!==(n=h.doBeatCallback(e))&&(h.currentTime=n)):h.currentBeat<=h.totalBeats&&h.beatCallback&&(null!==(n=h.doBeatCallback(e))&&(h.currentTime=n),requestAnimationFrame(h.doTiming)),h.currentTime>=h.lastMoment&&(h.eventCallback?(n=h.eventCallback(null),h.shouldStop(n).then(function(e){e&&h.stop()})):h.stop())}},h.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)})},h.doBeatCallback=function(e){if(h.beatCallback){for(var t,n=h.currentEvent;n<h.noteTimings.length&&null===h.noteTimings[n].left;)n++;if(n<h.noteTimings.length){for(t=h.noteTimings[n].milliseconds,n=Math.max(0,h.currentEvent-1);0<=n&&null===h.noteTimings[n].left;)n--;l=h.noteTimings[n]}var r,i,a,s,o={},c={},c=l?(o.top=l.top,o.height=l.height,r=Math.max(0,e-h.startTime-l.milliseconds),i=t-l.milliseconds,a=l.endX-l.left,o.left=l.left+(s=i?r*a/i:0),0===h.currentEvent&&l.milliseconds>e-h.startTime&&(o.left=void 0),{timestamp:e,startTime:h.startTime,ev:l,endMs:t,offMs:r,offPx:s,gapMs:i,gapPx:a}):{timestamp:e,startTime:h.startTime},l=h.startTime;if(h.beatCallback(h.currentBeat/h.beatSubdivisions,h.totalBeats/h.beatSubdivisions,h.lastMoment,o,c),l!==h.startTime)return e-h.startTime;h.currentBeat++}return null},h.animationJogger=function(){h.isRunning&&(h.doTiming(performance.now()),h.joggerTimer=setTimeout(h.animationJogger,60))},h.start=function(e,t){h.isRunning=!0,h.isPaused&&(h.isPaused=!1,void 0===e&&(h.justUnpaused=!0)),e?h.setProgress(e,t):0===e?h.reset():null!==h.pausedPercent&&(t=performance.now(),h.currentTime=h.lastMoment*h.pausedPercent,h.startTime=t-h.currentTime,h.pausedPercent=null,h.reportNext=!0),requestAnimationFrame(h.doTiming),h.joggerTimer=setTimeout(h.animationJogger,60)},h.pause=function(){h.isPaused=!0;var e=performance.now();h.pausedPercent=(e-h.startTime)/h.lastMoment,h.isRunning=!1,h.joggerTimer&&(clearTimeout(h.joggerTimer),h.joggerTimer=null)},h.currentMillisecond=function(){return h.currentTime},h.reset=function(){h.currentBeat=0,h.currentEvent=0,h.currentLine=0,h.startTime=null,h.pausedPercent=null},h.stop=function(){h.pause(),h.reset()},h.setProgress=function(e,t){var n;switch(t){case"seconds":h.currentTime=1e3*e,h.currentTime<0&&(h.currentTime=0),h.currentTime>h.lastMoment&&(h.currentTime=h.lastMoment),n=h.currentTime/h.lastMoment;break;case"beats":h.currentTime=e*h.millisecondsPerBeat*h.beatSubdivisions,h.currentTime<0&&(h.currentTime=0),h.currentTime>h.lastMoment&&(h.currentTime=h.lastMoment),n=h.currentTime/h.lastMoment;break;default:(n=e)<0&&(n=0),h.currentTime=h.lastMoment*(n=1<n?1:n)}h.isRunning||(h.pausedPercent=n);t=performance.now();for(h.startTime=t-h.currentTime,h.currentEvent,h.currentEvent=0;h.noteTimings.length>h.currentEvent&&h.noteTimings[h.currentEvent].milliseconds<h.currentTime;)h.currentEvent++;if(h.lineEndCallback)for(h.currentLine=0;h.lineEndTimings.length>h.currentLine&&h.lineEndTimings[h.currentLine].milliseconds+h.lineEndAnticipation<h.currentTime;)h.currentLine++;t=h.currentBeat;h.currentBeat=Math.floor(h.currentTime/h.millisecondsPerBeat),h.beatCallback&&t!==h.currentBeat&&h.doBeatCallback(h.startTime+h.currentTime),h.eventCallback&&0<=h.currentEvent&&"event"===h.noteTimings[h.currentEvent].type&&h.eventCallback(h.noteTimings[h.currentEvent]),h.lineEndCallback&&h.lineEndCallback(h.lineEndTimings[h.currentLine],h.noteTimings[h.currentEvent],{line:h.currentLine,endTimings:h.lineEndTimings}),h.joggerTimer=setTimeout(h.animationJogger,60)}}},1592:function(e,t,n){function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=n(8905),r=n(9565),m=n(4321),C={};!function(){"use strict";C.numberOfTunes=function(e){e=e.split("\nX:").length;return e=0===e?1:e};var k=C.TuneBook=function(e){e=r(e);this.header=e.header,this.tunes=e.tunes};k.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},k.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},C.parseOnly=function(e,t){for(var n=C.numberOfTunes(e),r=[],i=0;i<n;i++)r.push(1);return C.renderEngine(function(){},r,e,t)},C.renderEngine=function(e,t,n,r){var i,a=[];if(void 0!==t&&void 0!==n){(i=t)&&!i.propertyIsEnumerable("length")&&"object"===f(i)&&"number"==typeof i.length||(t=[t]);for(var s=(r=void 0===r?{}:r).startingTune?parseInt(r.startingTune,10):0,o=new k(n),c=new p,l=0;l<t.length;l++){var h,u,d=t[l];(d="*"!==d&&"string"==typeof d?document.getElementById(d):d)&&(0<=s&&s<o.tunes.length?(c.parse(o.tunes[s].abc,r,o.tunes[s].startPos-o.header.length),h=c.getTune(),r.tablature&&(m.init(),h.tablatures=m.preparePlugins(h,s,r)),(u=c.getWarnings())&&(h.warnings=u),u=e(d,h,l,o.tunes[s].abc),a.push(u||h)):d.innerHTML&&(d.innerHTML="")),s++}return a}},C.extractMeasures=function(e){for(var t=[],n=new k(e),r=0;r<n.tunes.length;r++){for(var i=n.tunes[r],a=i.abc.split("K:"),s=a[1].split("\n"),a=a[0]+"K:"+s[0]+"\n",o=null,c=null,l=null,h=[],u=!1,d=C.parseOnly(i.abc)[0],s=0<d.getPickupLength(),f=0;f<d.lines.length;f++){var p=d.lines[f];if(p.staff)for(var m=0;m<1;m++)for(var g=p.staff[m],v=0;v<1;v++)for(var b=g.voices[v],y=0;y<b.length;y++){var x,w=b[y];null===l&&0<=w.startChar&&(l=w.startChar,c=void 0===w.chord?o:null),w.chord&&(o=w),"bar"===w.el_type?u&&(x={abc:i.abc.substring(l,w.endChar)},(o=c&&c.chord&&0<c.chord.length?c.chord[0].name:null)&&(x.lastChord=o),w.startEnding&&(x.startEnding=w.startEnding),w.endEnding&&(x.endEnding=w.endEnding),h.push(x),l=null,u=!1):"note"===w.el_type&&(u=!0)}}t.push({header:a,measures:h,hasPickup:s})}return t}}(),e.exports=C},6859:function(e,t,n){var s=n(1592),f=(n(6780),n(5253)),p=n(8905),m=n(1756),o={};function r(){var e,t,n=window.innerWidth;for(e in o)o.hasOwnProperty(e)&&(n-=2*(t=o[e]).offsetLeft,t.style.width=n+"px")}try{window.addEventListener("resize",r),window.addEventListener("orientationChange",r)}catch(e){}function g(e,t,n,r,i){n.viewportHorizontal?(e.innerHTML='<div class="abcjs-inner"></div>',n.scrollHorizontal?(e.style.overflowX="auto",e.style.overflowY="hidden"):e.style.overflow="hidden",e=(o[e.id]=e).children[0]):n.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 a=new f(e,n);a.engraveABC(t,r,i),t.engraver=a,(n.viewportVertical||n.viewportHorizontal)&&(e.parentNode.style.width=e.style.width)}e.exports=function(e,t,n,r,i){var a,d={};if(n){for(a in n)n.hasOwnProperty(a)&&(d[a]=n[a]);d.warnings_id&&d.tablature&&(d.tablature.warning_id=d.warnings_id)}if(r)for(a in r)r.hasOwnProperty(a)&&("listener"===a?r[a].highlight&&(d.clickListener=r[a].highlight):d[a]=r[a]);if(i)for(a in i)i.hasOwnProperty(a)&&(d[a]=i[a]);return s.renderEngine(function(e,t,n,r){var i,a,s,o,c,l,h,u=!1;return"*"===e&&(u=!0,(e=document.createElement("div")).setAttribute("style","visibility: hidden;"),document.body.appendChild(e)),!u&&d.wrap&&d.staffwidth?(a=t,s=n,o=r,h=new f(i=e,c=d).getMeasureWidths(a),(h=m.calcLineWraps(a,h,c)).reParse&&((l=new p).parse(o,h.revisedParams),a=l.getTune(),(l=l.getWarnings())&&(a.warnings=l)),c.afterParsing&&c.afterParsing(a,s,o),g(i,a,h.revisedParams,s,0),a.explanation=h.explanation,t=a):(d.afterParsing&&d.afterParsing(t,n,r),g(e,t,d,n,0),u&&e.parentNode.removeChild(e),null)},e,t,d)}},9447:function(e,t,n){var r=n(4914).relativeMajor,n={acc:"sharp",note:"f"},i={acc:"sharp",note:"c"},a={acc:"sharp",note:"g"},s={acc:"sharp",note:"d"},o={acc:"sharp",note:"A"},c={acc:"sharp",note:"e"},l={acc:"flat",note:"B"},h={acc:"flat",note:"e"},u={acc:"flat",note:"A"},d={acc:"flat",note:"d"},f={acc:"flat",note:"G"},p={acc:"flat",note:"c"},m={"C#":[n,i,a,s,o,c,{acc:"sharp",note:"B"}],"F#":[n,i,a,s,o,c],B:[n,i,a,s,o],E:[n,i,a,s],A:[n,i,a],D:[n,i],G:[n],C:[],F:[l],Bb:[l,h],Eb:[l,h,u],Cm:[l,h,u],Ab:[l,h,u,d],Db:[l,h,u,d,f],Gb:[l,h,u,d,f,p],Cb:[l,h,u,d,f,p,{acc:"flat",note:"F"}],"A#":[l,h],"B#":[],"D#":[l,h,u],"E#":[l],"G#":[l,h,u,d],none:[]};e.exports=function(e){e=m[r(e)];return e?JSON.parse(JSON.stringify(e)):null}},4914:function(e){var o={C:{modes:["CMaj","Amin","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","Bbmin","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","Bmin","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","Cmin","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","C#min","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","Dmin","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","Ebmin","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","Emin","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","Fmin","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","F#min","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","Gmin","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","G#min","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","A#min","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","D#min","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","Abmin","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},c=null;e.exports={relativeMajor:function(e){if(!c){c={};for(var t=Object.keys(o),n=0;n<t.length;n++){var r=o[t[n]];c[t[n].toLowerCase()]=t[n];for(var i=0;i<r.modes.length;i++){var a=r.modes[i].toLowerCase();c[a]=t[n]}}}if(!(s=e.toLowerCase().match(/([a-g][b#]?)(maj|min|mix|dor|phr|lyd|loc|m)?/))||!s[2])return e;var s=s[1]+s[2];return c[s]||e},relativeMode:function(e,t){var n=o[e];if(!n)return e;if(""===t)return e;t=t.toLowerCase().match(/^(maj|min|mix|dor|phr|lyd|loc|m)/);if(!t)return e;for(var r=t[1],i=0;i<n.modes.length;i++){var a=n.modes[i],s=a.toLowerCase().indexOf(r);if(-1!==s&&s===a.length-r.length)return a.substring(0,a.length-r.length)}return e},transposeKey:function(e,t){var n=o[e];if(!n)return e;for(;t<0;)t+=12;for(var r=(n.stepsFromC+t)%12,i=0;i<Object.keys(o).length;i++){var a=Object.keys(o)[i];if(o[a].stepsFromC===r)return a}return e}}},6780:function(e,t,n){var m=n(5008),f=n(4331),r=n(1028),i=n(9716),a=n(351);e.exports=function(){function n(e,t,n,r){for(var i=0;i<r.length;i++)e[n][r[i]]=t[n][r[i]]}this.reset=function(){this.version="1.1.0",this.media="screen",this.metaText={},this.metaTextInfo={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0,this.runningFonts={},delete this.visualTranspose},this.reset(),this.copyTopInfo=function(e){var t=["tempo","title","header","rhythm","origin","composer","author","partOrder"];n(this,e,"metaText",t),n(this,e,"metaTextInfo",t)},this.copyBottomInfo=function(e){var t=["unalignedWords","book","source","discography","notes","transcription","history","abc-copyright","abc-creator","abc-edited-by","footer"];n(this,e,"metaText",t),n(this,e,"metaTextInfo",t)},this.getBeatLength=function(){var e=this.getMeterFraction(),t=1;return(t=6===e.num||9===e.num||12===e.num||3===e.num&&8===e.den?3:t)/e.den},this.getPickupLength=function(){var e=this.getBarLength(),t=function(e,t){for(var n=0,r=0;r<e.length;r++)if(e[r].staff)for(var i=0;i<e[r].staff.length;i++)for(var a=0;a<e[r].staff[i].voices.length;a++)for(var s=e[r].staff[i].voices[a],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&&(n+=s[c].duration*o),s[c].endTriplet&&(o=1),t<=n&&(n-=t),"bar"===s[c].el_type)return n}return n}(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){return(e=e||(e=this.metaText?this.metaText.tempo:null,this.getBpm(e)))<=0&&(e=1),this.getBeatsPerMeasure()/e*6e4},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 n=0;n<t.staff.length;n++){var r=t.staff[n].meter;if(r)return r}}return{type:"common_time"}},this.getMeterFraction=function(){var e=this.getMeter(),t=4,n=4;return e&&("specified"===e.type?(t=parseInt(e.value[0].num,10),n=parseInt(e.value[0].den,10)):"cut_time"===e.type?n=t=2:"common_time"===e.type&&(n=t=4)),this.meter={num:t,den:n},this.meter},this.getKeySignature=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var n=0;n<t.staff.length;n++)if(t.staff[n].key)return t.staff[n].key}return{}},this.getElementFromChar=function(e){for(var t=0;t<this.lines.length;t++){var n=this.lines[t];if(n.staff)for(var r=0;r<n.staff.length;r++)for(var i=n.staff[r],a=0;a<i.voices.length;a++)for(var s=i.voices[a],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,n,r,i,a,s,o,c,l){if(t.hint)return{isTiedState:void 0,duration:0};var h=t.durationClass||t.duration;if(0<(h=t.abcelem.rest&&"spacer"===t.abcelem.rest.type?0:h)){for(var u=[],d=0;d<t.elemset.length;d++)null!==t.elemset[d]&&u.push(t.elemset[d]);var f=t.startTie;if(void 0!==c)e["event"+c].elements.push(u),l&&(e["event"+n]||(e["event"+n]={type:"event",milliseconds:n,line:a,measureNumber:s,top:r,height:i,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),l=!(e["event"+n].measureStart=!0)),f||(c=void 0);else{if(e["event"+n]){if(e["event"+n].left?e["event"+n].left=Math.min(e["event"+n].left,t.x):e["event"+n].left=t.x,e["event"+n].elements.push(u),e["event"+n].startCharArray.push(t.abcelem.startChar),e["event"+n].endCharArray.push(t.abcelem.endChar),null===e["event"+n].startChar&&(e["event"+n].startChar=t.abcelem.startChar),null===e["event"+n].endChar&&(e["event"+n].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length)for(e["event"+n].midiPitches||(e["event"+n].midiPitches=[]),d=0;d<t.abcelem.midiPitches.length;d++)e["event"+n].midiPitches.push(t.abcelem.midiPitches[d]);if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){e["event"+n].midiGraceNotePitches||(e["event"+n].midiGraceNotePitches=[]);for(var p=0;p<t.abcelem.midiGraceNotePitches.length;p++)e["event"+n].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[p])}}else e["event"+n]={type:"event",milliseconds:n,line:a,measureNumber:s,top:r,height:i,left:t.x,width:t.w,elements:[u],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?m.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(e["event"+n].midiGraceNotePitches=m.cloneArray(t.abcelem.midiGraceNotePitches));l&&(l=!(e["event"+n].measureStart=!0)),f&&(c=n)}}return{isTiedState:c,duration:h/o,nextIsBar:l||"bar"===t.type}},this.makeVoicesArray=function(){for(var e=[],t=[],n={},r=0;r<this.engraver.staffgroups.length;r++){var i=this.engraver.staffgroups[r];if(i&&i.staffs&&0<i.staffs.length)for(var a=i.staffs[0],s=a.absoluteY-a.top*f.STEP,a=i.staffs[i.staffs.length-1],o=a.absoluteY-a.bottom*f.STEP-s,c=i.voices,l=0;l<c.length;l++)if(!c[l].staff||!c[l].staff.isTabStaff){var h=!1;e[l]||(e[l]=[]),void 0===t[l]&&(t[l]=0);for(var u=c[l].children,d=0;d<u.length;d++)"tempo"===u[d].type&&(n[t[l]]=this.getBpm(u[d].abcelem)),e[l].push({top:s,height:o,line:i.line,measureNumber:t[l],elem:u[d]}),"bar"===u[d].type&&h&&t[l]++,"note"!==u[d].type&&"rest"!==u[d].type||(h=!0)}}return this.tempoLocations=n,e},this.setupEvents=function(e,t,H,n){n=n||1;for(var r=[],i={},D=e,a=!0,s=this.makeVoicesArray(),o=0,c=0;c<s.length;c++){var l=D,h=Math.round(1e3*l),u=0,d=-1,f=s[c],p=H;t=this.getBeatLength()*p/60;for(var m=-1,g=0;g<f.length;g++){var v=f[g].measureNumber;m!==v&&this.tempoLocations[v]&&(p=this.tempoLocations[v],t=n*this.getBeatLength()*p/60,m=v);var b,y=f[g].elem,x=this.addElementToEvents(i,y,h,f[g].top,f[g].height,f[g].line,f[g].measureNumber,t,T,a);if(T=x.isTiedState,a=x.nextIsBar,l+=x.duration,0<y.duration&&i["event"+h]&&(b="event"+h),h=Math.round(1e3*l),"bar"===y.type){var w=y.abcelem.type,F="1"===y.abcelem.startEnding,j="bar_left_repeat"===w||"bar_dbl_repeat"===w||"bar_right_repeat"===w;if("bar_right_repeat"===w||"bar_dbl_repeat"===w){0<g&&(i[b].endX=y.x),-1===d&&(d=g);for(var k=0,m=-1,C=u;C<d;C++){m!==(v=f[C].measureNumber)&&this.tempoLocations[v]&&(p=this.tempoLocations[v],t=n*this.getBeatLength()*p/60,m=v);var I=f[C].elem,T=(x=this.addElementToEvents(i,I,h,f[C].top,f[C].height,f[C].line,f[C].measureNumber,t,T,a)).isTiedState,a=x.nextIsBar;l+=x.duration,k=h,h=Math.round(1e3*l)}i["event"+k]&&(i["event"+k].endX=f[d].elem.x),a=!0,d=-1}F&&(d=g),j&&(u=g)}}o=Math.max(o,h)}for(var _,S,E,M,N=r=function(e){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n.sort(function(e,t){t=e.milliseconds-t.milliseconds;return 0!=t?t:"bar"===e.type?-1:1})}(i),A=N.length-1;0<=A;A--){var B=N[A];"bar"===B.type?(B.top=E,B.nextTop=_,_=E,B.bottom=M,B.nextBottom=S,S=M):"event"===B.type&&(E=B.top,M=B.top+B.height)}var V=this.lines,P=r;if(!(P.length<1)){for(var L=0;L<P.length-1;L++){var O=P[L],z=function(e,t){for(;t<e.length&&null===e[t].left;)t++;return e[t]}(P,L+1);null!==O.left&&(z=z&&O.top===z.top?z.left:V[O.line].staffGroup.w,void 0!==O.endX?z>O.left&&(O.endX=Math.min(O.endX,z)):O.endX=z)}e=P[P.length-1];e.endX=V[e.line].staffGroup.w}return r.push({type:"end",milliseconds:o}),this.addUsefulCallbackInfo(r,p*n),r},this.addUsefulCallbackInfo=function(e,t){for(var n=this.millisecondsPerMeasure(t),r=0;r<e.length;r++)e[r].millisecondsPerMeasure=n},this.getBpm=function(e){var t,n;return e&&(t=e.bpm,n=this.getBeatLength(),t=t*(e.duration&&0<e.duration.length?e.duration[0]:n)/n),t||(t=180,(e=this.getMeterFraction())&&3!==e.num&&e.num%3==0&&(t=120)),t},this.setTiming=function(e,t){if(t=t||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var n=this.metaText?this.metaText.tempo:null,r=this.getBpm(n),i=1,n=(e?n&&(i=e/r):e=r,this.getBeatLength()),r=e/60,t=this.getBarLength()/n*t/r,n=(t&&(t-=this.getPickupLength()/n/r),n*r);return this.noteTimings=this.setupEvents(t,n,e,i),0<this.noteTimings.length?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*r):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(e){var t=r(this,e=e||{});return i(t,e,this.formatting.percmap,this.formatting.midi)},this.deline=function(e){return a(this.lines,e)}}},351:function(e){function n(e,t){return"abselem"===e?"abselem":t}function B(e,t,n){e.el_type="font",e.type=n,e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function P(e,t){return!e||JSON.stringify(e,n)===JSON.stringify(t,n)}e.exports=function(e,t){for(var n=!!(t=t||{}).lineBreaks,r=[],i=!1,a=[],s=[],o=[],c=[],l=[],h=[],u=[],d=0;d<e.length;d++){var f=e[d];if(f.staff){if(i&&!f.vskip)for(var p=r[r.length-1],m=0;m<p.staff.length;m++){var g=f.staff[m],v=p.staff[m];if(g){if(!P(g.meter,a[m])){{b=void 0;y=void 0;x=void 0;var b=g.meter;var y=g.voices;b.el_type="meter",b.startChar=-1,b.endChar=-1;for(var x=0;x<y.length;x++)y[x].unshift(b)}a[m]=g.meter,delete g.meter}if(!P(g.key,s[m])){{w=void 0;k=void 0;C=void 0;var w=g.key;var k=g.voices;w.el_type="key",w.startChar=-1,w.endChar=-1;for(var C=0;C<k.length;C++)k[C].unshift(w)}s[m]=g.key,delete g.key}g.title&&(v.abbrevTitle=g.title);if(!P(g.clef,o[m])){{T=void 0;_=void 0;S=void 0;var T=g.clef;var _=g.voices;T.el_type="clef",T.startChar=-1,T.endChar=-1;for(var S=0;S<_.length;S++)_[S].unshift(T)}o[m]=g.clef,delete g.clef}P(g.vocalfont,c[m])||(B(g.vocalfont,g.voices,"vocalfont"),c[m]=g.vocalfont,delete g.vocalfont),P(g.gchordfont,l[m])||(B(g.gchordfont,g.voices,"gchordfont"),l[m]=g.gchordfont,delete g.gchordfont),P(g.tripletfont,h[m])||(B(g.tripletfont,g.voices,"tripletfont"),h[m]=g.tripletfont,delete g.tripletfont),P(g.annotationfont,u[m])||(B(g.annotationfont,g.voices,"annotationfont"),u[m]=g.annotationfont,delete g.annotationfont)}if(g)for(var E=0;E<v.voices.length;E++){var M=v.voices[E],N=g.voices[E];n&&M.push({el_type:"break"}),N&&(v.voices[E]=M.concat(N))}}else{for(var A=0;A<f.staff.length;A++)s[A]=f.staff[A].key,a[A]=f.staff[A].meter,o[A]=f.staff[A].clef;r.push(function(e){for(var t={},n=Object.keys(e),r=0;r<n.length;r++)if("staff"!==n[r])t[n[r]]=e[n[r]];else{t.staff=[];for(var i=0;i<e.staff.length;i++){for(var a={},s=Object.keys(e.staff[i]),o=0;o<s.length;o++)if("voices"!==s[o])a[s[o]]=e.staff[i][s[o]];else{a.voices=[];for(var c=0;c<e.staff[i].voices.length;c++)a.voices.push([].concat(e.staff[i].voices[c]))}t.staff.push(a)}}return t}(f))}i=!0}else i=!1,r.push(f)}return r}},2945:function(e){try{var t;"function"!=typeof window.CustomEvent&&((t=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,window.CustomEvent=t)}catch(e){}function n(e){this.textarea=document.getElementById(e),this.initialText=this.textarea.value,this.isDragging=!1}n.prototype.addSelectionListener=function(t){this.textarea.onmousemove=function(e){this.isDragging&&t.fireSelectionChanged()}},n.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()}},n.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},n.prototype.setSelection=function(e,t){var n;this.textarea.setSelectionRange?this.textarea.setSelectionRange(e,t):this.textarea.createTextRange&&((n=this.textarea.createTextRange()).collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select()),this.textarea.focus()},n.prototype.getString=function(){return this.textarea.value},n.prototype.setString=function(e){this.textarea.value=e,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},n.prototype.getElem=function(){return this.textarea},e.exports=n},5294:function(e,t,n){function r(e,t){this.abcjsParams=function(e){var t,n={};if(e.abcjsParams)for(t in e.abcjsParams)e.abcjsParams.hasOwnProperty(t)&&(n[t]=e.abcjsParams[t]);if(e.midi_options)for(t in e.midi_options)e.midi_options.hasOwnProperty(t)&&(n[t]=e.midi_options[t]);if(e.parser_options)for(t in e.parser_options)e.parser_options.hasOwnProperty(t)&&(n[t]=e.parser_options[t]);if(e.render_options)for(t in e.render_options)e.render_options.hasOwnProperty(t)&&(n[t]=e.render_options[t]);return n.tablature&&e.warnings_id&&(n.tablature.warnings_id=e.warnings_id),n}(t),t.indicate_changed&&(this.indicate_changed=!0),this.editarea="string"==typeof e?new c(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&&s()&&(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 0<(n=e.className).length&&(n===t||new RegExp("(^|\\s)"+t+"(\\s|$)").test(n))||(e.className+=(e.className?" ":"")+t),e;var n},this.removeClassName=function(e,t){return e.className=i.strip(e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ")),e},this.setReadOnly=function(e){var t="abc_textarea_readonly",n=this.editarea.getElem();e?(n.setAttribute("readonly","yes"),this.addClassName(n,t)):(n.removeAttribute("readonly"),this.removeClassName(n,t))}}var i=n(5008),a=n(3450),s=n(5049),o=n(6859),c=n(2945);r.prototype.redrawMidi=function(){var e;this.generate_midi&&!this.midiPause&&(e=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}}),window.dispatchEvent(e)),this.synth&&(e=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],e,this.synth.options))},r.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=o(this.div,this.currentAbc,this.abcjsParams),0<this.tunes.length&&(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}},r.prototype.paramChanged=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this.abcjsParams[t]=e[t]);this.currentAbc="",this.fireChanged()},r.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()}},r.prototype.parseABC=function(){var e=this.editarea.getString();return e===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=e,!0)},r.prototype.updateSelection=function(){var e=this.editarea.getSelection();try{0<this.tunes.length&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(e.start,e.end)}catch(e){}this.selectionChangeCallback&&this.selectionChangeCallback(e.start,e.end)},r.prototype.fireSelectionChanged=function(){this.updateSelection()},r.prototype.setDirtyStyle=function(e){var t,n,r;void 0!==this.indicate_changed&&(t="abc_textarea_dirty",n=this.editarea.getElem(),e?(e=t,0<(r=(t=n).className).length&&(r===e||new RegExp("(^|\\s)"+e+"(\\s|$)").test(r))||(t.className+=(t.className?" ":"")+e)):n.className=i.strip(n.className.replace(new RegExp("(^|\\s+)abc_textarea_dirty(\\s+|$)")," ")))},r.prototype.fireChanged=function(){var e,t;!this.bIsPaused&&this.parseABC()&&((e=this).timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){e.modelChanged()},300),t=this.isDirty(),this.wasDirty!==t&&(this.wasDirty=t,this.setDirtyStyle(t)),this.onchangeCallback&&this.onchangeCallback(this))},r.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},r.prototype.isDirty=function(){return void 0!==this.indicate_changed&&this.editarea.initialText!==this.editarea.getString()},r.prototype.highlight=function(e,t,n,r,i,a){this.editarea.setSelection(e.startChar,e.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(e.startChar,e.endChar),this.clientClickListener&&this.clientClickListener(e,t,n,r,i,a)},r.prototype.pause=function(e){(this.bIsPaused=e)||this.fireChanged()},r.prototype.millisecondsPerMeasure=function(){return this.synth&&this.synth.synthControl&&this.synth.synthControl.visualObj?this.synth.synthControl.visualObj.millisecondsPerMeasure():0},r.prototype.pauseMidi=function(e){(this.midiPause=e)||this.redrawMidi()},e.exports=r},3284:function(e,t,n){var r,_=n(9991);!function(){"use strict";r=function(e,t){var n=e.setUpAudio(t=void 0===t?{}:t),r=_(),i=e.metaText?e.metaText.title:void 0,a=(i&&128<i.length&&(i=i.substring(0,124)+"..."),e.getKeySignature()),e=e.getMeterFraction(),s=n.tempo/60;r.setGlobalInfo(n.tempo,i,a,e);for(var o=0;o<n.tracks.length;o++){r.startTrack();for(var c={},l=0;l<n.tracks[o].length;l++){var h=n.tracks[o][l];switch(h.cmd){case"text":r.setText(h.type,h.text);break;case"program":var u=0;t.pan&&t.pan.length>o&&(u=t.pan[o]),128===h.instrument?(r.setChannel(9,u),r.setInstrument(0)):(r.setChannel(h.channel,u),r.setInstrument(h.instrument));break;case"note":var u=h.gap*s,d=h.start,f=d+h.duration-u;c[d]||(c[d]=[]),c[d].push({pitch:h.pitch,volume:h.volume,cents:h.cents}),c[f]||(c[f]=[]),c[f].push({pitch:h.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+h.cmd)}}T=C=w=k=x=y=b=v=g=m=p=void 0;for(var p=r,m=c,g=1920,v=Object.keys(m),b=0;b<v.length;b++)v[b]=parseFloat(v[b]);v.sort(function(e,t){return e-t});for(var y=0,x=0;x<v.length;x++){var w,k=m[v[x]];v[x]>y&&(w=(v[x]-y)*g,p.addRest(w),y=v[x]);for(var C=0;C<k.length;C++){var T=k[C];T.volume?p.startNote(T.pitch,T.volume,T.cents):p.endNote(T.pitch)}}r.endTrack()}return r.getData()}}(),e.exports=r},5008:function(e){var r={clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},cloneArray:function(e){for(var t=[],n=0;n<e.length;n++)t.push(r.clone(e[n]));return t},cloneHashOfHash:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=r.clone(e[t]));return n},cloneHashOfArrayOfHash:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=r.cloneArray(e[t]));return n},strip:function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(e,t){return 0===e.indexOf(t)},endsWith:function(e,t){var n=e.length-t.length;return 0<=n&&e.lastIndexOf(t)===n},last:function(e){return 0===e.length?null:e[e.length-1]}};e.exports=r},8905:function(e,t,n){var S=n(5008),E=n(8360),M=n(9928),N=n(6476),A=n(1881),B=n(1756),s=n(6780),o=n(575);e.exports=function(){"use strict";var p,m=new s,g=new o(m),v="",b="";function r(e,t,n){e.positioning||(e.positioning={}),e.positioning[t]=n}function i(e,t,n){e.fonts||(e.fonts={}),e.fonts[t]=n}this.getTune=function(){var e={formatting:m.formatting,lines:m.lines,media:m.media,metaText:m.metaText,metaTextInfo:m.metaTextInfo,version:m.version,addElementToEvents:m.addElementToEvents,addUsefulCallbackInfo:m.addUsefulCallbackInfo,getTotalTime:m.getTotalTime,getTotalBeats:m.getTotalBeats,getBarLength:m.getBarLength,getBeatLength:m.getBeatLength,getBeatsPerMeasure:m.getBeatsPerMeasure,getBpm:m.getBpm,getMeter:m.getMeter,getMeterFraction:m.getMeterFraction,getPickupLength:m.getPickupLength,getKeySignature:m.getKeySignature,getElementFromChar:m.getElementFromChar,makeVoicesArray:m.makeVoicesArray,millisecondsPerMeasure:m.millisecondsPerMeasure,setupEvents:m.setupEvents,setTiming:m.setTiming,setUpAudio:m.setUpAudio,deline:m.deline};return m.lineBreaks&&(e.lineBreaks=m.lineBreaks),m.visualTranspose&&(e.visualTranspose=m.visualTranspose),e};var y,x,w={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.octave=0,this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.partForNextLine={},this.tempoForNextLine=[],this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.ignoredDecorations=[],this.score_is_present=!1,this.inEnding=!1,this.inTie=[],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[],this.freegchord=!1,this.endingHoldOver={}},differentFont:function(e,t){return this[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,n){"note"===n?("auto"!==this.vocalPosition&&r(e,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&r(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&r(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&r(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&r(e,"volumePosition",this.volumePosition),this.differentFont("annotationfont",t)&&i(e,"annotationfont",this.annotationfont),this.differentFont("gchordfont",t)&&i(e,"gchordfont",this.gchordfont),this.differentFont("vocalfont",t)&&i(e,"vocalfont",this.vocalfont),this.differentFont("tripletfont",t)&&i(e,"tripletfont",this.tripletfont)):"bar"===n&&("auto"!==this.dynamicPosition&&r(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&r(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&r(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&r(e,"volumePosition",this.volumePosition),this.differentFont("measurefont",t)&&i(e,"measurefont",this.measurefont),this.differentFont("repeatfont",t)&&i(e,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var e,t=0;t<this.inTie.length;t++)if(this.endingHoldOver.inTie.push([]),this.inTie[t])for(var n=0;n<this.inTie[t].length;n++)this.endingHoldOver.inTie[t].push(this.inTie[t][n]);for(e in this.inTieChord)this.inTieChord.hasOwnProperty(e)&&(this.endingHoldOver.inTieChord[e]=this.inTieChord[e])},restoreStartEndingHoldOvers:function(){if(this.endingHoldOver.inTie){this.inTie=[],this.inTieChord={};for(var e,t=0;t<this.endingHoldOver.inTie.length;t++){this.inTie.push([]);for(var n=0;n<this.endingHoldOver.inTie[t].length;n++)this.inTie[t].push(this.endingHoldOver.inTie[t][n])}for(e in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(e)&&(this.inTieChord[e]=this.endingHoldOver.inTieChord[e])}}},a=function(e){return e.replace(/\x12/g," ").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},k=function(e,t,n){var r=(t=t||" ")[n];" "!==r&&r||(r="SPACE");var r=a(t.substring(n-64,n))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+r+"</span>"+a(t.substring(n+1).substring(0,64));r="Music Line:"+p.lineIndex+":"+(n+1)+": "+e+": "+r,w.warnings||(w.warnings=[]),w.warnings.push(r),r={message:e,line:t,startChar:w.iChar+n,column:n},w.warningObjects||(w.warningObjects=[]),w.warningObjects.push(r)},C=(this.getWarnings=function(){return w.warnings},this.getWarningObjects=function(){return w.warningObjects},function(e,n){if(0<=n.indexOf(""))v+=n;else if(n=v+n,v="",e){"-"!==(n=S.strip(n))[n.length-1]&&(n+=" ");for(var r=[],i=0,a=!1,t=function(e){var t=(t=S.strip(n.substring(i,e))).replace(/\\([-_*|~])/g,"$1");return i=e+1,0<t.length&&(a&&(t=t.replace(/~/g," ")),"_"!==(e=n[e])&&"-"!==e&&(e=" "),r.push({syllable:p.translateString(t),divider:e}),!(a=!1))},s=!1,o=0;o<n.length;o++){switch(n[o]){case" ":case"":t(o);break;case"-":!s&&!t(o)&&0<r.length&&(S.last(r).divider="-",r.push({skip:!0,to:"next"}));break;case"_":s||(t(o),r.push({skip:!0,to:"slur"}));break;case"*":s||(t(o),r.push({skip:!0,to:"next"}));break;case"|":s||(t(o),r.push({skip:!0,to:"bar"}));break;case"~":s||(a=!0)}s="\\"===n[o]}e.forEach(function(e){if(0!==r.length)if(r[0].skip){switch(r[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&r.shift();break;case"bar":"bar"===e.el_type&&r.shift()}"bar"!==e.el_type&&(void 0===e.lyric?e.lyric=[{syllable:"",divider:" "}]:e.lyric.push({syllable:"",divider:" "}))}else{var t;"note"===e.el_type&&void 0===e.rest&&((t=r.shift()).syllable&&(t.syllable=t.syllable.replace(/ +/g," ")),void 0===e.lyric?e.lyric=[t]:e.lyric.push(t))}})}else k("Can't add words before the first line of music",e,0)}),T=function(e,n){if(0<=n.indexOf(""))b+=n;else if(n=b+n,b="",e){"-"!==(n=S.strip(n))[n.length-1]&&(n+=" ");for(var r=[],i=0,a=!1,t=function(e){var t=S.strip(n.substring(i,e));return i=e+1,0<t.length&&(a&&(t=t.replace(/~/g," ")),"_"!==(e=n[e])&&"-"!==e&&(e=" "),r.push({syllable:p.translateString(t),divider:e}),!(a=!1))},s=0;s<n.length;s++)switch(n[s]){case" ":case"":t(s);break;case"-":!t(s)&&0<r.length&&(S.last(r).divider="-",r.push({skip:!0,to:"next"}));break;case"_":t(s),r.push({skip:!0,to:"slur"});break;case"*":t(s),r.push({skip:!0,to:"next"});break;case"|":t(s),r.push({skip:!0,to:"bar"});break;case"~":a=!0}e.forEach(function(e){if(0!==r.length)if(r[0].skip)switch(r[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&r.shift();break;case"bar":"bar"===e.el_type&&r.shift()}else{var t;"note"===e.el_type&&void 0===e.rest&&(t=r.shift(),void 0===e.lyric?e.lyric=[t]:e.lyric.push(t))}})}else k("Can't add symbols before the first line of music",e,0)};function _(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(i)for(var a=0;a<i.voices.length;a++){var s=i.voices[a],o=r.voices[a];o&&function(e,t){e.push({el_type:"hint"});for(var n=0;n<t.length;n++){var r=t[n],i=S.clone(r);if(e.push(i),"bar"===r.el_type)return}}(o,s)}}}this.parse=function(e,t,n){t=t||{},n=n||0,m.reset();var r=(e=e.replace(/\r\n?/g,"\n")+"\n").split("\n\\");if(1<r.length){for(var i=1;i<r.length;i++)for(;0<r[i].length&&"\n"!==r[i][0];)r[i]=r[i].substr(1),r[i-1]+=" ";e=r.join(" ")}var a,s,e=(e=e.replace(/\\([ \t]*)(%.*)*\n/g,function(e,t,n){return t+""+(n?Array(n.length+1).join(" "):"")+"\n"})).split("\n");0===S.last(e).length&&e.pop(),p=new A(e,w),y=new M(p,k,w,m,g),x=new N(p,k,w,m,g,y),t.print&&(m.media="print"),w.reset(),w.iChar=n,t.visualTranspose?(w.globalTranspose=parseInt(t.visualTranspose),0===w.globalTranspose?w.globalTranspose=void 0:g.setVisualTranspose(t.visualTranspose)):w.globalTranspose=void 0,t.lineBreaks&&(w.lineBreaks=t.lineBreaks),y.reset(p,k,w,m);try{t.format&&E.globalFormatting(t.format);for(var o=p.nextLine();o;){if(t.header_only&&!1===w.is_in_header)throw"normal_abort";if(t.stop_on_warning&&w.warnings)throw"normal_abort";var c=w.is_in_header;a=o,s=void 0,S.startsWith(a,"%%")?(s=E.addDirective(a.substring(2)))&&k(s,a,2):0!==(a=(a=0<=(s=a.indexOf("%"))?a.substring(0,s):a).replace(/\s+$/,"")).length&&(v?C(g.getCurrentVoice(),a.substring(2)):b?T(g.getCurrentVoice(),a.substring(2)):a.length<2||":"!==a[1]||x.lineContinuation?x.parseMusic(a):((s=y.parseHeader(a)).regular&&x.parseMusic(a),s.newline&&x.startNewLine(),s.words&&C(g.getCurrentVoice(),a.substring(2)),s.symbols&&T(g.getCurrentVoice(),a.substring(2)))),c&&!w.is_in_header&&(g.setRunningFont("annotationfont",w.annotationfont),g.setRunningFont("gchordfont",w.gchordfont),g.setRunningFont("tripletfont",w.tripletfont),g.setRunningFont("vocalfont",w.vocalfont)),o=p.nextLine()}v&&C(g.getCurrentVoice(),""),b&&T(g.getCurrentVoice(),""),w.openSlurs=g.cleanUp(w.barsperstaff,w.staffnonote,w.openSlurs)}catch(e){if("normal_abort"!==e)throw e}var l=792,h=612;switch(w.papersize){case"legal":l=1008,h=612;break;case"A4":l=842.4,h=597.6}if(w.landscape&&(e=l,l=h,h=e),m.formatting.pagewidth||(m.formatting.pagewidth=h),m.formatting.pageheight||(m.formatting.pageheight=l),t.hint_measures)for(var u=0;u<m.lines.length;u++){var d=m.lines[u].staff;if(d){for(var f=u+1;f<m.lines.length&&void 0===m.lines[f].staff;)f++;f<m.lines.length&&_(d,m.lines[f].staff)}}B.wrapLines(m,w.lineBreaks,w.barNumbers)}}},9565:function(e,t,n){var o=n(5008);e.exports=function(e){"use strict";for(var n="",t=e.match(/(\s*)/),r=(e=o.strip(e)).split("\nX:"),i=1;i<r.length;i++)r[i]="X:"+r[i];var a=t?t[0].length:0,s=[],e=(r.forEach(function(e){s.push({abc:e,startPos:a}),a+=e.length+1}),1<s.length&&!o.startsWith(s[0].abc,"X:")&&s.shift().abc.split("\n").forEach(function(e){o.startsWith(e,"%%")&&(n+=e+"\n")}),n);return s.forEach(function(e){var t=e.abc.indexOf("\n\n"),t=(0<t&&(e.abc=e.abc.substring(0,t)),e.pure=e.abc,e.abc=n+e.abc,e.title="",e.pure.split("T:")),t=(1<t.length&&(t=t[1].split("\n"),e.title=o.strip(t[0])),e.pure.substring(2,e.pure.indexOf("\n")));e.id=o.strip(t)}),{header:e,tunes:s}}},8360:function(e,t,n){var ce=n(5008),le={};!function(){"use strict";function F(t,n,r,i,a){function e(){var e=parseInt(t[0].token);return t.shift(),n?0===t.length?{face:n.face,weight:n.weight,style:n.style,decoration:n.decoration,size:e}:1===t.length&&"box"===t[0].token&&b[a]?{face:n.face,weight:n.weight,style:n.style,decoration:n.decoration,size:e,box:!0}:(W("Extra parameters in font definition.",r,i),{face:n.face,weight:n.weight,style:n.style,decoration:n.decoration,size:e}):(W("Can't set just the size of the font since there is no default value.",r,i),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:e})}if("*"===t[0].token){if(t.shift(),"number"===t[0].type)return e();W("Expected font size number after *.",r,i)}if("number"===t[0].type)return e();for(var s,o=[],c="normal",l="normal",h="none",u=!1,d="face",f=!1;t.length;){var p=t.shift(),m=p.token.toLowerCase();switch(d){case"face":f||"utf"!==m&&"number"!==p.type&&"bold"!==m&&"italic"!==m&&"underline"!==m&&"box"!==m?0<o.length&&"-"===p.token?(f=!0,o[o.length-1]=o[o.length-1]+p.token):f?(f=!1,o[o.length-1]=o[o.length-1]+p.token):o.push(p.token):"number"===p.type?(s?W("Font size specified twice in font definition.",r,i):s=p.token,d="modifier"):"bold"===m?c="bold":"italic"===m?l="italic":"underline"===m?h="underline":"box"===m?(b[a]?u=!0:W('This font style doesn\'t support "box"',r,i),d="finished"):"utf"===m?(p=t.shift(),d="size"):W("Unknown parameter "+p.token+" in font definition.",r,i);break;case"size":"number"===p.type?s?W("Font size specified twice in font definition.",r,i):s=p.token:W("Expected font size in font definition.",r,i),d="modifier";break;case"modifier":"bold"===m?c="bold":"italic"===m?l="italic":"underline"===m?h="underline":"box"===m?(b[a]?u=!0:W('This font style doesn\'t support "box"',r,i),d="finished"):W("Unknown parameter "+p.token+" in font definition.",r,i);break;case"finished":W('Extra characters found after "box" in font definition.',r,i)}}s=void 0===s?n?n.size:(W("Must specify the size of the font since there is no default value.",r,i),12):parseFloat(s),""===(o=o.join(" "))&&(o=n?n.face:(W("Must specify the name of the font since there is no default value.",r,i),"sans-serif"));var g=function(){switch(o){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}}(),v={};return g?(v.face=g.face,v.weight=g.weight,v.style=g.style,v.decoration=g.decoration):(v.face=o,v.weight=c,v.style=l,v.decoration=h),v.size=s,u&&(v.box=!0),v}function j(e,t,n){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(R[e]=F(t,R[e],n,0,e),R.is_in_header&&(X.formatting[e]=R[e]),null)}function I(e,t){var n="",t=(t.forEach(function(e){n+=e.token}),parseFloat(n));isNaN(t)||0===t||(X.formatting.scale=t)}function V(e,t,n,r,i){return 1!==n.length||"number"!==n[0].type?'Directive "'+t+'" requires a number as a parameter.':(n=n[0].intt,void 0!==r&&n<r?'Directive "'+t+'" requires a number greater than or equal to '+r+" as a parameter.":void 0!==i&&i<n?'Directive "'+t+'" requires a number less than or equal to '+i+" as a parameter.":(R[e]=n,null))}function Y(e,t,n){return 1!==n.length||"true"!==n[0].token&&"false"!==n[0].token?null!==(t=V(e,t,n,0,1))?t:(R[e]=1===R[e],null):(R[e]="true"===n[0].token,null)}function G(e,t,n,r){if(1!==n.length)return'Directive "'+t+'" requires one of [ '+r.join(", ")+" ] as a parameter.";for(var i=n[0].token,a=!1,s=0;!a&&s<r.length;s++)r[s]===i&&(a=!0);return a?(R[e]=i,null):'Directive "'+t+'" requires one of [ '+r.join(", ")+" ] as a parameter."}le.initialize=function(e,t,n,r,i){q=e,W=t,X=r,U=i,(R=n).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"},X.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},X.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},X.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},X.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},X.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},X.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},X.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},X.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},X.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},X.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},X.formatting.annotationfont=R.annotationfont,X.formatting.gchordfont=R.gchordfont,X.formatting.historyfont=R.historyfont,X.formatting.infofont=R.infofont,X.formatting.measurefont=R.measurefont,X.formatting.partsfont=R.partsfont,X.formatting.repeatfont=R.repeatfont,X.formatting.textfont=R.textfont,X.formatting.tripletfont=R.tripletfont,X.formatting.vocalfont=R.vocalfont,X.formatting.wordsfont=R.wordsfont};var q,W,R,X,U,b={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},K=["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"],$=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],Q=["gchord","ptstress","beatstring"],J=["bassvol","chordvol","bassprog","chordprog","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","vol","volinc"],Z=["program"],ee=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],te=["beat"],ne=["drone"],re=["portamento"],ie=["expand","grace","trim"],ae=["drum","chordname"],se=(le.parseFontChangeLine=function(e){var t=(e=e.replace(/\$\$/g,"")).split("$");if(1<t.length&&R.setfont){var n=[];""!==t[0]&&n.push({text:t[0]});for(var r,i=1;i<t.length;i++)"0"===t[i][0]?n.push({text:t[i].substring(1).replace(/\x03/g,"$$")}):(r=parseInt(t[i][0],10),R.setfont[r]?n.push({font:R.setfont[r],text:t[i].substring(1).replace(/\x03/g,"$$")}):n[n.length-1].text+="$"+t[i].replace(/\x03/g,"$$"));return n}return e.replace(/\x03/g,"$$")},["auto","above","below","hidden"]);function oe(e){if(0===e.length)return{value:1};if(1===e.length)if("number"===e[0].type){if(0<=e[0].floatt||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+")"}}le.addDirective=function(e){var t=q.tokenize(e,0,e.length);if(0===t.length||"alpha"!==t[0].type)return null;var r=e.substring(e.indexOf(t[0].token)+t[0].token.length),r=q.stripComment(r),n=t.shift().token.toLowerCase(),i="";switch(n){case"bagpipes":X.formatting.bagpipes=!0;break;case"flatbeams":X.formatting.flatbeams=!0;break;case"jazzchords":X.formatting.jazzchords=!0;break;case"accentAbove":X.formatting.accentAbove=!0;break;case"germanAlphabet":X.formatting.germanAlphabet=!0;break;case"landscape":R.landscape=!0;break;case"papersize":R.papersize=r;break;case"graceslurs":if(1!==t.length)return"Directive graceslurs requires one parameter: 0 or 1";if("0"===t[0].token||"false"===t[0].token)X.formatting.graceSlurs=!1;else{if("1"!==t[0].token&&"true"!==t[0].token)return"Directive graceslurs requires one parameter: 0 or 1 (received "+t[0].token+")";X.formatting.graceSlurs=!0}break;case"lineThickness":var a=oe(t);if(void 0!==a.value&&(X.formatting.lineThickness=a.value),a.error)return a.error;break;case"stretchlast":var a=oe(t);if(void 0!==a.value&&(X.formatting.stretchlast=a.value),a.error)return a.error;break;case"titlecaps":R.titlecaps=!0;break;case"titleleft":X.formatting.titleleft=!0;break;case"measurebox":X.formatting.measurebox=!0;break;case"vocal":return G("vocalPosition",n,t,se);case"dynamic":return G("dynamicPosition",n,t,se);case"gchord":return G("chordPosition",n,t,se);case"ornament":return G("ornamentPosition",n,t,se);case"volume":return G("volumePosition",n,t,se);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 a=n,s=t,0===(o=q.getMeasurement(s)).used||0!==s.length?'Directive "'+a+'" requires a measurement as a parameter.':(X.formatting[a]=o.value,null);case"voicescale":if(1!==t.length||"number"!==t[0].type)return"voicescale requires one float as a parameter";var s=t.shift();return R.currentVoice&&(R.currentVoice.scale=s.floatt,U.changeVoiceScale(R.currentVoice.scale)),null;case"voicecolor":if(1!==t.length)return"voicecolor requires one string as a parameter";var o=t.shift();return R.currentVoice&&(R.currentVoice.color=o.token,U.changeVoiceColor(R.currentVoice.color)),null;case"vskip":var c=Math.round((l=n,c=t,0===(h=q.getMeasurement(c)).used||0!==c.length?{error:'Directive "'+l+'" requires a measurement as a parameter.'}:h.value));return c.error||(U.addSpacing(c),null);case"scale":I(n,t);break;case"sep":if(0===t.length)U.addSeparator(14,14,85,{startChar:R.iChar,endChar:R.iChar+5});else{var l=q.getMeasurement(t);if(0===l.used)return'Directive "'+n+'" requires 3 numbers: space above, space below, length of line';var h=l.value;if(0===(l=q.getMeasurement(t)).used)return'Directive "'+n+'" requires 3 numbers: space above, space below, length of line';c=l.value;if(0===(l=q.getMeasurement(t)).used||0!==t.length)return'Directive "'+n+'" requires 3 numbers: space above, space below, length of line';var u=l.value;U.addSeparator(h,c,u,{startChar:R.iChar,endChar:R.iChar+r.length})}break;case"barsperstaff":if(null!==(i=V("barsperstaff",n,t)))return i;break;case"staffnonote":if(1!==t.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===t[0].token)R.staffnonote=!0;else{if("1"!==t[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+t[0].token+")";R.staffnonote=!1}break;case"printtempo":if(null!==(i=Y("printTempo",n,t)))return i;break;case"partsbox":if(null!==(i=Y("partsBox",n,t)))return i;R.partsfont.box=R.partsBox;break;case"freegchord":if(null!==(i=Y("freegchord",n,t)))return i;break;case"measurenb":case"barnumbers":if(null!==(i=V("barNumbers",n,t)))return i;break;case"setbarnb":if(1!==t.length||"number"!==t[0].type)return"Directive setbarnb requires a number as a parameter.";R.currBarNumber=U.setBarNumberImmediate(t[0].intt);break;case"begintext":for(var d="",f=q.nextLine();f&&0!==f.indexOf("%%endtext");)ce.startsWith(f,"%%")?d+=f.substring(2)+"\n":d+=f+"\n",f=q.nextLine();U.addText(d,{startChar:R.iChar,endChar:R.iChar+d.length+7});break;case"continueall":R.continueall=!0;break;case"beginps":for(f=q.nextLine();f&&0!==f.indexOf("%%endps");)q.nextLine();W("Postscript ignored",e,0);break;case"deco":0<r.length&&R.ignoredDecorations.push(r.substring(0,r.indexOf(" "))),W("Decoration redefinition ignored",e,0);break;case"text":u=q.translateString(r);U.addText(le.parseFontChangeLine(u),{startChar:R.iChar,endChar:R.iChar+r.length+7});break;case"center":u=q.translateString(r);U.addCentered(le.parseFontChangeLine(u));break;case"font":break;case"setfont":u=q.tokenize(r,0,r.length);4<=u.length&&"-"===u[0].token&&"number"===u[1].type&&(1<=(A=parseInt(u[1].token))&&A<=9&&(R.setfont||(R.setfont=[]),u.shift(),u.shift(),R.setfont[A]=F(u,R.setfont[A],e,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 j(n,t,e);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return 0===t.length?'Directive "'+n+'" requires a font as a parameter.':(X.formatting[n]=F(t,X.formatting[n],e,0,n),null);case"barlabelfont":case"barnumberfont":case"barnumfont":return j("measurefont",t,e);case"staves":case"score":for(var p,m=!(R.score_is_present=!0),g=!1,v=!1,b=!1,y=!1,x=!1,w=!1,k=function(){var e;w=!0,p&&(e="start",0<p.staffNum&&("start"!==R.staves[p.staffNum-1].connectBarLines&&"continue"!==R.staves[p.staffNum-1].connectBarLines||(e="continue")),R.staves[p.staffNum].connectBarLines=e)};t.length;){var C=t.shift();switch(C.token){case"(":m?W("Can't nest parenthesis in %%score",e,C.start):b=m=!0;break;case")":!m||b?W("Unexpected close parenthesis in %%score",e,C.start):m=!1;break;case"[":g?W("Can't nest brackets in %%score",e,C.start):y=g=!0;break;case"]":!g||y?W("Unexpected close bracket in %%score",e,C.start):(g=!1,R.staves[p.staffNum].bracket="end");break;case"{":v?W("Can't nest braces in %%score",e,C.start):x=v=!0;break;case"}":!v||x?W("Unexpected close brace in %%score",e,C.start):(v=!1,R.staves[p.staffNum].brace="end");break;case"|":k();break;default:for(var T="";("alpha"===C.type||"number"===C.type)&&(T+=C.token,C.continueId);)C=t.shift();S=void 0;var _=T,S=!m||b,E=y?"start":g?"continue":void 0,M=x?"start":v?"continue":void 0,H=w;!S&&0!==R.staves.length||R.staves.push({index:R.staves.length,numVoices:0}),S=ce.last(R.staves),void 0!==E&&void 0===S.bracket&&(S.bracket=E),void 0!==M&&void 0===S.brace&&(S.brace=M),H&&(S.connectBarLines="end"),void 0===R.voices[_]&&(R.voices[_]={staffNum:S.index,index:S.numVoices},S.numVoices++),w=x=y=b=!1,p=R.voices[T],"staves"===n&&k()}}break;case"newpage":u=q.getInt(r);U.addNewPage(0===u.digits?-1:u.value);break;case"abc":var N=r.split(" ");switch(N[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var D=N.shift();U.addMetaText(n+D,N.join(" "),{startChar:R.iChar,endChar:R.iChar+r.length+5});break;default:return"Unknown directive: "+n+N[0]}break;case"header":case"footer":var A=q.getMeat(r,0,r.length),u=(A='"'===(A=r.substring(A.start,A.end))[0]&&'"'===A[A.length-1]?A.substring(1,A.length-1):A).split("\t"),A=1===u.length?{left:"",center:u[0],right:""}:2===u.length?{left:u[0],center:u[1],right:""}:{left:u[0],center:u[1],right:u[2]};3<u.length&&W("Too many tabs in "+n+": "+u.length+" found.",r,0),U.addMetaTextObj(n,A,{startChar:R.iChar,endChar:R.iChar+e.length});break;case"midi":u=q.tokenize(r,0,r.length,!0);if(0<u.length&&"="===u[0].token&&u.shift(),0===u.length)W("Expected midi command",r,0);else{var B=u;A=X;var P=r;var L=B.shift().token,O=[];if(0<=$.indexOf(L))0!==B.length&&W("Unexpected parameter in MIDI "+L,P,0);else if(0<=Q.indexOf(L))1!==B.length?W("Expected one parameter in MIDI "+L,P,0):O.push(B[0].token);else if(0<=J.indexOf(L))1!==B.length?W("Expected one parameter in MIDI "+L,P,0):"number"!==B[0].type?W("Expected one integer parameter in MIDI "+L,P,0):O.push(B[0].intt);else if(0<=Z.indexOf(L))1!==B.length&&2!==B.length?W("Expected one or two parameters in MIDI "+L,P,0):"number"!==B[0].type||2===B.length&&"number"!==B[1].type?W("Expected integer parameter in MIDI "+L,P,0):(O.push(B[0].intt),2===B.length&&O.push(B[1].intt));else if(0<=ee.indexOf(L))2!==B.length?W("Expected two parameters in MIDI "+L,P,0):"number"!==B[0].type||"number"!==B[1].type?W("Expected two integer parameters in MIDI "+L,P,0):(O.push(B[0].intt),O.push(B[1].intt));else if(0<=re.indexOf(L))2!==B.length?W("Expected two parameters in MIDI "+L,P,0):"alpha"!==B[0].type||"number"!==B[1].type?W("Expected one string and one integer parameters in MIDI "+L,P,0):(O.push(B[0].token),O.push(B[1].intt));else if("drummap"===L)2===B.length&&"alpha"===B[0].type&&"number"===B[1].type?(A.formatting||(A.formatting={}),A.formatting.midi||(A.formatting.midi={}),A.formatting.midi.drummap||(A.formatting.midi.drummap={}),A.formatting.midi.drummap[B[0].token]=B[1].intt,O=A.formatting.midi.drummap):3===B.length&&"punct"===B[0].type&&"alpha"===B[1].type&&"number"===B[2].type?(A.formatting||(A.formatting={}),A.formatting.midi||(A.formatting.midi={}),A.formatting.midi.drummap||(A.formatting.midi.drummap={}),A.formatting.midi.drummap[B[0].token+B[1].token]=B[2].intt,O=A.formatting.midi.drummap):W("Expected one note name and one integer parameter in MIDI "+L,P,0);else if(0<=ie.indexOf(L))3!==B.length||"number"!==B[0].type||"/"!==B[1].token||"number"!==B[2].type?W("Expected fraction parameter in MIDI "+L,P,0):(O.push(B[0].intt),O.push(B[2].intt));else if(0<=te.indexOf(L))4!==B.length?W("Expected four parameters in MIDI "+L,P,0):"number"!==B[0].type||"number"!==B[1].type||"number"!==B[2].type||"number"!==B[3].type?W("Expected four integer parameters in MIDI "+L,P,0):(O.push(B[0].intt),O.push(B[1].intt),O.push(B[2].intt),O.push(B[3].intt));else if(0<=ne.indexOf(L))5!==B.length?W("Expected five parameters in MIDI "+L,P,0):"number"!==B[0].type||"number"!==B[1].type||"number"!==B[2].type||"number"!==B[3].type||"number"!==B[4].type?W("Expected five integer parameters in MIDI "+L,P,0):(O.push(B[0].intt),O.push(B[1].intt),O.push(B[2].intt),O.push(B[3].intt),O.push(B[4].intt));else if(0<=Z.indexOf(L))1!==B.length||4!==B.length?W("Expected one or two parameters in MIDI "+L,P,0):"number"!==B[0].type?W("Expected integer parameter in MIDI "+L,P,0):4===B.length?("octave"!==B[1].token&&W("Expected octave parameter in MIDI "+L,P,0),"="!==B[2].token&&W("Expected octave parameter in MIDI "+L,P,0),"number"!==B[3].type&&W("Expected integer parameter for octave in MIDI "+L,P,0)):(O.push(B[0].intt),4===B.length&&O.push(B[3].intt));else if(0<=ae.indexOf(L))if(B.length<2)W("Expected string parameter and at least one integer parameter in MIDI "+L,P,0);else if("alpha"!==B[0].type)W("Expected string parameter and at least one integer parameter in MIDI "+L,P,0);else{var z=B.shift();for(O.push(z.token);0<B.length;)"number"!==(z=B.shift()).type&&W("Expected integer parameter in MIDI "+L,P,0),O.push(z.intt)}U.hasBeginMusic()?U.appendElement("midi",-1,-1,{cmd:L,params:O}):(void 0===A.formatting.midi&&(A.formatting.midi={}),A.formatting.midi[L]=O)}break;case"percmap":u=function(){var e=r.split(/\s+/);if(2!==e.length&&3!==e.length)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var t=e[0],n=parseInt(e[1],10);if((isNaN(n)||n<35||81<n)&&e[1]&&(n=K.indexOf(e[1].toLowerCase())+35),isNaN(n)||n<35||81<n)return{error:'Expected drum name, received "'+e[1]+'"'};n={sound:n};return 3===e.length&&(n.noteHead=e[2]),{key:t,value:n}}();u.error?W(u.error,e,8):(X.formatting.percmap||(X.formatting.percmap={}),X.formatting.percmap[u.key]=u.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":X.formatting[n]=r;break;default:return"Unknown directive: "+n}return null},le.globalFormatting=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n,r=""+e[t],i=q.tokenize(r,0,r.length);switch(t){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":j(t,i,r);break;case"scale":I(t,i);break;case"partsbox":null!==(n=Y("partsBox",t,i))&&W(n),R.partsfont.box=R.partsBox;break;case"freegchord":null!==(n=Y("freegchord",t,i))&&W(n);break;case"fontboxpadding":1===i.length&&"number"===i[0].type||W('Directive "'+t+'" requires a number as a parameter.'),X.formatting.fontboxpadding=i[0].floatt;break;case"stretchlast":var a=oe(i);if(void 0!==a.value&&(X.formatting.stretchlast=a.value),a.error)return a.error;break;default:W("Formatting directive unrecognized: ",t,0)}}}}(),e.exports=le},9928:function(e,t,n){var a=n(5008),p=n(8360),m=n(9708);e.exports=function(h,u,d,c,l){this.reset=function(e,t,n,r){m.initialize(e,t,n,r,l),p.initialize(e,t,n,r,l)},this.reset(h,u,d,c),this.setTitle=function(e,t){d.hasMainTitle?l.addSubtitle(e,{startChar:d.iChar,endChar:d.iChar+t+2}):(l.addMetaText("title",e,{startChar:d.iChar,endChar:d.iChar+t+2}),d.hasMainTitle=!0)},this.setMeter=function(t){if("C"===(t=h.stripComment(t)))return!0===d.havent_set_length&&(d.default_length=.125,d.havent_set_length=!1),{type:"common_time"};if("C|"===t)return!0===d.havent_set_length&&(d.default_length=.125,d.havent_set_length=!1),{type:"cut_time"};if("o"===t)return!0===d.havent_set_length&&(d.default_length=.125,d.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===t)return!0===d.havent_set_length&&(d.default_length=.125,d.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===t)return!0===d.havent_set_length&&(d.default_length=.125,d.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===t)return!0===d.havent_set_length&&(d.default_length=.125,d.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===t.length||"none"===t.toLowerCase())return!0===d.havent_set_length&&(d.default_length=.125,d.havent_set_length=!1),null;var n=h.tokenize(t,0,t.length);try{if(0===n.length)throw"Expected meter definition in M: line";for(var e={type:"specified",value:[]},r=0;;){var i=function(){var e,t=function(){var e={value:0,num:""},t=n.shift();for("("===t.token&&(t=n.shift());;){if("number"!==t.type)throw"Expected top number of meter";if(e.value+=parseInt(t.token),e.num+=t.token,0===n.length||"/"===n[0].token)return e;if(")"===(t=n.shift()).token){if(0===n.length||"/"===n[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===n.length)throw"Expected top number of meter";t=n.shift()}return e}();if(0===n.length)return t;if("/"!==n.shift().token)throw"Expected slash in meter";if("number"!==(e=n.shift()).type)throw"Expected bottom number of meter";return t.den=e.token,t.value=t.value/parseInt(t.den),t}(),a=(r+=i.value,{num:i.num});if(void 0!==i.den&&(a.den=i.den),e.value.push(a),0===n.length)break}return!0===d.havent_set_length&&(d.default_length=r<.75?.0625:.125,d.havent_set_length=!1),e}catch(e){u(e,t,0)}return null},this.calcTempo=function(e){var t=.25;d.meter&&"specified"===d.meter.type?t=1/parseInt(d.meter.value[0].den):d.origMeter&&"specified"===d.origMeter.type&&(t=1/parseInt(d.origMeter.value[0].den));for(var n=0;n<e.duration;n++)e.duration[n]=t*e.duration[n];return e},this.resolveTempo=function(){d.tempo&&(this.calcTempo(d.tempo),c.metaText.tempo=d.tempo,delete d.tempo)},this.addUserDefinition=function(e,t,n){var r,i=e.indexOf("=",t);-1!==i?(r=a.strip(e.substring(t,i)),i=a.strip(e.substring(i+1)),1===r.length?-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(r)?0!==i.length?(void 0===d.macros&&(d.macros={}),d.macros[r]=i):u("Missing macro definition",e,t):u("Macro definitions must be H-Y, h-w, or tilde",e,t):u("Macro definitions can only be one character",e,t)):u("Need an = in a macro definition",e,t)},this.setDefaultLength=function(e,t,n){e=e.substring(t,n).replace(/ /g,"").split("/");2===e.length?(t=parseInt(e[0]),0<(n=parseInt(e[1]))&&(d.default_length=t/n,d.havent_set_length=!1)):1===e.length&&"1"===e[0]&&(d.default_length=1,d.havent_set_length=!1)};var f={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},o=(this.setTempo=function(t,n,e,r){try{var i=h.tokenize(t,n,e);if(0===i.length)throw"Missing parameter in Q: field";var a={startChar:r+n-2,endChar:r+e},s=!0,o=i.shift();if("quote"===o.type&&(a.preString=o.token,o=i.shift(),0===i.length))return f[a.preString.toLowerCase()]&&(a.bpm=f[a.preString.toLowerCase()],a.suppressBpm=!0),{type:"immediate",tempo:a};if("alpha"===o.type&&"C"===o.token){if(0===i.length)throw"Missing tempo after C in Q: field";if("punct"===(o=i.shift()).type&&"="===o.token){if(0===i.length)throw"Missing tempo after = in Q: field";if("number"!==(o=i.shift()).type)throw"Expected number after = in Q: field";a.duration=[1],a.bpm=parseInt(o.token)}else{if("number"!==o.type)throw"Expected number or equal after C in Q: field";if(a.duration=[parseInt(o.token)],0===i.length)throw"Missing = after duration in Q: field";if("punct"!==(o=i.shift()).type||"="!==o.token)throw"Expected = after duration in Q: field";if(0===i.length)throw"Missing tempo after = in Q: field";if("number"!==(o=i.shift()).type)throw"Expected number after = in Q: field";a.bpm=parseInt(o.token)}}else{if("number"!==o.type)throw"Unknown value in Q: field";var c=parseInt(o.token);if(0===i.length||"quote"===i[0].type)a.duration=[1],a.bpm=c;else{if(s=!1,"punct"!==(o=i.shift()).type&&"/"!==o.token)throw"Expected fraction in Q: field";if("number"!==(o=i.shift()).type)throw"Expected fraction in Q: field";var l=parseInt(o.token);for(a.duration=[c/l];0<i.length&&"="!==i[0].token&&"quote"!==i[0].type;){if("number"!==(o=i.shift()).type)throw"Expected fraction in Q: field";if(c=parseInt(o.token),"punct"!==(o=i.shift()).type&&"/"!==o.token)throw"Expected fraction in Q: field";if("number"!==(o=i.shift()).type)throw"Expected fraction in Q: field";l=parseInt(o.token),a.duration.push(c/l)}if("punct"!==(o=i.shift()).type&&"="!==o.token)throw"Expected = in Q: field";if("number"!==(o=i.shift()).type)throw"Expected tempo in Q: field";a.bpm=parseInt(o.token)}}if(0!==i.length&&("quote"===(o=i.shift()).type&&(a.postString=o.token,o=i.shift()),0!==i.length))throw"Unexpected string at end of Q: field";return!1===d.printTempo&&(a.suppress=!0),{type:s?"delaySet":"immediate",tempo:a}}catch(e){return u(e,t,n),{type:"none"}}},this.letter_to_inline_header=function(e,t,n){var r=h.eatWhiteSpace(e,t);if(e.length>=(t+=r)+5&&"["===e[t]&&":"===e[t+2]){var i=e.indexOf("]",t),a=d.iChar+t,s=d.iChar+i+1;switch(e.substring(t,t+3)){case"[I:":var o=p.addDirective(e.substring(t+3,i));return o&&u(o,e,t),[i-t+1+r];case"[M:":var o=this.setMeter(e.substring(t+3,i));return l.hasBeginMusic()&&o?l.appendStartingElement("meter",a,s,o):d.meter=o,[i-t+1+r];case"[K:":o=m.parseKey(e.substring(t+3,i),!0);return o.foundClef&&l.hasBeginMusic()&&l.appendStartingElement("clef",a,s,d.clef),o.foundKey&&l.hasBeginMusic()&&l.appendStartingElement("key",a,s,m.fixKey(d.clef,d.key)),[i-t+1+r];case"[P:":o=p.parseFontChangeLine(e.substring(t+3,i));return n||c.lines.length<=c.lineNum?d.partForNextLine={title:o,startChar:a,endChar:s}:l.appendElement("part",a,s,{title:o}),[i-t+1+r];case"[L:":return this.setDefaultLength(e,t+3,i),[i-t+1+r];case"[Q:":if(0<i)return"delaySet"===(o=this.setTempo(e,t+3,i,d.iChar)).type?l.hasBeginMusic()?l.appendElement("tempo",a,s,this.calcTempo(o.tempo)):d.tempoForNextLine=["tempo",a,s,this.calcTempo(o.tempo)]:"immediate"===o.type&&(!n&&l.hasBeginMusic()?l.appendElement("tempo",a,s,o.tempo):d.tempoForNextLine=["tempo",a,s,o.tempo]),[i-t+1+r,e[t+1],e.substring(t+3,i)];break;case"[V:":if(0<i)return m.parseVoice(e,t+3,i),[i-t+1+r,e[t+1],e.substring(t+3,i)];break;case"[r:":return[i-t+1+r]}}return[0]},this.letter_to_body_header=function(e,t){if(e.length>=t+3)switch(e.substring(t,t+2)){case"I:":var n=p.addDirective(e.substring(t+2));return n&&u(n,e,t),[e.length];case"M:":n=this.setMeter(e.substring(t+2));return l.hasBeginMusic()&&n&&l.appendStartingElement("meter",d.iChar+t,d.iChar+e.length,n),[e.length];case"K:":n=m.parseKey(e.substring(t+2),l.hasBeginMusic());return n.foundClef&&l.hasBeginMusic()&&l.appendStartingElement("clef",d.iChar+t,d.iChar+e.length,d.clef),n.foundKey&&l.hasBeginMusic()&&l.appendStartingElement("key",d.iChar+t,d.iChar+e.length,m.fixKey(d.clef,d.key)),[e.length];case"P:":return l.hasBeginMusic()&&l.appendElement("part",d.iChar+t,d.iChar+e.length,{title:e.substring(t+2)}),[e.length];case"L:":return this.setDefaultLength(e,t+2,e.length),[e.length];case"Q:":var n=e.indexOf("",t+2),r=(-1===n&&(n=e.length),this.setTempo(e,t+2,n,d.iChar));return"delaySet"===r.type?l.appendElement("tempo",d.iChar+t,d.iChar+e.length,this.calcTempo(r.tempo)):"immediate"===r.type&&l.appendElement("tempo",d.iChar+t,d.iChar+e.length,r.tempo),[n,e[t],a.strip(e.substring(t+2))];case"V:":return m.parseVoice(e,t+2,e.length),[e.length,e[t],a.strip(e.substring(t+2))]}return[0]},{A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"});this.parseHeader=function(e){var t=o[e[0]],n=e.length-2,r=h.translateString(h.stripComment(e.substring(2)));if("unalignedWords"===t||"notes"===t)l.addMetaTextArray(t,p.parseFontChangeLine(r),{startChar:d.iChar,endChar:d.iChar+e.length});else if(void 0!==t)l.addMetaText(t,p.parseFontChangeLine(r),{startChar:d.iChar,endChar:d.iChar+e.length});else{var i=d.iChar,a=i+e.length;switch(e[0]){case"H":for(l.addMetaTextArray("history",p.parseFontChangeLine(r),{startChar:d.iChar,endChar:d.iChar+e.length}),e=h.peekLine();e&&":"!==e[1];)h.nextLine(),l.addMetaTextArray("history",p.parseFontChangeLine(h.translateString(h.stripComment(e))),{startChar:d.iChar,endChar:d.iChar+e.length}),e=h.peekLine();break;case"K":this.resolveTempo();var s=m.parseKey(e.substring(2),!1);!d.is_in_header&&l.hasBeginMusic()&&(s.foundClef&&l.appendStartingElement("clef",i,a,d.clef),s.foundKey&&l.appendStartingElement("key",i,a,m.fixKey(d.clef,d.key))),d.is_in_header=!1;break;case"L":this.setDefaultLength(e,2,e.length);break;case"M":d.origMeter=d.meter=this.setMeter(e.substring(2));break;case"P":d.is_in_header?l.addMetaText("partOrder",p.parseFontChangeLine(r),{startChar:d.iChar,endChar:d.iChar+e.length}):d.partForNextLine={title:r,startChar:i,endChar:a};break;case"Q":s=this.setTempo(e,2,e.length,d.iChar);"delaySet"===s.type?d.tempo=s.tempo:"immediate"===s.type&&(c.metaText.tempo?d.tempoForNextLine=["tempo",i,a,s.tempo]:c.metaText.tempo=s.tempo);break;case"T":d.titlecaps&&(r=r.toUpperCase()),this.setTitle(p.parseFontChangeLine(h.theReverser(r)),n);break;case"U":this.addUserDefinition(e,2,e.length);break;case"V":if(m.parseVoice(e,2,e.length),d.is_in_header)break;return{newline:!0};case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":u("Ignored header",e,0);break;default:return{regular:!0}}}return{}}}},9708:function(e,t,n){var r=n(5008),C=n(8360),i=n(2821),T={};function _(e,t){return((e=a[e])?e.mid:0)+t}T.initialize=function(e,t,n,r,i){S=e,E=t,M=n,v=i},T.standardKey=function(e,t,n,r){return i.keySignature(M,e,t,n,r)};var S,E,M,v,a={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}},b=(T.fixClef=function(e){var t=a[e.type];t&&(e.clefPos=t.pitch,e.type=t.clef)},T.deepCopyKey=function(e){var t={accidentals:[],root:e.root,acc:e.acc,mode:e.mode};return e.accidentals.forEach(function(e){t.accidentals.push(r.clone(e))}),t},{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});T.addPosToKey=function(e,t){var n=e.verticalPos;t.accidentals.forEach(function(e){var t=b[e.note];e.verticalPos=t-=n}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){var t=b[e.note];e.verticalPos=t-=n}),n<-10?(t.accidentals.forEach(function(e){e.verticalPos-=7,(11<=e.verticalPos||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos-=7,(11<=e.verticalPos||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)})):n<-4?(t.accidentals.forEach(function(e){e.verticalPos-=7,-8!==n||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos-=7,-8!==n||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)})):7<=n&&(t.accidentals.forEach(function(e){e.verticalPos+=7}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos+=7}))},T.fixKey=function(e,t){t=r.clone(t);return T.addPosToKey(e,t),t},T.parseKey=function(e,t){0===e.length&&(e="none");var n=S.tokenize(e,0,e.length),r={};if(0===n.length)return E("Must pass in key signature.",e,0),r;switch(n[0].token){case"HP":C.addDirective("bagpipes"),M.key={root:"HP",accidentals:[],acc:"",mode:""},r.foundKey=!0,n.shift();break;case"Hp":C.addDirective("bagpipes"),M.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},r.foundKey=!0,n.shift();break;case"none":M.key={root:"none",accidentals:[],acc:"",mode:""},r.foundKey=!0,n.shift();break;default:var i=S.getKeyPitch(n[0].token);if(0<i.len){r.foundKey=!0;var a="",s="",o=(1<n[0].token.length?n[0].token=n[0].token.substring(1):n.shift(),i.token);if(0<n.length){var c=S.getSharpFlat(n[0].token);if(0<c.len&&(1<n[0].token.length?n[0].token=n[0].token.substring(1):n.shift(),o+=c.token,a=c.token),0<n.length&&0<(c=S.getMode(n[0].token)).len&&(n.shift(),o+=c.token,s=c.token),void 0===T.standardKey(o,i.token,a,0))return E("Unsupported key signature: "+o,e,0),r}var l,h=T.deepCopyKey(M.key),c=!t&&M.globalTranspose?-M.globalTranspose:0;if(t&&(l=M.globalTransposeOrigKeySig),M.key=T.deepCopyKey(T.standardKey(o,i.token,a,c)),t&&(M.globalTransposeOrigKeySig=l),M.key.mode=s,h){for(var u,d=0;d<M.key.accidentals.length;d++)for(u=0;u<h.accidentals.length;u++)h.accidentals[u].note&&M.key.accidentals[d].note.toLowerCase()===h.accidentals[u].note.toLowerCase()&&(h.accidentals[u].note=null);for(u=0;u<h.accidentals.length;u++)h.accidentals[u].note&&(M.key.impliedNaturals||(M.key.impliedNaturals=[]),M.key.impliedNaturals.push({acc:"natural",note:h.accidentals[u].note}))}}}if(0===n.length)return r;if("exp"===n[0].token&&n.shift(),0===n.length)return r;if("oct"===n[0].token&&n.shift(),0===n.length)return r;var f,p=S.getKeyAccidentals2(n);if(p.warn&&E(p.warn,e,0),p.accs){r.foundKey||(r.foundKey=!0,M.key={root:"none",acc:"",mode:"",accidentals:[]});for(var m=p.accs,g=0;g<m.length;g++)"b"===m[g].note?m[g].note="B":"a"===m[g].note?m[g].note="A":"F"===m[g].note?m[g].note="f":"E"===m[g].note?m[g].note="e":"D"===m[g].note?m[g].note="d":"C"===m[g].note?m[g].note="c":"G"===m[g].note&&"sharp"===m[g].acc?m[g].note="g":"g"===m[g].note&&"flat"===m[g].acc&&(m[g].note="G");for(var v=0;v<p.accs.length;v++){for(var b=!1,y=0;y<M.key.accidentals.length&&!b;y++)M.key.accidentals[y].note===p.accs[v].note&&(b=!0,M.key.accidentals[y].acc!==p.accs[v].acc&&(M.key.accidentals[y].acc=p.accs[v].acc,M.key.explicitAccidentals||(M.key.explicitAccidentals=[]),M.key.explicitAccidentals.push(p.accs[v])));if(!b&&(M.key.explicitAccidentals||(M.key.explicitAccidentals=[]),M.key.explicitAccidentals.push(p.accs[v]),M.key.accidentals.push(p.accs[v]),M.key.impliedNaturals))for(var x=0;x<M.key.impliedNaturals.length;x++)M.key.impliedNaturals[x].note===p.accs[v].note&&M.key.impliedNaturals.splice(x,1)}}for(;0<n.length;)switch(n[0].token){case"m":case"middle":if(n.shift(),0===n.length)return E("Expected = after middle",e,0),r;if("="!==(f=n.shift()).token){E("Expected = after middle",e,f.start);break}if(0===n.length)return E("Expected parameter after middle=",e,0),r;var w=S.getPitchFromTokens(n);w.warn&&E(w.warn,e,0),w.position&&(M.clef.verticalPos=w.position-6);break;case"transpose":if(n.shift(),0===n.length)return E("Expected = after transpose",e,0),r;if("="!==(f=n.shift()).token){E("Expected = after transpose",e,f.start);break}if(0===n.length)return E("Expected parameter after transpose=",e,0),r;if("number"!==n[0].type){E("Expected number after transpose",e,n[0].start);break}M.clef.transpose=n[0].intt,n.shift();break;case"stafflines":if(n.shift(),0===n.length)return E("Expected = after stafflines",e,0),r;if("="!==(f=n.shift()).token){E("Expected = after stafflines",e,f.start);break}if(0===n.length)return E("Expected parameter after stafflines=",e,0),r;if("number"!==n[0].type){E("Expected number after stafflines",e,n[0].start);break}M.clef.stafflines=n[0].intt,n.shift();break;case"staffscale":if(n.shift(),0===n.length)return E("Expected = after staffscale",e,0),r;if("="!==(f=n.shift()).token){E("Expected = after staffscale",e,f.start);break}if(0===n.length)return E("Expected parameter after staffscale=",e,0),r;if("number"!==n[0].type){E("Expected number after staffscale",e,n[0].start);break}M.clef.staffscale=n[0].floatt,n.shift();break;case"octave":if(n.shift(),0===n.length)return E("Expected = after octave",e,0),r;if("="!==(f=n.shift()).token){E("Expected = after octave",e,f.start);break}if(0===n.length)return E("Expected parameter after octave=",e,0),r;if("number"!==n[0].type){E("Expected number after octave",e,n[0].start);break}M.octave=n[0].intt,n.shift();break;case"style":if(n.shift(),0===n.length)return E("Expected = after style",e,0),r;if("="!==(f=n.shift()).token){E("Expected = after style",e,f.start);break}if(0===n.length)return E("Expected parameter after style=",e,0),r;switch(n[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":M.style=n[0].token,n.shift();break;default:E("error parsing style element: "+n[0].token,e,n[0].start)}break;case"clef":if(n.shift(),0===n.length)return E("Expected = after clef",e,0),r;if("="!==(f=n.shift()).token){E("Expected = after clef",e,f.start);break}if(0===n.length)return E("Expected parameter after clef=",e,0),r;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var k=n.shift();switch(k.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":case"c":k.token="alto";break;case"F":case"f":k.token="bass";break;case"G":case"g":k.token="treble";break;default:E("Expected clef name. Found "+k.token,e,k.start)}0<n.length&&"number"===n[0].type&&(k.token+=n[0].token,n.shift()),1<n.length&&("-"===n[0].token||"+"===n[0].token||"^"===n[0].token||"_"===n[0].token)&&"8"===n[1].token&&(k.token+=n[0].token+n[1].token,n.shift(),n.shift()),M.clef={type:k.token,verticalPos:_(k.token,0)},M.currentVoice&&void 0!==M.currentVoice.transpose&&(M.clef.transpose=M.currentVoice.transpose),r.foundClef=!0;break;default:E("Unknown parameter: "+n[0].token,e,n[0].start),n.shift()}return r},T.parseVoice=function(i,e,t){var n,r,e=S.getMeat(i,e,t),a=e.start,s=e.end,o=S.getToken(i,a,s);if(0!==o.length){t=!1;void 0===M.voices[o]&&(M.voices[o]={},t=!0,M.score_is_present&&E("Can't have an unknown V: id when the %score directive is present",i,a));function c(e){var t=S.getVoiceToken(i,a,s);void 0!==t.warn?E("Expected value for "+e+" in voice: "+t.warn,i,a):void 0!==t.err?E("Expected value for "+e+" in voice: "+t.err,i,a):0===t.token.length&&'"'!==i[a]?E("Expected value for "+e+" in voice",i,a):h[e]=t.token,a+=t.len}function l(e,t,n){var r=S.getVoiceToken(i,a,s);void 0!==r.warn?E("Expected value for "+t+" in voice: "+r.warn,i,a):void 0!==r.err?E("Expected value for "+t+" in voice: "+r.err,i,a):0===r.token.length&&'"'!==i[a]?E("Expected value for "+t+" in voice",i,a):("number"===n&&(r.token=parseFloat(r.token)),M.voices[e][t]=r.token),a+=r.len}for(var a=(a+=o.length)+S.eatWhiteSpace(i,a),h={startStaff:t};a<s;){var u=S.getVoiceToken(i,a,s);if(a+=u.len,u.warn)E("Error parsing voice: "+u.warn,i,a);else{var d=null;switch(u.token){case"clef":case"cl":c("clef");var f=0;void 0!==h.clef&&(h.clef=h.clef.replace(/[',]/g,""),-1!==h.clef.indexOf("+16")&&(f+=14,h.clef=h.clef.replace("+16","")),h.verticalPos=_(h.clef,f));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,,":h.clef=u.token.replace(/[',]/g,""),h.verticalPos=_(h.clef,0),M.voices[o].clef=u.token;break;case"staves":case"stave":case"stv":c("staves");break;case"brace":case"brc":c("brace");break;case"bracket":case"brk":c("bracket");break;case"name":case"nm":c("name");break;case"subname":case"sname":case"snm":c("subname");break;case"merge":h.startStaff=!1;break;case"stem":case"stems":void 0!==(d=S.getVoiceToken(i,a,s)).warn?E("Expected value for stems in voice: "+d.warn,i,a):void 0!==d.err?E("Expected value for stems in voice: "+d.err,i,a):"up"===d.token||"down"===d.token?M.voices[o].stem=d.token:E("Expected up or down for voice stem",i,a),a+=d.len;break;case"up":case"down":M.voices[o].stem=u.token;break;case"middle":case"m":c("verticalPos"),h.verticalPos=function(e){var t=0,n=e[t++],r=("^"!==n&&"_"!==n||(n=e[t++]),b[n]);for(void 0===r&&(r=6);t<e.length;t++)if(","===e[t])r-=7;else{if("'"!==e[t])break;r+=7}return{mid:r-6,str:e.substring(t)}}(h.verticalPos).mid;break;case"gchords":case"gch":M.voices[o].suppressChords=!0,"0"===(d=S.getVoiceToken(i,a,s)).token&&(a+=d.len);break;case"space":case"spc":c("spacing");break;case"scale":l(o,"scale","number");break;case"score":f=o,n="scoreTranspose",(r=p=void 0)!==(r=S.getVoiceToken(i,a,s)).warn?E("Expected one of (_B, _E, _b, _e) for "+n+" in voice: "+r.warn,i,a):(0!==r.token.length||'"'===i[a])&&(p={_B:2,_E:9,_b:-10,_e:-3}[r.token])?M.voices[f][n]=p:E("Expected one of (_B, _E, _b, _e) for "+n+" in voice",i,a),a+=r.len;break;case"transpose":l(o,"transpose","number");break;case"stafflines":l(o,"stafflines","number");break;case"staffscale":l(o,"staffscale","number");break;case"octave":l(o,"octave","number");break;case"volume":l(o,"volume","number");break;case"cue":var p=function(e,t){var n=S.getVoiceToken(i,a,s);if(void 0!==n.warn)E("Expected value for "+e+" in voice: "+n.warn,i,a);else if(void 0!==n.err)E("Expected value for "+e+" in voice: "+n.err,i,a);else{if(0!==n.token.length||'"'===i[a])return"number"===t&&(n.token=parseFloat(n.token)),n.token;E("Expected value for "+e+" in voice",i,a)}a+=n.len}("cue","string");M.voices[o].scale="on"===p?.6:1;break;case"style":void 0!==(d=S.getVoiceToken(i,a,s)).warn?E("Expected value for style in voice: "+d.warn,i,a):void 0!==d.err?E("Expected value for style in voice: "+d.err,i,a):"normal"===d.token||"harmonic"===d.token||"rhythm"===d.token||"x"===d.token||"triangle"===d.token?M.voices[o].style=d.token:E("Expected one of [normal, harmonic, rhythm, x, triangle] for voice style",i,a),a+=d.len}}a+=S.eatWhiteSpace(i,a)}if(!h.startStaff&&0!==M.staves.length||(M.staves.push({index:M.staves.length,meter:M.origMeter}),M.score_is_present||(M.staves[M.staves.length-1].numVoices=0)),void 0===M.voices[o].staffNum){M.voices[o].staffNum=M.staves.length-1;var m,g=0;for(m in M.voices)M.voices.hasOwnProperty(m)&&M.voices[m].staffNum===M.voices[o].staffNum&&g++;M.voices[o].index=g-1}e=M.staves[M.voices[o].staffNum];M.score_is_present||e.numVoices++,h.clef&&(e.clef={type:h.clef,verticalPos:h.verticalPos}),h.spacing&&(e.spacing_below_offset=h.spacing),h.verticalPos&&(e.verticalPos=h.verticalPos),h.name&&(e.name?e.name.push(h.name):e.name=[h.name]),h.subname&&(e.subname?e.subname.push(h.subname):e.subname=[h.subname]),M.currentVoice=M.voices[o],v.setCurrentVoice(M.currentVoice.staffNum,M.currentVoice.index)}else E("Expected a voice id",i,a)},e.exports=T},6476:function(e,r,t){function n(e,t,n,r,i,a){T=e,_=t,S=n,E=r,M=i,N=a,this.lineContinuation=!1}function C(e,t,n){var r;if(void 0!==e.inTie[t])return r=e.currentVoice?100*e.currentVoice.staffNum+e.currentVoice.index:0,!(!e.inTie[t][r]||void 0===n.pitches&&"spacer"===n.rest.type)}var T,_,S,E,M,N,a=t(5008),s=t(9708),u=t(2821),t=t(2539),o=t.legalAccents,c=t.volumeDecorations,l=t.dynamicDecorations,h=t.accentPseudonyms,d=t.accentDynamicPseudonyms,A=t.nonDecorations,B=t.durations,f=t.pitches,p=t.rests,m=t.accMap,i=t.tripletQ,P={},L=(n.prototype.parseMusic=function(e){N.resolveTempo(),S.is_in_header=!1;for(var t=0,n=S.iChar;T.isWhiteSpace(e[t])&&t<e.length;)t++;if(t!==e.length&&"%"!==e[t]){var r=S.start_new_line,i=(void 0===S.continueall?S.start_new_line=!0:S.start_new_line=!1,0),a=N.letter_to_body_header(e,t);0<a[0]&&(t+=a[0],"V"===a[1]&&this.startNewLine());for(var s=0;t<e.length;){var o=t;if("%"===e[t])break;var c,l=N.letter_to_inline_header(e,t,r);if(0<l[0])t+=l[0],"V"===l[1]&&(r=!0);else{for(M.hasBeginMusic()&&(!r||this.lineContinuation)||(this.startNewLine(),r=!1);;)if(0<(c=T.eatWhiteSpace(e,t))&&(t+=c),0<t&&""===e[t-1]&&0<(c=N.letter_to_body_header(e,t))[0]&&("V"===c[1]&&this.startNewLine(),t=c[0],S.start_new_line=!1),0<(c=F(e,t))[0]&&(t+=c[0]),0<(c=O(e,t))[0]){P.chord||(P.chord=[]);for(var h=(h=T.translateString(c[1])).replace(/;/g,"\n"),u=!1,d=0;d<P.chord.length;d++)P.chord[d].position===c[2]&&(u=!0,P.chord[d].name+="\n"+h);!1===u&&(null===c[2]&&c[3]?P.chord.push({name:h,rel_position:c[3]}):P.chord.push({name:h,position:c[2]})),t+=c[0];var f=T.skipWhiteSpace(e.substring(t));0<f&&(P.force_end_beam_last=!0),t+=f}else if(0<(c=-1===A.indexOf(e[t])?D(e,t):[0])[0])null===c[1]?t+1<e.length&&this.startNewLine():0<c[1].length&&(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(!(0<(c=z(e,t))[0]))break;P.gracenotes=c[1],t+=c[0]}if(0<(c=j(e,t))[0]){void(s=0)!==P.gracenotes&&(P.rest={type:"spacer"},P.duration=.125,S.addFormattingOptions(P,E.formatting,"note"),M.appendElement("note",n+t,n+t+c[0],P),S.measureNotEmpty=!0,P={});l={type:c[1]};0===l.type.length?_("Unknown bar type",e,t):(S.inEnding&&"bar_thin"!==l.type&&(l.endEnding=!0,S.inEnding=!1),c[2]&&(l.startEnding=c[2],S.inEnding&&(l.endEnding=!0),S.inEnding=!0,"bar_right_repeat"===c[1]?S.restoreStartEndingHoldOvers():S.duplicateStartEndingHoldOvers()),void 0!==P.decoration&&(l.decoration=P.decoration),void 0!==P.chord&&(l.chord=P.chord),l.startEnding&&void 0===S.barFirstEndingNum?S.barFirstEndingNum=S.currBarNumber:l.startEnding&&l.endEnding&&S.barFirstEndingNum?S.currBarNumber=S.barFirstEndingNum:l.endEnding&&(S.barFirstEndingNum=void 0),"bar_invisible"!==l.type&&S.measureNotEmpty&&(void 0===S.currentVoice||0===S.currentVoice.staffNum&&0===S.currentVoice.index)&&(S.currBarNumber++,S.barNumbers&&S.currBarNumber%S.barNumbers==0&&(l.barNumber=S.currBarNumber)),S.addFormattingOptions(P,E.formatting,"bar"),M.appendElement("bar",n+o,n+t+c[0],l),S.measureNotEmpty=!1,P={}),t+=c[0]}else if("&"===e[t])0<(c=function(e,t){if("&"!==e[t])return[0];for(var n=t;e[t]&&":"!==e[t]&&"|"!==e[t];)t++;return[t-n,e.substring(n+1,t)]}(e,t))[0]&&(M.appendElement("overlay",n,n+1,{}),t+=1,s++);else{if(0<(c=I(e,t)).consumed&&(void 0!==c.startSlur&&(P.startSlur=c.startSlur),c.dottedSlur&&(P.dottedSlur=!0),void 0!==c.triplet&&(0<i?_("Can't nest triplets",e,t):(P.startTriplet=c.triplet,P.tripletMultiplier=c.tripletQ/c.triplet,P.tripletR=c.num_notes,i=void 0===c.num_notes?c.triplet:c.num_notes)),t+=c.consumed),"["===e[t]){t++;for(var p=null,m=!1,g=!1;!g;){var v=D(e,t),b=(0<v[0]&&(t+=v[0]),Y(e,t,{},!1));if(null!==b&&void 0!==b.pitch)0<v[0]&&0!==v[1].indexOf("style=")&&(void 0===P.decoration&&(P.decoration=[]),P.decoration.push(v[1])),b.end_beam&&(P.end_beam=!0,delete b.end_beam),void 0===P.pitches?(P.duration=b.duration,P.pitches=[b]):P.pitches.push(b),delete b.duration,0<v[0]&&0===v[1].indexOf("style=")&&(P.pitches[P.pitches.length-1].style=v[1].substr(6)),S.inTieChord[P.pitches.length]&&(b.endTie=!0,S.inTieChord[P.pitches.length]=void 0),b.startTie&&(S.inTieChord[P.pitches.length]=!0),t=b.endChar,delete b.endChar;else if(" "===e[t])_("Spaces are not allowed in chords",e,t),t++;else{if(t<e.length&&"]"===e[t]){t++,0!==S.next_note_duration&&(P.duration=P.duration*S.next_note_duration,S.next_note_duration=0),C(S,s,P)&&(P.pitches.forEach(function(e){e.endTie=!0}),L(S,s,!1)),0<i&&(!P.rest||"spacer"!==P.rest.type)&&0==--i&&(P.endTriplet=!0);for(var y=!1;t<e.length&&!y;){switch(e[t]){case" ":case"\t":V(P);break;case")":void 0===P.endSlur?P.endSlur=1:P.endSlur++;break;case"-":P.pitches.forEach(function(e){e.startTie={}}),L(S,s,!0);break;case">":case"<":var x=G(e,t);t+=x[0]-1,S.next_note_duration=x[2],p?p*=x[1]:p=x[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var x=T.getFraction(e,t),p=x.value,w=e[t=x.index];" "===w&&(m=!0),"-"===w||")"===w||" "===w||"<"===w||">"===w?t--:y=!0;break;default:y=!0}y||t++}}else _("Expected ']' to end the chords",e,t);void 0!==P.pitches&&(null!==p&&(P.duration=P.duration*p,m&&V(P)),S.addFormattingOptions(P,E.formatting,"note"),M.appendElement("note",n+o,n+t,P),S.measureNotEmpty=!0,P={}),g=!0}}}else{var l={},k=Y(e,t,l,!0);void 0!==l.endTie&&L(S,s,!0),null!==k&&(void 0!==k.pitch?(P.pitches=[{}],void 0!==k.accidental&&(P.pitches[0].accidental=k.accidental),P.pitches[0].pitch=k.pitch,P.pitches[0].name=k.name,!k.midipitch&&0!==k.midipitch||(P.pitches[0].midipitch=k.midipitch),void 0!==k.endSlur&&(P.pitches[0].endSlur=k.endSlur),void 0!==k.endTie&&(P.pitches[0].endTie=k.endTie),void 0!==k.startSlur&&(P.pitches[0].startSlur=k.startSlur),void 0!==P.startSlur&&(P.pitches[0].startSlur=P.startSlur),void 0!==P.dottedSlur&&(P.pitches[0].dottedSlur=!0),void 0!==k.startTie&&(P.pitches[0].startTie=k.startTie),void 0!==P.startTie&&(P.pitches[0].startTie=P.startTie)):(P.rest=k.rest,void 0!==k.endSlur&&(P.endSlur=k.endSlur),void 0!==k.endTie&&(P.rest.endTie=k.endTie),void 0!==k.startSlur&&(P.startSlur=k.startSlur),void 0!==k.startTie&&(P.rest.startTie=k.startTie),void 0!==P.startTie&&(P.rest.startTie=P.startTie)),void 0!==k.chord&&(P.chord=k.chord),void 0!==k.duration&&(P.duration=k.duration),void 0!==k.decoration&&(P.decoration=k.decoration),void 0!==k.graceNotes&&(P.graceNotes=k.graceNotes),delete P.startSlur,delete P.dottedSlur,C(S,s,P)&&(void 0!==P.pitches?P.pitches[0].endTie=!0:"spacer"!==P.rest.type&&(P.rest.endTie=!0),L(S,s,!1)),(k.startTie||P.startTie)&&L(S,s,!0),t=k.endChar,0<i&&(!k.rest||"spacer"!==k.rest.type)&&0==--i&&(P.endTriplet=!0),k.end_beam&&V(P),P.rest&&"rest"===P.rest.type&&1===P.duration&&H(S)<=1&&(P.rest.type="whole",P.duration=H(S)),P.duration<1&&-1===B.indexOf(P.duration)&&0!==P.duration&&(P.rest&&"spacer"===P.rest.type||_("Duration not representable: "+e.substring(o,t),e,t)),S.addFormattingOptions(P,E.formatting,"note"),M.appendElement("note",n+o,n+t,P),S.measureNotEmpty=!0,P={})}t===o&&(" "!==e[t]&&"`"!==e[t]&&_("Unknown character ignored",e,t),t++)}}}this.lineContinuation=0<=e.indexOf("")||0<a[0],this.lineContinuation||(P={})}},function(e,t,n){var r=e.currentVoice?100*e.currentVoice.staffNum+e.currentVoice.index:0;void 0===e.inTie[t]&&(e.inTie[t]=[]),e.inTie[t][r]=n}),O=function(e,t){var n,r,i;return'"'===e[t]?((n=T.getBrackettedSubstring(e,t,5))[2]||_("Missing the closing quote while parsing the chord symbol",e,t),0<n[0]&&0<n[1].length&&"^"===n[1][0]?(n[1]=n[1].substring(1),n[2]="above"):0<n[0]&&0<n[1].length&&"_"===n[1][0]?(n[1]=n[1].substring(1),n[2]="below"):0<n[0]&&0<n[1].length&&"<"===n[1][0]?(n[1]=n[1].substring(1),n[2]="left"):0<n[0]&&0<n[1].length&&">"===n[1][0]?(n[1]=n[1].substring(1),n[2]="right"):0<n[0]&&0<n[1].length&&"@"===n[1][0]?(n[1]=n[1].substring(1),0===(r=T.getFloat(n[1])).digits&&_("Missing first position in absolutely positioned annotation.",e,t),n[1]=n[1].substring(r.digits),","!==n[1][0]&&_("Missing comma absolutely positioned annotation.",e,t),n[1]=n[1].substring(1),0===(i=T.getFloat(n[1])).digits&&_("Missing second position in absolutely positioned annotation.",e,t),n[1]=n[1].substring(i.digits),e=T.skipWhiteSpace(n[1]),n[1]=n[1].substring(e),n[2]=null,n[3]={x:r.value,y:i.value}):(!0!==S.freegchord&&(n[1]=n[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),n[1]=n[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),n[2]="default",n[1]=u.chordName(S,n[1])),n):[0,""]},z=function(e,t){if("{"===e[t]){var n=T.getBrackettedSubstring(e,t,1,"}");n[2]||_("Missing the closing '}' while parsing grace note",e,t),")"===e[t+n[0]]&&(n[0]++,n[1]+=")");for(var r=[],i=0,a=!1;i<n[1].length;){var s=!1,o=("/"===n[1][i]&&(s=!0,i++),Y(n[1],i,{},!1));null!==o?(o.duration=o.duration/(8*S.default_length),s&&(o.acciaccatura=!0),r.push(o),a&&(a=!(o.endTie=!0)),o.startTie&&(a=!0),i=o.endChar,delete o.endChar,o.end_beam&&(o.endBeam=!0,delete o.end_beam)):(" "===n[1][i]?0<r.length&&(r[r.length-1].endBeam=!0):_("Unknown character '"+n[1][i]+"' while parsing grace note",e,t),i++)}if(r.length)return[n[0],r]}return[0]};function H(e){e=e.origMeter;return e&&"specified"===e.type&&e.value&&0!==e.value.length?parseInt(e.value[0].num,10)/parseInt(e.value[0].den,10):1}var D=function(e,t){var n=S.macros[e[t]];if(void 0!==n)return"!"!==(n="!"!==n[0]&&"+"!==n[0]?n:n.substring(1))[n.length-1]&&"+"!==n[n.length-1]||(n=n.substring(0,n.length-1)),o.includes(n)?[1,n]:c.includes(n)?[1,n="hidden"===S.volumePosition?"":n]:l.includes(n)?[1,n="hidden"===S.dynamicPosition?"":n]:(S.ignoredDecorations.includes(n)||_("Unknown macro: "+n,e,t),[1,""]);switch(e[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 r=T.getBrackettedSubstring(e,t,5);if(1<r[1].length&&("^"===r[1][0]||"_"===r[1][0])&&(r[1]=r[1].substring(1)),o.includes(r[1]))return r;if(c.includes(r[1]))return"hidden"===S.volumePosition&&(r[1]=""),r;if(l.includes(r[1]))return"hidden"===S.dynamicPosition&&(r[1]=""),r;var i=h.findIndex(function(e){return r[1]===e[0]});return 0<=i?(r[1]=h[i][1],r):0<=(i=d.findIndex(function(e){return r[1]===e[0]}))?(r[1]=d[i][1],"hidden"===S.dynamicPosition&&(r[1]=""),r):"!"!==e[t]||1!==r[0]&&"!"===e[t+r[0]-1]?(_("Unknown decoration: "+r[1],e,t),r[1]="",r):[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]},F=function(e,t){for(var n=t;T.isWhiteSpace(e[t]);)t++;return[t-n]},j=function(e,t){var n=T.getBarLine(e,t);if(0===n.len)return[0,""];if(n.warn)return _(n.warn,e,t),[n.len,""];for(var r=0;r<e.length&&" "===e[t+n.len+r];r++);var i=n.len;if("["===e[t+n.len+r]&&(n.len+=r+1),'"'===e[t+n.len]&&"["===e[t+n.len-1])return a=T.getBrackettedSubstring(e,t+n.len,5),[n.len+a[0],n.token,a[1]];var a=T.getTokenOf(e.substring(t+n.len),"1234567890-,");return 0===a.len||"-"===a.token[0]?[i,n.token]:[n.len+a.len,n.token,a.token]},I=function(e,t){var n={},r=t;for("."===e[t]&&"("===e[t+1]&&(n.dottedSlur=!0,t++);"("===e[t]||T.isWhiteSpace(e[t]);)"("===e[t]&&(t+1<e.length&&"2"<=e[t+1]&&e[t+1]<="9"?(void 0!==n.triplet?_("Can't nest triplets",e,t):(n.triplet=e[t+1]-"0",n.tripletQ=i[n.triplet],n.num_notes=n.triplet,t+2<e.length&&":"===e[t+2]&&(t+3<e.length&&":"===e[t+3]?t+4<e.length&&"1"<=e[t+4]&&e[t+4]<="9"?(n.num_notes=e[t+4]-"0",t+=3):_("expected number after the two colons after the triplet to mark the duration",e,t):t+3<e.length&&"1"<=e[t+3]&&e[t+3]<="9"?(n.tripletQ=e[t+3]-"0",t+4<e.length&&":"===e[t+4]?t+5<e.length&&"1"<=e[t+5]&&e[t+5]<="9"&&(n.num_notes=e[t+5]-"0",t+=4):t+=2):_("expected number after the triplet to mark the duration",e,t))),t++):void 0===n.startSlur?n.startSlur=1:n.startSlur++),t++;return n.consumed=t-r,n},V=(n.prototype.startNewLine=function(){var e={startChar:-1,endChar:-1},t=(S.partForNextLine.title&&(e.part=S.partForNextLine),e.clef=S.currentVoice&&void 0!==S.staves[S.currentVoice.staffNum].clef?a.clone(S.staves[S.currentVoice.staffNum].clef):a.clone(S.clef),S.currentVoice?S.currentVoice.scoreTranspose:0);if(e.key=s.standardKey(S.key.root+S.key.acc+S.key.mode,S.key.root,S.key.acc,t),e.key.mode=S.key.mode,S.key.impliedNaturals&&(e.key.impliedNaturals=S.key.impliedNaturals),S.key.explicitAccidentals)for(var n=0;n<S.key.explicitAccidentals.length;n++){for(var r=!1,i=0;i<e.key.accidentals.length;i++)e.key.accidentals[i].note===S.key.explicitAccidentals[n].note&&(e.key.accidentals[i].acc=S.key.explicitAccidentals[n].acc,r=!0);r||e.key.accidentals.push(S.key.explicitAccidentals[n])}S.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,s.addPosToKey(e.clef,e.key),null!==S.meter?(S.currentVoice?(S.staves.forEach(function(e){e.meter=S.meter}),e.meter=S.staves[S.currentVoice.staffNum].meter,S.staves[S.currentVoice.staffNum].meter=null):e.meter=S.meter,S.meter=null):S.currentVoice&&S.staves[S.currentVoice.staffNum].meter&&(e.meter=S.staves[S.currentVoice.staffNum].meter,S.staves[S.currentVoice.staffNum].meter=null),S.currentVoice&&S.currentVoice.name&&(e.name=S.currentVoice.name),S.vocalfont&&(e.vocalfont=S.vocalfont),S.tripletfont&&(e.tripletfont=S.tripletfont),S.gchordfont&&(e.gchordfont=S.gchordfont),S.style&&(e.style=S.style),S.currentVoice&&((t=S.staves[S.currentVoice.staffNum]).brace&&(e.brace=t.brace),t.bracket&&(e.bracket=t.bracket),t.connectBarLines&&(e.connectBarLines=t.connectBarLines),t.name&&(e.name=t.name[S.currentVoice.index]),t.subname&&(e.subname=t.subname[S.currentVoice.index]),S.currentVoice.stem&&(e.stem=S.currentVoice.stem),S.currentVoice.stafflines&&(e.stafflines=S.currentVoice.stafflines),S.currentVoice.staffscale&&(e.staffscale=S.currentVoice.staffscale),S.currentVoice.scale&&(e.scale=S.currentVoice.scale),S.currentVoice.color&&(e.color=S.currentVoice.color),S.currentVoice.style&&(e.style=S.currentVoice.style),S.currentVoice.transpose&&(e.clef.transpose=S.currentVoice.transpose));t=void 0===S.currentVoice||0===S.currentVoice.staffNum&&0===S.currentVoice.index;0===S.barNumbers&&t&&1!==S.currBarNumber&&(e.barNumber=S.currBarNumber),M.startNewLine(e),S.key.impliedNaturals&&delete S.key.impliedNaturals,S.partForNextLine={},4===S.tempoForNextLine.length&&M.appendElement(S.tempoForNextLine[0],S.tempoForNextLine[1],S.tempoForNextLine[2],S.tempoForNextLine[3]),S.tempoForNextLine=[]},function(e){return void 0!==e.duration&&e.duration<.25&&(e.end_beam=!0),e}),Y=function(e,t,n,r){function i(e){return"octave"===e||"duration"===e||"Zduration"===e||"broken_rhythm"===e||"end_slur"===e}var a;"."===e[t]&&"-"===e[t+1]&&(a=!0,t++);for(var s,o="startSlur",c=!1;;){switch(e[t]){case"(":if("startSlur"!==o)return i(o)?(n.endChar=t,n):null;void 0===n.startSlur?n.startSlur=1:n.startSlur++;break;case")":if(!i(o))return null;void 0===n.endSlur?n.endSlur=1:n.endSlur++;break;case"^":if("startSlur"===o)n.accidental="sharp",o="sharp2";else{if("sharp2"!==o)return i(o)?(n.endChar=t,n):null;n.accidental="dblsharp",o="pitch"}break;case"_":if("startSlur"===o)n.accidental="flat",o="flat2";else{if("flat2"!==o)return i(o)?(n.endChar=t,n):null;n.accidental="dblflat",o="pitch"}break;case"=":if("startSlur"!==o)return i(o)?(n.endChar=t,n):null;n.accidental="natural",o="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"!==o&&"sharp2"!==o&&"flat2"!==o&&"pitch"!==o)return i(o)?(n.endChar=t,n):null;n.pitch=f[e[t]],n.pitch+=7*(S.currentVoice&&void 0!==S.currentVoice.octave?S.currentVoice:S).octave,n.name=e[t],n.accidental&&(n.name=m[n.accidental]+n.name),u.note(S,n),o="octave",r&&0!==S.next_note_duration?(n.duration=S.default_length*S.next_note_duration,c=!(S.next_note_duration=0)):n.duration=S.default_length,(S.clef&&"perc"===S.clef.type||S.currentVoice&&"perc"===S.currentVoice.clef)&&(s=e[t],n.accidental&&(s=m[n.accidental]+s),E.formatting&&E.formatting.midi&&E.formatting.midi.drummap&&(n.midipitch=E.formatting.midi.drummap[s]));break;case",":if("octave"!==o)return i(o)?(n.endChar=t,n):null;n.pitch-=7,n.name+=",";break;case"'":if("octave"!==o)return i(o)?(n.endChar=t,n):null;n.pitch+=7,n.name+="'";break;case"x":case"X":case"y":case"z":case"Z":if("startSlur"!==o)return i(o)?(n.endChar=t,n):null;n.rest={type:p[e[t]]},delete n.accidental,delete n.startSlur,delete n.startTie,delete n.endSlur,delete n.endTie,delete n.end_beam,delete n.grace_notes,o=0<=n.rest.type.indexOf("multimeasure")?(n.duration=E.getBarLength(),n.rest.text=1,"Zduration"):(r&&0!==S.next_note_duration?(n.duration=S.default_length*S.next_note_duration,c=!(S.next_note_duration=0)):n.duration=S.default_length,"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"===o||"duration"===o){var l=T.getFraction(e,t);for(n.duration=n.duration*l.value,n.endChar=l.index;l.index<e.length&&(T.isWhiteSpace(e[l.index])||"-"===e[l.index]);)"-"===e[l.index]?n.startTie={}:n=V(n),l.index++;t=l.index-1,o="broken_rhythm"}else if("sharp2"===o)n.accidental="quartersharp",o="pitch";else{if("flat2"!==o)return"Zduration"===o?(s=T.getNumber(e,t),n.duration=s.num*E.getBarLength(),n.rest.text=s.num,n.endChar=s.index,n):null;n.accidental="quarterflat",o="pitch"}break;case"-":if("startSlur"===o)M.addTieToLastNote(a),n.endTie=!0;else{if("octave"!==o&&"duration"!==o&&"end_slur"!==o)return"broken_rhythm"===o?(n.endChar=t,n):null;if(n.startTie={},c||!r)return T.isWhiteSpace(e[t+1])&&V(n),n.endChar=t+1,n;o="broken_rhythm"}break;case" ":case"\t":if(!i(o))return null;for(a=!(n.end_beam=!0);"."===e[t]&&"-"===e[t+1]&&(a=!0,t++),"-"===e[t]&&(n.startTie={},a&&(n.startTie.style="dotted")),++t<e.length&&(T.isWhiteSpace(e[t])||"-"===e[t])||"."===e[t]&&"-"===e[t+1];);if(n.endChar=t,c||!r||"<"!==e[t]&&">"!==e[t])return n;t--,o="broken_rhythm";break;case">":case"<":if(!i(o))return null;if(!r)return n.endChar=t,n;var h=G(e,t);t+=h[0]-1,S.next_note_duration=h[2],n.duration=h[1]*n.duration,o="end_slur";break;default:return i(o)?(n.endChar=t,n):null}if(++t===e.length)return i(o)?(n.endChar=t,n):null}return null},G=function(e,t){switch(e[t]){case">":return t<e.length-2&&">"===e[t+1]&&">"===e[t+2]?[3,1.875,.125]:t<e.length-1&&">"===e[t+1]?[2,1.75,.25]:[1,1.5,.5];case"<":return t<e.length-2&&"<"===e[t+1]&&"<"===e[t+2]?[3,.125,1.875]:t<e.length-1&&"<"===e[t+1]?[2,.25,1.75]:[1,.5,1.5]}return null};e.exports=n},2539:function(e){e.exports.legalAccents=["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","D.C.alcoda","D.C.alfine","D.S.alcoda","D.S.alfine","editorial","courtesy"],e.exports.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],e.exports.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"],e.exports.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],e.exports.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],e.exports.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",e.exports.durations=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875],e.exports.pitches={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11},e.exports.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"},e.exports.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"},e.exports.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2}},1881:function(e,t,n){function r(e,t){function o(e,t){return t>=e.length}function l(e){return"A"<=e&&e<="Z"||"a"<=e&&e<="z"}function h(e){return"0"<=e&&e<="9"}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[t]))return t;return e.length},this.eatWhiteSpace=function(e,t){for(var n=t;n<e.length;n++)if(!this.isWhiteSpace(e[n]))return n-t;return n-t},this.getKeyPitch=function(e){var t=this.skipWhiteSpace(e);if(o(e,t))return{len:0};switch(e[t]){case"A":return{len:t+1,token:"A"};case"B":return{len:t+1,token:"B"};case"C":return{len:t+1,token:"C"};case"D":return{len:t+1,token:"D"};case"E":return{len:t+1,token:"E"};case"F":return{len:t+1,token:"F"};case"G":return{len:t+1,token:"G"}}return{len:0}},this.getSharpFlat=function(e){if("bass"===e)return{len:0};switch(e[0]){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(e){function t(e,t){for(;t<e.length&&("a"<=e[t]&&e[t]<="z"||"A"<=e[t]&&e[t]<="Z");)t++;return t}var n=this.skipWhiteSpace(e);if(o(e,n))return{len:0};var r=e.substring(n,n+3).toLowerCase();switch(r=1<r.length&&" "===r[1]||"^"===r[1]||"_"===r[1]||"="===r[1]?r[0]:r){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 n=e,r=this.skipWhiteSpace(e);if(o(e,r))return{len:0};var i=!1,e=e.substring(r);if(u.startsWith(e,"clef=")&&(i=!0,e=e.substring(5),r+=5),0===e.length&&i)return{len:r+5,warn:"No clef specified: "+n};var a=this.skipWhiteSpace(e);if(o(e,a))return{len:0};0<a&&(r+=a,e=e.substring(a));var s=null;if(u.startsWith(e,"treble"))s="treble";else if(u.startsWith(e,"bass3"))s="bass3";else if(u.startsWith(e,"bass"))s="bass";else if(u.startsWith(e,"tenor"))s="tenor";else if(u.startsWith(e,"alto2"))s="alto2";else if(u.startsWith(e,"alto1"))s="alto1";else if(u.startsWith(e,"alto"))s="alto";else if(!t&&i&&u.startsWith(e,"none"))s="none";else if(u.startsWith(e,"perc"))s="perc";else if(!t&&i&&u.startsWith(e,"C"))s="tenor";else if(!t&&i&&u.startsWith(e,"F"))s="bass";else{if(t||!i||!u.startsWith(e,"G"))return{len:r+5,warn:"Unknown clef specified: "+n};s="treble"}return e=e.substring(s.length),0<(a=this.isMatch(e,"+8"))?s+="+8":0<(a=this.isMatch(e,"-8"))&&(s+="-8"),{len:r+s.length,token:s,explicit:i}},this.getBarLine=function(e,t){switch(e[t]){case"]":switch(e[++t]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return"1"<=e[++t]&&e[t]<="9"||'"'===e[t]?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(e[++t]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(e[++t]){case"]":return"|"===e[++t]&&":"===e[++t]?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};case"|":return":"===e[++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("|"!==e[++t])return"1"<=e[t]&&e[t]<="9"||'"'===e[t]?{len:1,token:"bar_invisible"}:{len:0};switch(e[++t]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}break;case"|":switch(e[++t]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return":"===e[++t]?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var n=0;":"===e[t+n];)n++;return{len:1+n,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(e,t){for(var n=0;n<e.length;n++)if(t.indexOf(e[n])<0)return{len:n,token:e.substring(0,n)};return{len:n,token:e}},this.getToken=function(e,t,n){for(var r=t;r<n&&!this.isWhiteSpace(e[r]);)r++;return e.substring(t,r)},this.isMatch=function(e,t){var n=this.skipWhiteSpace(e);return!o(e,n)&&u.startsWith(e.substring(n),t)?n+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,n;0<e.length;){if("^"===e[0].token){if(n="sharp",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+n};switch(e[0].token){case"^":n="dblsharp",e.shift();break;case"/":n="quartersharp",e.shift()}}else if("="===e[0].token)n="natural",e.shift();else{if("_"!==e[0].token)return{accs:t};if(n="flat",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+n};switch(e[0].token){case"_":n="dblflat",e.shift();break;case"/":n="quarterflat",e.shift()}}if(0===e.length)return{accs:t,warn:"Expected note name after "+n};switch(e[0].token[0]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":(t=void 0===t?[]:t).push({acc:n,note:e[0].token[0]}),1===e[0].token.length?e.shift():e[0].token=e[0].token.substring(1);break;default:return{accs:t,warn:"Expected note name after "+n+" 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(o(e,n))return{len:0};var r=null;switch(e[n]){case"^":case"_":case"=":r=e[n];break;default:return{len:0}}if(o(e,++n))return{len:1,warn:"Expected note name after accidental"};switch(e[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[r],note:e[n]}};case"^":case"_":case"/":if(r+=e[n],o(e,++n))return{len:2,warn:"Expected note name after accidental"};switch(e[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[r],note:e[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,n){var r=e.indexOf("%",t);for(0<=r&&r<n&&(n=r);t<n&&(" "===e[t]||"\t"===e[t]||""===e[t]);)t++;for(;t<n&&(" "===e[n-1]||"\t"===e[n-1]||""===e[n-1]);)n--;return{start:t,end:n}},this.tokenize=function(e,t,n,r){var i=this.getMeat(e,t,n);t=i.start,n=i.end;for(var a=[];t<n;){if('"'===e[t]){for(o=t+1;o<n&&'"'!==e[o];)o++;a.push({type:"quote",token:e.substring(t+1,o),start:t+1,end:o}),o++}else if(l(e[t])){if(o=t+1,r)for(;o<n&&!this.isWhiteSpace(e[o]);)o++;else for(;o<n&&l(e[o]);)o++;a.push({type:"alpha",token:e.substring(t,o),continueId:h(e[o]),start:t,end:o}),t=o+1}else if("."===e[t]&&h(e[o+1])){o=t+1;for(;o<n&&h(e[o]);)o++;c=parseFloat(e.substring(t,o)),a.push({type:"number",token:e.substring(t,o),intt:null,floatt:c,continueId:l(e[o]),start:t,end:o}),t=o+1}else if(h(e[t])||"-"===e[t]&&h(e[o+1])){for(var s,o=t+1,c=null;o<n&&h(e[o]);)o++;if("."===e[o]&&h(e[o+1]))for(o++;o<n&&h(e[o]);)o++;else c=parseInt(e.substring(t,o));s=parseFloat(e.substring(t,o)),a.push({type:"number",token:e.substring(t,o),intt:c,floatt:s,continueId:l(e[o]),start:t,end:o}),t=o+1}else" "!==e[t]&&"\t"!==e[t]&&a.push({type:"punct",token:e[t],start:t,end:t+1}),o=t+1;t=o}return a},this.getVoiceToken=function(e,t,n){for(var r,i=t;i<n&&this.isWhiteSpace(e[i])||"="===e[i];)i++;if('"'===e[i])return-1===(r=e.indexOf('"',i+1))||n<=r?{len:1,err:"Missing close quote"}:{len:r-t+1,token:this.translateString(e.substring(i+1,r))};for(var a=i;a<n&&!this.isWhiteSpace(e[a])&&"="!==e[a];)a++;return{len:a-t+1,token:e.substring(i,a)}};var r={"`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:"ž"},i={"#":"♯",b:"♭","=":"♮"},a={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:"14",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"12",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"34",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:"ù"};function c(e){return(e=e.replace(/\\n/g,"\n")).replace(/\\"/g,'"')}this.translateString=function(e){var t=e.split("\\");if(1===t.length)return e;var n=null;return t.forEach(function(e){var t;null===n?n=e:void 0!==(t=r[e.substring(0,2)])?n+=t+e.substring(2):void 0!==(t=a[e.substring(0,3)])?n+=t+e.substring(3):(t=i[e.substring(0,1)],n+=void 0!==t?t+e.substring(1):"\\"+e)}),n},this.getNumber=function(e,t){for(var n=0;t<e.length;)switch(e[t]){case"0":n*=10,t++;break;case"1":n=10*n+1,t++;break;case"2":n=10*n+2,t++;break;case"3":n=10*n+3,t++;break;case"4":n=10*n+4,t++;break;case"5":n=10*n+5,t++;break;case"6":n=10*n+6,t++;break;case"7":n=10*n+7,t++;break;case"8":n=10*n+8,t++;break;case"9":n=10*n+9,t++;break;default:return{num:n,index:t}}return{num:n,index:t}},this.getFraction=function(e,t){var n=1,r=1;if("/"!==e[t]&&(n=(a=this.getNumber(e,t)).num,t=a.index),"/"===e[t]){if("/"===e[++t]){for(var i=.5;"/"===e[t++];)i/=2;return{value:n*i,index:t-1}}var a=t,s=this.getNumber(e,t);0===s.num&&a===t&&(s.num=2),0!==s.num&&(r=s.num),t=s.index}return{value:n/r,index:t}};var s=[{match:/,\s*[Tt]he$/,replace:"The "},{match:/,\s*[Aa]$/,replace:"A "},{match:/,\s*[Aa]n$/,replace:"An "}];this.theReverser=function(e){for(var t=0;t<s.length;t++){var n,r=s[t],i=e.match(r.match);if(i)return n=e,(n=(n=/^(\d+)\./.exec(n))?n[1]:null)&&(e=(e=e.replace(n+".","")).trim()),i=i[0].length,r=r.replace+e.substring(0,e.length-i),n?n+". "+r:r}return e},this.stripComment=function(e){var t=e.indexOf("%");return 0<=t?u.strip(e.substring(0,t)):u.strip(e)},this.getInt=function(e){var t=parseInt(e);if(isNaN(t))return{digits:0};var n=""+t;return{value:t,digits:e.indexOf(n)+n.length}},this.getFloat=function(e){var t=parseFloat(e);if(isNaN(t))return{digits:0};var n=""+t;return{value:t,digits:e.indexOf(n)+n.length}},this.getMeasurement=function(e){if(0===e.length)return{used:0};var t=1,n="";if("-"===e[0].token)e.shift(),n="-",t++;else if("number"!==e[0].type)return{used:0};if(n+=e.shift().token,0===e.length)return{used:1,value:parseInt(n)};var r=e.shift();if("."===r.token){if(t++,0===e.length)return{used:t,value:parseInt(n)};if("number"===e[0].type&&(n=n+"."+(r=e.shift()).token,t++,0===e.length))return{used:t,value:parseFloat(n)};r=e.shift()}switch(r.token){case"pt":case"px":return{used:t+1,value:parseFloat(n)};case"cm":return{used:t+1,value:parseFloat(n)/2.54*72};case"in":return{used:t+1,value:72*parseFloat(n)};default:return e.unshift(r),{used:t,value:parseFloat(n)}}},this.getBrackettedSubstring=function(e,t,n,r){for(var i=r||e[t],a=t+1,s=!1;a<e.length&&(s||e[a]!==i);)s="\\"===e[a],++a;return e[a]===i?[a-t+1,c(e.substring(t+1,a)),!0]:[(a=(a=t+n)>e.length-1?e.length-1:a)-t+1,c(e.substring(t+1,a)),!1]}}var u=n(5008);r.prototype.peekLine=function(){return this.lines[this.lineIndex]},r.prototype.nextLine=function(){var e;return 0<this.lineIndex&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex<this.lines.length?(e=this.lines[this.lineIndex],this.lineIndex++,e):null},e.exports=r},2821:function(e,t,n){var i=n(867),r=n(4208),h=n(9447),n={},u={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},d=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],f=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"],p=(n.keySignature=function(e,t,n,r,i){if("perc"===e.clef.type||"none"===e.clef.type)return{accidentals:h(t),root:n,acc:r};i=i||0,e.localTransposeVerticalMovement=0,e.localTransposePreferFlats=!1;var a=h(t);if(!a)return e.key;if(e.localTranspose=(e.globalTranspose||0)+i,!e.localTranspose)return{accidentals:a,root:n,acc:r};if(e.globalTransposeOrigKeySig=a,e.localTranspose%12==0)return e.localTransposeVerticalMovement=e.localTranspose/12*7,{accidentals:a,root:n,acc:r};var i=t[0],a=(t="b"===t[1]||"#"===t[1]?(i+=t[1],t.substr(2)):t.substr(1),u[i]),s=void 0!==a;s||(a=0,i="C",t="");for(var o=a+e.localTranspose;o<0;)o+=12;11<o&&(o%=12);var a=("m"===t[0]?f:d)[o],t=a+t,c=h(t),l=(0<c.length&&"flat"===c[0].acc&&(e.localTransposePreferFlats=!0),t.charCodeAt(0)-i.charCodeAt(0));return 0<e.localTranspose?l<0?l+=7:0!==l||"#"!==i[1]&&"b"!==t[1]||(l+=7):e.localTranspose<0&&(0<l?l-=7:0!==l||"b"!==i[1]&&"#"!==t[1]||(l-=7)),0<e.localTranspose?e.localTransposeVerticalMovement=l+7*Math.floor(e.localTranspose/12):e.localTransposeVerticalMovement=l+7*Math.ceil(e.localTranspose/12),s?{accidentals:c,root:a[0],acc:1<a.length?a[1]:""}:{accidentals:[],root:n,acc:r}},n.chordName=function(e,t){return r(t,e.localTranspose,e.localTransposePreferFlats,e.freegchord)},["c","d","e","f","g","a","b"]),m={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},a={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},s={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};n.note=function(e,t){var h,n,r;e.localTranspose&&"perc"!==e.clef.type&&(h=t.pitch,e.localTransposeVerticalMovement&&(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.name)&&(n=t.accidental?t.name.substring(1):t.name,r=t.accidental?t.name[0]:"",n=i.pitchIndex(n),t.name=r+i.noteName(n+e.localTransposeVerticalMovement)),t.accidental&&(r=function(e,t,n,r){for(var i=p[(h+49)%7],a=0,s=0;s<n.length;s++)n[s].note.toLowerCase()===i&&(a=m[n[s].acc]);for(var t=m[t]-a,o=p[(e+49)%7],c=0,l=0;l<r.accidentals.length;l++)r.accidentals[l].note.toLowerCase()===o&&(c=m[r.accidentals[l].acc]);t+=c;return t<-2&&(e--,t+="c"===o||"f"===o?1:2),2<t&&(e++,t-="b"===o||"e"===o?1:2),[e,t]}(t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey),t.pitch=r[0],t.accidental=a[r[1]],t.name&&(t.name=s[r[1]]+t.name.replace(/[_^=]/g,""))))},e.exports=n},867:function(e){var t={},n=["C,,,","D,,,","E,,,","F,,,","G,,,","A,,,","B,,,","C,,","D,,","E,,","F,,","G,,","A,,","B,,","C,","D,","E,","F,","G,","A,","B,","C","D","E","F","G","A","B","c","d","e","f","g","a","b","c'","d'","e'","f'","g'","a'","b'","c''","d''","e''","f''","g''","a''","b''","c'''","d'''","e'''","f'''","g'''","a'''","b'''"];t.pitchIndex=function(e){return n.indexOf(e)},t.noteName=function(e){return n[e]},e.exports=t},4208:function(e){var l=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],h=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],u=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],d=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];e.exports=function(e,t,n,r){if(!t||t%12==0)return e;for(;t<0;)t+=12;11<t&&(t%=12);var i=e.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!i)return e;var a,s=i[1],o=i[2],c=i[3],i=i[4];return(a=(a=(a=(a=l.indexOf(s))<0?h.indexOf(s):a)<0?u.indexOf(s):a)<0?d.indexOf(s):a)<0||(e=(n?r?d:h:r?u:l)[a=(a+t)%12],o&&(e+=o),c&&(e+="/",0<=(a=(a=(a=(a=l.indexOf(c))<0?h.indexOf(c):a)<0?u.indexOf(c):a)<0?d.indexOf(c):a)?e+=(n?r?d:h:r?u:l)[a=(a+t)%12]:e+=c),i&&(e+=i)),e}},575:function(e,t,n){var S=n(9708),E=n(5008);function M(e){if(e&&"string"!=typeof e){for(var t=0;t<e.length;t++)if("string"!=typeof e[t])return;return 1}}n(8360),e.exports=function(_){var c=this;this.setVisualTranspose=function(e){e&&(_.visualTranspose=e)},this.resolveOverlays=function(){for(var e=!1,t=[],n=0;n<_.lines.length;n++){var r=_.lines[n];if(r.staff)for(var i=0;i<r.staff.length;i++){for(var a=r.staff[i],s=[],o=0;o<a.voices.length;o++){var c=a.voices[o];s.push({hasOverlay:!1,voice:[],snip:[]});for(var l=t[n]=0,h=!1,u=0,d=-1,f=0;f<c.length;f++){var p=c[f];if("overlay"!==p.el_type||h)"bar"===p.el_type?(h?(h=!1,s[o].snip.push({start:d,len:f-d})):0<l&&s[o].voice.push({el_type:"note",duration:l,rest:{type:"invisible"},startChar:p.startChar,endChar:p.endChar}),s[o].voice.push(p),l=0):"note"===p.el_type?h?s[o].voice.push(p):(l+=p.duration,t[n]+=p.duration):"scale"!==p.el_type&&"stem"!==p.el_type&&"overlay"!==p.el_type&&"style"!==p.el_type&&"transpose"!==p.el_type&&"color"!==p.el_type||s[o].voice.push(p);else{d=f,s[o].hasOverlay=h=e=!0,0===u&&(u=t[n]);for(var m=0;m<n;m++)t[m]&&_.lines[m].staff&&a.voices.length>=_.lines[m].staff[0].voices.length&&_.lines[m].staff[0].voices.push([{el_type:"note",duration:t[m],rest:{type:"invisible"},startChar:p.startChar,endChar:p.endChar}])}}s[o].hasOverlay&&0===s[o].snip.length&&s[o].snip.push({start:d,len:c.length-d})}for(o=0;o<s.length;o++){var g=s[o];if(g.hasOverlay){g.voice.splice(0,0,{el_type:"stem",direction:"down"}),a.voices.push(g.voice);for(var v=g.snip.length-1;0<=v;v--){var b=g.snip[v],b=(a.voices[o].splice(b.start,b.len),a.voices[o].splice(b.start+1,0,{el_type:"stem",direction:"auto"}),function(e,t){for(var n=t-1;0<n&&"bar"!==e[n].el_type;n--);return n}(a.voices[o],b.start));a.voices[o].splice(b,0,{el_type:"stem",direction:"up"})}for(v=0;v<a.voices[a.voices.length-1].length;v++){a.voices[a.voices.length-1][v]=E.clone(a.voices[a.voices.length-1][v]);var y=a.voices[a.voices.length-1][v];"bar"===y.el_type&&y.startEnding&&delete y.startEnding,"bar"===y.el_type&&y.endEnding&&delete y.endEnding}}}}}return e},this.cleanUp=function(e,t,g){var n;this.closeLine(),delete _.runningFonts,M((n=_).metaText.notes)&&(n.metaText.notes=n.metaText.notes.join("\n")),M(n.metaText.history)&&(n.metaText.history=n.metaText.history.join("\n")),_.metaText.tempo&&_.metaText.tempo.bpm&&!_.metaText.tempo.duration&&(_.metaText.tempo.duration=[_.getBeatLength()]);for(var r=!1,u=0;u<_.lines.length;u++)if(void 0!==_.lines[u].staff){for(var i=!1,d=0;d<_.lines[u].staff.length;d++)if(void 0===_.lines[u].staff[d])r=!0,_.lines[u].staff[d]=null;else for(f=0;f<_.lines[u].staff[d].voices.length;f++)void 0===_.lines[u].staff[d].voices[f]?_.lines[u].staff[d].voices[f]=[]:this.containsNotes(_.lines[u].staff[d].voices[f])&&(i=!0);i||(r=!(_.lines[u]=null))}if(r&&(_.lines=_.lines.filter(function(e){return!!e}),_.lines.forEach(function(e){e.staff&&(e.staff=e.staff.filter(function(e){return!!e}))})),e)for(;function(e,t){for(u=0;u<e.length;u++)if(void 0!==e[u].staff)for(d=0;d<e[u].staff.length;d++){var n=[];for(f=0;f<e[u].staff[d].voices.length;f++)for(var r=e[u].staff[d].voices[f],i=0,a=0;a<r.length;a++)if("bar"===r[a].el_type){if(++i>=t&&a<r.length-1){var s=x(e,u);if(!s){var o=JSON.parse(JSON.stringify(e[u]));e.push(E.clone(o)),s=e[e.length-1];for(var c=0;c<s.staff.length;c++)for(var l=0;l<s.staff[c].voices.length;l++)s.staff[c].voices[l]=[]}var o=a+1,h=e[u].staff[d].voices[f].slice(o);return e[u].staff[d].voices[f]=e[u].staff[d].voices[f].slice(0,o),s.staff[d].voices[f]=n.concat(h.concat(s.staff[d].voices[f])),1}}else r[a].duration||n.push(r[a])}return}(_.lines,e););if(t){for(r=!1,u=0;u<_.lines.length;u++)if(void 0!==_.lines[u].staff)for(d=0;d<_.lines[u].staff.length;d++){for(var a=!1,f=0;f<_.lines[u].staff[d].voices.length;f++)this.containsNotesStrict(_.lines[u].staff[d].voices[f])&&(a=!0);a||(r=!0,_.lines[u].staff[d]=null)}r&&_.lines.forEach(function(e){e.staff&&(e.staff=e.staff.filter(function(e){return!!e}))})}for(var s=_.lines,o=!0,c=0;c<s.length;c++){var l=s[c];if(l.staff){for(var h=0;h<l.staff.length;h++){var p=l.staff[h];if(p.title){for(var m=!1,v=0;v<p.title.length;v++)p.title[v]?(p.title[v]=o?p.title[v].name:p.title[v].subname,p.title[v]?m=!0:p.title[v]=""):p.title[v]="";m||delete p.title}}o=!1}}for(u=0;u<_.lines.length;u++)if(_.lines[u].staff)for(d=0;d<_.lines[u].staff.length;d++)delete _.lines[u].staff[d].workingClef;for(;this.resolveOverlays(););function b(e,s,o){var c;g[s]||(g[s]=[]),g[s][o]||(g[s][o]=[]);function t(e,t,n){if(void 0===g[s][o][n]){for(c=0;c<g[s][o].length;c++)if(void 0!==g[s][o][c]){n=c;break}var r;void 0===g[s][o][n]&&(r=100*n+1,e.endSlur.forEach(function(e){r===e&&--r}),g[s][o][n]=[r])}for(var i,a=0;a<t;a++)i=g[s][o][n].pop(),e.endSlur.push(i);return 0===g[s][o][n].length&&delete g[s][o][n],i}function n(e,t,n,r){e.startSlur=[],void 0===g[s][o][n]&&(g[s][o][n]=[]);for(var i=100*n+1,a=0;a<t;a++)r&&(r.forEach(function(e){i===e&&++i}),r.forEach(function(e){i===e&&++i}),r.forEach(function(e){i===e&&++i})),g[s][o][n].forEach(function(e){i===e&&++i}),g[s][o][n].forEach(function(e){i===e&&++i}),g[s][o][n].push(i),e.startSlur.push({label:i}),e.dottedSlur&&(e.startSlur[e.startSlur.length-1].style="dotted",delete e.dottedSlur),i++}for(var r=0;r<e.length;r++){var i=e[r];if("note"===i.el_type){if(i.gracenotes)for(var a=0;a<i.gracenotes.length;a++){if(i.gracenotes[a].endSlur){var l=i.gracenotes[a].endSlur;i.gracenotes[a].endSlur=[];for(var h=0;h<l;h++)t(i.gracenotes[a],1,20)}i.gracenotes[a].startSlur&&(c=i.gracenotes[a].startSlur,n(i.gracenotes[a],c,20))}if(i.endSlur&&(c=i.endSlur,i.endSlur=[],t(i,c,0)),i.startSlur&&n(i,c=i.startSlur,0),i.pitches){for(var u=[],d=0;d<i.pitches.length;d++)if(i.pitches[d].endSlur){var f=i.pitches[d].endSlur;i.pitches[d].endSlur=[];for(var p=0;p<f;p++){var m=t(i.pitches[d],1,d+1);u.push(m)}}for(d=0;d<i.pitches.length;d++)i.pitches[d].startSlur&&(c=i.pitches[d].startSlur,n(i.pitches[d],c,d+1,u));i.gracenotes&&i.pitches[0].endSlur&&100===i.pitches[0].endSlur[0]&&i.pitches[0].startSlur&&(i.gracenotes[0].endSlur?i.gracenotes[0].endSlur.push(i.pitches[0].startSlur[0].label):i.gracenotes[0].endSlur=[i.pitches[0].startSlur[0].label],1===i.pitches[0].endSlur.length?delete i.pitches[0].endSlur:100===i.pitches[0].endSlur[0]?i.pitches[0].endSlur.shift():100===i.pitches[0].endSlur[i.pitches[0].endSlur.length-1]&&i.pitches[0].endSlur.pop(),1===g[s][o][1].length?delete g[s][o][1]:g[s][o][1].pop())}}}}function y(e){S.fixClef(e)}function x(e,t){for(t++;e.length>t;){if(e[t].staff)return e[t];t++}return null}for(_.lineNum=0;_.lineNum<_.lines.length;_.lineNum++){var w=_.lines[_.lineNum].staff;if(w)for(_.staffNum=0;_.staffNum<w.length;_.staffNum++)for(w[_.staffNum].clef&&y(w[_.staffNum].clef),_.voiceNum=0;_.voiceNum<w[_.staffNum].voices.length;_.voiceNum++){var k=w[_.staffNum].voices[_.voiceNum];b(k,_.staffNum,_.voiceNum);for(var C,T=0;T<k.length;T++)"clef"===k[T].el_type&&y(k[T]);0<k.length&&k[k.length-1].barNumber&&((C=x(_.lines,_.lineNum))&&(C.staff[0].barNumber=k[k.length-1].barNumber),delete k[k.length-1].barNumber)}}return delete _.staffNum,delete _.voiceNum,delete _.lineNum,delete _.potentialStartBeam,delete _.potentialEndBeam,delete _.vskipPending,g},_.reset(),this.getLastNote=function(){if(_.lines[_.lineNum]&&_.lines[_.lineNum].staff&&_.lines[_.lineNum].staff[_.staffNum]&&_.lines[_.lineNum].staff[_.staffNum].voices[_.voiceNum])for(var e=_.lines[_.lineNum].staff[_.staffNum].voices[_.voiceNum].length-1;0<=e;e--){var t=_.lines[_.lineNum].staff[_.staffNum].voices[_.voiceNum][e];if("note"===t.el_type)return t}return null},this.addTieToLastNote=function(e){var t=this.getLastNote();return!!(t&&t.pitches&&0<t.pitches.length)&&(t.pitches[0].startTie={},e&&(t.pitches[0].startTie.style="dotted"),!0)},this.getDuration=function(e){return e.duration||0},this.closeLine=function(){_.potentialStartBeam&&_.potentialEndBeam&&(_.potentialStartBeam.startBeam=!0,_.potentialEndBeam.endBeam=!0),delete _.potentialStartBeam,delete _.potentialEndBeam},this.appendElement=function(e,t,n,r){function i(){void 0!==o.potentialStartBeam&&void 0!==o.potentialEndBeam&&(o.potentialStartBeam.startBeam=!0,o.potentialEndBeam.endBeam=!0),delete o.potentialStartBeam,delete o.potentialEndBeam}var a,s,o=_;r.el_type=e,null!==t&&(r.startChar=t),null!==n&&(r.endChar=n);"note"!==e||.25<=c.getDuration(r)||r.force_end_beam_last&&void 0!==o.potentialStartBeam?i():r.end_beam&&void 0!==o.potentialStartBeam?void 0===r.rest?(o.potentialStartBeam.startBeam=!0,r.endBeam=!0,delete o.potentialStartBeam,delete o.potentialEndBeam):i():void 0===r.rest&&(void 0===o.potentialStartBeam?r.end_beam||(o.potentialStartBeam=r,delete o.potentialEndBeam):o.potentialEndBeam=r),delete r.end_beam,delete r.force_end_beam_last,t=r,(n=o.lines[o.lineNum].staff[o.staffNum])&&(void 0!==t.pitches&&(a=n.workingClef.verticalPos,t.pitches.forEach(function(e){e.verticalPos=e.pitch-a})),void 0!==t.gracenotes&&(s=n.workingClef.verticalPos,t.gracenotes.forEach(function(e){e.verticalPos=e.pitch-s})),n.voices[o.voiceNum].push(t))},this.appendStartingElement=function(e,t,n,r){this.closeLine(),"key"===e&&(i=r.impliedNaturals,delete r.impliedNaturals,delete r.explicitAccidentals);var i,a=E.clone(r);if(_.lines[_.lineNum]&&_.lines[_.lineNum].staff){_.lines[_.lineNum].staff.length<=_.staffNum&&(_.lines[_.lineNum].staff[_.staffNum]={},_.lines[_.lineNum].staff[_.staffNum].clef=E.clone(_.lines[_.lineNum].staff[0].clef),_.lines[_.lineNum].staff[_.staffNum].key=E.clone(_.lines[_.lineNum].staff[0].key),_.lines[_.lineNum].staff[0].meter&&(_.lines[_.lineNum].staff[_.staffNum].meter=E.clone(_.lines[_.lineNum].staff[0].meter)),_.lines[_.lineNum].staff[_.staffNum].workingClef=E.clone(_.lines[_.lineNum].staff[0].workingClef),_.lines[_.lineNum].staff[_.staffNum].voices=[[]]),"clef"===e&&(_.lines[_.lineNum].staff[_.staffNum].workingClef=a);for(var s=_.lines[_.lineNum].staff[_.staffNum].voices[_.voiceNum],o=0;o<s.length;o++){if("note"===s[o].el_type||"bar"===s[o].el_type)return a.el_type=e,a.startChar=t,a.endChar=n,i&&(a.accidentals=i.concat(a.accidentals)),void s.push(a);if(s[o].el_type===e)return a.el_type=e,a.startChar=t,a.endChar=n,i&&(a.accidentals=i.concat(a.accidentals)),void(s[o]=a)}_.lines[_.lineNum].staff[_.staffNum][e]=r}},this.pushLine=function(e){_.vskipPending&&(e.vskip=_.vskipPending,delete _.vskipPending),_.lines.push(e)},this.addSubtitle=function(e,t){this.pushLine({subtitle:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addSpacing=function(e){_.vskipPending=e},this.addNewPage=function(e){this.pushLine({newpage:e})},this.addSeparator=function(e,t,n,r){this.pushLine({separator:{spaceAbove:Math.round(e),spaceBelow:Math.round(t),lineLength:Math.round(n),startChar:r.startChar,endChar:r.endChar}})},this.addText=function(e,t){this.pushLine({text:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addCentered=function(e){this.pushLine({text:[{text:e,center:!0}]})},this.containsNotes=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type||"bar"===e[t].el_type)return!0;return!1},this.containsNotesStrict=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type&&(void 0===e[t].rest||void 0!==e[t].chord))return!0;return!1},this.changeVoiceScale=function(e){c.appendElement("scale",null,null,{size:e})},this.changeVoiceColor=function(e){c.appendElement("color",null,null,{color:e})},this.startNewLine=function(e){function t(e){e.key&&e.key.impliedNaturals&&(e.key.accidentals=e.key.accidentals.concat(e.key.impliedNaturals),delete e.key.impliedNaturals),i.lines[i.lineNum].staff[i.staffNum]={voices:[],clef:e.clef,key:e.key,workingClef:e.clef},void 0!==e.stafflines&&(i.lines[i.lineNum].staff[i.staffNum].clef.stafflines=e.stafflines,i.lines[i.lineNum].staff[i.staffNum].workingClef.stafflines=e.stafflines),e.staffscale&&(i.lines[i.lineNum].staff[i.staffNum].staffscale=e.staffscale),e.annotationfont&&c.setLineFont("annotationfont",e.annotationfont),e.gchordfont&&c.setLineFont("gchordfont",e.gchordfont),e.tripletfont&&c.setLineFont("tripletfont",e.tripletfont),e.vocalfont&&c.setLineFont("vocalfont",e.vocalfont),e.bracket&&(i.lines[i.lineNum].staff[i.staffNum].bracket=e.bracket),e.brace&&(i.lines[i.lineNum].staff[i.staffNum].brace=e.brace),e.connectBarLines&&(i.lines[i.lineNum].staff[i.staffNum].connectBarLines=e.connectBarLines),e.barNumber&&(i.lines[i.lineNum].staff[i.staffNum].barNumber=e.barNumber),r(e),e.part&&c.appendElement("part",e.part.startChar,e.part.endChar,{title:e.part.title}),void 0!==e.meter&&(i.lines[i.lineNum].staff[i.staffNum].meter=e.meter),i.vskipPending&&(i.lines[i.lineNum].vskip=i.vskipPending,delete i.vskipPending)}var n,i=_,r=(this.closeLine(),function(e){var t=i.lines[i.lineNum].staff[i.staffNum];if(t.voices[i.voiceNum]=[],t.title||(t.title=[]),t.title[i.voiceNum]={name:e.name,subname:e.subname},e.style&&c.appendElement("style",null,null,{head:e.style}),e.stem)c.appendElement("stem",null,null,{direction:e.stem});else if(0<i.voiceNum){if(void 0!==t.voices[0]){for(var n=!1,r=0;r<t.voices[0].length;r++)"stem"===t.voices[0].el_type&&(n=!0);n||t.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}c.appendElement("stem",null,null,{direction:"down"})}e.scale&&c.appendElement("scale",null,null,{size:e.scale}),e.color&&c.appendElement("color",null,null,{color:e.color})});void 0===_.lines[_.lineNum]?(n=e,i.lines[i.lineNum]={staff:[]},t(n)):void 0===_.lines[_.lineNum].staff?(_.lineNum++,this.startNewLine(e)):void 0===_.lines[_.lineNum].staff[_.staffNum]?t(e):void 0===_.lines[_.lineNum].staff[_.staffNum].voices[_.voiceNum]?r(e):this.containsNotes(_.lines[_.lineNum].staff[_.staffNum].voices[_.voiceNum])?(_.lineNum++,this.startNewLine(e)):e.part&&c.appendElement("part",e.part.startChar,e.part.endChar,{title:e.part.title})},this.setRunningFont=function(e,t){_.runningFonts[e]=t},this.setLineFont=function(e,t){if(_.runningFonts[e]){for(var n=!1,r=Object.keys(t),i=0;i<r.length;i++)_.runningFonts[e][r[i]]!==t[r[i]]&&(n=!0);n&&(_.lines[_.lineNum].staff[_.staffNum][e]=t)}_.runningFonts[e]=t},this.setBarNumberImmediate=function(e){var t=this.getCurrentVoice();if(t&&0<t.length){t=t[t.length-1];if("bar"!==t.el_type)return e-1;void 0!==t.barNumber&&(t.barNumber=e)}return e},this.hasBeginMusic=function(){for(var e=0;e<_.lines.length;e++)if(_.lines[e].staff)return!0;return!1},this.isFirstLine=function(e){for(var t=e-1;0<=t;t--)if(void 0!==_.lines[t].staff)return!1;return!0},this.getCurrentVoice=function(){var e=_.lines[_.lineNum];if(!e)return null;e=e.staff[_.staffNum];return e&&void 0!==e.voices[_.voiceNum]?e.voices[_.voiceNum]:null},this.setCurrentVoice=function(e,t){_.staffNum=e,_.voiceNum=t;for(var n=0;n<_.lines.length;n++)if(_.lines[n].staff&&(void 0===_.lines[n].staff[e]||void 0===_.lines[n].staff[e].voices[t]||!this.containsNotes(_.lines[n].staff[e].voices[t])))return void(_.lineNum=n);_.lineNum=n},this.addMetaText=function(e,t,n){void 0===_.metaText[e]?(_.metaText[e]=t,_.metaTextInfo[e]=n):("string"==typeof _.metaText[e]&&"string"==typeof t?_.metaText[e]+="\n"+t:("string"===_.metaText[e]&&(_.metaText[e]=[{text:_.metaText[e]}]),_.metaText[e]=_.metaText[e].concat(t="string"==typeof t?[{text:t}]:t)),_.metaTextInfo[e].endChar=n.endChar)},this.addMetaTextArray=function(e,t,n){void 0===_.metaText[e]?(_.metaText[e]=[t],_.metaTextInfo[e]=n):(_.metaText[e].push(t),_.metaTextInfo[e].endChar=n.endChar)},this.addMetaTextObj=function(e,t,n){_.metaText[e]=t,_.metaTextInfo[e]=n}}},1756:function(e){function B(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function v(e,t,n,r){for(var i=Math.ceil(e.total/t),a=Math.floor(e.total/i),s=[],o=0;o<i;o++)s.push(a*(o+1));var c=[];c.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var l=0;l<c.length;){{h=void 0;u=void 0;d=void 0;f=void 0;p=void 0;m=void 0;g=void 0;v=void 0;b=void 0;y=void 0;x=void 0;w=void 0;T=void 0;_=void 0;k=void 0;C=void 0;var h=e.measureWidths;var u=s;var d=c[l].accumulator;var f=c[l].lineAccumulator;var p=c[l].lineWidths;var m=c[l].lastVariance;var g=c[l].highestVariance;var v=c[l].currLine;var b=c[l].lineBreaks;var y=c[l].startIndex;var x=c;for(var w=y;w<h.length;w++){var k,C,T=h[w],_=(d+=T,f+=T,Math.abs(d-u[v]));Math.abs(_-m)<u[0]/10&&(_<m?(k=B(p),(C=B(b)).push(w-1),k.push(f-T),x.push({accumulator:d,lineAccumulator:T,lineWidths:k,lastVariance:Math.abs(d-u[v+1]),highestVariance:Math.max(g,m),currLine:v+1,lineBreaks:C,startIndex:w+1})):m<_&&w<h.length-1&&(k=B(p),C=B(b),x.push({accumulator:d,lineAccumulator:f,lineWidths:k,lastVariance:_,highestVariance:Math.max(g,_),currLine:v,lineBreaks:C,startIndex:w+1}))),m<_?(b.push(w-1),v++,g=Math.max(g,m),m=Math.abs(d-u[v]),p.push(f-T),f=T):m=_}p.push(f)}l++}for(o=0;o<c.length;o++){var S=c[o];S.variances=[];for(var E=S.aveVariance=0;E<S.lineWidths.length;E++){var M=S.lineWidths[E];S.variances.push(M-s[0]),S.aveVariance+=Math.abs(M-s[0])}S.aveVariance=S.aveVariance/S.lineWidths.length,r.attempts.push({type:"optimizeLineWidths",lineBreaks:S.lineBreaks,variances:S.variances,aveVariance:S.aveVariance,widths:e.measureWidths})}for(var N=9999999,A=-1,o=0;o<c.length;o++)(S=c[o]).aveVariance<N&&(N=S.aveVariance,A=o);return{failed:!1,lineBreaks:c[A].lineBreaks,variance:c[A].highestVariance}}e.exports={wrapLines:function(e,t,n){var r;t&&0!==e.lines.length&&(t=function(e,t){for(var n=[],r=0,i=0,a=0,s=0;s<e.length;s++){var o=e[s];if(o.staff){var c=i,l=t[r];r++;for(var h=0;h<o.staff.length;h++)for(var u=o.staff[h],d=0;d<u.voices.length;d++){for(var a=c,f=0,p=0,m=u.voices[d],g=0,v=0;v<m.length;v++)"bar"===m[v].el_type&&(l[p]===f&&(n.push({ogLine:s,line:a,staff:h,voice:d,start:g,end:v}),g=v+1,a++,i=Math.max(i,a),p++),f++);n.push({ogLine:s,line:a,staff:h,voice:d,start:g,end:m.length}),a++,i=Math.max(i,a)}}else n.push({ogLine:s,line:a}),a++,i=Math.max(i,a)}return n}(r=e.deline({lineBreaks:!1}),t),e.lines=function(e,t,n){for(var r=[],i=[],a=[],s=1,o=0;o<t.length;o++){var c=t[o];if(e[c.ogLine].staff){var l=e[c.ogLine].staff[c.staff];if(r[c.line]||(r[c.line]={staff:[]}),!r[c.line].staff[c.staff]){r[c.line].staff[c.staff]={voices:[]},void 0!==n&&0===c.staff&&0<c.line&&(r[c.line].staff[c.staff].barNumber=s);for(var h=Object.keys(l),u=0;u<h.length;u++){var d="voices"===h[u];(d="meter"===h[u]&&0!==c.line?!0:d)||(r[c.line].staff[c.staff][h[u]]=l[h[u]])}i[c.staff]&&(r[c.line].staff[c.staff].key=i[c.staff])}r[c.line].staff[c.staff].voices[c.voice]||(r[c.line].staff[c.staff].voices[c.voice]=[]),r[c.line].staff[c.staff].voices[c.voice]=e[c.ogLine].staff[c.staff].voices[c.voice].slice(c.start,c.end+1),a[10*c.staff+c.voice]&&r[c.line].staff[c.staff].voices[c.voice].unshift({el_type:"stem",direction:a[10*c.staff+c.voice].direction});for(var f=r[c.line].staff[c.staff].voices[c.voice],p=f.length-1;0<=p;p--)if("key"===f[p].el_type){i[c.staff]={root:f[p].root,acc:f[p].acc,mode:f[p].mode,accidentals:f[p].accidentals.filter(function(e){return"natural"!==e.acc})};break}for(p=f.length-1;0<=p;p--)if("stem"===f[p].el_type){a[10*c.staff+c.voice]={direction:f[p].direction};break}if(void 0!==n&&0===c.staff&&0===c.voice)for(p=0;p<f.length;p++)"bar"===f[p].el_type&&(s++,p===f.length-1?delete f[p].barNumber:f[p].barNumber=s)}else r[c.line]=e[c.ogLine]}for(var m=0;m<r.length;m++)r[m].staff&&(r[m].staff=r[m].staff.filter(function(e){return null!=e}));return r}(r,t,n),e.lineBreaks=t)},calcLineWraps:function(e,t,n){if(0===t.length||n.staffwidth<t[0].left)return{reParse:!1,explanation:"Staff width is narrower than the margin",revisedParams:n};var r=n.scale?Math.max(n.scale,.1):1,i=n.wrap.minSpacing?Math.max(parseFloat(n.wrap.minSpacing),1):1,a=n.wrap.minSpacingLimit?Math.max(parseFloat(n.wrap.minSpacingLimit),1):i-.1,s=n.wrap.maxSpacing?Math.max(parseFloat(n.wrap.maxSpacing),1):void 0;n.wrap.lastLineLimit&&!s&&(s=Math.max(parseFloat(n.wrap.lastLineLimit),1));for(var o=n.wrap.preferredMeasuresPerLine?Math.max(parseInt(n.wrap.preferredMeasuresPerLine,10),0):void 0,c=[],l=[],h=0;h<t.length;h++){var u,d=t[h],f=n.staffwidth-d.left,p=f/i/r,f={widths:d,lineBreakPoint:p,minLineSize:f/s/r,attempts:[],staffWidth:n.staffwidth,minWidth:Math.round(f/a/r)},m=null;o&&(u=function(e,t,n){for(var r=[],i=[],a=0,s=!1,o=0;o<e.length;o++)(a+=e[o])>t&&(s=!0),o%n==n-1&&(o!==e.length-1&&r.push(o),i.push(Math.round(a)),a=0);return{failed:s,totals:i,lineBreaks:r}}(d.measureWidths,p,o),f.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:o,lineBreaks:u.lineBreaks,failed:u.failed,totals:u.totals}),u.failed||(m=u.lineBreaks)),m||(u=function(e,t){for(var n=[],r=[],i=0,a=0;a<e.length;a++){var s=e[a],o=i+s;o<t?i=o:t-i<o-t&&0<i?(n.push(a-1),r.push(Math.round(i-s)),i=s):a<e.length-1&&(n.push(a),r.push(Math.round(i)),i=0)}return r.push(Math.round(i)),{lineBreaks:n,totals:r}}(d.measureWidths,p),f.attempts.push({type:"Free Form",lineBreaks:u.lineBreaks,totals:u.totals}),0<(m=u.lineBreaks).length&&d.measureWidths.length<25&&(u=v(d,p,0,f),f.attempts.push({type:"Optimize",failed:u.failed,reason:u.reason,lineBreaks:u.lineBreaks,totals:u.totals}),u.failed||(m=u.lineBreaks))),c.push(m),l.push(f)}var g=function(e,t){var n,r={lineBreaks:c,staffwidth:e};for(n in t)t.hasOwnProperty(n)&&"wrap"!==n&&"staffwidth"!==n&&(r[n]=t[n]);return{revisedParams:r}}(n.staffwidth,n);return g.explanation=l,g.reParse=!0,g}}},5633:function(e,t,n){var r,h=n(9447),i=n(4914),u=i.relativeMajor,d=i.transposeKey,f=i.relativeMode,E=n(4208);!function(){"use strict";function o(l,e,t){var n=[],r=e.getKeySignature();if("Hp"===r.root||"HP"===r.root)return n;for(var n=n.concat(function(e){for(var t=[],n=l.split("K:"),r=n[0].length,i=1;i<n.length;i++){var a,s,o=n[i],c=o.match(/^( *)([A-G])([#b]?)(\w*)/);c&&(a=r+2+c[1].length,s=c[2]+c[3]+c[4],c=(c=w({root:c[2],acc:c[3],mode:c[4]},e)).root+c.acc+c.mode,t.push({start:a,end:a+s.length,note:c})),r+=o.length+2}return t}(t)),i=0;i<e.lines.length;i++){var a=e.lines[i].staff;if(a)for(var s=0;s<a.length;s++){var o=a[s];"perc"!==o.clef.type&&(n=n.concat(function(e,t,n,r){for(var i=[],a=w(n,r),s=0;s<t.length;s++)i=i.concat(function(e,t,n,r,i,a){for(var s=[],o=x(i,n,a),c={},l={},h=0;h<t.length;h++){var u=t[h];if(u.chord)for(var d=0;d<u.chord.length;d++){var f,p=u.chord[d];"default"===p.position&&(f=i.accidentals.length&&"flat"===i.accidentals[0].acc,(f=(f=E(p.name,a,f,!0)).replace(/♭/g,"b").replace(/♯/g,"#"))!==p.name&&s.push(function(e,t,n,r){e=e.substring(t,n).match(/([^"]+)?(".+")+/);return e[1]&&(t+=e[1].length),{start:t+1,end:(n=t+e[2].length)-1,note:r}}(e,u.startChar,u.endChar,f)))}if("note"===u.el_type&&u.pitches){for(var m=0;m<u.pitches.length;m++){var g=S(u.pitches[m].name,n,r,c),g=(g.acc&&(c[g.name.toUpperCase()]=g.acc),k(g,i,o,l));g.acc&&(l[g.upper]=g.acc),s.push(function(e,t,n,r,i){var e=e.substring(t,n),a=e.match(new RegExp(C.source+_.source),"");if(a){var s=a[1].length,o=a[2].length+a[3].length+a[4].length;t+=n-t-s-o,n-=o}else if(a=e.match(new RegExp(/([^\[]*)/.source+/\[/.source+T.source+T.source+T.source+T.source+T.source+T.source+T.source+T.source+/\-?](\d*\/*\d*)?([\>\<\-\)]*)/.source+_.source))){for(var c=1+a[1].length,l=0;l<i;l++)a[3*l+2]&&(c+=a[3*l+2].length),a[3*l+3]&&(c+=a[3*l+3].length),a[3*l+4]&&(c+=a[3*l+4].length);n=(t+=c)+(a[3*i+2]?a[3*i+2].length:0)}return{start:t,end:n,note:r}}(e,u.startChar,u.endChar,g.acc+g.name,m))}if(u.gracenotes)for(var v=0;v<u.gracenotes.length;v++){var b=S(u.gracenotes[v].name,n,r,c),b=(b.acc&&(c[b.name.toUpperCase()]=b.acc),k(b,i,o,c));b.acc&&(l[b.upper]=b.acc),s.push(function(e,t,n,r,i){var a=/(\/*)/,s=e.substring(t,n).match(new RegExp(/([^\{]*)/.source+/\{/.source+a.source+T.source+a.source+T.source+a.source+T.source+a.source+T.source+a.source+T.source+a.source+T.source+a.source+T.source+a.source+T.source+/\}/.source));if(s){for(var o=1+s[1].length,c=0;c<i;c++)s[3*c+2]&&(o+=s[3*c+2].length),s[3*c+3]&&(o+=s[3*c+3].length),s[3*c+4]&&(o+=s[3*c+4].length),s[3*c+5]&&(o+=s[3*c+5].length);s[3*i+2]&&(o+=s[3*c+2].length),t+=o;e=s[3*i+3]?s[3*i+3].length:0;e+=s[3*i+4]?s[3*i+4].length:0,n=t+(e+=s[3*i+5]?s[3*i+5].length:0)}return{start:t,end:n,note:r}}(e,u.startChar,u.endChar,b.acc+b.name,v))}}else"bar"===u.el_type?(c={},l={}):"keySignature"===u.el_type&&(n=u.root,r=y(u),o=x(i=w(u,a),n,a))}return s}(e,t[s],n.root,y(n),a,r));return i}(l,o.voices,o.key,t)))}}return n}function y(e){for(var t={},n=0;n<e.accidentals.length;n++){var r=e.accidentals[n];"flat"===r.acc?t[r.note.toUpperCase()]="_":"sharp"===r.acc&&(t[r.note.toUpperCase()]="^")}return t}function x(e,t,n){var r=p.indexOf(e.root)-p.indexOf(t);return 0===(r="none"===t?p.indexOf(e.root):r)?2<n?r+=7:-12===n&&(r-=7):0<n&&r<0?r+=7:n<0&&0<r&&(r-=7),12<n?r+=7:n<-12&&(r-=7),r}r=function(e,t,n){if("TEST"===t)return{keyAccidentals:h,relativeMajor:u,transposeKey:d,relativeMode:f,transposeChordName:E};n=parseInt(n,10);for(var r=[],i=0;i<t.length;i++)r=r.concat(o(e,t[i],n));var r=r.sort(function(e,t){return t.start-e.start}),a=e.split("");for(i=0;i<r.length;i++){var s=r[i];a.splice(s.start,s.end-s.start,s.note)}return a.join("")};var p="CDEFGAB",c=[",,,,",",,,",",,",",","","'","''","'''","''''"];function w(e,t){if("none"===e.root)return{root:d("C",t),mode:"",acc:"",accidentals:[]};var n=u(e.root+e.acc+e.mode),n=d(n,t),t=f(n,e.mode),n=h(n);return{root:t[0],mode:e.mode,acc:1<t.length?t[1]:"",accidentals:n}}function k(e,t,n,r){for(var i=e.pitch,a=p.indexOf(e.name),i=(p.indexOf(t.root)+i)%7,s=a+n,o=e.oct;6<s;)o++,s-=7;for(;s<0;)o--,s+=7;for(var c,l=p[i],h="",u=e.adj,d="=",f=0;f<t.accidentals.length;f++)if(t.accidentals[f].note.toLowerCase()===l.toLowerCase()){u+="flat"===t.accidentals[f].acc?-1:1,d="flat"===t.accidentals[f].acc?"_":"^";break}switch(u){case-2:h="__";break;case-1:h="_";break;case 0:h="=";break;case 1:h="^";break;case 2:h="^^";break;case-3:return(c={}).pitch=e.pitch-1,c.oct=e.oct,c.name=p[p.indexOf(e.name)-1],c.name||(c.name="B",c.oct--),"B"===c.name||"E"===c.name?c.adj=e.adj+1:c.adj=e.adj+2,k(c,t,n+1,r);case 3:return(c={}).pitch=e.pitch+1,c.oct=e.oct,c.name=p[p.indexOf(e.name)+1],c.name||(c.name="C",c.oct++),"C"===c.name||"F"===c.name?c.adj=e.adj-1:c.adj=e.adj-2,k(c,t,n+1,r)}switch(r[l]!==h&&(r[l]||h!==d)||e.courtesy||(h=""),o){case 0:l+=",,,";break;case 1:l+=",,";break;case 2:l+=",";break;case 4:l=l.toLowerCase();break;case 5:l=l.toLowerCase()+"'";break;case 6:l=l.toLowerCase()+"''";break;case 7:l=l.toLowerCase()+"'''";break;case 8:l=l.toLowerCase()+"''''"}return{acc:h,name:l=4<o?l.toLowerCase():l,upper:l.toUpperCase()}}var l=/([_^=]*)([A-Ga-g])([,']*)/,C=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,T=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,_=/(\s*)$/;function S(e,t,n,r){var t="none"===t?0:p.indexOf(t),e=e.match(l),i=e[2].toUpperCase(),t=p.indexOf(i)-t,a=(t<0&&(t+=7),c.indexOf(e[3])),s=(i===e[2]&&a--,r[i]||n[i]||"=");return{acc:e[1],name:i,pitch:t,oct:a,adj:function(e,t,n){if(!(e=!e&&n?n:e))return 0;switch(t){case void 0:switch(e){case"__":return-2;case"_":return-1;case"=":default:return 0;case"^":return 1;case"^^":return 2}case"_":switch(e){case"__":return-1;case"_":default:return 0;case"=":return 1;case"^":return 2;case"^^":return 3}case"^":switch(e){case"__":return-3;case"_":return-2;case"=":return-1;case"^":default:return 0;case"^^":return 1}}return 0}(e[1],n[i],r[i]),courtesy:e[1]===s}}}(),e.exports=r},9716:function(e,t,n){var r,tt=n(5008),nt=n(5058);!function(){"use strict";var te,ne,re,ie,ae,se,oe,ce,le,he,ue,de,fe,De,pe,me,ge,ve,be,ye,xe,we,ke,Ce=1,Te={num:4,den:4},Fe=0,je=0,_e=128,Se=64,Ee=48,Ie=!1,Me=!1,Ve=!0,Ye=105,Ne=95,Ae=85,Ge=.25,Be=0,Pe={},qe=0;function We(){for(var e=!0,t=0;t<ue.length&&e;t++)"note"===ue[t].cmd&&(e=!1);return e}function Le(e){return Math.round(e*Ce*1e6)/1e6}function Oe(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}r=function(e,t,H,n){te=[],ne=[0,0,0,0,0,0,0],ie=[],ae=(t=t||{}).qpm,Ce=1,le=ce=oe=se=void 0,he=0,ke=H,Te={num:4,den:4},de=!(ue=[]),De=e.length,fe=!1,pe=[],Fe=(n=n||{}).bassprog&&1===n.bassprog.length?n.bassprog[0]:0,je=n.chordprog&&1===n.chordprog.length?n.chordprog[0]:0,Se=n.bassvol&&1===n.bassvol.length?n.bassvol[0]:64,Ee=n.chordvol&&1===n.chordvol.length?n.chordvol[0]:48,ge=me=void 0,Ie=!!t.chordsOff,Ve=!(Me=!1),Ye=105,Ne=95,Ae=85,Ge=.25,ye=be=void 0,xe=[],Pe={},we=1,(Be=0)<e.length&&0<e[0].length&&(qe=e[0][0].pickupLength);for(var D=e,F=t,r=0;r<D.length;r++){for(var i,j,a=D[r],s={},o=F.qpm,I=0,V=1,c=0;c<a.length;c++){var l=a[c];if("tempo"!==l.el_type){l.time=I;var Y=l.duration||0;if(I+=Math.round(Y*V*1e6),l.pitches){for(var h=0;h<l.pitches.length;h++){var u,G,d=l.pitches[h];d&&(d.duration=l.duration,d.startTie?void 0===s[d.pitch]?s[d.pitch]={el:c,pitch:h}:(a[s[d.pitch].el].pitches[s[d.pitch].pitch].duration+=d.duration,l.pitches[h]=null):d.endTie&&((u=s[d.pitch])?(G=d.duration,delete a[u.el].pitches[u.pitch].startTie,a[u.el].pitches[u.pitch].duration+=G,l.pitches[h]=null,delete s[d.pitch]):delete d.endTie))}delete l.duration}}else o?V=l.qpm?o/l.qpm:1:o=l.qpm}for(i in s)s.hasOwnProperty(i)&&delete a[(j=s[i]).el].pitches[j.pitch].startTie}for(var f=0;f<e.length;f++){re=0;var q=e[f],W=(le=void 0,!(ce=[{cmd:"program",channel:f,instrument:se}]));(!(ve=0)===t.voicesOff||t.voicesOff&&t.voicesOff.length&&0<=t.voicesOff.indexOf(f))&&(W=!0);for(var p=0;p<q.length;p++){var m=q[p];switch(m.el_type){case"name":le={cmd:"text",type:"name",text:m.trackName};break;case"note":!function(e,t){ce.length;var n=function(e,t){return t?0:(be?(n=be,be=void 0):n=Ve?e<qe?Ae:(Te.num,Te.den,0===(e=Xe(ve,Oe(Te),e))?Ye:parseInt(e,10)===e?Ne:Ae):Ne,ye&&(n+=ye,ye=void 0),127<(n=n<0?0:n)&&(n=127),t?0:n);var n}(e.time/1e6,t),t=function(e){var t=!1,n=function(e){if(Ie)return"break";if(fe||!e.chord||0===e.chord.length)return null;for(var t=0;t<e.chord.length;t++){var n=e.chord[t];if("default"===n.position)return n.name;if(0<=Re.indexOf(n.name.toLowerCase()))return"break"}return null}(e);!n||(n=function(e){if(0!==e.length){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)}t=Qe[t];if(t){for(var n=re;n<-8;)n+=12;for(;8<n;)n-=12;var r,i=(t+=n)-5,e=(1===e.length&&(r=Je(t,"")),e.substring(1)),a=e.substring(0,1),a=("b"===a||"♭"===a?(t--,i--,e=e.substring(1)):"#"!==a&&"♯"!==a||(t++,i++,e=e.substring(1)),e.split("/"));return 3<=(r=Je(t,a[0])).length&&(i=i+(r[2]-r[0])-7),2===a.length&&Qe[a[1].substring(0,1)]&&(e={"#":1,"♯":1,b:-1,"♭":-1}[a[1].substring(1)]||0,i=t=Qe[a[1].substring(0,1)]+e+n),{boom:t,boom2:i,chick:r}}}}(n))&&(0===ue.length&&(t=!0,ue.push({cmd:"program",channel:De,instrument:je})),me=n,n=Xe(ve,Oe(Te),e.time/1e6),pe.push({chord:me,beat:n,start:e.time/1e6}));return t}(e);if(e.gracenotes&&e.pitches&&0<e.pitches.length&&e.pitches[0]&&(r=function(e,t){for(var n,r=0,i=[],a=0;a<e.length;a++)r+=(n=e[a]).duration;for(var s=t/2/r,a=0;a<e.length;a++){var o=Ue(n=e[a]);oe!==_e||!ke||(c=nt(n))&&ke[c]&&(o=ke[c].sound);var c=Ke({pitch:o,duration:n.duration*s});i.push(c)}return i}(e.gracenotes,e.pitches[0].duration),e.elem&&(e.elem.midiGraceNotePitches=function(e,t,n,r){var i=[];n=Math.round(n);for(var a=0;a<e.length;a++){var s=e[a];ce.push({cmd:"note",pitch:s.pitch,volume:n,start:t,duration:s.duration,gap:0,instrument:r,style:"grace"}),i.push({pitch:s.pitch,durationInMeasures:s.duration,volume:n,instrument:r}),t+=s.duration}return i}(r,e.time/1e6,2*n/3,oe))),e.elem){var r=e.time/1e6,i=r/Ge/ae*60*1e3;if(void 0===e.elem.currentTrackMilliseconds)e.elem.currentTrackMilliseconds=i,e.elem.currentTrackWholeNotes=r;else if(void 0===e.elem.currentTrackMilliseconds.length)e.elem.currentTrackMilliseconds!==i&&(e.elem.currentTrackMilliseconds=[e.elem.currentTrackMilliseconds,i],e.elem.currentTrackWholeNotes=[e.elem.currentTrackWholeNotes,r]);else{for(var a=!1,s=0;s<e.elem.currentTrackMilliseconds.length;s++)e.elem.currentTrackMilliseconds[s]===i&&(a=!0);a||(e.elem.currentTrackMilliseconds.push(i),e.elem.currentTrackWholeNotes.push(r))}}if(e.pitches){var o="",c=function(e,t){var n={};if(e.decoration)for(var r=0;r<e.decoration.length;r++)"staccato"===e.decoration[r]?n.thisBreakBetweenNotes="staccato":"tenuto"===e.decoration[r]?n.thisBreakBetweenNotes="tenuto":"accent"===e.decoration[r]?n.velocity=Math.min(127,1.5*t):"trill"===e.decoration[r]?n.noteModification="trill":"lowermordent"===e.decoration[r]?n.noteModification="lowermordent":"uppermordent"===e.decoration[r]||"mordent"===e.decoration[r]?n.noteModification="mordent":"turn"===e.decoration[r]?n.noteModification="turn":"roll"===e.decoration[r]&&(n.noteModification="roll");return n}(e,n),l=(c.thisBreakBetweenNotes&&(o=c.thisBreakBetweenNotes),c.velocity&&(n=c.velocity),e.pitches);if("rhythm"===e.style&&(Me=!0,me&&me.chick)){l=[];for(var h=0;h<me.chick.length;h++){var u=tt.clone(e.pitches[0]);u.actualPitch=me.chick[h],l.push(u)}}e.elem&&(e.elem.midiPitches=[]);for(var d=0;d<l.length;d++){var f=l[d];if(f){f.startSlur&&(Be+=f.startSlur.length),f.endSlur&&(Be-=f.endSlur.length);var p,m=f.actualPitch||Ue(f),g=(oe!==_e||!ke||(p=nt(f))&&ke[p]&&(m=ke[p].sound),{cmd:"note",pitch:m,volume:n,start:e.time/1e6,duration:Le(f.duration),instrument:oe,startChar:e.elem.startChar,endChar:e.elem.endChar});if(g=Ke(g),e.gracenotes&&(g.duration=g.duration/2,g.start=g.start+g.duration),e.elem&&e.elem.midiPitches.push(g),c.noteModification)!function(e,t){var n=t.start,r=t.duration,i=Le(1/32);switch(e){case"trill":for(var a=1;0<r;)ce.push({cmd:"note",pitch:t.pitch+a,volume:t.volume,start:n,duration:i,gap:0,instrument:oe,style:"decoration"}),a=1===a?0:1,r-=i,n+=i;break;case"mordent":ce.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:n,duration:i,gap:0,instrument:oe,style:"decoration"}),r-=i,n+=i,ce.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:n,duration:i,gap:0,instrument:oe,style:"decoration"}),r-=i,n+=i,ce.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:n,duration:r,gap:0,instrument:oe});break;case"lowermordent":ce.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:n,duration:i,gap:0,instrument:oe,style:"decoration"}),r-=i,n+=i,ce.push({cmd:"note",pitch:t.pitch-1,volume:t.volume,start:n,duration:i,gap:0,instrument:oe,style:"decoration"}),r-=i,n+=i,ce.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:n,duration:r,gap:0,instrument:oe});break;case"turn":i=t.duration/5,ce.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:n,duration:i,gap:0,instrument:oe,style:"decoration"}),ce.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:n+i,duration:i,gap:0,instrument:oe,style:"decoration"}),ce.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:n+2*i,duration:i,gap:0,instrument:oe,style:"decoration"}),ce.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:n+3*i,duration:i,gap:0,instrument:oe,style:"decoration"}),ce.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:n+4*i,duration:i,gap:0,instrument:oe});break;case"roll":for(;0<r;)ce.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:n,duration:i,gap:0,instrument:oe,style:"decoration"}),r-=2*i,n+=2*i}}(c.noteModification,g);else{switch(0<Be?g.endType="tenuto":o&&(g.endType=o),g.endType){case"tenuto":g.gap=-.001;break;case"staccato":var v=.4*g.duration;g.gap=ae/60*v;break;default:g.gap=0}ce.push(g)}}}ce.length}r=function(e){return(e.pitches&&0<e.pitches.length&&e.pitches[0]?e.pitches[0]:e.elem||e).duration}(e);return he=Math.max(he,e.time/1e6+Le(r)),t}(m,W)||(de=f);break;case"key":ne=function(e){var t=[0,0,0,0,0,0,0];if(!e.accidentals)return t;for(var n=0;n<e.accidentals.length;n++){var r,i=e.accidentals[n];switch(i.acc){case"flat":r=-1;break;case"quarterflat":r=-.25;break;case"sharp":r=1;break;case"quartersharp":r=.25;break;default:r=0}t[$e(i.note.toLowerCase().charCodeAt(0)-"c".charCodeAt(0))]+=r}return t}(m);break;case"meter":Ge=Oe(Te=m),et();break;case"tempo":ae?Ce=m.qpm?ae/m.qpm:1:ae=m.qpm;break;case"transpose":re=m.transpose;break;case"bar":if(0<ue.length&&(!1===de||f===de)){{g=void 0;R=void 0;y=void 0;x=void 0;w=void 0;k=void 0;C=void 0;y=void 0;X=void 0;U=void 0;K=void 0;T=void 0;_=void 0;$=void 0;S=void 0;v=void 0;b=void 0;E=void 0;var g=ve;var R=m.time/1e6;var v,b,y=Te.num,x=Te.den,w=1/x,k=w/2,C=Ze[y+"/"+x],y=parseInt(y,10)/parseInt(x,10)-(R-g)/Ce;if(Math.abs(y)<1e-5&&(y=!1),!C||y){C=[];for(var X=(R-g)/Ce/w,U=0;U<X;U++)C.push("chick")}if(0===pe.length&&pe.push({beat:0,chord:me}),0!==pe[0].beat&&me&&ge&&pe.unshift({beat:0,chord:ge}),1!==pe.length){for(var K=.125==w?3:1,T={},_=0;_<pe.length;_++){var $=pe[_];T[""+Math.round($.beat*K)]=$}for(var S=0;S<C.length;S++)if(T[""+S]&&(v=T[""+S]),!Me&&v)switch(C[S]){case"boom":T[""+(S+1)]?He(v.chord.chick,w,Ee,S,k):(ze(v.chord.boom,w,Se,S,k),b=v.chord.boom);break;case"boom2":T[""+(S+1)]?He(v.chord.chick,w,Ee,S,k):b=b===v.chord.boom?void ze(v.chord.boom2,w,Se,S,k):(ze(v.chord.boom,w,Se,S,k),v.chord.boom);break;case"chick":He(v.chord.chick,w,Ee,S,k);break;case"":T[""+S]&&He(v.chord.chick,w,Ee,S,k)}}else for(var E=pe[0].beat;E<C.length;E++)if(!Me)switch(C[E]){case"boom":ze(pe[0].chord.boom,w,Se,E,k);break;case"boom2":ze(pe[0].chord.boom2,w,Se,E,k);break;case"chick":He(pe[0].chord.chick,w,Ee,E,k)}}pe=[]}te=[],0===f&&function(e){if(0!==xe.length||Pe.on){var t=Te.num/Te.den;if(0===xe.length){if(he<t)return;xe.push({cmd:"program",channel:e,instrument:_e})}if(Pe.on)for(var n=ve,r=0;r<Pe.pattern.length;r++){var i=Le(Pe.pattern[r].len);Pe.pattern[r].pitch&&xe.push({cmd:"note",pitch:Pe.pattern[r].pitch,volume:Pe.pattern[r].velocity,start:n,duration:i,gap:0,instrument:_e}),n+=i}}}(e.length+1),Me=!1,ge=me,ve=m.time/1e6;break;case"bagpipes":break;case"instrument":if(void 0===se&&(se=m.program),oe=m.program,0<ce.length&&"program"===ce[ce.length-1].cmd)ce[ce.length-1].instrument=m.program;else{for(var M=ce.length-1;0<=M&&"program"!==ce[M].cmd;M--);(M<0||ce[M].instrument!==m.program)&&ce.push({cmd:"program",channel:0,instrument:m.program})}break;case"channel":!function(e){for(var t=ce.length-1;0<=t;t--)if("program"===ce[t].cmd)return ce[t].channel=e}(m.channel);break;case"drum":Pe=function(e){if(0===e.pattern.length||!1===e.on)return{on:!1};for(var t=e.pattern[0],n=[],r="",i=0,a=0;a<t.length;a++)if("d"===t[a]&&i++,"d"===t[a]||"z"===t[a])0!==r.length?(n.push(r),r=t[a]):r+=t[a];else{if(0===r.length)return{on:!1};r+=t[a]}if(0!==r.length&&n.push(r),e.pattern.length!==2*i+1)return{on:!1};for(var s={on:!0,bars:e.bars,pattern:[]},o=Oe(Te),c=0,l=0;l<n.length;l++){r=n[l];for(var h=1,u=!1,d=0,f=1;f<r.length;f++)switch(r[f]){case"/":0!==d&&(h*=d),u=!(d=0);break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=10*d+r[f];break;default:return{on:!1}}u?h/=d=0===d?2:d:d&&(h*=d),"d"===r[0]?(s.pattern.push({len:h*o,pitch:e.pattern[1+c],velocity:e.pattern[1+c+i]}),c++):s.pattern.push({len:h*o,pitch:null})}return we=e.bars||1,s}(m.params),et();break;case"gchord":t.chordsOff||(Ie=m.tacet);break;case"beat":Ye=m.beats[0],Ne=m.beats[1],Ae=m.beats[2];break;case"vol":be=m.volume;break;case"volinc":ye=m.volume;break;case"beataccents":Ve=m.value;break;default:console.log("MIDI creation. Unknown el_type: "+m.el_type+"\n")}}void 0===ce[0].instrument&&(ce[0].instrument=se||0),le&&ce.unshift(le),ie.push(ce),We()||(fe=!0),xe.length}if(t.detuneOctave){for(var N=ie,Q=parseInt(t.detuneOctave,10),A={},B=0;B<N.length;B++)for(var P=0;P<N[B].length;P++){var L=N[B][P];"note"===L.cmd&&(void 0===A[L.start]&&(A[L.start]=[]),A[L.start].push({track:B,event:P,pitch:L.pitch}))}for(var J=Object.keys(A),B=0;B<J.length;B++){var O=A[J[B]];if(1<O.length){for(var z=(O=O.sort(function(e,t){return e.pitch-t.pitch}))[O.length-1],Z=z.pitch%12,ee=!1,P=0;!ee&&P<O.length-1;P++)O[P].pitch%12==Z&&(ee=!0);ee&&((z=N[z.track][z.event]).cents||(z.cents=0),z.cents+=Q)}}}return We()||ie.push(ue),0<xe.length&&ie.push(xe),{tempo:ae,instrument:se,tracks:ie,totalDuration:he}};var Re=["break","(break)","no chord","n.c.","tacet"];function Xe(e,t,n){return(n-e)/t}var n=[0,2,4,5,7,9,11];function Ue(e){if(void 0!==e.midipitch)return e.midipitch;var t=e.pitch;if(e.accidental)switch(e.accidental){case"sharp":te[t]=1;break;case"flat":te[t]=-1;break;case"natural":te[t]=0;break;case"dblsharp":te[t]=2;break;case"dblflat":te[t]=-2;break;case"quartersharp":te[t]=.25;break;case"quarterflat":te[t]=-.25}e=12*Math.floor(t/7)+n[$e(t)]+60;return void 0!==te[t]?e+=te[t]:e+=ne[$e(t)],e+re}function Ke(e){var t=""+e.pitch;return 0<=t.indexOf(".75")?(e.pitch=Math.round(e.pitch),e.cents=-50):0<=t.indexOf(".25")&&(e.pitch=Math.round(e.pitch),e.cents=50),e}function $e(e){return(e%=7)<0&&(e+=7),e}var Qe={A:33,B:35,C:36,D:38,E:40,F:41,G:43},a={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 Je(e,t){var n=(n=a[t])||("ma"!==t.slice(0,2).toLowerCase()&&"M"!==t[0]&&("m"===t[0]||"-"===t[0])?a.m:a.M);e+=12;for(var r=[],i=0;i<n.length;i++)r.push(e+n[i]);return r}function ze(e,t,n,r,i){void 0!==e&&ue.push({cmd:"note",pitch:e,volume:n,start:ve+r*Le(t),duration:Le(i),gap:0,instrument:Fe})}function He(e,t,n,r,i){for(var a=0;a<e.length;a++)ue.push({cmd:"note",pitch:e[a],volume:n,start:ve+r*Le(t),duration:Le(i),gap:0,instrument:je})}var Ze={"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 et(){if(Pe&&Pe.pattern){for(var e=Pe,t=0,n=Te.num/Te.den,r=0;r<e.pattern.length;r++)t+=e.pattern[r].len;for(var i=t/we/n,r=0;r<e.pattern.length;r++)e.pattern[r].len=e.pattern[r].len/i;Pe=e}}}(),e.exports=r},9991:function(e,t,n){var c,l=n(2710);!function(){"use strict";function i(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n]);return e}function e(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}function a(e,t){for(var n="",r=0;r<e.length;r++)n+=s(e.charCodeAt(r),2);return"%00%FF"+t+s(n.length/3,2)+n}function s(e,t){for(var n=(n=e.toString(16)).split(".")[0];n.length<t;)n="0"+n;for(var r=n=n.length>t?n.substring(0,t):n,i="",a=0;a<r.length;a+=2)i=(i+="%")+r.substr(a,2);return i}function r(e){var t=(e=Math.round(e))%128;return s(2*(e-t)+t,4)}function o(e){var t=0,n=[];for(e=Math.round(e);0!==e;)n.push(127&e),e>>=7;for(var r=n.length-1;0<=r;r--){t<<=8;var i=n[r];0!==r&&(i|=128),t|=i}var a=t.toString(16).length;return s(t,a+=a%2)}e.prototype.setTempo=function(e){0===this.trackcount&&(this.startTrack(),this.track+="%00%FF%51%03"+s(Math.round(6e7/e),6),this.endTrack())},e.prototype.setGlobalInfo=function(e,t,n,r){0===this.trackcount&&(this.startTrack(),e=Math.round(6e7/e),this.track+="%00%FF%51%03"+s(e,6),n&&(this.track+=function(e){if(!e||!e.accidentals)return"";for(var t=0,n=256,r=0;r<e.accidentals.length;r++)"sharp"===e.accidentals[r].acc?t++:"flat"===e.accidentals[r].acc&&n--;return"%00%FF%59%02"+s(256!==n?n:t,2)+("m"===e.mode?"%01":"%00")}(n)),r&&(this.track+=function(e){var t,n="%00%FF%58%04"+s(e.num,2),r={1:0,2:1,4:2,8:3,16:4,32:5}[e.den];if(!r)return"";switch(n+=s(r,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?n+s(t,2)+"%08":""}(r)),t&&(this.track+=a(t,"%01")),this.endTrack())},e.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},e.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var e=s(this.track.length/3+4,8);this.track="MTrk"+e+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},e.prototype.setText=function(e,t){"name"===e&&(this.trackName=a(t,"%03"))},e.prototype.setInstrument=function(e){this.trackInstrument="%00%C0"+s(e,2),this.instrument=e},e.prototype.setChannel=function(e,t){this.channel=e;e="%00%B"+this.channel.toString(16);this.track+=e+"%79%00",this.track+=e+"%40%00",this.track+=e+"%5B%30",t=t||0,t=Math.round(64*(t+1)),this.track+=e+"%0A"+s(t,2),this.track+=e+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)},e.prototype.startNote=function(e,t,n){this.track+=o(this.silencelength),this.silencelength=0,n&&(this.track+="%e"+this.channel.toString(16),n=Math.round(4096*l(n)),this.track+=r(8192+n),this.track+=o(0),this.noteWarped[e]=!0),this.track+=this.noteOnAndChannel,this.track+="%"+e.toString(16)+s(t,2)},e.prototype.endNote=function(e){this.track+=o(this.silencelength),this.silencelength=0,this.noteWarped[e]&&(this.track+="%e"+this.channel.toString(16),this.track+=r(8192),this.track+=o(0),this.noteWarped[e]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+e.toString(16)+"%00"},e.prototype.addRest=function(e){this.silencelength+=e,this.silencelength<0&&(this.silencelength=0)},e.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+s(this.trackcount,4)+"%01%e0"+this.trackstrings},e.prototype.embed=function(e,t){var n=this.getData(),r=i(document.createElement("a"),{href:n});r.innerHTML="download midi",e.insertBefore(r,e.firstChild),t||(r=i(document.createElement("embed"),{src:n,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"}),e.insertBefore(r,e.firstChild))},c=function(){return new e}}(),e.exports=c},1028:function(e,t,n){var r,Ce=n(5008);!function(){"use strict";var me=1;function ge(e,t,n){for(var r=0,i=t+1;i<e.length;i++)if("note"===e[i].el_type&&r++,e[i].decoration&&0<=e[i].decoration.indexOf(n))return r;return r}function ve(e,t,n){for(var r=Math.min(e.length,t+3),i=t;i<r;i++)if("note"===e[i].el_type&&e[i].decoration)for(var a=0;a<e[i].decoration.length;a++)if(0<=n.indexOf(e[i].decoration[a]))return e[i].decoration[a];return null}function be(e,t){var n=.25,r=60;return(n=e.duration?e.duration[0]:n)*(r=e.bpm?e.bpm:r)/t}function ye(e){var t;switch(e.type){case"common_time":t={el_type:"meter",num:4,den:4};break;case"cut_time":t={el_type:"meter",num:2,den:2};break;case"specified":t={el_type:"meter",num:e.value[0].num,den:e.value[0].den};break;default:t={el_type:"meter"}}return me=t.num/t.den,t}function xe(e,t){ke(e,"HP"===t.root?{el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:{el_type:"key",accidentals:function(e){for(var t=[],n=0;n<e.length;n++)"natural"!==e[n].acc&&t.push(e[n]);return t}(t.accidentals)})}function we(e,t){ke(e,ye(t))}function ke(e,t){for(var n=e.length-1;0<=n;n--)if(e[n].el_type===t.el_type)return JSON.stringify(e[n])!==JSON.stringify(t)&&e.push(t);e.push(t)}r=function(e,t){var n,r,i=(t=t||{}).program||0,a=t.midiTranspose||0,s=(e.visualTranspose&&(a-=e.visualTranspose),t.channel||0),o=!1,c=t.drum||"",l=t.drumBars||1,h=t.drumIntro||0,u=""!==c,H=[],i=parseInt(i,10),a=parseInt(a,10),c=(10===(s=parseInt(s,10))&&(i=128),c.split(" ")),l=parseInt(l,10),h=parseInt(h,10),D=e.formatting.bagpipes,d=(D&&(i=71),[]),f=(e.formatting.midi&&((r=e.formatting.midi).program&&0<r.program.length&&(i=r.program[0],1<r.program.length&&(i=r.program[1],s=r.program[0]),o=!0),r.transpose&&(a=r.transpose[0]),r.channel&&(s=r.channel[0],o=!0),r.drum&&(c=r.drum),r.drumbars&&(l=r.drumbars[0]),r.drumon&&(u=!0),10===s&&(i=128),r.beat&&d.push({el_type:"beat",beats:r.beat}),r.nobeataccents&&d.push({el_type:"beataccents",value:!1})),n=t.qpm?parseInt(t.qpm,10):e.metaText.tempo?be(e.metaText.tempo,e.getBeatLength()):t.defaultQpm||180,[]);D&&f.push({el_type:"bagpipes"}),f.push({el_type:"instrument",program:i}),s&&f.push({el_type:"channel",channel:s}),a&&f.push({el_type:"transpose",transpose:a}),f.push({el_type:"tempo",qpm:n});for(var F=0;F<d.length;F++)f.push(d[F]);for(var p=[],m=[],g=[],v=[0],j={},I=[],V=[],Y=!(j[0]={el_type:"tempo",qpm:n,timing:0}),G=e.lines,q=0;q<G.length;q++){var W=G[q];if(W.staff)for(var R=function(e){var t,n,r,i={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]};e.decoration&&(0<=e.decoration.indexOf("pppp")?r="pppp":0<=e.decoration.indexOf("ppp")?r="ppp":0<=e.decoration.indexOf("pp")?r="pp":0<=e.decoration.indexOf("p")?r="p":0<=e.decoration.indexOf("mp")?r="mp":0<=e.decoration.indexOf("mf")?r="mf":0<=e.decoration.indexOf("f")?r="f":0<=e.decoration.indexOf("ff")?r="ff":0<=e.decoration.indexOf("fff")?r="fff":0<=e.decoration.indexOf("ffff")&&(r="ffff"),r&&(T=i[r].slice(0),p[b].push({el_type:"beat",beats:T.slice(0)}),m[x]=!1,g[x]=!1),0<=e.decoration.indexOf("crescendo(")?(r=ge(w,_,"crescendo)"),n=Math.min(127,T[0]+50),(t=ve(w,_+r+1,Object.keys(i)))&&(n=i[t][0]),m[x]=0<r&&Math.floor((n-T[0])/r),g[x]=!1):0<=e.decoration.indexOf("crescendo)")?m[x]=!1:0<=e.decoration.indexOf("diminuendo(")?(t=ge(w,_,"diminuendo)"),n=Math.max(15,T[0]-50),(r=ve(w,_+t+1,Object.keys(i)))&&(n=i[r][0]),m[x]=!1,g[x]=0<t&&Math.floor((n-T[0])/t)):0<=e.decoration.indexOf("diminuendo)")&&(g[x]=!1))},X=W.staff,b=0,U=0;U<X.length;U++){var y=X[U];if(!y.clef||"TAB"!==y.clef.type)for(var x=0;x<y.voices.length;x++){var K,w=y.voices[x];if(p[b]||(p[b]=[].concat(JSON.parse(JSON.stringify(f))),(K=function(e,t){if(e&&!(e.length<=t)&&e[t].title)return e[t].title.join(" ")}(W.staff,b))&&p[b].unshift({el_type:"name",trackName:K})),a&&"perc"===y.clef.type&&p[b].push({el_type:"transpose",transpose:0}),y.clef&&"perc"===y.clef.type&&!o)for(var k=0;k<p[b].length;k++)"instrument"===p[b][k].el_type&&(p[b][k].program=128);else y.key&&xe(p[b],y.key);y.meter&&we(p[b],y.meter),!Y&&u&&(p[b].push({el_type:"drum",params:{pattern:c,bars:l,on:u,intro:h}}),Y=!0),y.clef&&"perc"!==y.clef.type&&y.clef.transpose&&(y.clef.el_type="clef",p[b].push({el_type:"transpose",transpose:y.clef.transpose})),y.clef&&y.clef.type&&(0<=y.clef.type.indexOf("-8")?p[b].push({el_type:"transpose",transpose:-12}):0<=y.clef.type.indexOf("+8")&&p[b].push({el_type:"transpose",transpose:12})),e.formatting.midi&&e.formatting.midi.drumoff&&(p[b].push({el_type:"bar"}),p[b].push({el_type:"drum",params:{pattern:"",on:!1}}));for(var $=0,C=0,Q=0,J=0,T=[105,95,85,1],_=0;_<w.length;_++){var S=w[_];switch(S.el_type){case"note":if(m[x]&&(T[0]+=m[x],T[1]+=m[x],T[2]+=m[x],p[b].push({el_type:"beat",beats:T.slice(0)})),g[x]&&(T[0]+=g[x],T[1]+=g[x],T[2]+=g[x],p[b].push({el_type:"beat",beats:T.slice(0)})),R(S),!S.rest||"spacer"!==S.rest.type){var E={elem:S,el_type:"note",timing:v[b]};if(S.style?E.style=S.style:H[b]&&(E.style=H[b]),E.duration=0===S.duration?.25:S.duration,S.startTriplet){if(C=S.tripletMultiplier,Q=S.startTriplet*C*S.duration,S.startTriplet!==S.tripletR&&_+S.tripletR<=w.length){for(var Z=0,M=_;M<_+S.tripletR;M++)Z+=w[M].duration;Q=C*Z}E.duration=E.duration*C,E.duration=Math.round(1e6*E.duration)/1e6,J=E.duration}else C&&(S.endTriplet?(C=0,E.duration=Math.round(1e6*(Q-J))/1e6):(E.duration=E.duration*C,E.duration=Math.round(1e6*E.duration)/1e6,J+=E.duration));if(S.rest&&(E.rest=S.rest),S.decoration&&(E.decoration=S.decoration.slice(0)),S.pitches&&(E.pitches=Ce.cloneArray(S.pitches)),S.gracenotes&&(E.gracenotes=Ce.cloneArray(S.gracenotes)),S.chord&&(E.chord=Ce.cloneArray(S.chord)),p[b].push(E),"rhythm"===S.style){ee=void 0;te=void 0;ne=void 0;N=void 0;var ee=p;for(var te=0;te<ee.length;te++)for(var ne=ee[te],N=ne.length-1;0<=N&&"bar"!==ne[N].el_type;)ne[N].noChordVoice=!0,N--}$++,v[b]+=E.duration}break;case"key":case"keySignature":xe(p[b],S);break;case"meter":we(p[b],S);break;case"clef":S.transpose&&p[b].push({el_type:"transpose",transpose:S.transpose}),S.type&&(0<=S.type.indexOf("-8")?p[b].push({el_type:"transpose",transpose:-12}):0<=S.type.indexOf("+8")&&p[b].push({el_type:"transpose",transpose:12}));break;case"tempo":n=be(S,e.getBeatLength()),p[b].push({el_type:"tempo",qpm:n,timing:v[b]}),j[""+v[b]]={el_type:"tempo",qpm:n,timing:v[b]};break;case"bar":0<$&&p[b].push({el_type:"bar"}),R(S);var $=0,E="bar_right_repeat"===S.type||"bar_dbl_repeat"===S.type,re="1"===S.startEnding,ie="bar_left_repeat"===S.type||"bar_dbl_repeat"===S.type||"bar_right_repeat"===S.type;if(E){for(var ae=(ae=I[b])||0,se=(se=V[b])||p[b].length,oe=ae;oe<se;oe++){var ce=Ce.clone(p[b][oe]);ce.pitches&&(ce.pitches=Ce.cloneArray(ce.pitches)),p[b].push(ce)}V[b]=void 0,I[b]=void 0}re&&(V[b]=p[b].length),ie&&(I[b]=p[b].length);break;case"style":H[b]=S.head;break;case"timeSignature":p[b].push(ye(S));break;case"part":case"stem":case"scale":case"break":case"font":break;case"midi":var A=!1;switch(S.cmd){case"drumon":A=u=!0;break;case"drumoff":A=!(u=!1);break;case"drum":c=S.params,A=!0;break;case"drumbars":l=S.params[0],A=!0;break;case"drummap":break;case"channel":10===S.params[0]&&p[b].push({el_type:"instrument",program:128});break;case"program":ke(p[b],{el_type:"instrument",program:S.params[0]}),o=!0;break;case"transpose":p[b].push({el_type:"transpose",transpose:S.params[0]});break;case"gchordoff":p[b].push({el_type:"gchord",tacet:!0});break;case"gchordon":p[b].push({el_type:"gchord",tacet:!1});break;case"beat":p[b].push({el_type:"beat",beats:S.params});break;case"nobeataccents":p[b].push({el_type:"beataccents",value:!1});break;case"beataccents":p[b].push({el_type:"beataccents",value:!0});break;case"vol":p[b].push({el_type:"vol",volume:S.params[0]});break;case"volinc":p[b].push({el_type:"volinc",volume:S.params[0]});break;default:console.log("MIDI seq: midi cmd not handled: ",S.cmd,S)}A&&(p[0].push({el_type:"drum",params:{pattern:c,bars:l,intro:h,on:u}}),Y=!0);break;default:console.log("MIDI: element type "+S.el_type+" not handled.")}}v[++b]||(v[b]=0)}}}var le=p,B=j;if(B&&0!==B.length)for(var he=Object.keys(B),ue=0;ue<le.length;ue++)for(var de=le[ue],fe=B[0]?B[0].qpm:0,P=0;P<de.length;P++){var L=de[P];"tempo"===L.el_type&&(fe=L.qpm),0<=he.indexOf(""+L.timing)&&fe!==B[""+L.timing].qpm&&(fe=B[""+L.timing].qpm,"tempo"===L.el_type?(L.qpm=B[""+L.timing].qpm,P++):(le[ue].splice(P,0,{el_type:"tempo",qpm:B[""+L.timing].qpm,timing:L.timing}),P+=2))}if(h)for(var pe=e.getPickupLength(),O=0;O<p.length;O++){for(var z=0;"note"!==p[O][z].el_type&&p[O].length>z;)z++;if(p[O].length>z)for(M=0;M<h;M++)0===pe||M<h-1?p[O].splice(z,0,{el_type:"note",rest:{type:"rest"},duration:me},{el_type:"bar"}):p[O].splice(z,0,{el_type:"note",rest:{type:"rest"},duration:me-pe})}return 0<p.length&&0<p[0].length&&(p[0][0].pickupLength=e.getPickupLength()),p}}(),e.exports=r},8702:function(e,t,n){var r=n(5281);e.exports=function(){return window.abcjsAudioContext||r(),window.abcjsAudioContext}},2710:function(e){e.exports=function(e){return Math.pow(2,e/1200)}},9143:function(e,t,n){var s=n(8471);e.exports=function(e){for(var i=[],t=0;t<e.tracks.length;t++)i.push([]);var a=s[0];return e.tracks.forEach(function(e,r){e.forEach(function(e){switch(e.cmd){case"note":var t,n;0<e.duration&&(t=e.gap||0,n=e.duration,t=Math.min(t,2*n/3),n={pitch:e.pitch,instrument:a,start:Math.round(1e6*e.start)/1e6,end:Math.round(1e6*(e.start+n-t))/1e6,volume:e.volume},e.startChar&&(n.startChar=e.startChar),e.endChar&&(n.endChar=e.endChar),e.style&&(n.style=e.style),e.cents&&(n.cents=e.cents),i[r].push(n));break;case"program":a=s[e.instrument];break;case"text":break;default:console.log("Unhandled midi event",e)}})}),i}},6313:function(e,t,n){var s=n(5049),d=n(5281),f=n(8702),p=n(5008),m=n(1225),g=n(9733),v=n(5075),b=n(5343),y=n(6987);function x(t,n,r,e,i){var a=!0;if(f()?a="suspended"===f().state:d(),!s())throw{status:"NotSupported",message:"This browser does not support audio."};(a||i)&&r&&r.classList.add("abcjs-loading"),a?f().resume().then(function(){e?e().then(function(e){o(t,n,r,i)}):o(t,n,r,i)}):o(t,n,r,i)}function o(e,t,n,r){r?e(t).then(function(){n&&n.classList.remove("abcjs-loading")}):(e(t),n&&n.classList.remove("abcjs-loading"))}e.exports=function(e,t){var n,r,i,a,s,o,c,l,h=this;if("string"==typeof e){var u=e;if(!(e=document.querySelector(u)))throw new Error('Cannot find element "'+u+'" in the DOM.')}else if(!(e instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");h.parent=e,h.options={},t&&(h.options=p.clone(t)),h.options.ac&&d(h.options.ac),u=h.parent,e=h.options,t=!!e.loopHandler,i=!!e.restartHandler,a=!!e.playHandler||!!e.playPromiseHandler,s=!!e.progressHandler,o=!!e.warpHandler,c=!1!==e.hasClock,l='<div class="abcjs-inline-audio">\n',t&&(l+='<button type="button" class="abcjs-midi-loop abcjs-btn" title="'+(t=e.repeatTitle||"Click to toggle play once/repeat.")+'" aria-label="'+(e.repeatAria||t)+'">'+m+"</button>\n"),i&&(l+='<button type="button" class="abcjs-midi-reset abcjs-btn" title="'+(t=e.restartTitle||"Click to go to beginning.")+'" aria-label="'+(e.restartAria||t)+'">'+y+"</button>\n"),a&&(l+='<button type="button" class="abcjs-midi-start abcjs-btn" title="'+(i=e.playTitle||"Click to play/pause.")+'" aria-label="'+(e.playAria||i)+'">'+g+v+b+"</button>\n"),s&&(l+='<button type="button" class="abcjs-midi-progress-background" title="'+(t=e.randomTitle||"Click to change the playback position.")+'" aria-label="'+(e.randomAria||t)+'"><span class="abcjs-midi-progress-indicator"></span></button>\n'),c&&(l+='<span class="abcjs-midi-clock"></span>\n'),o&&(l+='<span class="abcjs-tempo-wrapper"><label><input class="abcjs-midi-tempo" type="number" min="1" max="300" value="100" title="'+(a=e.warpTitle||"Change the playback speed.")+'" aria-label="'+(e.warpAria||a)+'">%</label><span>&nbsp;(<span class="abcjs-midi-current-tempo"></span> '+(e.bpm||"BPM")+")</span></span>\n"),u.innerHTML=l=l+'<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>'+"</div>\n",i=!!(n=h).options.loopHandler,s=!!n.options.restartHandler,t=!!n.options.playHandler||!!n.options.playPromiseHandler,c=!!n.options.progressHandler,o=!!n.options.warpHandler,r=n.parent.querySelector(".abcjs-midi-start"),i&&n.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(e){x(n.options.loopHandler,e,r,n.options.afterResume)}),s&&n.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(e){x(n.options.restartHandler,e,r,n.options.afterResume)}),t&&r.addEventListener("click",function(e){x(n.options.playPromiseHandler||n.options.playHandler,e,r,n.options.afterResume,!!n.options.playPromiseHandler)}),c&&n.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(e){x(n.options.progressHandler,e,r,n.options.afterResume)}),o&&n.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(e){x(n.options.warpHandler,e,r,n.options.afterResume)}),h.disable=function(e){var t=h.parent.querySelector(".abcjs-inline-audio");e?t.classList.add("abcjs-disabled"):t.classList.remove("abcjs-disabled")},h.setWarp=function(e,t){h.parent.querySelector(".abcjs-midi-tempo").value=Math.round(t),h.setTempo(e)},h.setTempo=function(e){var t=h.parent.querySelector(".abcjs-midi-current-tempo");t&&(t.innerHTML=Math.round(e))},h.resetAll=function(){for(var e=h.parent.querySelectorAll(".abcjs-pushed"),t=0;t<e.length;t++)e[t].classList.remove("abcjs-pushed")},h.pushPlay=function(e){var t=h.parent.querySelector(".abcjs-midi-start");t&&(e?t.classList.add("abcjs-pushed"):t.classList.remove("abcjs-pushed"))},h.pushLoop=function(e){var t=h.parent.querySelector(".abcjs-midi-loop");t&&(e?t.classList.add("abcjs-pushed"):t.classList.remove("abcjs-pushed"))},h.setProgress=function(e,t){var n=h.parent.querySelector(".abcjs-midi-progress-background"),r=h.parent.querySelector(".abcjs-midi-progress-indicator");n&&r&&(n=n.clientWidth*e,r.style.left=n+"px",(r=h.parent.querySelector(".abcjs-midi-clock"))&&(n=t*e/1e3,t=Math.floor(n/60),e=Math.floor(n%60),r.innerHTML=t+":"+(e<10?"0"+e:e)))},h.options.afterResume&&(a=!1,h.options.ac?a="suspended"!==h.options.ac.state:f()&&(a="suspended"!==f().state),a&&h.options.afterResume())}},5594:function(e,t,n){var r=n(2228),g=n(9143),u=n(5281),v=n(8702),i=n(5049),d=n(522),f=n(8471),a=n(873),b=n(4586),p=n(4771),y="MIDI is not supported in this browser.",x="https://paulrosen.github.io/midi-js-soundfonts/abcjs/",w="https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/";e.exports=function(){var m=this;m.audioBufferPossible=void 0,m.directSource=[],m.startTimeSec=void 0,m.pausedTimeSec=void 0,m.audioBuffers=[],m.duration=void 0,m.isRunning=!1,m.init=function(e){u((e=e||{}).audioContext);var a=v().currentTime;if(m.debugCallback=e.debugCallback,m.debugCallback&&m.debugCallback("init called"),m.audioBufferPossible=m._deviceCapable(),!m.audioBufferPossible)return Promise.reject({status:"NotSupported",message:y});var t=e.options||{},n=(m.soundFontUrl=t.soundFontUrl||w,"/"!==m.soundFontUrl[m.soundFontUrl.length-1]&&(m.soundFontUrl+="/"),t.soundFontVolumeMultiplier||0===t.soundFontVolumeMultiplier?m.soundFontVolumeMultiplier=t.soundFontVolumeMultiplier:m.soundFontUrl===w||"https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/"===m.soundFontUrl?m.soundFontVolumeMultiplier=3:m.soundFontUrl===x?m.soundFontVolumeMultiplier=.4:m.soundFontVolumeMultiplier=1,t.programOffsets?m.programOffsets=t.programOffsets:m.soundFontUrl===x?m.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}:m.programOffsets={},void 0!==t.fadeLength?parseInt(t.fadeLength,10):NaN);if(m.fadeLength=isNaN(n)?200:n,n=void 0!==t.noteEnd?parseInt(t.noteEnd,10):NaN,m.noteEnd=isNaN(n)?0:n,m.pan=t.pan,m.meterSize=1,e.visualObj)m.flattened=e.visualObj.setUpAudio(t),e.visualObj.getMeterFraction().den&&(m.meterSize=e.visualObj.getMeterFraction().num/e.visualObj.getMeterFraction().den);else{if(!e.sequence)return Promise.reject(new Error("Must pass in either a visualObj or a sequence"));m.flattened=e.sequence}m.millisecondsPerMeasure=e.millisecondsPerMeasure||(e.visualObj?e.visualObj.millisecondsPerMeasure(m.flattened.tempo):1e3),m.beatsPerMeasure=e.visualObj?e.visualObj.getBeatsPerMeasure():4,m.sequenceCallback=t.sequenceCallback,m.callbackContext=t.callbackContext,m.onEnded=t.onEnded;var r={},s=[],o=[],i=f[0],c=(m.flattened.tracks.forEach(function(e){e.forEach(function(e){var t,n;"program"===e.cmd&&f[e.instrument]&&(i=f[e.instrument]),void 0!==e.pitch&&(e=e.pitch,(t=d[e])?(r[i]||(r[i]={}),p[i]&&p[i][t]?(n=i+":"+t,s.indexOf(n)<0&&s.push(n)):r[i][t]=!0):(n=i+":"+t,console.log("Can't find note: ",e,n),o.indexOf(n)<0&&o.push(n)))})}),m.debugCallback&&m.debugCallback("note gathering time = "+Math.floor(1e3*(v().currentTime-a))+"ms"),a=v().currentTime,[]);Object.keys(r).forEach(function(t){Object.keys(r[t]).forEach(function(e){c.push({instrument:t,note:e})})}),m.debugCallback&&m.debugCallback("notes "+JSON.stringify(c));for(var l=[],h=0;h<c.length;h+=256)l.push(c.slice(h,h+256));return new Promise(function(e,n){var r={cached:s,error:o,loaded:[]},i=0;!function t(){m.debugCallback&&m.debugCallback("loadBatch idx="+i+" len="+l.length),i<l.length?m._loadBatch(l[i],m.soundFontUrl,a).then(function(e){m.debugCallback&&m.debugCallback("loadBatch then"),a=v().currentTime,e&&(e.error&&(r.error=r.error.concat(e.error)),e.loaded&&(r.loaded=r.loaded.concat(e.loaded))),i++,t()},n):(m.debugCallback&&m.debugCallback("resolve init"),e(r))}()})},m._loadBatch=function(h,u,d,f){var t=[];return h.forEach(function(e){m.debugCallback&&m.debugCallback("getNote "+e.instrument+":"+e.note),t.push(r(u,e.instrument,e.note,v()))}),Promise.all(t).then(function(e){m.debugCallback&&m.debugCallback("mp3 load time = "+Math.floor(1e3*(v().currentTime-d))+"ms");for(var t=[],n=[],r=[],i=[],a=0;a<e.length;a++){var s=e[a],o=s.instrument+":"+s.name;"loaded"===s.status?t.push(o):"pending"===s.status?r.push(o):"cached"===s.status?n.push(o):i.push(o+" "+s.message)}if(0<r.length){if(m.debugCallback&&m.debugCallback("pending "+JSON.stringify(r)),f?f*=2:f=50,f<9e4)return new Promise(function(t,n){setTimeout(function(){var e=[];for(a=0;a<r.length;a++)o=r[a].split(":"),e.push({instrument:o[0],note:o[1]});m.debugCallback&&m.debugCallback("retry "+JSON.stringify(e)),m._loadBatch(e,u,d,f).then(function(e){t(e)}).catch(function(e){n(e)})},f)});for(var c=[],l=0;l<h.length;l++)c.push(h[l].instrument+"/"+h[l].note);return m.debugCallback&&m.debugCallback("loadBatch timeout"),Promise.reject(new Error("timeout attempting to load: "+c.join(", ")))}return m.debugCallback&&m.debugCallback("loadBatch resolve"),Promise.resolve({loaded:t,cached:n,error:i})}).catch(function(e){m.debugCallback&&m.debugCallback("loadBatch catch "+e.message)})},m.prime=function(){var p=m.fadeLength/1e3;return m.isRunning=!1,m.audioBufferPossible?(m.debugCallback&&m.debugCallback("prime called"),new Promise(function(e){var t=v().currentTime,r=m.millisecondsPerMeasure/1e3/m.meterSize;if(m.duration=m.flattened.totalDuration*r,m.duration<=0)return m.audioBuffers=[],e({status:"empty",seconds:0});m.duration+=p;var n=Math.floor(v().sampleRate*m.duration),i=(m.stop(),g(m.flattened)),a=(m.sequenceCallback&&m.sequenceCallback(i,m.callbackContext),function(e,t){if(null==t)return null;var n=[];if(t.length){for(var r,i=0;i<e;i++)i<t.length?((r=parseFloat(t[i]))<-1?r=-1:1<r&&(r=1),n.push(r)):n.push(0);return n}var a=parseFloat(t);if(2<a*(e-1))return null;for(var s=e%2==0?0-a/2:0,o=s+a,c=0;c<e;c++)c%2==0?(n.push(s),s-=a):(n.push(o),o+=a);return n}(i.length,m.pan)),s={};i.forEach(function(e,t){var n=a&&a.length>t?a[t]:0;e.forEach(function(e){var t=e.instrument+":"+e.pitch+":"+e.volume+":"+Math.round(1e3*(e.end-e.start))/1e3+":"+n+":"+r+":"+(e.cents||0);m.debugCallback&&m.debugCallback("noteMapTrack "+t),s[t]||(s[t]=[]),s[t].push(e.start)})});for(var o=[],c=v().createBuffer(2,n,v().sampleRate),l=0;l<Object.keys(s).length;l++){var h=Object.keys(s)[l],u=void 0!==(d=h.split(":"))[6]?parseFloat(d[6]):0,d={instrument:d[0],pitch:parseInt(d[1],10),volume:parseInt(d[2],10),len:parseFloat(d[3]),pan:parseFloat(d[4]),tempoMultiplier:parseFloat(d[5]),cents:u};o.push(b(c,v().sampleRate,d,s[h],m.soundFontVolumeMultiplier,m.programOffsets[d.instrument],p,m.noteEnd/1e3,m.debugCallback))}function f(e){e=e&&e.audioBuffers&&0<e.audioBuffers.length?e.audioBuffers[0].duration:0;return{status:v().state,duration:e}}m.audioBuffers=[c],m.debugCallback&&(m.debugCallback("sampleRate = "+v().sampleRate),m.debugCallback("totalSamples = "+n),m.debugCallback("creationTime = "+Math.floor(1e3*(v().currentTime-t))+"ms")),Promise.all(o).then(function(){"suspended"===v().state?v().resume().then(function(){e(f(m))}):"interrupted"===v().state?v().suspend().then(function(){v().resume().then(function(){e(f(m))})}):e(f(m))})})):Promise.reject(new Error(y))},m.start=function(){if(!m.audioBufferPossible)throw new Error(y);m.debugCallback&&m.debugCallback("start called");var e=m.pausedTimeSec||0;m._kickOffSound(e),m.startTimeSec=v().currentTime-e,m.pausedTimeSec=void 0,m.debugCallback&&m.debugCallback("MIDI STARTED",m.startTimeSec)},m.pause=function(){if(m.audioBufferPossible)return m.debugCallback&&m.debugCallback("pause called"),m.pausedTimeSec=m.stop(),m.pausedTimeSec;throw new Error(y)},m.resume=function(){m.start()},m.seek=function(e,t){var n;switch(t){case"seconds":n=e;break;case"beats":n=e*m.millisecondsPerMeasure/m.beatsPerMeasure/1e3;break;default:n=(m.duration-m.fadeLength/1e3)*e}if(!m.audioBufferPossible)throw new Error(y);m.debugCallback&&m.debugCallback("seek called sec="+n),m.isRunning?(m.stop(),m._kickOffSound(n)):m.pausedTimeSec=n,m.pausedTimeSec=n},m.stop=function(){return m.isRunning=!1,m.pausedTimeSec=void 0,m.directSource.forEach(function(e){try{e.stop()}catch(e){console.log("direct source didn't stop:",e)}}),m.directSource=[],v().currentTime-m.startTimeSec},m.finished=function(){m.startTimeSec=void 0,m.pausedTimeSec=void 0,m.isRunning=!1},m.download=function(){return a(m)},m.getAudioBuffer=function(){return m.audioBuffers[0]},m.getIsRunning=function(){return m.isRunning},m._deviceCapable=function(){return!!i()||(console.warn(y),m.debugCallback&&m.debugCallback(y),!1)},m._kickOffSound=function(t){m.isRunning=!0,m.directSource=[],m.audioBuffers.forEach(function(e,t){m.directSource[t]=v().createBufferSource(),m.directSource[t].buffer=e,m.directSource[t].connect(v().destination)}),m.directSource.forEach(function(e){e.start(0,t)}),m.onEnded&&(m.directSource[0].onended=function(){m.onEnded(m.callbackContext)})}}},873:function(e){e.exports=function(d){return window.URL.createObjectURL(function(){var e,t,n=d.audioBuffers[0],r=n.numberOfChannels,i=n.length*r*2+44,a=new ArrayBuffer(i),s=new DataView(a),o=[],c=0,l=0;for(u(1179011410),u(i-8),u(1163280727),u(544501094),u(16),h(1),h(r),u(n.sampleRate),u(2*n.sampleRate*r),h(2*r),h(16),u(1635017060),u(i-l-4),e=0;e<r;e++)o.push(n.getChannelData(e));for(;l<i;){for(e=0;e<o.length;e++)t=0|(.5+(t=Math.max(-1,Math.min(1,o[e][c])))<0?32768*t:32767*t),s.setInt16(l,t,!0),l+=2;c++}return new Blob([a],{type:"audio/wav"});function h(e){s.setUint16(l,e,!0),l+=2}function u(e){s.setUint32(l,e,!0),l+=4}}())}},562:function(e,t,n){var i=n(1592),g=n(3284);e.exports=function(e,t){var m={};if(t)for(var n in t)t.hasOwnProperty(n)&&(m[n]=t[n]);function r(e,t,n){var r,i,a,s,o,c,l=g(t,m);switch(m.midiOutputType){case"encoded":return l;case"binary":for(var h=(h=(h=l.replace("data:audio/midi,","")).replace(/MThd/g,"%4d%54%68%64")).replace(/MTrk/g,"%4d%54%72%6b"),u=new ArrayBuffer(h.length/3),d=new Uint8Array(u),f=0;f<h.length/3;f++){var p=3*f+1,p=parseInt(h.substring(p,2+p),16);d[f]=p}return d;default:return u=t,i=l,s=["abcjs-download-midi","abcjs-midi-"+(a=n)],(r=m).downloadClass&&s.push(r.downloadClass),s='<div class="'+s.join(" ")+'">',r.preTextDownload&&(s+=r.preTextDownload),o=u.metaText&&u.metaText.title?u.metaText.title:"Untitled",c=r.downloadLabel&&(c=r.downloadLabel)&&"[object Function]"==={}.toString.call(c)?r.downloadLabel(u,a):r.downloadLabel?r.downloadLabel.replace(/%T/,o):'Download MIDI for "'+o+'"',o=o.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_"),s+='<a download="'+(r.fileName||o+".midi")+'" href="'+i+'">'+c+"</a>",r.postTextDownload&&(s+=r.postTextDownload),s+"</div>"}}return m.generateInline=!1,"string"==typeof e?i.renderEngine(r,"*",e,m):r(0,e,0)}},5343:function(e){e.exports='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="abcjs-loading-svg">\n <circle cx="50" cy="50" fill="none" stroke-width="20" r="35" stroke-dasharray="160 55"></circle>\n</svg>\n'},1225:function(e){e.exports='\n<svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" preserveAspectRatio="xMidYMid meet">\n\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'},5075:function(e){e.exports='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-pause-svg">\n <g>\n <rect width="8.23" height="25"/>\n <rect width="8.23" height="25" x="17"/>\n </g>\n</svg>\n'},9733:function(e){e.exports='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-play-svg">\n <g>\n <polygon points="4 0 23 12.5 4 25"/>\n </g>\n</svg>\n'},6987:function(e){e.exports='\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25">\n <g>\n <polygon points="5 12.5 24 0 24 25"/>\n <rect width="3" height="25" x="0" y="0"/>\n </g>\n</svg>\n'},8471:function(e){e.exports=["acoustic_grand_piano","bright_acoustic_piano","electric_grand_piano","honkytonk_piano","electric_piano_1","electric_piano_2","harpsichord","clavinet","celesta","glockenspiel","music_box","vibraphone","marimba","xylophone","tubular_bells","dulcimer","drawbar_organ","percussive_organ","rock_organ","church_organ","reed_organ","accordion","harmonica","tango_accordion","acoustic_guitar_nylon","acoustic_guitar_steel","electric_guitar_jazz","electric_guitar_clean","electric_guitar_muted","overdriven_guitar","distortion_guitar","guitar_harmonics","acoustic_bass","electric_bass_finger","electric_bass_pick","fretless_bass","slap_bass_1","slap_bass_2","synth_bass_1","synth_bass_2","violin","viola","cello","contrabass","tremolo_strings","pizzicato_strings","orchestral_harp","timpani","string_ensemble_1","string_ensemble_2","synth_strings_1","synth_strings_2","choir_aahs","voice_oohs","synth_choir","orchestra_hit","trumpet","trombone","tuba","muted_trumpet","french_horn","brass_section","synth_brass_1","synth_brass_2","soprano_sax","alto_sax","tenor_sax","baritone_sax","oboe","english_horn","bassoon","clarinet","piccolo","flute","recorder","pan_flute","blown_bottle","shakuhachi","whistle","ocarina","lead_1_square","lead_2_sawtooth","lead_3_calliope","lead_4_chiff","lead_5_charang","lead_6_voice","lead_7_fifths","lead_8_bass_lead","pad_1_new_age","pad_2_warm","pad_3_polysynth","pad_4_choir","pad_5_bowed","pad_6_metallic","pad_7_halo","pad_8_sweep","fx_1_rain","fx_2_soundtrack","fx_3_crystal","fx_4_atmosphere","fx_5_brightness","fx_6_goblins","fx_7_echoes","fx_8_scifi","sitar","banjo","shamisen","koto","kalimba","bagpipe","fiddle","shanai","tinkle_bell","agogo","steel_drums","woodblock","taiko_drum","melodic_tom","synth_drum","reverse_cymbal","guitar_fret_noise","breath_noise","seashore","bird_tweet","telephone_ring","helicopter","applause","gunshot","percussion"]},2228:function(e,t,n){var r=n(4771);e.exports=function(e,a,s,o){r[a]||(r[a]={});var t=r[a];return t[s]||(t[s]=new Promise(function(t,n){var r=new XMLHttpRequest,i=e+a+"-mp3/"+s+".mp3";r.open("GET",i,!0),r.responseType="arraybuffer",r.onload=function(){var e;200===r.status?(e=o.decodeAudioData(r.response,function(e){t({instrument:a,name:s,status:"loaded",audioBuffer:e})},function(){n(Error("Can't decode sound at "+i))}))&&"function"==typeof e.catch&&e.catch(n):n(Error("Can't load sound at "+i+" status="+r.status))},r.onerror=function(){n(Error("Can't load sound at "+i))},r.send()}).catch(function(e){throw console.error("Didn't load note",a,s,":",e.message),e})),t[s]}},2842:function(e){var n={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},r=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];e.exports={noteToMidi:function(e){var t,e=e.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);return e&&5===e.length?(t=n[e[1]],48+r.indexOf(e[2])+t+12*(e[4].length-e[3].length)):0},midiToNote:function(e){e=parseInt(e,10);var t=Math.floor(e/12),e=e%12,n=r[e];if("-"===n&&(n="^"+r[e-1]),4<t)for(n=n.toLowerCase(),t-=5;0<t;)n+="'",t--;else for(;t<4;)n+=",",t++;return n}}},522:function(e){e.exports={21:"A0",22:"Bb0",23:"B0",24:"C1",25:"Db1",26:"D1",27:"Eb1",28:"E1",29:"F1",30:"Gb1",31:"G1",32:"Ab1",33:"A1",34:"Bb1",35:"B1",36:"C2",37:"Db2",38:"D2",39:"Eb2",40:"E2",41:"F2",42:"Gb2",43:"G2",44:"Ab2",45:"A2",46:"Bb2",47:"B2",48:"C3",49:"Db3",50:"D3",51:"Eb3",52:"E3",53:"F3",54:"Gb3",55:"G3",56:"Ab3",57:"A3",58:"Bb3",59:"B3",60:"C4",61:"Db4",62:"D4",63:"Eb4",64:"E4",65:"F4",66:"Gb4",67:"G4",68:"Ab4",69:"A4",70:"Bb4",71:"B4",72:"C5",73:"Db5",74:"D5",75:"Eb5",76:"E5",77:"F5",78:"Gb5",79:"G5",80:"Ab5",81:"A5",82:"Bb5",83:"B5",84:"C6",85:"Db6",86:"D6",87:"Eb6",88:"E6",89:"F6",90:"Gb6",91:"G6",92:"Ab6",93:"A6",94:"Bb6",95:"B6",96:"C7",97:"Db7",98:"D7",99:"Eb7",100:"E7",101:"F7",102:"Gb7",103:"G7",104:"Ab7",105:"A7",106:"Bb7",107:"B7",108:"C8",109:"Db8",110:"D8",111:"Eb8",112:"E8",113:"F8",114:"Gb8",115:"G8",116:"Ab8",117:"A8",118:"Bb8",119:"B8",120:"C9",121:"Db9"}},5058:function(e){var t={f0:"_C",n0:"=C",s0:"^C",x0:"C",f1:"_D",n1:"=D",s1:"^D",x1:"D",f2:"_E",n2:"=E",s2:"^E",x2:"E",f3:"_F",n3:"=F",s3:"^F",x3:"F",f4:"_G",n4:"=G",s4:"^G",x4:"G",f5:"_A",n5:"=A",s5:"^A",x5:"A",f6:"_B",n6:"=B",s6:"^B",x6:"B",f7:"_c",n7:"=c",s7:"^c",x7:"c",f8:"_d",n8:"=d",s8:"^d",x8:"d",f9:"_e",n9:"=e",s9:"^e",x9:"e",f10:"_f",n10:"=f",s10:"^f",x10:"f",f11:"_g",n11:"=g",s11:"^g",x11:"g",f12:"_a",n12:"=a",s12:"^a",x12:"a",f13:"_b",n13:"=b",s13:"^b",x13:"b",f14:"_c'",n14:"=c'",s14:"^c'",x14:"c'",f15:"_d'",n15:"=d'",s15:"^d'",x15:"d'",f16:"_e'",n16:"=e'",s16:"^e'",x16:"e'"};e.exports=function(e){e=(e.accidental?e.accidental[0]:"x")+e.verticalPos;return t[e]}},4586:function(e,t,n){var s=n(4771),o=n(522),c=n(2710);e.exports=function(u,d,f,p,n,m,r,e,g){var t=window.OfflineAudioContext||window.webkitOfflineAudioContext,i=f.len*f.tempoMultiplier,a=(m&&(i+=m/1e3),(i-=e)<0&&(i=.005),new t(2,Math.floor((i+r)*d),d)),v=o[f.pitch];if(!s[f.instrument])return g&&g("placeNote skipped (instrument empty): "+f.instrument+":"+v),Promise.resolve();e=s[f.instrument][v];return e?e.then(function(e){var t=a.createBufferSource();t.buffer=e.audioBuffer;var h,e=f.volume/96*n;return t.gainNode=a.createGain(),f.pan&&a.createStereoPanner&&(t.panNode=a.createStereoPanner(),t.panNode.pan.setValueAtTime(f.pan,0)),t.gainNode.gain.value=e,t.gainNode.gain.linearRampToValueAtTime(t.gainNode.gain.value,i),t.gainNode.gain.linearRampToValueAtTime(0,i+r),f.cents&&(t.playbackRate.value=c(f.cents)),t.panNode?(t.panNode.connect(a.destination),t.gainNode.connect(t.panNode)):t.gainNode.connect(a.destination),t.connect(t.gainNode),t.start(0),t.noteOff?t.noteOff(i+r):t.stop(i+r),a.oncomplete=function(e){if(e.renderedBuffer&&e.renderedBuffer.getChannelData)for(var t=0;t<p.length;t++)for(var n=p[t]*f.tempoMultiplier,r=(m&&(n-=m/1e3),n<0&&(n=0),n=Math.floor(n*d),l=c=o=s=void 0,u),i=e.renderedBuffer,a=n,s=0;s<2;s++)for(var o=i.getChannelData(s),c=r.getChannelData(s),l=0;l<o.length;l++)c[l+a]+=o[l];g&&g("placeNote: "+f.instrument+":"+v),h()},a.startRendering(),new Promise(function(e){h=e})}).catch(function(e){return g&&g("placeNote catch: "+e.message),Promise.resolve()}):(g&&g("placeNote skipped: "+f.instrument+":"+v),Promise.resolve())}},4718:function(e,t,n){var d=n(2029),a=n(5594),f=n(8702);function p(e,t,n,r){var i=new a;return i.init({sequence:e,millisecondsPerMeasure:t,options:{soundFontUrl:n},debugCallback:r}).then(function(){return i.prime()}).then(function(){return i.start(),Promise.resolve()})}e.exports=function(e,t,n,r,i){for(var a=new d,s=0;s<e.length;s++){var o=e[s],c=a.addTrack();if(a.setInstrument(c,o.instrument),0===s&&t)for(var l=0;l<t.length;l++){var h=t[l];a.appendNote(c,h.pitch,1/64,h.volume,h.cents)}a.appendNote(c,o.pitch,o.duration,o.volume,o.cents)}var u=f();return"suspended"===u.state?u.resume().then(function(){return p(a,n,r,i)}):p(a,n,r,i)}},5281:function(e){e.exports=function(e){if(e)window.abcjsAudioContext=e;else if(!window.abcjsAudioContext){e=window.AudioContext||window.webkitAudioContext;if(!e)return!1;window.abcjsAudioContext=new e}return"suspended"!==window.abcjsAudioContext.state}},4771:function(e){e.exports={}},5049:function(e,t,n){var r=n(8702);e.exports=function(){if(!window.Promise)return!1;if(!(window.AudioContext||window.webkitAudioContext||navigator.mozAudioContext||navigator.msAudioContext))return!1;var e=r();return e?void 0!==e.resume:void 0}},3450:function(e,t,n){var r=n(6313),a=n(5594),s=n(5681),o=n(8702);e.exports=function(){var i=this;i.warp=100,i.cursorControl=null,i.visualObj=null,i.timer=null,i.midiBuffer=null,i.options=null,i.currentTempo=null,i.control=null,i.isLooping=!1,i.isStarted=!1,i.isLoaded=!1,i.isLoading=!1,i.load=function(e,t,n){void 0===(n=n||{}).displayPlay&&(n.displayPlay=!0),void 0===n.displayProgress&&(n.displayProgress=!0),i.control=new r(e,{loopHandler:n.displayLoop?i.toggleLoop:void 0,restartHandler:n.displayRestart?i.restart:void 0,playPromiseHandler:n.displayPlay?i.play:void 0,progressHandler:n.displayProgress?i.randomAccess:void 0,warpHandler:n.displayWarp?i.onWarp:void 0,afterResume:i.init}),i.cursorControl=t,i.disable(!0)},i.disable=function(e){i.control&&i.control.disable(e)},i.setTune=function(e,t,n){return i.visualObj=e,i.disable(!1),i.options=n||{},i.control&&(i.pause(),i.setProgress(0,1),i.control.resetAll(),i.restart(),i.isStarted=!1),i.isLooping=!1,t?i.go():Promise.resolve({status:"no-audio-context"})},i.go=function(){i.isLoading=!0;var t,n=100*i.visualObj.millisecondsPerMeasure()/i.warp;return i.currentTempo=Math.round(i.visualObj.getBeatsPerMeasure()/n*6e4),i.control&&i.control.setTempo(i.currentTempo),i.percent=0,i.midiBuffer||(i.midiBuffer=new a),o().resume().then(function(e){return i.midiBuffer.init({visualObj:i.visualObj,options:i.options,millisecondsPerMeasure:n})}).then(function(e){return t=e,i.midiBuffer.prime()}).then(function(){var e=16;return i.cursorControl&&void 0!==i.cursorControl.beatSubdivisions&&1<=parseInt(i.cursorControl.beatSubdivisions,10)&&parseInt(i.cursorControl.beatSubdivisions,10)<=64&&(e=parseInt(i.cursorControl.beatSubdivisions,10)),i.timer=new s(i.visualObj,{beatCallback:i.beatCallback,eventCallback:i.eventCallback,lineEndCallback:i.lineEndCallback,qpm:i.currentTempo,extraMeasuresAtBeginning:i.cursorControl?i.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:i.cursorControl?i.cursorControl.lineEndAnticipation:0,beatSubdivisions:e}),i.cursorControl&&i.cursorControl.onReady&&"function"==typeof i.cursorControl.onReady&&i.cursorControl.onReady(i),i.isLoaded=!0,i.isLoading=!1,Promise.resolve({status:"created",notesStatus:t})})},i.destroy=function(){i.timer&&(i.timer.reset(),i.timer.stop(),i.timer=null),i.midiBuffer&&(i.midiBuffer.stop(),i.midiBuffer=null),i.setProgress(0,1),i.control&&i.control.resetAll()},i.play=function(){return i.runWhenReady(i._play,void 0)},i.runWhenReady=function(e,t){return i.visualObj?i.isLoading?new Promise(function(e){setTimeout(e,500)}).then(function(){return i.isLoading?i.runWhenReady(e,t):e(t)}):i.isLoaded?e(t):i.go().then(function(){return e(t)}):Promise.resolve({status:"loading"})},i._play=function(){return o().resume().then(function(){return i.isStarted=!i.isStarted,i.isStarted?(i.cursorControl&&i.cursorControl.onStart&&"function"==typeof i.cursorControl.onStart&&i.cursorControl.onStart(),i.midiBuffer.start(),i.timer.start(i.percent),i.control&&i.control.pushPlay(!0)):i.pause(),Promise.resolve({status:"ok"})})},i.pause=function(){i.timer&&(i.timer.pause(),i.midiBuffer.pause(),i.control&&i.control.pushPlay(!1))},i.toggleLoop=function(){i.isLooping=!i.isLooping,i.control&&i.control.pushLoop(i.isLooping)},i.restart=function(){i.timer&&(i.timer.setProgress(0),i.midiBuffer.seek(0))},i.randomAccess=function(e){return i.runWhenReady(i._randomAccess,e)},i._randomAccess=function(e){var t=e.target.classList.contains("abcjs-midi-progress-indicator")?e.target.parentNode:e.target,e=(e.x-t.getBoundingClientRect().left)/t.offsetWidth;return i.seek(e=1<(e=e<0?0:e)?1:e),Promise.resolve({status:"ok"})},i.seek=function(e,t){i.timer&&i.midiBuffer&&(i.timer.setProgress(e,t),i.midiBuffer.seek(e,t))},i.setWarp=function(e){var t,n;return 0<parseInt(e,10)?(i.warp=parseInt(e,10),t=i.isStarted,n=i.percent,i.destroy(),i.isStarted=!1,i.go().then(function(){return i.setProgress(n,1e3*i.midiBuffer.duration),i.control&&i.control.setWarp(i.currentTempo,i.warp),t?i.play().then(function(){return i.seek(n),Promise.resolve()}):(i.seek(n),Promise.resolve())})):Promise.resolve()},i.onWarp=function(e){e=e.target.value;return i.setWarp(e)},i.setProgress=function(e,t){i.percent=e,i.control&&i.control.setProgress(e,t)},i.finished=function(){if(i.timer.reset(),i.isLooping)return i.timer.start(0),i.midiBuffer.finished(),i.midiBuffer.start(),"continue";i.timer.stop(),i.isStarted&&(i.control&&i.control.pushPlay(!1),i.isStarted=!1,i.midiBuffer.finished(),i.cursorControl&&i.cursorControl.onFinished&&"function"==typeof i.cursorControl.onFinished&&i.cursorControl.onFinished(),i.setProgress(0,1))},i.beatCallback=function(e,t,n,r){i.setProgress(e/t,n),i.cursorControl&&i.cursorControl.onBeat&&"function"==typeof i.cursorControl.onBeat&&i.cursorControl.onBeat(e,t,n,r)},i.eventCallback=function(e){if(!e)return i.finished();i.cursorControl&&i.cursorControl.onEvent&&"function"==typeof i.cursorControl.onEvent&&i.cursorControl.onEvent(e)},i.lineEndCallback=function(e,t){i.cursorControl&&i.cursorControl.onLineEnd&&"function"==typeof i.cursorControl.onLineEnd&&i.cursorControl.onLineEnd(e,t)},i.getUrl=function(){return i.midiBuffer.download()},i.download=function(e){var t=i.getUrl(),n=document.createElement("a");document.body.appendChild(n),n.setAttribute("style","display: none;"),n.href=t,n.download=e||"output.wav",n.click(),window.URL.revokeObjectURL(t),document.body.removeChild(n)}}},2029:function(e){e.exports=function(){var a=this;a.tracks=[],a.totalDuration=0,a.currentInstrument=[],a.starts=[],a.addTrack=function(){return a.tracks.push([]),a.currentInstrument.push(0),a.starts.push(0),a.tracks.length-1},a.setInstrument=function(e,t){a.tracks[e].push({channel:0,cmd:"program",instrument:t}),a.currentInstrument[e]=t},a.appendNote=function(e,t,n,r,i){t={cmd:"note",duration:n,gap:0,instrument:a.currentInstrument[e],pitch:t,start:a.starts[e],volume:r};i&&(t.cents=i),a.tracks[e].push(t),a.starts[e]+=n,a.totalDuration=Math.max(a.totalDuration,a.starts[e])}}},1921:function(e,t,n){var s=n(2842).noteToMidi,c=n(6776),o=n(6629);function l(e,t,n,r,i){var a=e.strings,e=(t.checkKeyAccidentals(e.accidentals,e.measureAccidentals),r&&(a=r),t.emitNoAccidentals()),e=a[n].indexOf(e),s=t.acc;return-1!=e?(r&&(e+=i),!t.isFlat&&-1!=t.acc||0!=e||(r=t.getAccidentalEquiv(),e=a[++n].indexOf(r.emit()),s=0),{num:e+s,str:n,note:t}):null}function h(e,t){var n;(t.isAltered||t.natural)&&(t.isFlat?n=t.isDouble?"__":"_":t.isSharp?n=t.isDouble?"^^":"^":t.natural&&(n="="),e.measureAccidentals[t.name.toUpperCase()]=n);for(var r,i=e.stringPitches.length-1;0<=i;i--)if(t.pitch+t.pitchAltered>=e.stringPitches[i])return r=t.pitch+t.pitchAltered-e.stringPitches[i],"^"===t.quarter?r-=.5:"v"===t.quarter&&(r+=.5),{num:Math.round(r),str:e.stringPitches.length-1-i,note:t};return{num:"?",str:e.stringPitches.length-1,note:t}}function u(e,t){e.push({num:"?",str:0,note:t}),e.error=t.emit()+": unexpected note for instrument"}function r(e){var t=e.tuning,n=e.capo,r=e._super.params.highestNote;this.linePitch=e.linePitch,this.highestNote="a'",r&&(this.highestNote=r),this.measureAccidentals={},this.capo=0,n&&(this.capo=parseInt(n,10)),this.transpose=e.transpose||0,this.tuning=t,this.stringPitches=[];for(var i=0;i<this.tuning.length;i++){var a=s(this.tuning[i])+this.capo;this.stringPitches.push(a)}if(0<this.capo&&(this.capoTuning=function(e){var t=null,n=e.tuning;if(0<e.capo)for(var t=[],r=0;r<n.length;r++){for(var i=new c.TabNote(n[r]),a=0;a<e.capo;a++)i=i.nextNote();t[r]=i.emit()}return t}(this)),this.strings=function(e){for(var t=[],n=e.tuning,r=(n=0<e.capo?e.capoTuning:n).length-1,i=0;i<n.length;i++){var a=e.highestNote,a=(i!=n.length-1&&(a=n[i+1]),new o(n[i],a).build());if(a.error)return a;t[r--]=a}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 n=e.strings,r=1;r<n.length;r++)t[r]=n[r-1];return t}(this)}r.prototype.stringToPitch=function(e){return 5.3+(this.strings.length-1-e)*this.linePitch},r.prototype.notesToNumber=function(e,t){var n,r,i=null,a=null;if(e&&(a=[],1<e.length?(a=function(e,t){for(var n,r=[],i=0;i<t.length;i++)t[i].endTie||((n=new c.TabNote(t[i].name,e.clefTranspose)).checkKeyAccidentals(e.accidentals,e.measureAccidentals),n=h(e,n),r.push(n));return function(e,t){for(var n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];if(r.str==i.str){if(r.str==e.strings.length-1)return r.num="?",i.num="?";i.num<r.num?(i.str++,i=l(e,i.note,i.str,e.secondPos,e.strings[i.str].length)):(r.str++,r=l(e,r.note,r.str,e.secondPos,e.strings[r.str].length)),t[n]=r,t[n+1]=i}}}(e,r),r}(this,e)).error&&(i=a.error):e[0].endTie||((n=new c.TabNote(e[0].name,this.clefTranspose)).checkKeyAccidentals(this.accidentals,this.measureAccidentals),(r=h(this,n))?a.push(r):(u(a,n),i=a.error))),i)return a;var s=null;if(t)for(var s=[],o=0;o<t.length;o++)(n=new c.TabNote(t[o].name,this.clefTranspose)).checkKeyAccidentals(this.accidentals,this.measureAccidentals),(r=h(this,n))?s.push(r):(u(s,n),i=a.error);return{notes:a,graces:s,error:i}},r.prototype.toString=function(){for(var e=[],t=0;t<this.tuning.length;t++){var n=this.tuning[t].replaceAll(",","").replaceAll("'","").toUpperCase();"_"===n[0]?n=n[1]+"b ":"^"===n[0]&&(n=n[1]+"# "),e.push(n)}return e.join("")},r.prototype.tabInfos=function(e){var t,n=e._super.params.label;return n?(t="",-1!=n.indexOf("%T")&&(t=this.toString(),0<e.capo&&(t+=" capo:"+e.capo),n=n.replace("%T",t)),n):""},r.prototype.suppress=function(e){return!!e._super.params.suppress},e.exports=r},8918:function(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){e=e.staffGroup.voices;return!!(0<e.length&&e[0].isPercussion)},t.prototype.setRelative=function(e,t,n){switch(e.type){case"bar":t.pitch=this.bar.pitch,t.pitch2=this.bar.pitch2,t.height=this.height;break;case"symbol":var r=this.bar.pitch2/2;if("dots.dot"==e.name)return n?(t.pitch=r,!1):(t.pitch=r+this.lineSpace,!0)}return n},e.exports=t},6776:function(e,t,n){var n=n(2842),u=n.noteToMidi,d=n.midiToNote;function r(e,t){var n=u(e);t&&(n+=t);var r,t=d(n),i=!1,a=!1,s=null,o=null,c=!1,l=0,e=(e.startsWith("_")?(i=!0,l=-1,"/"==e[1]?(i=!1,o="v",l=0):"_"==e[1]&&(c=!0,--l)):e.startsWith("^")?(a=!0,"/"==e[l=1]?(a=!1,o="^",l=0):"^"==e[1]&&(c=!0,l+=1)):e.startsWith("=")&&(s=!0,l=0),((t=(r=i||a||null!=o)||s?null!=o||c?e.slice(2):e.slice(1):t).match(/,/g)||[]).length),h=(t.match(/'/g)||[]).length;this.pitch=n,this.pitchAltered=0,this.name=t,this.acc=l,this.isSharp=a,this.isKeySharp=!1,this.isDouble=c,this.isAltered=r,this.isFlat=i,this.isKeyFlat=!1,this.natural=s,this.quarter=o,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=e,this.isQuoted=h}r.prototype.sameNoteAs=function(e){return e.pitch===this.pitch},r.prototype.isLowerThan=function(e){return e.pitch>this.pitch},r.prototype.checkKeyAccidentals=function(e,t){if(!this.isAltered&&!this.natural)if(t[this.name.toUpperCase()])switch(t[this.name.toUpperCase()]){case"__":return this.acc=-2,void(this.pitchAltered=-2);case"_":return this.acc=-1,void(this.pitchAltered=-1);case"=":return this.acc=0,void(this.pitchAltered=0);case"^":return this.acc=1,void(this.pitchAltered=1);case"^^":return this.acc=2,void(this.pitchAltered=2)}else if(e)for(var n=this.name,r=0;r<e.length;r++){var i=e[r];n==i.note.toUpperCase()&&("flat"==i.acc&&(this.acc=-1,this.isKeyFlat=!0,this.pitchAltered=-1),"sharp"==i.acc&&(this.acc=1,this.isKeySharp=!0,this.pitchAltered=1))}},r.prototype.getAccidentalEquiv=function(){(e=new r((t=this).name)).pitch=t.pitch,e.hasComma=t.hasComma,e.isLower=t.isLower,e.isQuoted=t.isQuoted,e.isSharp=t.isSharp,e.isKeySharp=t.isKeySharp,e.isFlat=t.isFlat,e.isKeyFlat=t.isKeyFlat;var e,t=e;return t.isSharp||t.isKeySharp?((t=t.nextNote()).isFlat=!0,t.isSharp=!1,t.isKeySharp=!1):(t.isFlat||t.isKeyFlat)&&((t=t.prevNote()).isSharp=!0,t.isFlat=!1,t.isKeyFlat=!1),t},r.prototype.nextNote=function(){return new r(d(this.pitch+1+this.pitchAltered))},r.prototype.prevNote=function(){return new r(d(this.pitch-1+this.pitchAltered))},r.prototype.emitNoAccidentals=function(){var e=this.name;this.isLower&&(e=e.toLowerCase());for(var t=0;t<this.isQuoted;t++)e+="'";for(var n=0;n<this.hasComma;n++)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)for(var e=e.toLowerCase(),n=1;n<=this.isQuoted;n++)e+="'";return e},e.exports={TabNote:r,notes:["A","B","C","D","E","F","G"]}},6629:function(e,t,n){var r=n(6776),s=r.notes;function i(e,t){this.fromN=new r.TabNote(e),this.toN=new r.TabNote(t)}i.prototype.build=function(){var e=this.fromN,t=this.toN;if(t.isLowerThan(e))return r=e.emit(),{error:"Invalid string Instrument tuning : "+t.emit()+" string lower than "+r+" string"};var n=[],r=s.indexOf(e.name),i=s.indexOf(t.name);if(-1==r||-1==i)return n;for(var a=!1;!a;)n.push(e.emit()),(e=e.nextNote()).sameNoteAs(t)&&(a=!0);return n},e.exports=i},589:function(e,t,n){var r=n(1921);function i(e,t){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=t),e.tuning=this.tuning,this.strings=new r(e)}i.prototype.notesToNumber=function(e,t){return this.strings.notesToNumber(e,t)},i.prototype.stringToPitch=function(e){return this.strings.stringToPitch(e)},e.exports=i},6074:function(e,t,n){var a=n(8918),s=n(8660),r=n(676),o=n(589);function i(){}i.prototype.init=function(e,t,n,r,i){t=new s(e,t,n),this.abcTune=e,this._super=t,this.linePitch=3,this.nbLines=i.defaultTuning.length,this.isTabBig=i.isTabBig,this.tabSymbolOffset=i.tabSymbolOffset,this.capo=n.capo,this.transpose=n.visualTranspose,this.hideTabSymbol=n.hideTabSymbol,this.tablature=new a(this.nbLines,this.linePitch),e=new o(this,i.defaultTuning);this.semantics=e},i.prototype.render=function(e,t,n){this._super.inError||this.tablature.bypass(t)||new r(this,e,t,n).doLayout()},e.exports=function(){return{name:"StringTab",tablature:i}}},1696:function(e,t,n){var Y=n(1409),G=n(6658);function q(e,t){for(var n in t)!t.hasOwnProperty(n)||Array.isArray(t[n])||null!=(r=t[n])&&r.constructor===Object||(e[n]=t[n]);var r}function W(e){var t=new Y("",0,0,"",0);return q(t,e),t.top=0,t.bottom=-1,e.abcelem&&(t.abcelem={},q(t.abcelem,e.abcelem),"note"===t.abcelem.el_type&&(t.abcelem.el_type="tabNumber")),e.cloned=t}function r(){this.accidentals=null}function R(e,t,n,r,i){var a=r.num,e=(null!=r.note.quarter&&(a=a.toString(),a+=r.note.quarter),e.semantics.stringToPitch(r.str)),n=(n.notes.push({num:a,str:r.str,pitch:r.note.emit()}),new G(a,0,0,e+.3,{type:"tabNumber"}));return n.x=t,n.isGrace=i,n.isAltered=r.note.isAltered,n}function X(e,t){var n=0;if(e.extra)for(var r=0;r<e.extra.length;r++)if(0<=e.extra[r].c.indexOf("noteheads")){if(n===t)return e.extra[r].x+e.extra[r].w/2;n++}return-1}function U(e,t,n){t=e.semantics.notesToNumber(t,n);return t.error?e._super.setError(t.error):t.graces&&t.notes&&(n=t.notes.length-1,t.notes[n].graces=t.graces),t}r.prototype.build=function(e,t,n,H,D,r,F){for(var i=t,a=0;a<i.length;a++)i[a].tabNameInfos;var s=t[D+H],o=t[F],c=null,l=null;"clef"!=s.children[0].abcelem.el_type&&"none"!=r&&s.children.splice(0,0,r);for(var h,u,d,f,p,m,g=0;g<s.children.length;g++){var v=s.children[g],b=v.x;switch(v.isClef&&(o.children.push((u=b=b,m=p=f=d=void 0,f="tab.tiny",p=7.5,(h=e).isTabBig&&(f="tab.big",p=10),m={el_type:"tab",icon:f,Ypos:p},p+=h.tabSymbolOffset,h.hideTabSymbol||((d=new Y(m,0,0,"symbol",0)).x=b,(h=new G(f,0,0,7.5,"tab")).x=u,d.children.push(h),"tab"==d.abcelem.el_type&&(h.pitch=p)),d)),0<=v.abcelem.type.indexOf("-8")&&(e.semantics.strings.clefTranspose=-12),0<=v.abcelem.type.indexOf("+8")&&(e.semantics.strings.clefTranspose=12)),v.type){case"staff-extra key-signature":this.accidentals=v.abcelem.accidentals,e.semantics.strings.accidentals=this.accidentals;break;case"bar":var y=!(e.semantics.strings.measureAccidentals={}),x=(g===s.children.length-1&&(y=!0),function(e,t){var n=W(e);if(t)for(var r=e.children,i=!0,a=0;a<r.length;a++){var s=r[a],o=new G("",0,0,0,"");q(o,s),i=t.tablature.setRelative(s,o,i),n.children.push(o)}return n}(v,e));if(x.abcelem.barNumber){delete x.abcelem.barNumber;for(var w=0;w<x.children.length;w++)if("barNumber"===x.children[w].type){x.children.splice(w,1);break}}x.abcelem.lastBar=y,o.children.push(x),n.push({el_type:v.abcelem.el_type,type:v.abcelem.type,endChar:v.abcelem.endChar,startChar:v.abcelem.startChar,abselem:x});break;case"rest":y=function(e){if(e.abcelem){e=e.abcelem;if(e.rest)return e.gracenotes}return null}(v);if(y){if((c=U(e,null,y)).error)return;z={el_type:"note",startChar:v.abcelem.startChar,endChar:v.abcelem.endChar,notes:[],grace:!0},N=M=E=S=_=T=C=k=void 0;for(var k=e,C=A,T=v,_=c.graces,S=n,E=0;E<_.length;E++){var M={el_type:"note",startChar:T.abcelem.startChar,endChar:T.abcelem.endChar,notes:[],grace:!0},N=R(k,X(T,E),M,_[E],!0);C.children.push(N),S.push(M)}}break;case"note":var A=W(v),B=(A.x=v.heads[0].x+v.heads[0].w/2,A.lyricDim=function(e){if(e.extra)for(var t=0;t<e.extra.length;t++){var n=e.extra[t];if("lyric"==n.type)return{bottom:n.bottom,height:n.height}}return null}(v),v.abcelem.pitches),j=v.abcelem.gracenotes;if(A.type="tabNumber",(c=U(e,B,j)).error)return;c.graces&&(B=c.notes.length-1,c.notes[B].graces=c.graces);for(var l={el_type:"note",startChar:v.abcelem.startChar,endChar:v.abcelem.endChar,notes:[]},P=0;P<c.notes.length;P++){var L=c.notes[P];if(L.graces)for(var O=0;O<L.graces.length;O++){var z={el_type:"note",startChar:v.abcelem.startChar,endChar:v.abcelem.endChar,notes:[],grace:!0},I=R(e,X(v,O),z,L.graces[O],!0);A.children.push(I),n.push(z)}var V=R(e,A.x+v.heads[P].dx,l,L,!1);A.children.push(V)}0<l.notes.length&&(l.abselem=A,n.push(l),o.children.push(A))}}},e.exports=r},8660:function(e){function t(e,t,n){this.tune=e,this.params=n,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},676:function(e,t,n){var y=n(3197),i=n(1696),x=n(4331);function r(e,t,n,r){this.renderer=t,this.plugin=e,this.line=n,this.absolutes=new i,this.staffIndex=r,this.tabStaff={clef:{type:"TAB"}},this.tabSize=e.linePitch*e.nbLines}r.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 n,r,i,a,s=this.line.staffGroup,o=s.voices,t=function(e){for(var t=0,n=0;n<e.children.length;n++){var r=e.children[n];r.specialY&&r.specialY.lyricHeightBelow>t&&(t=r.specialY.lyricHeightBelow)}return t}(o[0]),e=this.staffIndex,e=s.staffs[e],t=this.tabSize+3-e.bottom-t,c=(e.isTabStaff&&(t=e.top),{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:t}),l=function(e,t){for(var n,r,i=e.staffIndex,a=0,s=0,o=0;;){if(!t[a])return-1;if(t[a].isTabStaff||(o=t[a].voices.length),t[a].isTabStaff){if(s++,(r=t)[n=a].isTabStaff&&(n===r.length-1||!r[n+1].isTabStaff)&&s<o)return a+1}else if(s=0,i<=a){if(a+1==t.length)return a+1;if(!t[a+1].isTabStaff)return a+1}if(++a>t.length)return-1}}(this,s.staffs);if(-1!==l){c.parentIndex=l-1,s.staffs.splice(l,0,c),s.height+=this.tabSize+3;var e=function(e){for(var t=l;0<=t;t--)if(!e[t].isTabStaff)return e[t];return null}(s.staffs),h=1;t=s.staffs,a=e,1===function(e){for(var t=0,n=0;n<e.length;n++)e[n].isTabStaff||t++;return t}(t)&&1<a.voices.length&&(h=e.voices.length),this.tabStaff.voices=[];for(var u=0;u<h;u++){var d=new y(0,0),f=(0<u&&(d.duplicate=!0),n=d,p=m=i=r=void 0,r=(f=this).plugin.semantics.strings,i=f.renderer.controller.getTextSize,m=r.tabInfos(f.plugin),p=!0,((p=!r.suppress(f.plugin)&&p)?(r=i.calc(m,"tablabelfont","text instrumentname"),n.tabNameInfos={textSize:{height:r.height,width:r.width},name:m},r.height):0)/x.STEP),f=Math.max(f,1),p=(s.staffs[this.staffIndex].top+=1,s.height+=f,d.staff=c,o.length),m=(o.splice(o.length,0,d),i=o,n=u+this.staffIndex,"clef"===i[n].children[0].abcelem.el_type?null:0==n?"none":i[n-1].children[0]);this.tabStaff.voices[u]=[],this.absolutes.build(this.plugin,o,this.tabStaff.voices[u],u,this.staffIndex,m,p)}for(var g,v=s.staffs,b=0;b<v.length;b++)v[b].isTabStaff&&(g=function(e,t){for(var n=t;0<=n;n--)if(!e[n].isTabStaff)return n;return-1}(v,b),v[b].hasStaff=v[g],v[g].hasTab||(v[g].hasTab=[]),v[g].hasTab.push(v[b]))}},e.exports=r},1897:function(e,t,n){function N(e){var t=0;return t=e.duration?e.duration:t}function r(e,t,n){this.decoration=new i,this.getTextSize=e,this.tuneNumber=t,this.isBagpipes=n.bagpipes,this.flatBeams=n.flatbeams,this.graceSlurs=n.graceSlurs,this.percmap=n.percmap,this.initialClef=n.initialClef,this.jazzchords=!!n.jazzchords,this.accentAbove=!!n.accentAbove,this.germanAlphabet=!!n.germanAlphabet,this.reset()}var b=n(1409),p=n(8491),c=n(5224),l=n(9600),h=n(3923),A=n(2143),u=n(2525),i=n(8677),y=n(8256),B=n(6020),P=n(6658),d=n(4331),a=n(7398),x=n(1106),w=n(6183),k=n(2096),f=n(3197),C=n(2652),L=n(5058),s=n(5008),T=!1,O={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"}};r.prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.voiceColor=void 0,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.colorByVoice={},this.tripletmultiplier=1,this.abcline=void 0,this.accidentalSlot=void 0,this.accidentalshiftx=void 0,this.dotshiftx=void 0,this.hasVocals=!1,this.minY=void 0,this.partstartelem=void 0,this.startlimitelem=void 0,this.stemdir=void 0},r.prototype.setStemHeight=function(e){this.stemHeight=Math.round(10*e/d.STEP)/10},r.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t},r.prototype.pushCrossLineElems=function(e,t){this.slursbyvoice[this.getCurrentVoiceId(e,t)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(e,t)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(e,t)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(e,t)]=this.voiceScale,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(e,t)]=this.voiceColor)},r.prototype.popCrossLineElems=function(e,t){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(e,t)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(e,t)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(e,t)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(e,t)],void 0===this.voiceScale&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(e,t)]},r.prototype.containsLyrics=function(e){for(var t=0;t<e.length;t++)for(var n=0;n<e[t].voices.length;n++)for(var r=0;r<e[t].voices[n].length;r++){var i=e[t].voices[n][r];if(i.lyric)return void(i.positioning&&"below"!==i.positioning.vocalPosition||(this.hasVocals=!0))}},r.prototype.createABCLine=function(e,t,n){this.minY=2,this.containsLyrics(e);var r=new a(this.getTextSize);this.tempoSet=!1;for(var i=0;i<e.length;i++)T&&this.restoreState(),T=!1,this.createABCStaff(r,e[i],t,i,n);return r},r.prototype.createABCStaff=function(e,t,n,r,i){e.getTextSize.updateFonts(t);for(var a=0;a<t.voices.length;a++){var s=new f(a,t.voices.length),o=(0===a?(s.barfrom="start"===t.connectBarLines||"continue"===t.connectBarLines,s.barto="continue"===t.connectBarLines||"end"===t.connectBarLines):s.duplicate=!0,t.title&&t.title[a]&&(s.header=t.title[a].replace(/\\n/g,"\n"),s.headerPosition=6+e.getTextSize.baselineToCenter(s.header,"voicefont","staff-extra voice-name",a,t.voices.length)/d.STEP),t.clef&&"perc"===t.clef.type&&(s.isPercussion=!0),(!this.initialClef||0===i)&&l(t.clef,this.tuneNumber)),o=(o&&(0===a&&t.barNumber&&this.addMeasureNumber(t.barNumber,o),s.addChild(o),this.startlimitelem=o),h(t.key,this.tuneNumber)),o=(o&&(s.addChild(o),this.startlimitelem=o),t.meter&&("specified"===t.meter.type?this.measureLength=t.meter.value[0].num/t.meter.value[0].den:this.measureLength=1,o=u(t.meter,this.tuneNumber),s.addChild(o),this.startlimitelem=o),s.duplicate&&(s.children=[]),t.clef.stafflines||0===t.clef.stafflines?t.clef.stafflines:5);e.addVoice(s,r,o),this.createABCVoice(t.voices[a],n,r,a,1===o,s),e.setStaffLimits(s),0===a&&("start"===t.brace||!e.brace&&t.brace?(e.brace||(e.brace=[]),e.brace.push(new c(s,"brace"))):"end"===t.brace&&e.brace?e.brace[e.brace.length-1].setBottomStaff(s):"continue"===t.brace&&e.brace&&e.brace[e.brace.length-1].continuing(s),"start"===t.bracket||!e.bracket&&t.bracket?(e.bracket||(e.bracket=[]),e.bracket.push(new c(s,"bracket"))):"end"===t.bracket&&e.bracket?e.bracket[e.bracket.length-1].setBottomStaff(s):"continue"===t.bracket&&e.bracket&&e.bracket[e.bracket.length-1].continuing(s))}},r.prototype.createABCVoice=function(e,t,n,r,i,a){this.popCrossLineElems(n,r),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new y("",null,null),a.addOther(this.partstartelem));var s,o=a.voicetotal<2?-1:a.voicenumber;for(s in this.slurs)this.slurs.hasOwnProperty(s)&&(this.slurs[s]=new w({force:this.slurs[s].force,voiceNumber:o,stemDir:this.slurs[s].stemDir,style:this.slurs[s].dotted}),T&&this.slurs[s].setHint(),a.addOther(this.slurs[s]));for(var c=0;c<this.ties.length;c++)this.ties[c]=new w({force:this.ties[c].force,stemDir:this.ties[c].stemDir,voiceNumber:o,style:this.ties[c].dotted}),T&&this.ties[c].setHint(),a.addOther(this.ties[c]);for(var l=0;l<this.abcline.length;l++){{h=void 0;u=void 0;d=void 0;var h=this.abcline[l];if(h.pitches){S(h);for(var u=0,d=0;d<h.pitches.length;d++)u+=h.pitches[d].verticalPos;h.averagepitch=u/h.pitches.length,h.minpitch=h.pitches[0].verticalPos,h.maxpitch=h.pitches[h.pitches.length-1].verticalPos}}this.minY=Math.min(this.abcline[l].minpitch,this.minY)}for(var f=0===n,p=0;p<this.abcline.length;){var m,g=function(e,t){var n=e[t];if("note"!==n.el_type||!n.startBeam||n.endBeam)return{count:1,elem:n};for(var r=[];t<e.length&&"note"===e[t].el_type&&(r.push(e[t]),!e[t].endBeam);)t++;return{count:r.length,elem:r}}(this.abcline,p),v=this.createABCElement(f,i,a,g.elem);if(v)for(c=0;c<v.length;c++)this.tempoSet||!t||t.suppress||(this.tempoSet=!0,(m=new b(t,0,0,"tempo",this.tuneNumber,{})).addFixedX(new x(t,this.tuneNumber,A)),a.addChild(m)),a.addChild(v[c]);p+=g.count}this.pushCrossLineElems(n,r)},r.prototype.saveState=function(){this.tiesSave=s.cloneArray(this.ties),this.slursSave=s.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=s.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=s.cloneHashOfArrayOfHash(this.tiesbyvoice)},r.prototype.restoreState=function(){this.ties=s.cloneArray(this.tiesSave),this.slurs=s.cloneHashOfHash(this.slursSave),this.slursbyvoice=s.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=s.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},r.prototype.createABCElement=function(e,t,n,r){var i=[];switch(r.el_type){case void 0:i=this.createBeam(t,n,r);break;case"note":i[0]=this.createNote(r,!1,t,n),this.triplet&&this.triplet.isClosed()&&(n.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":i[0]=this.createBarLine(n,r,e),n.duplicate&&0<i.length&&(i[0].invisible=!0);break;case"meter":i[0]=u(r,this.tuneNumber),this.startlimitelem=i[0],n.duplicate&&0<i.length&&(i[0].invisible=!0);break;case"clef":if(i[0]=l(r,this.tuneNumber),!i[0])return null;n.duplicate&&0<i.length&&(i[0].invisible=!0);break;case"key":var a=h(r,this.tuneNumber);a&&(i[0]=a,this.startlimitelem=i[0]),n.duplicate&&0<i.length&&(i[0].invisible=!0);break;case"stem":this.stemdir="auto"===r.direction?void 0:r.direction;break;case"part":var a=new b(r,0,0,"part",this.tuneNumber),s=this.getTextSize.calc(r.title,"partsfont","part");a.addFixedX(new P(r.title,0,0,void 0,{type:"part",height:s.height/d.STEP})),i[0]=a;break;case"tempo":s=new b(r,0,0,"tempo",this.tuneNumber);s.addFixedX(new x(r,this.tuneNumber,A)),i[0]=s;break;case"style":"normal"===r.head?delete this.style:this.style=r.head;break;case"hint":T=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=r.size;break;case"color":this.voiceColor=r.color,n.color=this.voiceColor;break;default:a=new b(r,0,0,"unsupported",this.tuneNumber);a.addFixed(new P("element type "+r.el_type,0,0,void 0,{type:"debug"})),i[0]=a}return i},r.prototype.createBeam=function(e,t,n){var r=[],i=new p(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,n[0]);T&&i.setHint();for(var a=0;a<n.length;a++)i.runningDirection(n[a]);i.setStemDirection();var s=this.stemdir;for(this.stemdir=i.stemsUp?"up":"down",a=0;a<n.length;a++){var o=n[a],o=this.createNote(o,!0,e,t);r.push(o),i.add(o),this.triplet&&this.triplet.isClosed()&&(t.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return i.calcDir(),t.addBeam(i),this.stemdir=s,r};function _(e,t,n,r,i,a,s,o,c){for(var l=n;11<l;l--)l%2!=0||r||e.addFixed(new P(null,o,(i+4)*c,l,{type:"ledger"}));for(l=t;l<1;l++)l%2!=0||r||e.addFixed(new P(null,o,(i+4)*c,l,{type:"ledger"}));for(l=0;l<a.length;l++){var h=i;e.addFixed(new P(null,(h="down"===s?-h:h)+o,(i+4)*c,a[l],{type:"ledger"}))}}var S=function(e){do{t=!0;for(var t,n,r=0;r<e.pitches.length-1;r++)e.pitches[r].pitch>e.pitches[r+1].pitch&&(t=!1,n=e.pitches[r],e.pitches[r]=e.pitches[r+1],e.pitches[r+1]=n)}while(!t)};function z(e,t){for(var n=0;n<e.length;n++)if(JSON.stringify(e[n])===JSON.stringify(t))return;e.push(t)}r.prototype.addGraceNotes=function(e,t,n,r,i,a,s){i=Math.round(.7*i);for(var o=null,c=(1<e.gracenotes.length&&(o=new p(i,"grace",a),T&&o.setHint(),o.mainNote=n),[]),l=e.gracenotes.length-1;0<=l;l--)c[l]=s+=10,e.gracenotes[l].accidental&&(s+=7);for(l=0;l<e.gracenotes.length;l++){var h,u=e.gracenotes[l].verticalPos,d=o?null:O.uflags[a?5:3],d=A(n,"noteheads.quarter",e.gracenotes[l],{dir:"up",headx:-c[l],extrax:-c[l],flag:d,scale:.6*this.voiceScale,accidentalSlot:[]}),d=(d.notehead.highestVert=d.notehead.pitch+i,d.notehead),f=(this.addSlursAndTies(n,e.gracenotes[l],d,t,"up",!0),n.addExtra(d),e.gracenotes[l].acciaccatura&&(h=e.gracenotes[l].verticalPos+4.2,n.addRight(new P("flags.ugrace",-c[l]+(o?5:6),0,h,{scalex:.6,scaley:.6}))),o?(h=e.gracenotes[l].duration/2,a&&(h/=2),o.add({heads:[d],abcelem:{averagepitch:u,minpitch:u,maxpitch:u,duration:h}})):(f=d.dx+d.w,n.addExtra(new P(null,f,0,u+1/3*.6,{type:"stem",pitch2:u+4.2,linewidth:-.6}))),_(n,u,u,!1,B.getSymbolWidth("noteheads.quarter"),[],!0,d.dx-1,.6),e.rest&&("spacer"===e.rest.type||"invisible"===e.rest.type));0!==l||a||!this.graceSlurs||f||t.addOther(new w({anchor1:d,anchor2:r,isGrace:!0}))}return o&&(o.calcDir(),t.addBeam(o)),s},r.prototype.addNoteToAbcElement=function(e,t,n,r,i,a,s,o,c){var l,h,u,d=0,f=0,p=0,m=[],g=[],v=0,b=6<=t.averagepitch?"down":"up";for(r&&(b=r),(i=t.style||i)&&"normal"!==i||(i="note"),(u=a?O[i].nostem:O[i][-s])||console.log("noteSymbol:",i,s,a),S="down"===b?t.pitches.length-2:1;"down"===b?0<=S:S<t.pitches.length;S="down"===b?S-1:S+1){var y=t.pitches["down"===b?S+1:S-1],x=t.pitches[S],w="down"===b?y.pitch-x.pitch:x.pitch-y.pitch;w<=1&&!y.printer_shift&&(x.printer_shift=w?"different":"same",(11<x.verticalPos||x.verticalPos<1)&&m.push(x.verticalPos-x.verticalPos%2),"down"===b?f=B.getSymbolWidth(u)+2:d=B.getSymbolWidth(u)+2)}for(var k,C,T,_=t.pitches.length,S=0;S<t.pitches.length;S++){if(o||(k="down"===b&&0!==S||"up"===b&&S!==_-1?null:O["down"===b?"dflags":"uflags"][-s]),t.pitches[S].style?C=O[t.pitches[S].style][-s]:c.isPercussion&&this.percmap?(C=u,(M=this.percmap[L(t.pitches[S])])&&M.noteHead&&O[M.noteHead]&&(C=O[M.noteHead][-s])):C=u,t.pitches[S].highestVert=t.pitches[S].verticalPos,("up"===r||"up"===b)&&0===S||("down"===r||"down"===b)&&S===_-1){if(!t.startSlur&&1!==_||(t.pitches[S].highestVert=t.pitches[_-1].verticalPos,N(t)<1&&("up"===r||"up"===b)&&(t.pitches[S].highestVert+=6)),t.startSlur)for(t.pitches[S].startSlur||(t.pitches[S].startSlur=[]),h=0;h<t.startSlur.length;h++)z(t.pitches[S].startSlur,t.startSlur[h]);if(t.endSlur)for(t.pitches[S].highestVert=t.pitches[_-1].verticalPos,N(t)<1&&("up"===r||"up"===b)&&(t.pitches[S].highestVert+=6),t.pitches[S].endSlur||(t.pitches[S].endSlur=[]),h=0;h<t.endSlur.length;h++)z(t.pitches[S].endSlur,t.endSlur[h])}var E=!o&&s<=-1,M=A(e,C,t.pitches[S],{dir:b,extrax:-f,flag:k,dot:n,dotshiftx:d,scale:this.voiceScale,accidentalSlot:g,shouldExtendStem:!r,printAccidentals:!c.isPercussion}),v=Math.max(B.getSymbolWidth(C),v);e.extraw-=M.extraLeft,(l=M.notehead)&&(this.addSlursAndTies(e,t.pitches[S],l,c,E?b:null,!1),t.gracenotes&&0<t.gracenotes.length&&(l.bottom=l.bottom-1),e.addHead(l)),f+=M.accidentalshiftx,p=Math.max(p,M.dotshiftx)}return E&&(i=Math.round(70*this.voiceScale)/10,6<(a="down"===b?t.minpitch-i:t.minpitch+1/3)&&!r&&(a=6),(i="down"===b?t.maxpitch-1/3:t.maxpitch+i)<6&&!r&&(i=6),T="down"===b||0===e.heads.length?0:e.heads[0].w,l&&"noteheads.slash.quarter"===l.c&&("down"===b?--i:a+=1),l&&"noteheads.triangle.quarter"===l.c&&("down"===b?i-=.7:a-=1.2),e.addRight(new P(null,T,0,a,{type:"stem",pitch2:i,linewidth:"down"===b?1:-1,bottom:a-1})),T=Math.min(a,i)),{noteHead:l,roomTaken:f,roomTakenRight:p,min:T,additionalLedgers:m,dir:b,symbolWidth:v}},r.prototype.addLyric=function(e,t){var n="",r=(t.lyric.forEach(function(e){var t=" "===e.divider?"":e.divider;n+=e.syllable+t+"\n"}),this.getTextSize.calc(n,"vocalfont","lyric")),t=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new P(n,0,r.width,void 0,{type:"lyric",position:t,height:r.height/d.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))},r.prototype.createNote=function(e,t,p,n){var r,i=null,a=0,s=0,o=0,c=[],l=N(e),h=!1;0===l&&(l=.25,t=h=!0);for(var u=Math.floor(Math.log(l)/Math.log(2)),d=0,f=Math.pow(2,u),m=f/2;f<l;d++,f+=m,m/=2);e.startTriplet&&(this.tripletmultiplier=e.tripletMultiplier);var g=l*this.tripletmultiplier,v=(e.rest&&"multimeasure"===e.rest.type&&(g=1),e.rest&&"invisible-multimeasure"===e.rest.type&&(g=this.measureLength*e.rest.text),e.rest?"rest":"note"),g=new b(e,g,1,v,this.tuneNumber,{durationClassOveride:e.duration*this.tripletmultiplier});return T&&g.setHint(),e.rest?(this.measureLength===l&&"invisible"!==e.rest.type&&"spacer"!==e.rest.type&&e.rest.type.indexOf("multimeasure")<0&&(e.rest.type="whole"),i=(v=function(e,t,n,r,i,a,s,o){var c,l,h,u,d=7;switch(i&&("down"===a&&(d=3),"up"===a&&(d=11)),p&&(d=n<.5||n<1?7:5),t.rest.type){case"whole":c=O.rest[0],t.averagepitch=d,t.minpitch=d,t.maxpitch=d,r=0;break;case"rest":c=("rhythm"===t.style?O.rhythm:O.rest)[-s],t.averagepitch=d,t.minpitch=d,t.maxpitch=d;break;case"invisible":case"invisible-multimeasure":case"spacer":c="",t.averagepitch=d,t.minpitch=d,t.maxpitch=d;break;case"multimeasure":c=O.rest.multi,t.averagepitch=d,t.minpitch=d,t.maxpitch=d,r=0;var f=B.getSymbolWidth(c),f=(e.addHead(new P(c,f,2*f,7)),new P(""+t.rest.text,f,f,16,{type:"multimeasure-text"}));e.addExtra(f)}return t.rest.type.indexOf("multimeasure")<0&&"invisible"!==t.rest.type&&((l=(i=A(e,c,{verticalPos:d},{dot:r,scale:o})).notehead)&&(e.addHead(l),h=i.accidentalshiftx,u=i.dotshiftx)),{noteHead:l,roomTaken:h,roomTakenRight:u}}(g,e,l,d,1<n.voicetotal,this.stemdir,u,this.voiceScale)).noteHead,a=v.roomTaken,s=v.roomTakenRight):(void 0!==(v=this.addNoteToAbcElement(g,e,d,this.stemdir,this.style,h,u,t,n)).min&&(this.minY=Math.min(v.min,this.minY)),i=v.noteHead,a=v.roomTaken,s=v.roomTakenRight,c=v.additionalLedgers,r=v.dir,o=v.symbolWidth),void 0!==e.lyric&&this.addLyric(g,e),void 0!==e.gracenotes&&(a+=this.addGraceNotes(e,n,g,i,this.stemHeight*this.voiceScale,this.isBagpipes,a)),e.decoration&&this.decoration.createDecoration(n,e.decoration,g.top,i?i.w:0,g,a,r,g.bottom,e.positioning,this.hasVocals,this.accentAbove),e.barNumber&&g.addFixed(new P(e.barNumber,-10,0,0,{type:"barNumber"})),_(g,e.minpitch,e.maxpitch,e.rest,o,c,r,-2,1),void 0!==e.chord&&(a=(h=C(this.getTextSize,g,e,a,s,o,this.jazzchords,this.germanAlphabet)).roomTaken,s=h.roomTakenRight),e.startTriplet&&(this.triplet=new k(e.startTriplet,i,{flatBeams:this.flatBeams})),e.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(i),!this.triplet||e.startTriplet||e.endTriplet||e.rest&&"spacer"===e.rest.type||this.triplet.middleNote(i),g},r.prototype.addSlursAndTies=function(e,t,n,r,i,a){if(t.endTie&&0<this.ties.length){for(var s=!1,o=0;o<this.ties.length;o++)if(this.ties[o].anchor1&&this.ties[o].anchor1.pitch===n.pitch){this.ties[o].setEndAnchor(n),r.setRange(this.ties[o]),this.ties.splice(o,1),s=!0;break}s||(this.ties[0].setEndAnchor(n),r.setRange(this.ties[0]),this.ties.splice(0,1))}var c,l,h,u=r.voicetotal<2?-1:r.voicenumber;if(t.startTie&&(h=new w({anchor1:n,force:"down"===this.stemdir||"up"===this.stemdir,stemDir:this.stemdir,isGrace:a,voiceNumber:u,style:t.startTie.style}),T&&h.setHint(),this.ties[this.ties.length]=h,r.addOther(h),e.startTie=!0),t.endSlur)for(var d=0;d<t.endSlur.length;d++)l=t.endSlur[d],this.slurs[l]?((c=this.slurs[l]).setEndAnchor(n),r.setRange(c),delete this.slurs[l]):(c=new w({anchor2:n,stemDir:this.stemdir,voiceNumber:u}),T&&c.setHint(),r.addOther(c)),this.startlimitelem&&c.setStartX(this.startlimitelem);else if(!a)for(var f in this.slurs)this.slurs.hasOwnProperty(f)&&this.slurs[f].addInternalNote(n);if(t.startSlur)for(d=0;d<t.startSlur.length;d++)l=t.startSlur[d].label,c=new w({anchor1:n,stemDir:this.stemdir,voiceNumber:u,style:t.startSlur[d].style}),T&&c.setHint(),this.slurs[l]=c,r.addOther(c)},r.prototype.addMeasureNumber=function(e,t){var n=this.getTextSize.calc(e,"measurefont","bar-number"),r=0,i=(t.isClef&&(r+=n.width/2),10<n.width&&"treble"===t.abcelem.type?13:11);t.addFixed(new P(e,r,n.width,i+n.height/d.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))},r.prototype.createBarLine=function(e,t,n){var r=new b(t,0,10,"bar",this.tuneNumber),i=null,a=0,s=(t.barNumber&&this.addMeasureNumber(t.barNumber,r),"bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type),o="bar_left_repeat"!==t.type&&"bar_thick_thin"!==t.type&&"bar_invisible"!==t.type,c="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type||"bar_left_repeat"===t.type||"bar_thin_thick"===t.type||"bar_thick_thin"===t.type,l="bar_left_repeat"===t.type||"bar_thick_thin"===t.type||"bar_thin_thin"===t.type||"bar_dbl_repeat"===t.type,h="bar_left_repeat"===t.type||"bar_dbl_repeat"===t.type;if(s||h){for(var u in this.slurs)this.slurs.hasOwnProperty(u)&&this.slurs[u].setEndX(r);this.startlimitelem=r}return s&&(r.addRight(new P("dots.dot",a,1,7)),r.addRight(new P("dots.dot",a,1,5)),a+=6),o&&(i=new P(null,a,1,2,{type:"bar",pitch2:10,linewidth:.6}),r.addRight(i)),"bar_invisible"===t.type&&(i=new P(null,a,1,2,{type:"none",pitch2:10,linewidth:.6}),r.addRight(i)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,c?3:1,r,0,"down",2,t.positioning,this.hasVocals,this.accentAbove),c&&(i=new P(null,a+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),r.addRight(i),a+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=i,this.partstartelem=null),l&&(i=new P(null,a+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),r.addRight(i)),h&&(r.addRight(new P("dots.dot",a+=3,1,7)),r.addRight(new P("dots.dot",a,1,5))),t.startEnding&&n&&(s=this.getTextSize.calc(t.startEnding,"repeatfont","").width,r.minspacing+=s+10,this.partstartelem=new y(t.startEnding,i,null),e.addOther(this.partstartelem)),r.extraw-=5,void 0!==t.chord&&C(this.getTextSize,r,t,0,0,0,!1,this.germanAlphabet),r},e.exports=r},2652:function(e,t,n){var T=n(6658),_=n(4331),S=n(5810);function b(e,t,n,r,i,a,s,o,c,l,h,u,d,f,p){for(var m=e.split("\n"),g=m.length-1;0<=g;g--){var v,b,y=m[g],x=0,w=(r||(y=S(y,f,p)),o.calc(y,i,a)),k=w.width,C=w.height/_.STEP;switch(t){case"left":x=-(h+=k+7),v=l.averagepitch,c.addExtra(new T(y,x,k+4,v,{type:"text",height:C,dim:s,position:"left"}));break;case"right":x=u+=4,v=l.averagepitch,c.addRight(new T(y,x,k+4,v,{type:"text",height:C,dim:s,position:"right"}));break;case"below":c.addRight(new T(y,0,0,void 0,{type:"text",position:"below",height:C,dim:s,realWidth:k}));break;case"above":c.addRight(new T(y,0,0,void 0,{type:"text",position:"above",height:C,dim:s,realWidth:k}));break;default:n?(b=n.y+3*_.STEP,c.addRight(new T(y,x+n.x,0,l.minpitch+b/_.STEP,{position:"relative",type:"text",height:C,dim:s}))):(b="above","hidden"!==(b=l.positioning&&l.positioning.chordPosition?l.positioning.chordPosition:b)&&c.addCentered(new T(y,d/2,k,void 0,{type:"chord",position:b,height:C,dim:s,realWidth:k})))}}return{roomTaken:h,roomTakenRight:u}}e.exports=function(e,t,n,r,i,a,s,o){for(var c=0;c<n.chord.length;c++){var l,h,u=n.chord[c].position,d=n.chord[c].rel_position,f="left"===u||"right"===u||"below"===u||"above"===u||!!d,p=f?(l="annotationfont","abcjs-annotation"):(l="gchordfont","abcjs-chord"),m=e.attr(l,p),g=n.chord[c].name;if("string"==typeof g)r=(h=b(g,u,d,f,l,p,m,e,t,n,r,i,a,s,o)).roomTaken,i=h.roomTakenRight;else for(var v=0;v<g.length;v++)r=(h=b(g[v].text,u,d,f,l,p,m,e,t,n,r,i,a,s,o)).roomTaken,i=h.roomTakenRight}return{roomTaken:r,roomTakenRight:i}}},1716:function(e){e.exports=function(e,t,n){var r;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}),r={left:t.marginLeft,text:t.text,font:t.font,anchor:t.anchor,startChar:t.info.startChar,endChar:t.info.endChar,"dominant-baseline":t["dominant-baseline"]},t.absElemType&&(r.absElemType=t.absElemType),!t.inGroup&&t.klass&&(r.klass=t.klass),t.name&&(r.name=t.name),e.push(r),r=n.calc("A",t.font,t.klass),n=t.text.split("\n").length,"\n"===t.text[t.text.length-1]&&n--,t.noMove||(r=1.1*r.height*n,e.push({move:Math.round(r)}),t.marginBottom&&e.push({move:t.marginBottom})))}},3661:function(e){e.exports=function(e){for(var t=0,n=0;n<e.voices.length;n++){var r=e.voices[n].staff;e.voices[n].duplicate||(t=(t+=r.top)+-r.bottom)}return t}},9600:function(e,t,n){var c=n(1409),l=n(6020),h=n(6658);e.exports=function(e,t){var n,r,i,a,s=0,o=(e.el_type="clef",new c(e,0,10,"staff-extra clef",t));switch(o.isClef=!0,e.type){case"treble":n="clefs.G";break;case"tenor":case"alto":n="clefs.C";break;case"bass":n="clefs.F";break;case"treble+8":n="clefs.G",s=1;break;case"tenor+8":case"alto+8":n="clefs.C",s=1;break;case"bass+8":n="clefs.F",s=1;break;case"treble-8":n="clefs.G",s=-1;break;case"tenor-8":case"alto-8":n="clefs.C",s=-1;break;case"bass-8":n="clefs.F",s=-1;break;case"none":return null;case"perc":n="clefs.perc";break;default:o.addFixed(new h("clef="+e.type,0,0,void 0,{type:"debug"}))}return n&&(t=l.symbolHeightInPitches(n),r=function(){switch(n){case"clefs.G":return-5;case"clefs.C":case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}(),o.addRight(new h(n,5,l.getSymbolWidth(n),e.clefPos,{top:t+e.clefPos+r,bottom:e.clefPos+r})),0!==s&&(t=(l.getSymbolWidth(n)-l.getSymbolWidth("8")*(2/3))/2,r=0<s?o.top+3:o.bottom-1,a=(i=0<s?o.top+3:o.bottom-3)-2,"bass-8"===e.type&&(r=3,t=0),o.addRight(new h("8",5+t,l.getSymbolWidth("8")*(2/3),r,{scalex:2/3,scaley:2/3,top:i,bottom:a})))),o}},3923:function(e,t,n){var a=n(1409),s=n(6020),o=n(6658);e.exports=function(e,t){if(e.el_type="keySignature",!e.accidentals||0===e.accidentals.length)return null;var r=new a(e,0,10,"staff-extra key-signature",t),i=(r.isKeySig=!0,0);return e.accidentals.forEach(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 o(t,i,s.getSymbolWidth(t),e.verticalPos,{thickness:s.symbolHeightInPitches(t),top:e.verticalPos+s.symbolHeightInPitches(t)+n,bottom:e.verticalPos+n})),i+=s.getSymbolWidth(t)+2},this),r}},2143:function(e,t,n){var _=n(6020),S=n(6658);e.exports=function(e,t,n,r){var i,a,s=void 0!==(r=r||{}).dir?r.dir:null,o=void 0!==r.headx?r.headx:0,c=void 0!==r.extrax?r.extrax:0,l=void 0!==r.flag?r.flag:null,h=void 0!==r.dot?r.dot:0,u=void 0!==r.dotshiftx?r.dotshiftx:0,d=void 0!==r.scale?r.scale:1,f=void 0!==r.accidentalSlot?r.accidentalSlot:[],p=void 0!==r.shouldExtendStem&&r.shouldExtendStem,r=void 0===r.printAccidentals||r.printAccidentals,m=n.verticalPos,g=0,v=0,b=0;if(void 0===t)e.addFixed(new S("pitch is undefined",0,0,0,{type:"debug"}));else if(""===t)i=new S(null,0,0,m);else{var y=o,x=(n.printer_shift&&(x="same"===n.printer_shift?1:0,y="down"===s?-_.getSymbolWidth(t)*d+x:_.getSymbolWidth(t)*d-x),{scalex:d,scaley:d,thickness:_.symbolHeightInPitches(t)*d,name:n.name});for((i=new S(t,y,_.getSymbolWidth(t)*d,m,x)).stemDir=s,l&&(y=m+("down"===s?-7:7)*d,p&&("down"===s&&6<y&&(y=6),"up"===s&&y<6&&(y=6)),t="down"===s?o:o+i.w-.6,e.addRight(new S(l,t,_.getSymbolWidth(l)*d,y,{scalex:d,scaley:d}))),v=i.w+u-2+5*h;0<h;h--){var w=1-Math.abs(m)%2;e.addRight(new S("dots.dot",i.w+u-2+5*h,_.getSymbolWidth("dots.dot"),m+w))}}if(i&&(i.highestVert=n.highestVert),r&&n.accidental){switch(n.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 k=!1,C=c,T=0;T<f.length;T++)if(6<=m-f[T][0]){f[T][0]=m,C=f[T][1],k=!0;break}!1===k&&(C-=_.getSymbolWidth(a)*d+2,f.push([m,C]),g=_.getSymbolWidth(a)*d+2);x=_.symbolHeightInPitches(a);e.addExtra(new S(a,C,_.getSymbolWidth(a),m,{scalex:d,scaley:d,top:m+x/2,bottom:m-x/2})),b=_.getSymbolWidth(a)/2}return{notehead:i,accidentalshiftx:g,dotshiftx:v,extraLeft:b}}},2525:function(e,t,n){var u=n(1409),d=n(6020),f=n(6658);e.exports=function(e,t){e.el_type="timeSignature";var n=new u(e,0,10,"staff-extra time-signature",t);if("specified"===e.type)for(var r=0,i=0;i<e.value.length;i++)if(0!==i&&(n.addRight(new f("+",r+1,d.getSymbolWidth("+"),6,{thickness:d.symbolHeightInPitches("+")})),r+=d.getSymbolWidth("+")+2),e.value[i].den){for(var a=0,s=0;s<e.value[i].num.length;s++)a+=d.getSymbolWidth(e.value[i].num[s]);for(var o=0,s=0;s<e.value[i].num.length;s++)o+=d.getSymbolWidth(e.value[i].den[s]);var c=Math.max(a,o);n.addRight(new f(e.value[i].num,r+(c-a)/2,a,8,{thickness:d.symbolHeightInPitches(e.value[i].num[0])})),n.addRight(new f(e.value[i].den,r+(c-o)/2,o,4,{thickness:d.symbolHeightInPitches(e.value[i].den[0])})),r+=c}else{for(var l=0,h=0;h<e.value[i].num.length;h++)l+=d.getSymbolWidth(e.value[i].num[h]);n.addRight(new f(e.value[i].num,r,l,6,{thickness:d.symbolHeightInPitches(e.value[i].num[0])})),r+=l}else"common_time"===e.type?n.addRight(new f("timesig.common",0,d.getSymbolWidth("timesig.common"),6,{thickness:d.symbolHeightInPitches("timesig.common")})):"cut_time"===e.type?n.addRight(new f("timesig.cut",0,d.getSymbolWidth("timesig.cut"),6,{thickness:d.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===e.type?n.addRight(new f("timesig.imperfectum",0,d.getSymbolWidth("timesig.imperfectum"),6,{thickness:d.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===e.type?n.addRight(new f("timesig.imperfectum2",0,d.getSymbolWidth("timesig.imperfectum2"),6,{thickness:d.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===e.type?n.addRight(new f("timesig.perfectum",0,d.getSymbolWidth("timesig.perfectum"),6,{thickness:d.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===e.type?n.addRight(new f("timesig.perfectum2",0,d.getSymbolWidth("timesig.perfectum2"),6,{thickness:d.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",e);return n}},8677:function(e,t,n){function r(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0}var Y=n(3185),c=n(6891),l=n(8844),G=n(6020),q=n(6658),W=n(6183);r.prototype.dynamicDecoration=function(e,t,n,r){for(var i,a,s,o=0;o<t.length;o++)switch(t[o]){case"diminuendo(":this.startDiminuendoX=n,i=void 0;break;case"diminuendo)":i={start:this.startDiminuendoX,stop:n},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=n,a=void 0;break;case"crescendo)":a={start:this.startCrescendoX,stop:n},this.startCrescendoX=void 0;break;case"~(":case"glissando(":this.startGlissandoX=n,s=void 0;break;case"~)":case"glissando)":s={start:this.startGlissandoX,stop:n},this.startGlissandoX=void 0}i&&e.addOther(new c(i.start,i.stop,">",r)),a&&e.addOther(new c(a.start,a.stop,"<",r)),s&&e.addOther(new l(s.start,s.stop))},r.prototype.createDecoration=function(e,t,n,r,i,a,s,o,c,l,h){for(var u=e,d=t,H=i,D=(c=c||{ornamentPosition:"above",volumePosition:l?"above":"below",dynamicPosition:l?"above":"below"}).volumePosition,f=0;f<d.length;f++)switch(d[f]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var F=new Y(H,d[f],D);u.addOther(F)}this.dynamicDecoration(e,t,i,c.dynamicPosition);var p=t,j=r,m=i,g=s;function v(e,t){var n="down"===g?function(){if(0===m.heads.length)return 2;for(var e=m.heads[0].pitch,t=1;t<m.heads.length;t++)e=Math.min(e,m.heads[t].pitch);return e}()+1:function(){if(0===m.heads.length)return 10;for(var e=m.heads[0].pitch,t=1;t<m.heads.length;t++)e=Math.max(e,m.heads[t].pitch);return e}()+9,r=("down"!==g&&1===t&&n--,j/2);r+="down"===g?-5:3;for(var i=0;i<t;i++)--n,m.addFixedX(new q(e,r,G.getSymbolWidth(e),n))}for(var b=0;b<p.length;b++)switch(p[b]){case"/":v("flags.ugrace",1);break;case"//":v("flags.ugrace",2);break;case"///":v("flags.ugrace",3);break;case"////":v("flags.ugrace",4)}var l=function(e,t,n,r,i,a,s,o,c){for(var l,h,u=0;u<t.length;u++){if("staccato"===t[u]||"tenuto"===t[u]||"accent"===t[u]&&!c){var d="scripts."+t[u];if("accent"===t[u]&&(d="scripts.sforzato"),l=void 0===l?"down"===s?n+2:o-2:"down"===s?l+2:l-2,"accent"===t[u])"up"===s?l--:l++;else switch(l){case 2:case 4:case 6:case 8:case 10:"up"===s?l--:l++}9<n&&l++;var f=r/2;"center"!==G.getSymbolAlign(d)&&(f-=G.getSymbolWidth(d)/2),i.addFixedX(new q(d,f,G.getSymbolWidth(d),l))}"slide"===t[u]&&i.heads[0]&&(f=i.heads[0].pitch,d=new q("",-a-15,0,(f-=2)-1),h=new q("",-a-5,0,1+f),i.addFixedX(d),i.addFixedX(h),e.addOther(new W({anchor1:d,anchor2:h,fixedY:!0})))}return{above:l=void 0===l?n:l,below:i.bottom}}(e,t,n,r,i,a,s,o,h),y=(l.above=Math.max(l.above,this.minTop),t),x=r,w=i,k=l,C=c.ornamentPosition,T=this.minTop,_=this.minBottom,I=h;function S(e,t){"above"===e?k.above+=t:k.below-=t}function E(e){var t;return"above"===e?(t=k.above)<T&&(t=T):(t=k.below)>_&&(t=_),t}function M(e,t,n){var r=E(t);w.addFixedX(new q(e,x/2,0,r+2,{type:"decoration",klass:"ornament",thickness:3,anchor:n})),S(t,5)}function N(e,t){var n=x/2,r=("center"!==G.getSymbolAlign(e)&&(n-=G.getSymbolWidth(e)/2),G.symbolHeightInPitches(e)+1),i=E(t),i="above"===t?i+r/2:i-r/2;w.addFixedX(new q(e,n,G.getSymbolWidth(e),i,{klass:"ornament",thickness:G.symbolHeightInPitches(e)})),S(t,r)}for(var A={"+":"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"},B=0;B<y.length;B++)switch(y[B]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":M(y[B],C,"middle");break;case"D.C.alcoda":M("D.C. al coda",C,"end");break;case"D.C.alfine":M("D.C. al fine",C,"end");break;case"D.S.alcoda":M("D.S. al coda",C,"end");break;case"D.S.alfine":M("D.S. al fine",C,"end");break;case"fine":M("FINE",C,"middle");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":N(A[y[B]],C);break;case"invertedfermata":N(A[y[B]],"below");break;case"mark":w.klass="mark";break;case"accent":I&&N("scripts.sforzato",C)}for(var P=t,L=i,V=a,O=0;O<P.length;O++)if("arpeggio"===P[O])for(var z=L.abcelem.minpitch-1;z<=L.abcelem.maxpitch;z+=2)L.addExtra(new q("scripts.arpeggio",2*-G.getSymbolWidth("scripts.arpeggio")-V,0,z+2,{klass:"ornament",thickness:G.symbolHeightInPitches("scripts.arpeggio")}))},e.exports=r},1409:function(e,t,n){function r(e,t,n,r,i,a){a=a||{},this.tuneNumber=i,this.abcelem=e,this.duration=t,this.durationClass=a.durationClassOveride||this.duration,this.minspacing=n||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=r,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}}var i=n(5741),a=n(5829);r.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},r.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)},r.prototype.addHead=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.heads[this.heads.length]=e,this.addRight(e)},r.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)},r.prototype.addFixed=function(e){this._addChild(e)},r.prototype.addFixedX=function(e){this._addChild(e)},r.prototype.addCentered=function(e){var t=e.w/2;-t<this.extraw&&(this.extraw=-t),(this.extra[this.extra.length]=e).dx+t>this.w&&(this.w=e.dx+t),this.right[this.right.length]=e,this._addChild(e)},r.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])},r.prototype._addChild=function(e){(e.parent=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)},r.prototype.pushTop=function(e){void 0!==e&&(void 0===this.top?this.top=e:this.top=Math.max(e,this.top))},r.prototype.pushBottom=function(e){void 0!==e&&(void 0===this.bottom?this.bottom=e:this.bottom=Math.min(e,this.bottom))},r.prototype.setX=function(e){this.x=e;for(var t=0;t<this.children.length;t++)this.children[t].setX(e)},r.prototype.center=function(e,t){t=(t.x-e.x)/2+e.x;this.x=t-this.w/2;for(var n=0;n<this.children.length;n++)this.children[n].setX(this.x)},r.prototype.setHint=function(){this.hint=!0},r.prototype.highlight=function(e,t){i.bind(this)(e,t)},r.prototype.unhighlight=function(e,t){a.bind(this)(e,t)},e.exports=r},8491:function(e){function t(e,t,n,r){this.type="BeamElem",this.isflat=!!n,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=[],r&&r.duration?(this.duration=r.duration,r.startTriplet&&(this.duration*=r.tripletMultiplier),this.duration=Math.round(1e3*this.duration)/1e3):this.duration=0}function r(e,t){return t?e/t:0}t.prototype.setHint=function(){this.hint=!0},t.prototype.runningDirection=function(e){e=e.averagepitch;void 0!==e&&(this.total=Math.round(this.total+e),this.count||(this.count=0),this.count++)},t.prototype.add=function(e){var t=e.abcelem.averagepitch;void 0!==t&&(e.abcelem.rest||(this.allrests=!1),(e.beam=this).elems.push(e),this.total=Math.round(this.total+t),(void 0===this.min||e.abcelem.minpitch<this.min)&&(this.min=e.abcelem.minpitch),(void 0===this.max||e.abcelem.maxpitch>this.max)&&(this.max=e.abcelem.maxpitch))},t.prototype.addBeam=function(e){this.beams.push(e)},t.prototype.setStemDirection=function(){this.average=r(this.total,this.count),this.forceup?this.stemsUp=!0:this.forcedown?this.stemsUp=!1:this.stemsUp=this.average<6,delete this.count,this.total=0},t.prototype.calcDir=function(){this.average=r(this.total,this.elems.length),this.forceup?this.stemsUp=!0:this.forcedown?this.stemsUp=!1:this.stemsUp=this.average<6;for(var e=this.stemsUp?"up":"down",t=0;t<this.elems.length;t++)for(var n=0;n<this.elems[t].heads.length;n++)this.elems[t].heads[n].stemDir=e},e.exports=t},9316:function(e,t,n){var p=n(1716),m=n(6994);function r(e,t,n,r,i,a,s){this.rows=[],e.unalignedWords&&0<e.unalignedWords.length&&this.unalignedWords(e.unalignedWords,r,i,a,s),this.extraText(e,r,i,a,s),e.footer&&n&&this.footer(e.footer,t,r,s)}function a(e,t,n,r,i,a,s){n&&(t&&(n="string"==typeof n?t+n:[{text:t}].concat(n)),m(e,n,"historyfont",i=a?"abcjs-extra-text "+i:"","description",r,{absElemType:"extraText",anchor:"start"},s))}function o(e,t,n,r,i,a,s,o,c,l,h,u){if(n){var d=u.calc("A",i,o=h?"abcjs-extra-text "+o:"");if("string"==typeof n)p(e,{marginLeft:r,text:n=t?t+"\n"+n:n,font:i,absElemType:"extraText",name:c,"dominant-baseline":"middle",klass:o},u);else{e.push({startGroup:s,klass:o,name:c}),e.push({move:l.info}),t&&(p(e,{marginLeft:r,text:t,font:i,absElemType:"extraText",name:c,"dominant-baseline":"middle"},u),e.push({move:3*d.height/4}));for(var f=0;f<n.length;f++)m(e,n[f],i,"",c,r,{anchor:"start"},u),f<n.length-1&&"string"==typeof n[f]&&"string"!=typeof n[f+1]&&e.push({move:3*d.height/4});e.push({endGroup:s,absElemType:a,startChar:-1,endChar:-1,name:c}),e.push({move:d.height})}}}r.prototype.unalignedWords=function(e,t,n,r,i){var a=r?"abcjs-unaligned-words":"",s=i.calc("i","wordsfont",a);this.rows.push({move:n.words}),o(this.rows,"",e,t,"wordsfont","unalignedWords","unalignedWords",a,"unalignedWords",n,r,i),this.rows.push({move:s.height})},r.prototype.extraText=function(e,t,n,r,i){a(this.rows,"Book: ",e.book,t,"abcjs-book",r,i),a(this.rows,"Source: ",e.source,t,"abcjs-source",r,i),a(this.rows,"Discography: ",e.discography,t,"abcjs-discography",r,i),o(this.rows,"Notes:",e.notes,t,"historyfont","extraText","notes","abcjs-notes","description",n,r,i),a(this.rows,"Transcription: ",e.transcription,t,"abcjs-transcription",r,i),o(this.rows,"History:",e.history,t,"historyfont","extraText","history","abcjs-history","description",n,r,i),a(this.rows,"Copyright: ",e["abc-copyright"],t,"abcjs-copyright",r,i),a(this.rows,"Creator: ",e["abc-creator"],t,"abcjs-creator",r,i),a(this.rows,"Edited By: ",e["abc-edited-by"],t,"abcjs-edited-by",r,i)},r.prototype.footer=function(e,t,n,r){var i="header meta-bottom",a="footerfont";this.rows.push({startGroup:"footer",klass:i}),p(this.rows,{marginLeft:n,text:e.left,font:a,klass:i,name:"footer"},r),p(this.rows,{marginLeft:n+t/2,text:e.center,font:a,klass:i,anchor:"middle",name:"footer"},r),p(this.rows,{marginLeft:n+t,text:e.right,font:a,klass:i,anchor:"end",name:"footer"},r)},e.exports=r},5224:function(e){function t(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&&0<this.startVoice.staff.voices.length&&this.startVoice.staff.voices[0]===e)},e.exports=t},6891:function(e){e.exports=function(e,t,n,r){this.type="CrescendoElem",this.anchor1=e,this.anchor2=t,this.dir=n,"above"===r?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0}},3185:function(e){e.exports=function(e,t,n){this.type="DynamicDecoration",this.anchor=e,this.dec=t,"below"===n?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0}},8256:function(e){e.exports=function(e,t,n){this.type="EndingElem",this.text=e,this.anchor1=t,this.anchor2=n,this.endingHeightAbove=5,this.pitch=void 0}},3736:function(e){e.exports=function(e,t,n,r,i,a){var s,o=e.text,t=(this.rows=[],t&&this.rows.push({move:t}),n.calc("textfont","defined-text"));if(""===o)this.rows.push({move:2*t.attr["font-size"]});else if("string"==typeof o)this.rows.push({move:t.attr["font-size"]/2}),this.rows.push({left:r,text:o,font:"textfont",klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),s=a.calc(o,"textfont","defined-text"),this.rows.push({move:s.height});else if(o){for(var c,l=0,h=r,u=0;u<o.length;u++)c=o[u].font||"textfont",this.rows.push({left:h,text:o[u].text,font:c,klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),h+=(s=a.calc(o[u].text,n.calc(c,"defined-text").font,"defined-text")).width+s.height/2,l=Math.max(l,s.height);this.rows.push({move:l})}else 1===e.length&&(this.rows.push({left:i/2,text:e[0].text,font:"textfont",klass:"defined-text",anchor:"middle",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),s=a.calc(e[0].text,"textfont","defined-text"),this.rows.push({move:s.height}))}},8844:function(e){e.exports=function(e,t){this.type="GlissandoElem",this.anchor1=e,this.anchor2=t}},6658:function(e){function t(e,t,n,r,i){switch(i=i||{},this.x=0,this.c=e,this.dx=t,this.w=n,this.pitch=r,this.scalex=i.scalex||1,this.scaley=i.scaley||1,this.type=i.type||"symbol",this.pitch2=i.pitch2,this.linewidth=i.linewidth,this.klass=i.klass,this.anchor=i.anchor||"middle",this.top=r,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=r,void 0!==this.pitch2&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),i.thickness&&(this.top+=i.thickness/2,this.bottom-=i.thickness/2),i.stemHeight&&(0<i.stemHeight?this.top+=i.stemHeight:this.bottom+=i.stemHeight),i.dim&&(this.dim=i.dim),i.position&&(this.position=i.position),this.height=i.height||4,i.top&&(this.top=i.top),i.bottom&&(this.bottom=i.bottom),i.name?this.name=i.name:this.c?this.name=this.c:this.name=this.type,i.realWidth?this.realWidth=i.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":i.position&&"below"===i.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":i.position&&"below"===i.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?i.position&&"below"===i.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,e=this.x-e;return{left:e,right:e+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},6994:function(e,t,n){var m=n(1716);e.exports=function(e,t,n,r,i,a,s,o){var c=o.calc("i",n,r);if(""===t)e.push({move:c.height});else if("string"==typeof t)m(e,{marginLeft:a,text:t,font:n,klass:r,marginTop:s.marginTop,anchor:s.anchor,absElemType:s.absElemType,info:s.info,name:i},o);else{s.marginTop&&e.push({move:s.marginTop});var l=0,h={left:a,anchor:s.anchor,phrases:[]};r&&(h.klass=r),e.push(h);for(var u=0;u<t.length;u++){var d=t[u],f=d.font||o.attr(n,r).font,p={content:d.text},p=(f&&(p.attrs={"font-family":o.getFamily(f.face),"font-size":f.size,"font-weight":f.weight,"font-style":f.style,"font-decoration":f.decoration}),h.phrases.push(p),o.calc(d.text,f,r)),l=Math.max(l,p.height);" "===d.text[d.text.length-1]&&c.width}e.push({move:l})}}},5588:function(e){e.exports=function(e,t,n){this.rows=[],e&&this.rows.push({move:e}),this.rows.push({separator:t,absElemType:"separator"}),n&&this.rows.push({move:n})}},7398:function(e,t,n){function r(e){this.getTextSize=e,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0}var i=n(3661);r.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])},r.prototype.addVoice=function(e,t,n){var r=this.voices.length;this.voices[r]=e,this.staffs[t]?this.staffs[t].voices.push(r):this.staffs[this.staffs.length]={top:10,bottom:2,lines:n,voices:[r],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},e.staff=this.staffs[t]},r.prototype.setHeight=function(){this.height=i(this)},r.prototype.setWidth=function(e){this.w=e;for(var t=0;t<this.voices.length;t++)this.voices[t].setWidth(e)},r.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=r},4726:function(e){e.exports=function(e,t,n,r,i,a){this.rows=[],e&&this.rows.push({move:e});e=t.titleleft?"start":"middle",t=t.titleleft?i:r,this.rows.push({left:t,text:n.text,font:"subtitlefont",klass:"text subtitle",anchor:e,startChar:n.startChar,endChar:n.endChar,absElemType:"subtitle",name:"subtitle"}),i=a.calc(n.text,"subtitlefont","text subtitle");this.rows.push({move:i.height})}},1106:function(e,t,n){function r(e,t,n){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(n,e,t))}var s=n(1409),o=n(6658);r.prototype.setX=function(e){this.x=e},r.prototype.createNote=function(e,t,n){var r,i,a=t.duration[0],t=new s(t,a,1,"tempo",n),n=a<=1/32?(r="noteheads.quarter",i="flags.u32nd",0):a<=1/16?(r="noteheads.quarter",i="flags.u16th",0):a<=3/32?(r="noteheads.quarter",i="flags.u16nd",1):a<=1/8?(r="noteheads.quarter",i="flags.u8th",0):a<=3/16?(r="noteheads.quarter",i="flags.u8th",1):a<=.25?(r="noteheads.quarter",0):a<=3/8?(r="noteheads.quarter",1):a<=.5?(r="noteheads.half",0):a<=.75?(r="noteheads.half",1):a<=1?(r="noteheads.whole",0):a<=1.5?(r="noteheads.whole",1):a<=2?(r="noteheads.dbl",0):(r="noteheads.dbl",1),a=e(t,r,{verticalPos:0},{dir:"up",flag:i,dot:n,scale:.75}).notehead;return t.addHead(a),"noteheads.whole"!==r&&"noteheads.dbl"!==r&&(e=a.dx+a.w,i=new o(null,e,0,.25,{type:"stem",pitch2:3.75,linewidth:-.6}),t.addRight(i)),t},e.exports=r},6183:function(e){function t(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,this.anchor1?(this.top=Math.max(this.anchor1.pitch,this.anchor2.pitch)+4,this.bottom=Math.min(this.anchor1.pitch,this.anchor2.pitch)-4):(this.top=this.anchor2.pitch+4,this.bottom=this.anchor2.pitch-4)},t.prototype.setStartX=function(e){this.startLimitX=e},t.prototype.setEndX=function(e){this.endLimitX=e},t.prototype.setHint=function(){this.hint=!0},t.prototype.calcTieDirection=function(){var e;this.isGrace?this.above=!1:0===this.voiceNumber?this.above=!0:0<this.voiceNumber?this.above=!1:(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=6<=e:this.anchor1?this.above="down"===this.anchor1.stemDir:this.anchor2?this.above="down"===this.anchor2.stemDir:this.above=6<=e)},t.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(0<this.voiceNumber)this.above=!1;else{var e=!1;this.anchor1&&"down"===this.anchor1.stemDir&&(e=!0),this.anchor2&&"down"===this.anchor2.stemDir&&(e=!0);for(var t=0;t<this.internalNotes.length;t++)"down"===this.internalNotes[t].stemDir&&(e=!0);this.above=e}},t.prototype.calcX=function(e,t){this.anchor1?(this.startX=this.anchor1.x,this.anchor1.scalex<1&&(this.startX-=3)):this.startLimitX?this.startX=this.startLimitX.x+this.startLimitX.w:this.anchor2?this.startX=this.anchor2.x-20:this.startX=e,!this.anchor1&&this.dotted&&(this.startX-=3),this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=t},t.prototype.calcTieY=function(){this.anchor1?this.startY=this.anchor1.pitch:this.anchor2?this.startY=this.anchor2.pitch:this.startY=this.above?14:0,this.anchor2?this.endY=this.anchor2.pitch:this.anchor1?this.endY=this.anchor1.pitch:this.endY=this.above?14:0},t.prototype.calcSlurY=function(){var e,t;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,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):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},1134:function(e,t,n){var p=n(1716),m=n(6994);e.exports=function(e,t,n,r,i,a,s,o,c,l){this.rows=[],e.header&&a&&(h=l.calc("X","headerfont","abcjs-header abcjs-meta-top").height,p(this.rows,{marginLeft:s,text:e.header.left,font:"headerfont",klass:"header meta-top",marginTop:-h,info:t.header,name:"header"},l),p(this.rows,{marginLeft:s+i/2,text:e.header.center,font:"headerfont",klass:"header meta-top",marginTop:-h,anchor:"middle",info:t.header,name:"header"},l),p(this.rows,{marginLeft:s+i,text:e.header.right,font:"headerfont",klass:"header meta-top",marginTop:-h,anchor:"end",info:t.header,name:"header"},l)),a&&this.rows.push({move:o.top});var h,u=n.titleleft?"start":"middle",d=n.titleleft?s:s+i/2;if(e.title&&m(this.rows,e.title,"titlefont",c?"abcjs-title":"","title",d,{marginTop:o.title,anchor:u,absElemType:"title",info:t.title},l),r.length)for(var f=0;f<r.length&&r[f].subtitle;)m(this.rows,r[f].subtitle.text,"subtitlefont",c?"abcjs-text abcjs-subtitle":"","subtitle",d,{marginTop:o.subtitle,anchor:u,absElemType:"subtitle",info:r[f].subtitle},l),f++;(e.rhythm||e.origin||e.composer)&&(this.rows.push({move:o.composer}),e.rhythm&&0<e.rhythm.length&&(h=!(!e.composer&&!e.origin),p(this.rows,{marginLeft:s,text:e.rhythm,font:"infofont",klass:c?"abcjs-rhythm":"",absElemType:"rhythm",noMove:h,info:t.rhythm,name:"rhythm"},l)),e.composer&&e.composer,e.origin&&e.origin,a=e.composer||"",e.origin&&("string"==typeof a&&"string"==typeof e.origin?a+=" ("+e.origin+")":(("string"==typeof a&&"string"!=typeof e.origin?a=[{text:a}]:a).push({text:" ("}),(a=a.concat(e.origin)).push({text:")"}))),a&&m(this.rows,a,"composerfont",c?"abcjs-composer":"","composer",s+i,{anchor:"end",absElemType:"composer",info:t.composer,ingroup:!0},l)),e.author&&0<e.author.length&&m(this.rows,e.author,"composerfont",c?"abcjs-author":"","author",s+i,{anchor:"end",absElemType:"author",info:t.author},l),e.partOrder&&0<e.partOrder.length&&m(this.rows,e.partOrder,"partsfont",c?"abcjs-part-order":"","part-order",s,{absElemType:"partOrder",info:t.partOrder,anchor:"start"},l)}},2096:function(e){function t(e,t,n){this.type="TripletElem",this.anchor1=t,this.number=e,this.durationClass=("d"+Math.round(1e3*t.parent.durationClass)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=n.flatBeams}t.prototype.isClosed=function(){return!!this.anchor2},t.prototype.middleNote=function(e){this.middleElems.push(e)},t.prototype.setCloseAnchor=function(e){this.anchor2=e,this.anchor1.parent.beam&&"up"!==this.anchor1.stemDir||(this.endingHeightAbove=4)},e.exports=t},3197:function(e){function t(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,n=0;t&&n<this.children.length;n++)this.children[n].type.indexOf("staff-extra")<0&&"tempo"!==this.children[n].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 n=t.specialY;(n=n||t)[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],n[e]):this.specialY[e]=n[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},6020:function(e,t,n){function f(e){for(var t=[],n=0,r=e.length;n<r;n++){t[n]=[];for(var i=0,a=e[n].length;i<a;i++)t[n][i]=e[n][i]}return t}var r=n(4331),p={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"],["m",3,-11],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:12.1,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:21,h:14.97},"tab.big":{d:[["M",20.16,-21.66],["c",.24,-.09,.66,.09,.78,.36],["c",.09,.21,.09,.24,-.18,.54],["c",-.78,.81,-1.86,1.44,-2.94,1.71],["c",-.87,.24,-1.71,.24,-2.55,.03],["l",-.06,-.03],["l",-.18,.99],["c",-.33,1.98,-.75,4.26,-.96,5.04],["c",-.42,1.65,-1.26,3.18,-2.28,4.14],["c",-.57,.57,-1.17,.9,-1.86,1.08],["c",-.18,.06,-.33,.06,-.66,.06],["c",-.54,0,-.78,-.03,-1.23,-.27],["c",-.39,-.18,-.66,-.39,-1.38,-.99],["c",-.3,-.24,-.66,-.51,-.75,-.57],["c",-.21,-.15,-.27,-.24,-.24,-.45],["c",.06,-.27,.36,-.6,.6,-.66],["c",.18,-.03,.33,.06,.9,.57],["c",.48,.42,.72,.57,.93,.69],["c",.66,.33,1.38,.21,1.95,-.36],["c",.63,-.6,1.05,-1.62,1.23,-3],["c",.03,-.18,.09,-.66,.09,-1.11],["c",.09,-1.56,.33,-3.81,.57,-5.49],["c",.06,-.33,.09,-.63,.09,-.63],["c",-.03,-.03,-.81,-.12,-1.02,-.12],["c",-.57,0,-1.32,.12,-1.8,.33],["c",-.87,.3,-1.35,.78,-1.5,1.41],["c",-.18,.63,.09,1.26,.66,1.65],["c",.12,.06,.15,.12,.18,.24],["c",.09,.27,.06,.57,-.09,.75],["c",-.03,.06,-.12,.09,-.27,.15],["c",-.72,.21,-1.44,.15,-2.1,-.18],["c",-.54,-.27,-.96,-.66,-1.2,-1.14],["c",-.39,-.75,-.33,-1.74,.15,-2.52],["c",.27,-.42,.84,-.93,1.41,-1.23],["c",1.17,-.57,2.88,-.9,4.8,-.9],["c",.69,0,.78,0,1.08,.06],["c",.45,.09,1.11,.3,2.07,.6],["c",1.47,.48,1.83,.57,2.55,.54],["c",1.02,-.06,2.04,-.45,2.94,-1.11],["c",.12,-.09,.24,-.18,.27,-.18],["z"],["m",-5.88,13.05],["c",.21,-.03,.81,0,1.08,.06],["c",.48,.12,.9,.42,.99,.69],["c",.03,.09,.03,.15,0,.27],["c",0,.09,-.03,.57,-.06,1.08],["c",-.09,2.19,-.24,5.76,-.39,8.28],["c",-.06,1.53,-.06,1.77,.03,2.01],["c",.09,.18,.15,.24,.3,.3],["c",.24,.12,.54,.06,1.23,-.27],["c",.57,-.27,.66,-.3,.75,-.24],["c",.09,.06,.18,.3,.18,.45],["c",0,.33,-.15,.51,-.45,.63],["c",-.12,.03,-.39,.15,-.6,.27],["c",-1.17,.6,-1.38,.69,-1.8,.72],["c",-.45,.03,-.78,-.09,-1.08,-.39],["c",-.39,-.42,-.66,-1.2,-1.02,-3.12],["c",-.24,-1.23,-.36,-2.07,-.54,-3.75],["l",0,-.18],["l",-.36,.45],["c",-.6,.75,-1.32,1.59,-1.95,2.25],["c",-.15,.18,-.27,.3,-.27,.33],["c",0,0,.06,.09,.15,.18],["c",.24,.33,.6,.57,1.05,.69],["c",.18,.06,.3,.06,.69,.06],["l",.48,.03],["l",.06,.12],["c",.15,.27,.03,.72,-.21,.9],["c",-.18,.12,-.93,.27,-1.41,.27],["c",-.84,0,-1.59,-.3,-1.98,-.84],["l",-.12,-.15],["l",-.45,.42],["c",-.99,.87,-1.53,1.32,-2.16,1.74],["c",-.78,.51,-1.5,.84,-2.1,.93],["c",-.69,.12,-1.2,.03,-1.95,-.42],["c",-.21,-.12,-.51,-.27,-.66,-.36],["c",-.24,-.12,-.3,-.18,-.33,-.24],["c",-.12,-.27,.15,-.78,.45,-.93],["c",.24,-.12,.33,-.09,.9,.18],["c",.6,.3,.84,.39,1.2,.36],["c",.87,-.09,1.77,-.69,3.24,-2.31],["c",2.67,-2.85,4.59,-5.94,5.7,-9.15],["c",.15,-.45,.24,-.63,.42,-.81],["c",.21,-.24,.6,-.45,.99,-.51],["z"],["m",-3.99,16.05],["c",.18,0,.69,-.03,1.17,0],["c",3.27,.03,5.37,.75,6,2.07],["c",.45,.99,.12,2.4,-.81,3.42],["c",-.24,.27,-.57,.57,-.84,.75],["c",-.09,.06,-.18,.09,-.18,.12],["c",0,0,.18,.03,.42,.09],["c",1.23,.3,2.01,.81,2.37,1.59],["c",.27,.54,.3,1.32,.09,2.1],["c",-.12,.36,-.45,1.05,-.69,1.35],["c",-.87,1.17,-2.1,1.92,-3.54,2.25],["c",-.36,.06,-.48,.06,-.96,.06],["c",-.45,0,-.66,0,-.84,-.03],["c",-.84,-.18,-1.47,-.51,-2.07,-1.11],["c",-.33,-.33,-.45,-.51,-.45,-.63],["c",0,-.06,.03,-.15,.06,-.24],["c",.18,-.33,.69,-.6,.93,-.48],["c",.03,.03,.15,.12,.27,.24],["c",.39,.42,.99,.57,1.62,.45],["c",1.05,-.21,1.98,-1.02,2.31,-2.01],["c",.48,-1.53,-.48,-2.55,-2.58,-2.67],["c",-.21,0,-.36,-.03,-.42,-.06],["c",-.15,-.09,-.21,-.51,-.06,-.78],["c",.12,-.27,.24,-.33,.6,-.36],["c",.57,-.06,1.11,-.42,1.5,-.99],["c",.48,-.72,.54,-1.59,.18,-2.31],["c",-.12,-.21,-.45,-.54,-.69,-.69],["c",-.33,-.21,-.93,-.45,-1.35,-.51],["l",-.12,-.03],["l",-.06,.48],["c",-.54,2.94,-1.14,6.24,-1.29,6.75],["c",-.33,1.35,-.93,2.61,-1.65,3.6],["c",-.3,.36,-.81,.9,-1.14,1.14],["c",-.3,.24,-.84,.48,-1.14,.57],["c",-.33,.09,-.96,.09,-1.26,.03],["c",-.45,-.12,-.87,-.39,-1.53,-.96],["c",-.24,-.15,-.51,-.39,-.63,-.48],["c",-.3,-.21,-.33,-.33,-.21,-.63],["c",.12,-.18,.27,-.36,.42,-.45],["c",.27,-.12,.36,-.09,.87,.33],["c",.78,.6,1.08,.75,1.65,.72],["c",.45,-.03,.81,-.21,1.17,-.54],["c",.87,-.9,1.38,-2.85,1.38,-5.37],["c",0,-.6,.03,-1.11,.12,-2.04],["c",.06,-.69,.24,-2.01,.33,-2.58],["c",.06,-.24,.06,-.42,.06,-.42],["c",0,0,-.12,.03,-.21,.09],["c",-1.44,.57,-2.16,1.65,-1.74,2.55],["c",.09,.15,.18,.24,.27,.33],["c",.24,.21,.3,.27,.33,.39],["c",.06,.24,0,.63,-.15,.78],["c",-.09,.12,-.54,.21,-.96,.24],["c",-1.02,.03,-2.01,-.48,-2.43,-1.32],["c",-.21,-.45,-.27,-.9,-.15,-1.44],["c",.06,-.27,.21,-.66,.39,-.93],["c",.87,-1.29,3,-2.22,5.64,-2.43],["z"]],w:19.643,h:43.325},"tab.tiny":{d:[["M",16.02,-17.25],["c",.12,-.09,.15,-.09,.27,-.09],["c",.21,.03,.51,.3,.51,.45],["c",0,.06,-.12,.18,-.3,.36],["c",-1.11,1.08,-2.55,1.59,-3.84,1.41],["c",-.15,-.03,-.33,-.06,-.39,-.09],["c",-.06,-.03,-.09,-.03,-.12,-.03],["c",0,0,-.06,.42,-.15,.93],["c",-.33,2.01,-.66,3.69,-.84,4.26],["c",-.42,1.41,-1.23,2.67,-2.16,3.33],["c",-.27,.18,-.75,.42,-.99,.48],["c",-.3,.09,-.72,.09,-1.02,.06],["c",-.45,-.09,-.84,-.33,-1.53,-.9],["c",-.21,-.18,-.51,-.39,-.63,-.48],["c",-.27,-.21,-.3,-.24,-.3,-.36],["c",0,-.12,.09,-.36,.18,-.45],["c",.09,-.09,.27,-.18,.36,-.18],["c",.12,0,.3,.12,.66,.45],["c",.57,.51,.87,.69,1.23,.72],["c",.93,.06,1.68,-.78,1.98,-2.37],["c",.09,-.39,.15,-.75,.18,-1.53],["c",.06,-.99,.24,-2.79,.42,-4.05],["c",.03,-.3,.06,-.57,.06,-.6],["c",0,-.06,-.03,-.09,-.15,-.12],["c",-.9,-.18,-2.13,.06,-2.76,.57],["c",-.36,.3,-.51,.6,-.51,1.02],["c",0,.45,.15,.75,.48,.99],["c",.06,.06,.15,.18,.18,.24],["c",.12,.24,.03,.63,-.15,.69],["c",-.24,.12,-.6,.15,-.9,.15],["c",-.36,-.03,-.57,-.09,-.87,-.24],["c",-.78,-.36,-1.23,-1.11,-1.2,-1.92],["c",.12,-1.53,1.74,-2.49,4.62,-2.7],["c",1.2,-.09,1.47,-.03,3.33,.57],["c",.9,.3,1.14,.36,1.56,.39],["c",.45,0,.93,-.06,1.38,-.21],["c",.51,-.18,.81,-.33,1.41,-.75],["z"],["m",-4.68,10.38],["c",.39,-.06,.84,0,1.2,.15],["c",.24,.12,.36,.21,.45,.36],["l",.09,.09],["l",-.06,1.41],["c",-.09,2.19,-.18,3.96,-.27,5.49],["c",-.03,.78,-.06,1.59,-.06,1.86],["c",0,.42,0,.48,.06,.57],["c",.06,.18,.18,.24,.36,.27],["c",.18,0,.39,-.06,.84,-.27],["c",.45,-.21,.54,-.24,.63,-.18],["c",.12,.12,.15,.54,.03,.69],["c",-.03,.03,-.15,.12,-.27,.18],["c",-.15,.03,-.3,.12,-.36,.15],["c",-.87,.45,-1.02,.51,-1.26,.57],["c",-.33,.09,-.6,.06,-.84,-.06],["c",-.42,-.18,-.63,-.6,-.87,-1.44],["c",-.3,-1.23,-.57,-2.97,-.66,-4.08],["c",0,-.18,-.03,-.3,-.03,-.33],["l",-.06,.06],["c",-.18,.27,-1.11,1.38,-1.68,2.01],["l",-.33,.33],["l",.06,.09],["c",.06,.15,.27,.33,.48,.42],["c",.27,.18,.51,.24,.96,.27],["l",.39,0],["l",.03,.12],["c",.12,.21,.03,.57,-.15,.69],["c",-.03,.03,-.21,.09,-.36,.15],["c",-.27,.06,-.39,.06,-.75,.06],["c",-.48,0,-.75,-.03,-1.08,-.21],["c",-.21,-.12,-.51,-.36,-.57,-.48],["l",-.03,-.09],["l",-.39,.36],["c",-1.47,1.35,-2.49,1.98,-3.42,2.13],["c",-.54,.09,-.96,-.03,-1.62,-.39],["c",-.21,-.15,-.45,-.27,-.54,-.3],["c",-.18,-.09,-.21,-.21,-.12,-.45],["c",.06,-.27,.33,-.48,.54,-.48],["c",.03,0,.27,.09,.48,.21],["c",.48,.24,.69,.27,.99,.27],["c",.6,-.06,1.17,-.42,2.1,-1.35],["c",2.22,-2.22,4.02,-4.98,4.95,-7.59],["c",.21,-.57,.3,-.78,.48,-.93],["c",.15,-.15,.42,-.27,.66,-.33],["z"],["m",-3.06,12.84],["c",.27,-.03,1.68,0,2.01,.03],["c",1.92,.18,3.15,.69,3.63,1.5],["c",.18,.33,.24,.51,.21,.93],["c",0,.45,-.06,.72,-.24,1.11],["c",-.24,.51,-.69,1.02,-1.17,1.35],["c",-.21,.15,-.21,.15,-.12,.18],["c",.72,.15,1.11,.3,1.5,.57],["c",.39,.24,.63,.57,.75,.96],["c",.09,.3,.09,.96,0,1.29],["c",-.15,.57,-.39,1.05,-.78,1.5],["c",-.66,.75,-1.62,1.32,-2.61,1.53],["c",-.27,.06,-.42,.06,-.84,.06],["c",-.48,0,-.57,0,-.81,-.06],["c",-.6,-.18,-1.05,-.42,-1.47,-.81],["c",-.36,-.39,-.42,-.51,-.3,-.75],["c",.12,-.21,.39,-.39,.6,-.39],["c",.09,0,.15,.03,.33,.18],["c",.12,.12,.27,.24,.36,.27],["c",.96,.48,2.46,-.33,2.82,-1.5],["c",.24,-.81,-.03,-1.44,-.69,-1.77],["c",-.39,-.21,-1.02,-.33,-1.53,-.33],["c",-.18,0,-.21,0,-.27,-.09],["c",-.06,-.09,-.06,-.3,-.03,-.48],["c",.06,-.18,.18,-.36,.33,-.36],["c",.39,-.06,.51,-.09,.72,-.18],["c",.69,-.36,1.11,-1.23,.99,-2.01],["c",-.09,-.51,-.42,-.9,-.93,-1.17],["c",-.24,-.12,-.6,-.27,-.87,-.3],["c",-.09,-.03,-.09,-.03,-.12,.12],["c",0,.09,-.21,1.11,-.42,2.25],["c",-.66,3.75,-.72,3.99,-1.26,5.07],["c",-.9,1.89,-2.25,2.85,-3.48,2.61],["c",-.39,-.09,-.69,-.27,-1.38,-.84],["c",-.63,-.51,-.63,-.48,-.63,-.6],["c",0,-.18,.18,-.48,.39,-.57],["c",.21,-.12,.3,-.09,.81,.33],["c",.15,.15,.39,.3,.54,.36],["c",.18,.12,.27,.12,.48,.15],["c",.99,.06,1.71,-.78,2.04,-2.46],["c",.12,-.66,.18,-1.14,.21,-2.22],["c",.03,-1.23,.12,-2.25,.36,-3.63],["c",.03,-.24,.06,-.45,.06,-.48],["c",-.06,-.03,-.66,.27,-.9,.42],["c",-.06,.06,-.21,.18,-.33,.3],["c",-.57,.57,-.6,1.35,-.06,1.74],["c",.18,.12,.24,.24,.21,.51],["c",-.03,.3,-.15,.42,-.57,.48],["c",-1.11,.24,-2.22,-.42,-2.43,-1.38],["c",-.09,-.45,.03,-1.02,.3,-1.47],["c",.18,-.24,.6,-.63,.9,-.84],["c",.9,-.6,2.28,-1.02,3.69,-1.11],["z"]],w:15.709,h:34.656},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.85,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84},"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,4],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9}};e.exports={printSymbol:function(e,t,n,r,i){if(!p[n])return null;var a=f(p[n].d);a[0][1]+=e,a[0][2]+=t;for(var s="",o=0;o<a.length;o++)s+=a[o].join(" ");return i.path=s,r.path(i)},getPathForSymbol:function(e,t,n,r,i){if(r=r||1,i=i||1,!p[n])return null;n=f(p[n].d);if(1!==r||1!==i)for(var a=n,s=r,o=i,c=0,l=a.length;c<l;c++)for(var h=a[c],u=1,d=h.length;u<d;u++)h[u]*=u%2?s:o;return n[0][1]+=e,n[0][2]+=t,n},getSymbolWidth:function(e){return p[e]?p[e].w:0},symbolHeightInPitches:function(e){return(p[e]?p[e].h:0)/r.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){p[e]=t}}},5810:function(e){function c(e){switch(e){case"B#":return"H#";case"B♯":return"H♯";case"B":return"H";case"Bb":case"B♭":return"B"}return e}e.exports=function(e,t,n){for(var r=e.split("\n"),i=0;i<r.length;i++){var a,s,o=r[i].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/([ABCDEFG][#b♯♭]?))?/);o&&(a=o[1]||"",s=o[2]||"",o=o[4]||"",n&&(a=c(a),o=c(o)),r[i]=[a,s,o?"/"+o:""].join(t?"":""))}return r.join("\n")}},4750:function(e,t,n){var p=n(3987),m=n(2435),g=n(4331),v=n(2187),b=n(8832);e.exports=function(e,t,n,r,i){if(!t.invisible){var a=0<t.children.length&&"TempoElement"===t.children[0].type;t.elemset=[],b.beginGroup(e.paper,e.controller);for(var s=0;s<t.children.length;s++){var o,c=t.children[s];"TempoElement"===c.type?p(e,c):(o=m(e,c,n),"symbol"===c.type&&c.c&&0<=c.c.indexOf("notehead")&&o.setAttribute("class","abcjs-notehead"))}var l=t.type;if(("note"===t.type||"rest"===t.type)&&(t.counters=e.controller.classes.getCurrent(),l=(l+=" d"+Math.round(1e3*t.durationClass)/1e3).replace(/\./g,"-"),t.abcelem.pitches))for(var h=0;h<t.abcelem.pitches.length;h++)l+=" p"+t.abcelem.pitches[h].pitch;var u,d=b.endGroup(l,t.type);if(d?(t.cloned&&(t.cloned.overrideClasses=d.className.baseVal),t.overrideClasses&&(u=d.classList&&0<d.classList.length?d.classList[0]+" ":"",d.setAttribute("class",u+t.overrideClasses)),a?(t.startChar=t.abcelem.startChar,t.endChar=t.abcelem.endChar,r.add(t,d,!1,i)):(t.elemset.push(d),u=!1,"note"!==t.type&&"tabNumber"!==t.type||(u=!0),r.add(t,d,u,i))):0<t.elemset.length&&r.add(t,t.elemset[0],"note"===t.type,i),t.klass&&v(t.elemset,"mark","","#00ff00"),t.hint&&v(t.elemset,"abcjs-hint","",null),(t.abcelem.abselem=t).heads&&0<t.heads.length){t.notePositions=[];for(var f=0;f<t.heads.length;f++)t.notePositions.push({x:t.heads[f].x+t.heads[f].w/2,y:i.zero-t.heads[f].pitch*g.STEP})}}}},7489:function(e,t,n){var p=n(6454),s=n(7199);function m(e,t,n,r,i,a){n=s(e.calcY(n)),i=s(e.calcY(i)),t=s(t),r=s(r);e=s(n+a);return"M"+t+" "+n+" L"+r+" "+i+"L"+r+" "+s(i+a)+" L"+t+" "+e+"z"}function g(e,t,n,r){return t+(r-e)*n}e.exports=function(e,t){if(0!==t.beams.length){for(var n="",r=0;r<t.beams.length;r++){var i=t.beams[r];if(i.split){u=i.startX,d=i.startY,f=i.endX;for(var a=(i.endY-d)/(f-u),s=[],o=0;o<i.split.length;o+=2)s.push([i.split[o],i.split[o+1]]);for(o=0;o<s.length;o++){var c=g(i.startX,i.startY,a,s[o][0]),l=g(i.startX,i.startY,a,s[o][1]);n+=m(e,s[o][0],c,s[o][1],l,i.dy)}}else n+=m(e,i.startX,i.startY,i.endX,i.endY,i.dy)}var h=("abcjs-d"+t.duration).replace(/\./g,"-"),h=e.controller.classes.generate("beam-elem "+h);return[p(e,{path:n,stroke:"none",fill:e.foregroundColor,class:h})]}var u,d,f}},129:function(e,t,n){var g=n(6764),v=n(4331),b=n(5759);function y(e,t,n,r){return g("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e+n[0],t+r[0],e+n[1],t+r[1],e+n[2],t+r[2],e+n[3],t+r[3],e+n[4],t+r[4],e+n[5],t+r[5],e+n[6],t+r[6])}e.exports=function(e,t,n){var r,i,a,s,o,c,l,h,u,d,f,p,m=t.startVoice.staff.absoluteY-10*v.STEP;return t.endVoice&&t.endVoice.staff?t.endY=t.endVoice.staff.absoluteY-2*v.STEP:t.lastContinuedVoice&&t.lastContinuedVoice.staff?t.endY=t.lastContinuedVoice.staff.absoluteY-2*v.STEP:t.endY=t.startVoice.staff.absoluteY-2*v.STEP,e=e,r=t.x,m=m,i=t.endY,a=t.type,t=t.header,n=n,t&&(e.paper.openGroup({klass:e.controller.classes.generate("staff-extra voice-name"),"data-name":a}),l=m+(i-m)/2,l-=e.controller.getTextSize.baselineToCenter(t,"voicefont","staff-extra voice-name",0,1),b(e,{x:e.padding.left,y:l,text:t,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})),"brace"===a?(l=e,d=a,p=y(h=r,u=m,[7.5,-8,21,0,18.5,-10.5,7.5],[0,(f=i-u)/5.5,f/3.14,f/2,f/2.93,f/4.88,0]),p+=y(h,u,[0,17.5,-7.5,6.6,-5,20,0],[f/2,f/1.46,f/1.22,f,f/1.19,f/1.42,f/2]),h=l.paper.path({path:p,stroke:l.foregroundColor,fill:l.foregroundColor,class:l.controller.classes.generate(d),"data-name":d})):"bracket"===a&&(u=e,f=r,p=m,d=a,f+=v.STEP,r=.75*v.STEP,m=.75*v.STEP,s=g("M %f %f l %f %f l %f %f l %f %f z",f,p-m,0,(i=i-p)+2*m,r,0,0,-(i+2*m)),o=2*v.STEP,c=v.STEP,s=(s+=g("M %f %f q %f %f %f %f q %f %f %f %f z",f+r,p-m,.6*o,.2*c,o,-c,.1*-o,.3*c,-o,c+v.STEP))+g("M %f %f q %f %f %f %f q %f %f %f %f z",f+r,p+m+i,.6*o,.2*-c,o,c,.1*-o,.3*-c,-o,-c-v.STEP),h=u.paper.path({path:s,stroke:u.foregroundColor,fill:u.foregroundColor,class:u.controller.classes.generate(d),"data-name":d})),t&&(h=e.paper.closeGroup()),n.wrapSvgEl({el_type:a,startChar:-1,endChar:-1},h),h}},3245:function(e,t,n){function s(e,t,n,r,i,a,s){return t=l(t),n=l(n),r=l(r),i=l(i),a=l(a),s=l(s),t=o("M %f %f L %f %f M %f %f L %f %f",a,t,s,n,a,r,s,i),c(e,{path:t,highlight:"stroke",stroke:e.foregroundColor,class:e.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})}var o=n(6764),c=n(6454),l=n(7199);e.exports=function(e,t,n){void 0===t.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var r=e.calcY(t.pitch)+4,i=t.anchor1?t.anchor1.x:0,a=t.anchor2?t.anchor2.x:800,t="<"===t.dir?s(e,r+4,r,r+4,r+8,i,a):s(e,r,r+4,r+8,r+4,i,a);return n.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},t),[t]}},1547:function(e){e.exports=function(e,t,n){var r=e.paper.rectBeneath(t);return n&&e.paper.text(n,{x:0,y:t.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),r}},5012:function(e,t,n){var y=n(5537),x=n(7611),w=n(5668),k=n(4331),C=n(3524);e.exports=function(e,t,n,r,i,a,s,o,c,l){var h=new C(e.paper,o,c),u={};t.shouldAddClasses&&(u.klass="abcjs-meta-top"),e.paper.openGroup(u),e.moveY(e.padding.top),w(e,n.topText,h),e.paper.closeGroup(),e.moveY(e.spacing.music);for(var d,f,p,m=[],g=0;g<n.lines.length;g++){t.incrLine();var v,b=n.lines[g];b.staff?(t.shouldAddClasses&&(u.klass="abcjs-staff l"+t.lineNumber),e.paper.openGroup(u),b.vskip&&e.moveY(b.vskip),1<=m.length&&(f=(d=e).spacing.staffSeparation,p=m[m.length-1],v=b.staffGroup,p=-(p.staffs[p.staffs.length-1].bottom-2),(v=(v.staffs[0].top-10+p)*k.STEP)<f&&d.moveY(f-v)),p=e,d=b.staffGroup,y(p,d,f=h,g),f=d.height*k.STEP,p.y+=f,(v=d).line=l+g,m.push(v),e.paper.closeGroup()):b.nonMusic&&(t.shouldAddClasses&&(u.klass="abcjs-non-music"),e.paper.openGroup(u),w(e,b.nonMusic,h),e.paper.closeGroup())}return t.reset(),n.bottomText&&n.bottomText.rows&&0<n.bottomText.rows.length&&(t.shouldAddClasses&&(u.klass="abcjs-meta-bottom"),e.paper.openGroup(u),e.moveY(24),w(e,n.bottomText,h),e.paper.closeGroup()),x(e,i,s,a),{staffgroups:m,selectables:h.getElements()}}},9879:function(e,t,n){var r=n(4777);e.exports=function(e,t,n){void 0===t.pitch&&window.console.error("Dynamic Element y-coordinate not set.");e=r(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 n.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1,decoration:t.dec},e),[e]}},5947:function(e,t,n){var o=n(6764),c=n(5759),l=n(6454),h=n(7199);e.exports=function(e,t,n,r,i){void 0===t.pitch&&window.console.error("Ending Element y-coordinate not set.");var a=h(e.calcY(t.pitch)),s="",r=(t.anchor1&&(n=h(t.anchor1.x+t.anchor1.w),s+=o("M %f %f L %f %f ",n,a,n,h(a+20))),t.anchor2&&(r=h(t.anchor2.x),s+=o("M %f %f L %f %f ",r,a,r,h(a+20))),s+=o("M %f %f L %f %f ",n,a,r,a),e.paper.openGroup({klass:e.controller.classes.generate("ending"),"data-name":"ending"}),l(e,{path:s,stroke:e.foregroundColor,fill:e.foregroundColor,"data-name":"line"}),t.anchor1&&c(e,{x:h(n+5),y:h(e.calcY(t.pitch-.5)),text:t.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:t.text}),e.paper.closeGroup());return i.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},r),[r]}},9045:function(e,t,n){var l=n(6764),h=n(6454),r=n(7199);function u(e,t,n){return r(e+n*t)}var d=[[3.5,-4.8]],f=[[1.5,-1],[.3,-.3],[-3.5,3.8]],p=[[-1.5,2]],m=[[3,4],[3,-4]],g=[[-3,4],[-3,-4]];function v(e,t){for(var n="",r=0;r<e.length;r++)n+="l"+e[r][0]+" "+u(e[r][1],t,e[r][0]);return n}e.exports=function(e,t,n){t.anchor1&&t.anchor2&&t.anchor1.heads&&t.anchor2.heads&&0!==t.anchor1.heads.length&&0!==t.anchor2.heads.length||window.console.error("Glissando Element not set.");var r=e.calcY(t.anchor1.heads[0].pitch),i=e.calcY(t.anchor2.heads[0].pitch),a=t.anchor1.x+t.anchor1.w/2,s=t.anchor2.x+t.anchor2.w/2,o=(o=s-a,c=i-r,Math.sqrt(o*o+c*c)),c=t.anchor1.w/2+4,t=t.anchor2.w/2+4,s=(i-r)/(s-a),r=u(r,s,c),i=(u(i,s,-t),Math.max(2,Math.floor((o-c-t-10)/6))),o=function(e,t,n,r,i){var a,s=l("M %f %f",t,n);for(s+=v(d,i),a=0;a<r;a++)s+=v(m,i);for(s+=v(f,i),a=0;a<r;a++)s+=v(g,i);return s+=v(p,i)+"z",h(e,{path:s,highlight:"stroke",stroke:e.foregroundColor,class:e.controller.classes.generate("decoration"),"data-name":"glissando"})}(e,a+c,r,i,s);return n.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},o),[o]}},8832:function(e,t,n){var r=n(7199);function i(){this.ingroup=!1}i.prototype.beginGroup=function(e,t){this.paper=e,this.controller=t,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},i.prototype.isInGroup=function(){return this.ingroup},i.prototype.addPath=function(e){if(0!==(e=e||[]).length){e[0][0]="m",e[0][1]=r(e[0][1]-this.lastM[0]),e[0][2]=r(e[0][2]-this.lastM[1]),this.lastM[0]+=e[0][1],this.lastM[1]+=e[0][2],this.path.push(e[0]);for(var t=1,n=e.length;t<n;t++)"m"===e[t][0]&&(this.lastM[0]+=e[t][1],this.lastM[1]+=e[t][2]),this.path.push(e[t])}},i.prototype.endGroup=function(e,t){this.ingroup=!1;for(var n=0;n<this.path.length;n++)this.path[n].join(" ");this.path=[];var r=this.paper.closeGroup();return r&&(r.setAttribute("class",this.controller.classes.generate(e)),r.setAttribute("fill",this.controller.renderer.foregroundColor),r.setAttribute("stroke","none"),r.setAttribute("data-name",t)),r};n=new i;e.exports=n},5668:function(e,t,n){var s=n(4169),o=n(5759);e.exports=function(e,t,n){for(var r=0;r<t.rows.length;r++){var i,a=t.rows[r];a.absmove?e.absolutemoveY(a.absmove):a.move?e.moveY(a.move):a.text||a.phrases?(i=a.left||0,i=o(e,{x:i,y:e.y,text:a.text,phrases:a.phrases,"dominant-baseline":a["dominant-baseline"],type:a.font,klass:a.klass,name:a.name,anchor:a.anchor}),a.absElemType&&n.wrapSvgEl({el_type:a.absElemType,name:a.name,startChar:a.startChar,endChar:a.endChar,text:a.text},i)):a.separator?s(e,a.separator):a.startGroup?e.paper.openGroup({klass:a.klass,"data-name":a.name}):a.endGroup&&(i=e.paper.closeGroup(),a.absElemType&&n.wrapSvgEl({el_type:a.absElemType,name:a.name,startChar:a.startChar,endChar:a.endChar,text:""},i))}}},6637:function(e,t,n){var h=n(6764),u=n(7199);e.exports=function(e,t,n,r,i,a,s){var o=e.foregroundColor,c=(t=u(t),n=u(n),u(r-s)),l=u(r+s);if(e.firefox112)return r={x1:t,x2:n,y1:r+=s/2,y2:r,stroke:e.foregroundColor,"stroke-width":Math.abs(2*s)},i&&(r.class=i),a&&(r["data-name"]=a),e.paper.lineToBack(r);s={path:h("M %f %f L %f %f L %f %f L %f %f z",t,c,n,c,n,l,t,l),stroke:"none",fill:o};return a&&(s["data-name"]=a),i&&(s.class=i),e.paper.pathToBack(s)}},6454:function(e){e.exports=function(e,t,n){return e.paper.path(t)}},3624:function(e,t,n){var u=n(8832),d=n(7199);e.exports=function(e,t,n,r,i,a,s){n<0||r<i?(c=d(i),i=d(r),r=c):(r=d(r),i=d(i)),t=d(t);var o,c=d(t+n);if(e.firefox112)return o={x1:t+=n/2,x2:t,y1:r,y2:i,stroke:e.foregroundColor,"stroke-width":Math.abs(n)},a&&(o.class=a),s&&(o["data-name"]=s),e.paper.lineToBack(o);for(var l=[["M",t,r],["L",t,i],["L",c,i],["L",c,r],["z"]],h=(o={path:""},0);h<l.length;h++)o.path+=l[h].join(" ");return a&&(o.class=a),s&&(o["data-name"]=s),u.isInGroup()||(o.stroke="none",o.fill=e.foregroundColor),e.paper.pathToBack(o)}},4777:function(e,t,n){var f=n(5759),p=n(6020),m=n(8832);e.exports=function(e,t,n,r,i){var a,s,o;if(!r)return null;if(1<r.length&&r.indexOf(".")<0){var c=m.isInGroup()?"":i.klass;e.paper.openGroup({"data-name":i.name,klass:c});for(var l=0,h=0;h<r.length;h++){var u=r[h],d=p.getYCorr(u);(a=p.printSymbol(t+l,e.calcY(n+d),u,e.paper,{stroke:i.stroke,fill:i.fill}))?h<r.length-1&&(l+=(s=r[h+1],o=void 0,o=p.getSymbolWidth(u=u),"f"===u&&"f"===s&&(o=2*o/3),"p"===u&&"p"===s&&(o=5*o/6),o="f"===u&&"z"===s?5*o/8:o)):f(e,{x:t,y:e.y,text:"no symbol:"+r,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}return e.paper.closeGroup()}return d=p.getYCorr(r),(a=m.isInGroup()?p.printSymbol(t,e.calcY(n+d),r,e.paper,{"data-name":i.name}):p.printSymbol(t,e.calcY(n+d),r,e.paper,{klass:i.klass,stroke:i.stroke,fill:i.fill,"data-name":i.name}))?a:(f(e,{x:t,y:e.y,text:"no symbol:"+r,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}},2435:function(e,t,n){var d=n(5759),f=n(3624),p=n(7865),m=n(4777);e.exports=function(e,t,n){void 0===t.pitch&&window.console.error(t.type+" Relative Element y-coordinate not set.");var r,i,a,s,o,c,l=e.calcY(t.pitch);switch(t.type){case"symbol":if(null===t.c)return null;var h="symbol";t.klass&&(h+=" "+t.klass),t.graphelem=m(e,t.x,t.pitch,t.c,{scalex:t.scalex,scaley:t.scaley,klass:e.controller.classes.generate(h),name:t.name});break;case"debug":t.graphelem=d(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 h="tabnumberfont",u="abcjs-tab-number";t.isGrace&&(h="tabgracefont",l+=2.5,u="tab-grace"),t.graphelem=d(e,{x:t.x,y:l,text:""+t.c,type:h,klass:e.controller.classes.generate(u),anchor:"middle",centerVertically:!1,dim:t.dim,cursor:"default"},!1);break;case"barNumber":t.graphelem=d(e,{x:t.x,y:l,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=d(e,{x:t.x,y:l,text:t.c,type:"vocalfont",klass:e.controller.classes.generate("lyric"),anchor:"middle",dim:t.dim,name:"lyric"},!1);break;case"chord":t.graphelem=d(e,{x:t.x,y:l,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=d(e,{x:t.x,y:l+6,text:t.c,type:"annotationfont",klass:e.controller.classes.generate("annotation"),anchor:t.anchor,centerVertically:!0,dim:t.dim},!1);break;case"text":t.graphelem=d(e,{x:t.x,y:l,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=d(e,{x:t.x+t.w/2,y:l,text:t.c,type:"tempofont",klass:e.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:t.dim},!1);break;case"part":t.graphelem=d(e,{x:t.x,y:l,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=f(e,t.x,t.linewidth+e.lineThickness,l,n||e.calcY(t.pitch2),null,"bar");break;case"stem":h=0<t.linewidth?t.linewidth+e.lineThickness:t.linewidth-e.lineThickness;t.graphelem=f(e,t.x,h,l,e.calcY(t.pitch2),"abcjs-stem","stem");break;case"ledger":t.graphelem=p(e,t.x,t.x+t.w,t.pitch,"abcjs-ledger","ledger",.35+e.lineThickness)}return 1!==t.scalex&&t.graphelem&&(r=e.paper,i=t.graphelem,a=t.scalex,s=t.scaley,o=t.x,c=l,r.setAttributeOnElement(i,{style:"transform:scale("+a+","+s+");transform-origin:"+o+"px "+c+"px;"})),t.graphelem}},7199:function(e){e.exports=function(e){return parseFloat(e.toFixed(2))}},3524:function(e,t,n){var r=n(5741),i=n(5829);function a(e,t,n){this.elements=[],this.paper=e,this.tuneNumber=n,this.selectTypes=t}a.prototype.getElements=function(){return this.elements},a.prototype.add=function(e,t,n,r){var i;this.canSelect(e)&&(i=void 0===this.selectTypes?{selectable:!1,"data-index":this.elements.length}:{selectable:!0,tabindex:0,"data-index":this.elements.length},this.paper.setAttributeOnElement(t,i),i={absEl:e,svgEl:t,isDraggable:n},void 0!==r&&(i.staffPos=r),this.elements.push(i))},a.prototype.canSelect=function(e){return!(!1===this.selectTypes||!e||!e.abcelem||!0!==this.selectTypes&&!(void 0===this.selectTypes?"note"===e.abcelem.el_type||"tabNumber"===e.abcelem.el_type:0<=this.selectTypes.indexOf(e.abcelem.el_type)))},a.prototype.wrapSvgEl=function(e,t){e={tuneNumber:this.tuneNumber,abcelem:e,elemset:[t],highlight:r,unhighlight:i};this.add(e,t,!1)},e.exports=a},4169:function(e){e.exports=function(e,t){var n=Math.round(e.y),r=(e.controller.width-t)/2,t=r+t;e.paper.pathToBack({path:"M "+r+" "+n+" L "+t+" "+n+" L "+t+" "+(n+1)+" L "+r+" "+(n+1)+" L "+r+" "+n+" z",stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:e.controller.classes.generate("defined-text")})}},7611:function(e){e.exports=function(e,t,n,r){var t=(t+e.padding.left+e.padding.right)*n,i=(e.y+e.padding.bottom)*n,a=(e.isPrint&&(i=Math.max(i,1056)),""!==e.ariaLabel&&(a="Sheet Music",e.abctune&&e.abctune.metaText&&e.abctune.metaText.title&&(a+=' for "'+e.abctune.metaText.title+'"'),e.paper.setTitle(a),a=e.ariaLabel||a,e.paper.setAttribute("aria-label",a)),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(" ")+"}"),{overflow:"hidden"});"resize"===r?e.paper.setResponsiveWidth(t,i):(a.width="",a.height=i+"px",n<1?(a.width=t+"px",e.paper.setSize(t/n,i/n)):e.paper.setSize(t,i)),e.paper.setScale(n),e.paper.setParentStyles(a)}},6764:function(e){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){for(var e,t,n,r,i=0,a=arguments[i++],s=[];a;){if(t=/^[^\x25]+/.exec(a))s.push(t[0]);else if(t=/^\x25{2}/.exec(a))s.push("%");else{if(!(t=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a)))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 "+o(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]&&0<e?"+"+e:e,n=t[3]?"0"==t[3]?"0":t[3][1]:" ",r=t[5]-String(e).length,n=t[5]?str_repeat(n,r):"",s.push(t[4]?e+n:n+e)}a=a.substring(t[0].length)}return s.join("")}},5537:function(e,t,n){var B=n(4331),s=n(129),P=n(3145),L=n(7641),O=n(1547),z=n(3624),H=n(5668);function D(e,t,n,r,i){if(n)for(var a=0;a<n.length;a++)n[a].isStartVoice(r)&&(n[a].startY=t-10*B.STEP,n[a].elemset=s(e,n[a],i))}e.exports=function(i,e,t,n){for(var a,r=i.y,s=0;s<e.staffs.length;s++){var o=e.staffs[s];if(i.moveY(B.STEP,o.top),o.absoluteY=i.y,i.showDebug){if(0<=i.showDebug.indexOf("box")&&o.voices){c=void 0;l=void 0;h=void 0;u=void 0;d=void 0;f=void 0;p=void 0;m=void 0;g=void 0;v=void 0;y=void 0;x=void 0;b=void 0;var c=i;var l=e.voices;var h=o.voices;for(var u=0;u<h.length;u++)for(var d=l[h[u]].children,f=0;f<d.length;f++){var p=d[f],m=p.getFixedCoords();if(!p.invisible&&void 0!==m.t&&void 0!==m.b){var g=(m.t-m.b)*B.STEP;O(c,{x:m.x,y:c.calcY(m.t),width:m.w,height:g,fill:"#88e888","fill-opacity":.4,stroke:"#4aa93d","stroke-opacity":.8});for(var v=0;v<p.children.length;v++){var b,y=p.children[v],x=y.getChordDim();x&&(b=c.calcY(y.pitch),b+=y.dim.font.size*y.getLane(),O(c,{x:x.left,y:b,width:x.right-x.left,height:y.dim.font.size,fill:"none",stroke:"#4aa93d","stroke-opacity":.8}))}}}}0<=i.showDebug.indexOf("grid")&&(i.paper.dottedLine({x1:i.padding.left,x2:i.padding.left+i.controller.width,y1:r,y2:r,stroke:"#0000ff"}),O(i,{x:i.padding.left,y:i.calcY(o.originalTop),width:i.controller.width,height:i.calcY(o.originalBottom)-i.calcY(o.originalTop),fill:i.foregroundColor,stroke:i.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),a=0,A(o,"chordHeightAbove"),A(o,"chordHeightBelow"),A(o,"dynamicHeightAbove"),A(o,"dynamicHeightBelow"),A(o,"endingHeightAbove"),A(o,"lyricHeightAbove"),A(o,"lyricHeightBelow"),A(o,"partHeightAbove"),A(o,"tempoHeightAbove"),A(o,"volumeHeightAbove"),A(o,"volumeHeightBelow"))}i.moveY(B.STEP,-o.bottom),i.showDebug&&0<=i.showDebug.indexOf("grid")&&i.paper.dottedLine({x1:i.padding.left,x2:i.padding.left+i.controller.width,y1:i.y,y2:i.y,stroke:"#0000aa"})}for(var w=2,k=0,C=0;C<e.voices.length;C++){var T,_,S=e.voices[C].staff,E=e.voices[C].tabNameInfos,M=(i.y=S.absoluteY,i.controller.classes.incrVoice(),e.voices[C].duplicate||(_=_||i.calcY(10),T=i.calcY(w),0!==S.lines&&(S.linePitch&&(w=S.linePitch),i.controller.classes.newMeasure(),T=(M=L(i,e.startx,e.w,S.lines,S.linePitch,.35))[1],S.bottomLine=T,S.topLine=M[0],S.hasTab&&(k=S.topLine),S.hasStaff&&(k=S.hasStaff.topLine,e.voices[C].barto=!0,e.voices[C].topLine=_)),D(i,S.absoluteY,e.brace,C,t),D(i,S.absoluteY,e.bracket,C,t)),P(i,e.voices[C],k,t,{top:r,zero:i.y,height:e.height*B.STEP}),0);E&&((S={rows:[]}).rows.push({absmove:T+2}),S.rows.push({left:e.startx+8,text:E.name,font:"tablabelfont",klass:"text instrument-name",anchor:"start"}),S.rows.push({move:E.textSize.height}),H(i,S),M=E.textSize.height),i.controller.classes.newMeasure(),e.voices[C].duplicate||(k=i.calcY(2+M))}i.controller.classes.newMeasure();var N=e.staffs.length;function A(e,t){var n,r=["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)"];e.positionY&&e.positionY[t]&&(n=e.specialY[t]*B.STEP,"chordHeightAbove"===t&&e.specialY.chordLines&&e.specialY.chordLines.above&&(n*=e.specialY.chordLines.above),"chordHeightBelow"===t&&e.specialY.chordLines&&e.specialY.chordLines.below&&(n*=e.specialY.chordLines.below),O(i,{x:i.padding.left,y:i.calcY(e.positionY[t]),width:i.controller.width,height:n,fill:r[a],stroke:r[a],"fill-opacity":.4,"stroke-opacity":.4},t.substr(0,4)),6<(a+=1)&&(a=0))}1<N&&(_=e.staffs[0].topLine,T=e.staffs[N-1].bottomLine,z(i,e.startx,.6,_,T,null)),i.y=r}},7865:function(e,t,n){var o=n(6637);e.exports=function(e,t,n,r,i,a,s){r=e.calcY(r);return o(e,t,n,r,i,a,s)}},7641:function(e,t,n){var d=n(7865);e.exports=function(e,t,n,r,i,a){var s="abcjs-top-line",o=i?i:2,c=(e.paper.openGroup({prepend:!0,klass:e.controller.classes.generate("abcjs-staff")}),0),l=0;if(1===r)d(e,t,n,6,s,null,a+e.lineThickness),c=e.calcY(10),l=e.calcY(2);else for(var h=r-1;0<=h;h--){var u=(h+1)*o,l=e.calcY(u);0===c&&(c=l),d(e,t,n,u,s,null,a+e.lineThickness),s=void 0}return e.paper.closeGroup(),[c,l]}},3987:function(e,t,n){var o=n(2435),c=n(5759);e.exports=function(e,t){var n=t.x;void 0===t.pitch&&window.console.error("Tempo Element y-coordinate not set."),t.tempo.el_type="tempo";var r=e.calcY(t.pitch)+2;if(t.tempo.preString&&(s=c(e,{x:n,y:r,text:t.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"pre"},!0),n+=(a=e.controller.getTextSize.calc(t.tempo.preString,"tempofont","tempo",s).width)+a/t.tempo.preString.length),t.note){t.note.setX(n);for(var i=0;i<t.note.children.length;i++)o(e,t.note.children[i],n);n+=t.note.w+5;var a="= "+t.tempo.bpm,s=(s=c(e,{x:n,y:r,text:a,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"beats"}),e.controller.getTextSize.calc(a,"tempofont","tempo",s).width);n+=s+s/a.length}t.tempo.postString&&c(e,{x:n,y:r,text:t.tempo.postString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"post"},!0)}},5759:function(e,t,n){var l=n(7199);e.exports=function(e,t,n){var r,i=t.y;if(t.phrases)return e.paper.richTextLine(t.phrases,t.x,t.y,t.klass,t.anchor);t.lane&&(c=.25*t.dim.font.size,i+=(t.dim.font.size+c)*t.lane),t.dim?(r=t.dim).attr.class=t.klass:r=e.controller.getFontAndAttr.calc(t.type,t.klass),t.anchor&&(r.attr["text-anchor"]=t.anchor),t["dominant-baseline"]&&(r.attr["dominant-baseline"]=t["dominant-baseline"]),r.attr.x=t.x,r.attr.y=i,t.centerVertically||(r.attr.y+=r.font.size),"debugfont"===t.type&&(console.log("Debug msg: "+t.text),r.attr.stroke="#ff0000"),t.cursor&&(r.attr.cursor=t.cursor);var a,s,o,c=(c=t.text.replace(/\n\n/g,"\n \n")).replace(/^\n/," \n"),c=(r.font.box&&(n||e.paper.openGroup({klass:r.attr.class,fill:e.foregroundColor,"data-name":t.name}),"end"===r.attr["text-anchor"]?r.attr.x-=r.font.padding:"start"===r.attr["text-anchor"]&&(r.attr.x+=r.font.padding),r.attr.y+=r.font.padding,delete r.attr.class),t.noClass&&delete r.attr.class,r.attr.x=l(r.attr.x),r.attr.y=l(r.attr.y),t.name&&(r.attr["data-name"]=t.name),e.paper.text(c,r.attr));return r.font.box&&(a=c.getBBox(),s=0,"middle"===r.attr["text-anchor"]?s=a.width/2+r.font.padding:"end"===r.attr["text-anchor"]&&(s=a.width+2*r.font.padding),o=0,t.centerVertically&&(o=a.height-r.font.padding),e.paper.rect({"data-name":"box",x:Math.round(t.x-s),y:Math.round(i-o),width:Math.round(a.width+2*r.font.padding),height:Math.round(a.height+2*r.font.padding)}),n||(c=e.paper.closeGroup())),c}},3272:function(e,t,n){var v=n(6764),b=n(7199);e.exports=function(e,t,n,r,i){n=n,r=r,!(a=t).anchor1||!a.anchor2||a.anchor1.pitch===a.anchor2.pitch&&0===a.internalNotes.length?a.isTie=!0:a.isTie=!1,a.isTie?(a.calcTieDirection(),a.calcX(n,r),a.calcTieY()):(a.calcSlurDirection(),a.calcX(n,r),a.calcSlurY()),a.avoidCollisionAbove();var a,s,o,c,l,h,u,d,f,n="",r=(t.anchor1?n+="abcjs-start-m"+t.anchor1.parent.counters.measure+"-n"+t.anchor1.parent.counters.note:n+="abcjs-start-edge",t.anchor2?n+=" abcjs-end-m"+t.anchor2.parent.counters.measure+"-n"+t.anchor2.parent.counters.note:n+=" abcjs-end-edge",t.hint&&(n="abcjs-hint"),t.fixedY?1.5:0),p=(a=e,e=t.startX,m=t.endX,g=t.startY+r,r=t.endY+r,p=t.above,n=n,s=t.isTie,o=t.dotted,c=s?1.2:1.5,e=b(e+6),m=b(m+4),r+=p?c:-c,c=b(a.calcY(g+=p?c:-c)),g=b(a.calcY(r)),r=m-e,l=g-c,h=Math.sqrt(r*r+l*l),r/=h,l/=h,h/=3.5,p=(p?-1:1)*Math.min(s?10:25,Math.max(4,h)),u=b(e+h*r-p*l),d=b(c+h*l+p*r),f=b(m-h*r-p*l),h=b(g-h*l+p*r),n?n+=" slur":n="slur",n+=s?" tie":" legato",o?(n+=" dotted",p=v("M %f %f C %f %f %f %f %f %f",e,c,u,d,f,h,m,g),a.paper.path({path:p,stroke:a.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:a.controller.classes.generate(n),"data-name":s?"tie":"slur"})):(o=v("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",e,c,u,d,f,h,m,g,b(f-2*l),b(h+2*r),b(u-2*l),b(d+2*r),e,c),a.paper.path({path:o,stroke:"none",fill:a.foregroundColor,class:a.controller.classes.generate(n),"data-name":s?"tie":"slur"}))),m=-1,g=(t.anchor1&&!t.isTie&&(m=t.anchor1.parent.abcelem.startChar-1),-1);return t.anchor2&&!t.isTie&&(g=t.anchor2.parent.abcelem.endChar+1),i.wrapSvgEl({el_type:"slur",startChar:m,endChar:g},p),[p]}},4322:function(e,t,n){var i=n(6764),d=n(5759),f=n(6454),a=n(7199);function p(e,t,n,r){return i("M %f %f L %f %f",a(e),a(t),a(n),a(r))}e.exports=function(e,t,n){e.paper.openGroup({klass:e.controller.classes.generate("triplet "+t.durationClass),"data-name":"triplet"}),t.hasBeam||(r=e,i=t.anchor1.x,a=t.startNote,s=t.anchor2.x+t.anchor2.w,o=t.endNote,a=r.calcY(a),c="",l=i+(s-i)/2,h=((o=r.calcY(o))-a)/(s-i),u=l-8,l+=8,c=(c=(c=(c+=p(i,a,i,a+5))+p(s,o,s,o+5))+p(i,a,u,a+(u-i)*h))+p(l,a+(l-i)*h,s,o),f(r,{path:c,stroke:r.foregroundColor,"data-name":"triplet-bracket"})),d(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 r,i,a,s,o,c,l,h,u=e.paper.closeGroup();return n.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},u),u}},3145:function(e,t,n){var p=n(9045),m=n(3245),g=n(9879),v=n(4322),b=n(5947),y=n(3272),x=n(7489),w=n(5759),k=n(4750);e.exports=function(e,t,n,r,i){var a=t.w-1;e.staffbottom=t.staff.bottom;var s,o,c=e.foregroundColor;t.color&&(e.foregroundColor=t.color),t.header&&(o=w(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),r.wrapSvgEl({el_type:"voiceName",startChar:-1,endChar:-1,text:t.header},o));for(var l,h=!1,u=0;u<t.children.length;u++){"note"!==(s=t.children[u]).type&&"rest"!==s.type||(h=!0);var d=!1;"staff-extra"===s.type||e.controller.classes.isInMeasure()||(e.controller.classes.startMeasure(),d=!0),t.staff.isTabStaff&&(s.invisible=!1,"bar"==s.type&&s.abcelem.lastBar&&(n=t.topLine)),k(e,s,t.barto||u===t.children.length-1?n:0,r,i),("note"===s.type||"rest"===(l=s).type&&l.abcelem&&l.abcelem.rest&&"spacer"!==l.abcelem.rest.type)&&e.controller.classes.incrNote(),"bar"===s.type&&!d&&h&&e.controller.classes.incrMeasure()}for(e.controller.classes.startMeasure(),u=0;u<t.beams.length;u++){var f=t.beams[u];"bar"===f?e.controller.classes.incrMeasure():x(e,f,r)}for(e.controller.classes.startMeasure(),u=0;u<t.otherchildren.length;u++)if("bar"===(s=t.otherchildren[u]))e.controller.classes.incrMeasure();else switch(s.type){case"GlissandoElem":s.elemset=p(e,s,r);break;case"CrescendoElem":s.elemset=m(e,s,r);break;case"DynamicDecoration":s.elemset=g(e,s,r);break;case"TripletElem":v(e,s,r);break;case"EndingElem":s.elemset=b(e,s,t.startx+10,a,r);break;case"TieElem":s.elemset=y(e,s,t.startx+10,a,r);break;default:console.log(s),k(e,s,t.startx+10,a,r,i)}e.foregroundColor=c}},5253:function(e,t,n){function r(e,t){this.oneSvgPerLine=(t=t||{}).oneSvgPerLine,this.selectionColor=t.selectionColor,this.dragColor=t.dragColor||t.selectionColor,this.dragging=!!t.dragging,this.selectTypes=t.selectTypes,this.responsive=t.responsive,this.space=3*i.SPACE,this.initialClef=t.initialClef,this.expandToWidest=!!t.expandToWidest,this.scale=t.scale?parseFloat(t.scale):0,this.classes=new u({shouldAddClasses:t.add_classes}),.1<this.scale||(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 s(e),this.renderer.setPaddingOverride(t),t.showDebug&&(this.renderer.showDebug=t.showDebug),t.jazzchords&&(this.jazzchords=t.jazzchords),t.accentAbove&&(this.accentAbove=t.accentAbove),t.germanAlphabet&&(this.germanAlphabet=t.germanAlphabet),t.lineThickness&&(this.lineThickness=t.lineThickness),(this.renderer.controller=this).renderer.foregroundColor=t.foregroundColor||"currentColor",void 0!==t.ariaLabel&&(this.renderer.ariaLabel=t.ariaLabel),this.renderer.minPadding=t.minPadding||0,this.reset()}var i=n(4331),a=n(1897),s=n(8510),o=n(3736),c=n(5588),l=n(4726),d=n(1134),h=n(9316),f=n(8068),p=n(1564),u=n(1954),m=n(1328),g=n(9799),v=n(5012),b=n(4321);r.prototype.reset=function(){this.selected=[],this.staffgroups=[],this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset(),this.dragTarget=null,this.dragIndex=-1,this.dragMouseStart={x:-1,y:-1},this.dragYStep=0,this.lineThickness&&this.renderer.setLineThickness(this.lineThickness)},r.prototype.engraveABC=function(e,t,n){void 0===e[0]&&(e=[e]),this.reset();for(var r=0;r<e.length;r++)void 0===t&&(t=r),this.getFontAndAttr=new m(e[r].formatting,this.classes),this.getTextSize=new g(this.getFontAndAttr,this.renderer.paper),this.engraveTune(e[r],t,n)},r.prototype.adjustNonScaledItems=function(e){this.width/=e,this.renderer.adjustNonScaledItems(e)},r.prototype.getMeasureWidths=function(e){this.reset(),this.getFontAndAttr=new m(e.formatting,this.classes),this.getTextSize=new g(this.getFontAndAttr,this.renderer.paper);var t=this.jazzchords;this.setupTune(e,0),this.constructTuneElements(e),p(this.renderer,e,0,this.space);for(var n,r=[],i=!0,a=0;a<e.lines.length;a++){var s=e.lines[a];if(s.staff){if(i&&(r.push(n={left:0,measureWidths:[],total:0}),i=!1),0<s.staffGroup.voices.length)for(var o=s.staffGroup.voices[0],c=!1,l=0,h=0;h<o.children.length;h++){var u=o.children[h];c||u.isClef||u.isKeySig||(c=!0,n.left=u.x,l=u.x),"bar"===u.type&&(n.measureWidths.push(u.x-l),n.total+=u.x-l,l=u.x)}}else i=!0}return this.jazzchords=t,r},r.prototype.setupTune=function(e,t){this.classes.reset(),void 0!==e.formatting.jazzchords&&(this.jazzchords=e.formatting.jazzchords),void 0!==e.formatting.accentAbove&&(this.accentAbove=e.formatting.accentAbove),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,accentAbove:this.accentAbove,germanAlphabet:this.germanAlphabet}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),this.engraver.measureLength=e.getMeterFraction().num/e.getMeterFraction().den,e.formatting.staffwidth?this.width=1.33*e.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;t=e.formatting.scale||this.scale;return void 0===(t="resize"===this.responsive?void 0:t)&&(t=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(t),t},r.prototype.constructTuneElements=function(e){e.topText=new d(e.metaText,e.metaTextInfo,e.formatting,e.lines,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize);for(var t,n,r=!1,i=!1,a=0;a<e.lines.length;a++)(t=e.lines[a]).staff?(i=!0,t.staffGroup=this.engraver.createABCLine(t.staff,r?null:e.metaText.tempo,a),r=!0):t.subtitle?i&&(n=this.width/2+this.renderer.padding.left,t.nonMusic=new l(this.renderer.spacing.subtitle,e.formatting,t.subtitle,n,this.renderer.padding.left,this.getTextSize)):void 0!==t.text?(i=!0,t.nonMusic=new o(t.text,t.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize)):void 0!==t.separator&&t.separator.lineLength&&(i=!0,t.nonMusic=new c(t.separator.spaceAbove,t.separator.lineLength,t.separator.spaceBelow));e.bottomText=new h(e.metaText,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize)},r.prototype.engraveTune=function(e,t,n){var r=this.jazzchords,i=this.setupTune(e,t),a=(this.constructTuneElements(e),p(this.renderer,e,this.width,this.space,this.expandToWidest));if(this.expandToWidest&&a>this.width+1&&(e.topText=new d(e.metaText,e.metaTextInfo,e.formatting,e.lines,a,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize),e.lines&&0<e.lines.length))for(var s=e.lines.length,o=0;o<s;++o){var c=e.lines[o];if(c.nonMusic&&c.nonMusic.rows&&0<c.nonMusic.rows.length)for(var l=c.nonMusic.rows.length,h=0;h<l;++h){var u=c.nonMusic.rows[h];u.left&&(c.subtitle||c.text&&0<c.text.length&&c.text[0].center)&&(u.left=a/2+this.renderer.padding.left)}}e.tablatures&&b.layoutTablatures(this.renderer,e);i=v(this.renderer,this.classes,e,this.width,a,this.responsive,i,this.selectTypes,t,n);this.staffgroups=i.staffgroups,this.selectables=i.selectables,this.oneSvgPerLine?(t=this.renderer.paper.svg.parentNode,this.svgs=function(e,t,n,r){n=n||"Untitled";var i=t.querySelector("svg");"resize"===r&&(t.style.paddingBottom="");for(var a=i.querySelector("style"),s="resize"===r?i.viewBox.baseVal.width:i.getAttribute("width"),o=t.querySelectorAll("svg > g"),c=0,l=[],h=0;h<o.length;h++){var u=o[h],d=u.getBBox(),f=d.y-c,f=d.height+f,p=document.createElement("div"),m="overflow: hidden;",m=("resize"!==r&&(m+="height:"+f+"px;"),p.setAttribute("style",m),function(e){for(var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),n=0;n<e.attributes.length;n++){var r=e.attributes[n];"height"!==r.name&&"aria-label"!=r.name&&t.setAttribute(r.name,r.value)}return t}(i)),g='Sheet Music for "'+n+'" section '+(h+1),f=(m.setAttribute("aria-label",g),"resize"!==r&&m.setAttribute("height",f),"resize"===r&&(m.style.position=""),e.firefox112?f+1:f),f=(m.setAttribute("viewBox","0 "+c+" "+s+" "+f),m.appendChild(a.cloneNode(!0)),document.createElement("title"));f.innerText=g,m.appendChild(f),m.appendChild(u),p.appendChild(m),l.push(m),t.appendChild(p),c=d.y+d.height}return t.removeChild(i),l}(this.renderer,t,e.metaText.title,this.responsive)):this.svgs=[this.renderer.paper.svg],f(this,this.svgs),this.jazzchords=r},r.prototype.getDim=function(e){var t;return e.dim||(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)}),e.dim},r.prototype.addSelectListener=function(e){this.listeners[this.listeners.length]=e},e.exports=r},1954:function(e){function t(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]||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&&0<e.length&&t.push(e),"abcjs-tab-number"===e)return t.join(" ");if("text instrument-name"===e)return"abcjs-text abcjs-instrument-name";if(null!==this.lineNumber&&t.push("l"+this.lineNumber),null!==this.measureNumber&&t.push("m"+this.measureNumber),null!==this.measureNumber&&t.push("mm"+this.measureTotal()),null!==this.voiceNumber&&t.push("v"+this.voiceNumber),e&&(0<=e.indexOf("note")||0<=e.indexOf("rest")||0<=e.indexOf("lyric"))&&null!==this.noteNumber&&t.push("n"+this.noteNumber),0<t.length)for(var t=(t=t.join(" ")).split(" "),n=0;n<t.length;n++)0!==t[n].indexOf("abcjs-")&&0<t[n].length&&(t[n]="abcjs-"+t[n]);return t.join(" ")},e.exports=t},1328:function(e){function t(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.getFamily=function(e){return'"'===e[0]&&'"'===e[e.length-1]?e.substring(1,e.length-1):e},t.prototype.calc=function(e,t){var n="string"==typeof e?(n=this.formatting[e])?{face:n.face,size:Math.round(4*n.size/3),decoration:n.decoration,style:n.style,weight:n.weight,box:n.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},e=this.formatting.fontboxpadding||.1;return n.padding=n.size*e,{font:n,attr:{"font-size":n.size,"font-style":n.style,"font-family":this.getFamily(n.face),"font-weight":n.weight,"text-decoration":n.decoration,class:this.classes.generate(t)}}},e.exports=t},9799:function(e){function t(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.getFamily=function(e){return'"'===e[0]&&'"'===e[e.length-1]?e.substring(1,e.length-1):e},t.prototype.calc=function(e,t,n,r){t="string"==typeof t?this.attr(t,n):{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":this.getFamily(t.face),"font-weight":t.weight,"text-decoration":t.decoration,class:this.getFontAndAttr.classes.generate(n)}},n=this.svg.getTextSize(e,t.attr,r);return t.font.box?{height:n.height+4*t.font.padding,width:n.width+4*t.font.padding}:n},t.prototype.baselineToCenter=function(e,t,n,r,i){return.5*this.calc(e,t,n).height+(i-r-2)*this.attr(t,n).font.size},e.exports=t},2187:function(e){e.exports=function(e,t,n,r){if(e)for(var i=0;i<e.length;i++){var a=e[i],s=(s=a.getAttribute("highlight"))||"fill",s=(a.setAttribute(s,r),a.getAttribute("class"));s=(s=(s=s||"").replace(n,"")).replace(t,""),0<t.length&&(0<s.length&&" "!==s[s.length-1]&&(s+=" "),s+=t),a.setAttribute("class",s)}}},4331:function(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},5741:function(e,t,n){var r=n(2187);e.exports=function(e,t){r(this.elemset,e=void 0===e?"abcjs-note_selected":e,"",t=void 0===t?"#ff0000":t)}},8068:function(e,t,n){var r=n(4331);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 s(e){switch(e.keyCode){case 38:case 40:e.preventDefault()}}function o(e){var t=!1,n=e.target.dataset.index;switch(e.keyCode){case 13:case 32:t=!0,this.dragTarget=this.selectables[n],this.dragIndex=n,this.dragMechanism="keyboard",u.bind(this)(e);break;case 38:t=!0,this.dragTarget=this.selectables[n],this.dragIndex=n,this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep--,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*r.STEP+")"));break;case 40:t=!0,this.dragTarget=this.selectables[n],this.dragIndex=n,this.dragMechanism="keyboard",this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep++,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+this.dragYStep*r.STEP+")"));break;case 9:0!==this.dragYStep&&u.bind(this)(e)}t&&e.preventDefault()}function i(e,t){var n,r,i,a,s,o,c,l,h=function(e,t){if(!t)return-1;for(var n=0;n<e.length;n++)if(t.dataset.index===e[n].svgEl.dataset.index)return n;return-1}(e.selectables,function(e){if(!e)return null;if("svg"===e.tagName)return e;if(!e.getAttribute)return null;for(var t=e.getAttribute("selectable");!t;)t=!e.parentElement||"svg"===(e=e.parentElement).tagName||e.getAttribute("selectable");return e}(t.target));return 0<=h?(o=e.selectables[h].svgEl.getBBox(),c=t,l=e.scale,l=(o=o.x<=c.offsetX&&o.x+o.width>=c.offsetX&&o.y<=c.offsetY&&o.y+o.height>=c.offsetY||Math.abs(c.layerY/l-c.offsetY)<3?[c.offsetX,c.offsetY]:[c.layerX,c.layerY])[0],c=o[1]):(i=r=1,a=(t=t).target.closest("svg"),s=0,a&&a.viewBox&&a.viewBox.baseVal&&(0!==a.viewBox.baseVal.width&&(r=a.viewBox.baseVal.width/a.clientWidth),0!==a.viewBox.baseVal.height&&(i=a.viewBox.baseVal.height/a.clientHeight),s=a.viewBox.baseVal.y),a=t.target&&"svg"===t.target.tagName?(n=t.offsetX,t.offsetY):(n=t.layerX,t.layerY),h=function(e,t,n){for(var r=9999999,i=-1,a=0;a<e.selectables.length&&0<r;a++){var s,o,c=e.selectables[a];e.getDim(c),c.dim.left<t&&c.dim.right>t&&c.dim.top<n&&c.dim.bottom>n?(i=a,r=0):c.dim.top<n&&c.dim.bottom>n?(s=Math.min(Math.abs(c.dim.left-t),Math.abs(c.dim.right-t)))<r&&(r=s,i=a):c.dim.left<t&&c.dim.right>t?(s=Math.min(Math.abs(c.dim.top-n),Math.abs(c.dim.bottom-n)))<r&&(r=s,i=a):(o=Math.abs(t-c.dim.left)>Math.abs(t-c.dim.right)?Math.abs(t-c.dim.right):Math.abs(t-c.dim.left),c=Math.abs(n-c.dim.top)>Math.abs(n-c.dim.bottom)?Math.abs(n-c.dim.bottom):Math.abs(n-c.dim.top),(o=Math.sqrt(o*o+c*c))<r&&(r=o,i=a))}return 0<=i&&r<=12?i:-1}(e,l=(o=[n*=r,(a*=i)+s])[0],c=o[1])),{x:l,y:c,clickedOn:h}}function c(e){var t,n;e&&e.target&&e.touches&&!(e.touches.length<1)&&(n=e.target.getBoundingClientRect(),t=e.touches[0].pageX-n.left,n=e.touches[0].pageY-n.top,e.touches[0].offsetX=t,e.touches[0].offsetY=n,e.touches[0].layerX=e.touches[0].pageX,e.touches[0].layerY=e.touches[0].pageY)}function l(e){var t=e,t=("touchstart"===e.type&&(c(e),0<e.touches.length&&(t=e.touches[0])),i(this,t));0<=t.clickedOn&&("touchstart"===e.type||0===e.button)&&this.selectables[t.clickedOn]&&(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&&((e=this.renderer.paper)&&((t=m(e.svg))["abcjs-dragging-in-progress"]=!0,g(e.svg,t)),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function h(e){var t=e;"touchmove"===e.type&&(c(e),0<e.touches.length&&(t=e.touches[0])),this.lastTouchMove=e,this.dragTarget&&this.dragging&&this.dragTarget.isDraggable&&"mouse"===this.dragMechanism&&this.dragMouseStart&&(e=i(this,t),(t=Math.round((e.y-this.dragMouseStart.y)/r.STEP))!==this.dragYStep&&(this.dragYStep=t,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+t*r.STEP+")")))}function u(e){var t=e;"touchend"===e.type&&this.lastTouchMove&&(c(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&0<this.lastTouchMove.touches.length&&(t=this.lastTouchMove.touches[0])),this.dragTarget&&(f.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),d.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,t),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),(e=this.renderer.svg)&&(delete(t=m(e.svg))["abcjs-dragging-in-progress"],g(e.svg,t)))}function v(e){0<=e&&e<this.selectables.length&&(this.dragTarget=this.selectables[e],this.dragIndex=e,this.dragMechanism="keyboard",u.bind(this)({target:this.dragTarget.svgEl}))}function d(e,t,n,r,i){var a=[];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 u=0;u<Object.keys(s).length;u++)a.push(Object.keys(s)[u])}for(var d={},f=0;f<a.length;f++)b(a[f],"abcjs-v",d,"voice"),b(a[f],"abcjs-l",d,"line"),b(a[f],"abcjs-m",d,"measure");e.staffPos&&(d.staffPos=e.staffPos);for(var p=i.target;p&&p.dataset&&!p.dataset.name&&"svg"!==p.tagName.toLowerCase();)p=p.parentNode;for(var m=i.target;m&&m.dataset&&!m.dataset.index&&"svg"!==m.tagName.toLowerCase();)m=m.parentNode;m&&m.dataset&&(d.name=m.dataset.name,d.clickedName=p.dataset.name,d.parentClasses=m.classList),p&&p.classList&&(d.clickedClasses=p.classList),d.selectableElement=e.svgEl;for(var g=0;g<this.listeners.length;g++)this.listeners[g](e.absEl.abcelem,e.absEl.tuneNumber,a.join(" "),d,{step:t,max:n,index:r,setSelection:v.bind(this)},i)}function b(e,t,n,r){0===e.indexOf(t)&&(e=e.replace(t,""),""+(t=parseInt(e,10))===e&&(n[r]=t))}function f(){for(var e=0;e<this.selected.length;e++)this.selected[e].unhighlight(void 0,this.renderer.foregroundColor);this.selected=[]}function p(e,t){f.bind(this)();for(var n=0;n<this.staffgroups.length;n++)for(var r=this.staffgroups[n].voices,i=0;i<r.length;i++)for(var a=r[i].children,s=0;s<a.length;s++){var o=a[s].abcelem.startChar,c=a[s].abcelem.endChar;(o<t&&e<c||t===e&&t===c)&&(this.selected[this.selected.length]=a[s],a[s].highlight(void 0,this.selectionColor))}}function m(e){for(var t=(e.getAttribute("class")||"").split(" "),n={},r=0;r<t.length;r++)n[t[r]]=!0;return n}function g(e,t){var n,r=[];for(n in t)t.hasOwnProperty(n)&&r.push(n);e.setAttribute("class",r.join(" "))}e.exports=function(e,t){if(e.rangeHighlight=p,e.dragging)for(var n=0;n<e.selectables.length;n++){var r=e.selectables[n];"true"===r.svgEl.getAttribute("selectable")&&(r.svgEl.setAttribute("tabindex",0),r.svgEl.setAttribute("data-index",n),r.svgEl.addEventListener("keydown",s.bind(e)),r.svgEl.addEventListener("keyup",o.bind(e)),r.svgEl.addEventListener("focus",a.bind(e)))}for(var i=0;i<t.length;i++)t[i].addEventListener("touchstart",l.bind(e),{passive:!0}),t[i].addEventListener("touchmove",h.bind(e),{passive:!0}),t[i].addEventListener("touchend",u.bind(e),{passive:!0}),t[i].addEventListener("mousedown",l.bind(e)),t[i].addEventListener("mousemove",h.bind(e)),t[i].addEventListener("mouseup",u.bind(e))}},5829:function(e,t,n){var r=n(2187);e.exports=function(e,t){r(this.elemset,"",e=void 0===e?"abcjs-note_selected":e,t=void 0===t?"#000000":t)}},6251:function(e,t,n){function A(e){return void 0===e?0:Math.floor(Math.log(e)/Math.log(2))}var B=n(6658),P=n(4331),L=n(3721);function O(e,t,n,r){if(!e.children)return r;for(var i=0;i<e.children.length;i++){var a=e.children[i];t&&void 0!==a.top&&"flags.ugrace"===a.c?r=Math.max(r,a.top-n):t||void 0===a.bottom||"flags.ugrace"!==a.c||(r=Math.max(r,n-a.bottom+7))}return r}function z(e,t,n){var t=t.heads[e?0:t.heads.length-1],n=n.heads[e?0:n.heads.length-1],r=t.x,t=(e&&(r+=t.w-.6),n.x);return[r,t+=e?n.w:.6]}e.exports=function(e){if(0!==e.elems.length&&!e.allrests){var t=function(e,t){e=e?P.STEP:-P.STEP;return t&&(e*=.4),e}(e.stemsUp,e.isgrace),n=e.elems[0],r=e.elems[e.elems.length-1],i=e.stemsUp?n.abcelem.maxpitch:n.abcelem.minpitch,a=O(n,e.stemsUp,i,0),s=(a=O(r,e.stemsUp,i,a),a=Math.max(e.stemHeight,a+3),i=e.average,k=e.elems.length,C=e.stemsUp,T=n.abcelem.averagepitch,_=r.abcelem.averagepitch,S=e.isflat,N=e.min,M=e.max,E=e.isgrace,s=a=a-2,M=Math.round(C?Math.max(i+a,M+s):Math.min(i-a,N-s)),i=function(){if(S)return 0;var e=T-_,t=k/2;return e=(e=t<e?t:e)<-t?-t:e}(),a=M+Math.floor(i/2),N=M+Math.floor(-i/2),E||(C&&M<6||!C&&6<M)&&(N=a=6),[a,N]),i=z(e.stemsUp,n,r);e.addBeam({startX:i[0],endX:i[1],startY:s[0],endY:s[1],dy:t});for(var o=function(e,t,n,r,i){for(var a=[],s=[],o=0;o<e.length;o++){var c=e[o];if(!c.abcelem.rest){for(var l=c.heads[t?0:c.heads.length-1],h=l.x+(t?l.w:0),u=L(n.startX,n.startY,n.endX,n.endY,h),d=t?-1.5:1.5,l=(r&&(d=2*d/3),c.abcelem.duration),f=A(l=0===l?.25:l);f<-3;f++){var p,m=-4-f;s[m]?s[m].single=!1:s[m]={x:h+(t?-.6:0),y:u+d*(1+m),durlog:f,single:!0},0<o&&c.abcelem.beambr&&c.abcelem.beambr<=1+m&&(s[m].split||(s[m].split=[s[m].x]),p=z(t,e[o-1],c),s[m].split[s[m].split.length-1]>=p[0]&&(p[0]+=c.w),s[m].split.push(p[0]),s[m].split.push(p[1]))}for(var g,v,b=s.length-1;0<=b;b--)(o===e.length-1||A(e[o+1].abcelem.duration)>-b-4)&&(g=h,v=u+d*(b+1),s[b].single&&(v=L(n.startX,n.startY,n.endX,n.endY,g=0===o?h+5:h-5)+d*(b+1)),g={startX:s[b].x,endX:g,startY:s[b].y,endY:v,dy:i},void 0!==s[b].split&&(v=s[b].split,g.endX<=v[v.length-1]&&(v[v.length-1]-=c.w),v.push(g.endX),g.split=s[b].split),a.push(g),s=s.slice(0,b))}}return a}(e.elems,e.stemsUp,e.beams[0],e.isgrace,t),c=0;c<o.length;c++)e.addBeam(o[c]);for(var l=e.elems,h=e.stemsUp,u=e.beams[0],d=t,f=e.mainNote,p=0;p<l.length;p++){var m,g,v,b,y,x,w=l[p];w.abcelem.rest||(m=(x=!w.addExtra)?f:w,v=(g=w.heads[h?0:w.heads.length-1]).pitch+(h?.2:-.2),b=h?g.w:0,x||(b+=g.dx),y=g.x+b,y=L(u.startX,u.startY,u.endX,u.endY,y),h||(y-=d/2/P.STEP),x&&(b+=w.heads[0].dx),"noteheads.slash.quarter"===g.c&&(h?v+=1:--v),(x=new B(null,b,0,v,{type:"stem",pitch2:y,linewidth:h?-.6:.6})).setX(m.x),m.addRight(x))}}var k,C,T,_,S,E,s,M,N}},3721:function(e){e.exports=function(e,t,n,r,i){return t+(r-t)/(n-e)*(i-e)}},4760:function(e){function l(e,t,n){if(t)for(var r=0;r<t.length;r++){var i;t[r].header&&(i=n.calc(t[r].header,"voicefont",""),e=Math.max(e,i.width))}return e}function h(e,t,n){if(e)for(var r=0;r<e.length;r++)e[r].x=t,n=Math.max(n,e[r].getWidth());return n}e.exports=function(e,t,n,r,i){for(var a,e=e.padding.left,s=0,o=0;o<n.length;o++)n[o].header&&(a=t.calc(n[o].header,"voicefont",""),s=Math.max(s,a.width));s=l(s,r,t),(s=l(s,i,t))&&(s+=t.calc("A","voicefont","").width);var c=0,c=h(r,e+=s,0);return e+h(i,e,c)}},1564:function(e,t,n){function h(e,t,n,r,i,a,s){for(var o=y(e,r.getTextSize,r.voices,r.brace,r.bracket),c=n,l=0;l<8;l++){var h=b(c,e,s,r,o),c=function(e,t,n,r,i,a,s,o){if(e)if(void 0===t){if(r/n<.66)return null}else if(!(1-(r+o)/n<t))return null;return!(Math.abs(n-r)<2)&&0<a?i=50<(i=(n-(r-a*i))/a)*s?50/s:i:null}(a,i.stretchlast,t+e.padding.left,r.w,c,h.spacingUnits,h.minSpace,e.padding.left+e.padding.right);if(s&&console.log("setXSpace",l,r.w,c,r.minspace),null===c)break}for(var u=r.voices,d=0;d<u.length;d++)for(var f=u[d],p=1;p<f.children.length-1;p++){var m,g,v=f.children[p];!v.abcelem.rest||"whole"!==v.abcelem.rest.type&&"multimeasure"!==v.abcelem.rest.type||(m=f.children[p-1],g=f.children[p+1],v.center(m,g))}return r.w-o}var u=n(6759),d=n(6934),b=n(735),y=n(4760);e.exports=function(e,t,n,r,i){for(var a,s,o=n,c=0;c<t.lines.length;c++)(a=t.lines[c]).staff&&(s=h(e,o,r,a.staffGroup,t.formatting,c===t.lines.length-1,!1),Math.round(s)>Math.round(o)&&(o=s,i&&(c=-1)));for(c=0;c<t.lines.length;c++)if((a=t.lines[c]).staffGroup&&a.staffGroup.voices){for(var l=0;l<a.staffGroup.voices.length;l++)u(a.staffGroup.voices[l]);d(e,a.staffGroup)}for(c=0;c<t.lines.length;c++)(a=t.lines[c]).staffGroup&&a.staffGroup.setHeight();return o}},6934:function(e,t,n){var f=n(4331);function l(e,t,n,r){var i;e.specialY[n]&&(i=e.specialY[n],r&&(i*=r),e.top+=i+1,t[n]=e.top)}function h(e,t,n){for(var r,i,a,s=0;s<t.children.length;s++){u=d=h=l=c=o=void 0;for(var o=e,c=r=t.children[s],l=n,h=0;h<c.children.length;h++){var u,d=c.children[h];for(u in c.specialY)c.specialY.hasOwnProperty(u)&&d[u]&&(d.pitch=o[u],void 0===d.top&&("TempoElement"===d.type?function(e,t){if(t.pitch=e.tempoHeightAbove,t.top=e.tempoHeightAbove,t.bottom=e.tempoHeightAbove,t.note){var n=t.pitch-t.totalHeightInPitches+1;t.note.top=n,t.note.bottom=n;for(var r=0;r<t.note.children.length;r++){var i=t.note.children[r];i.top+=n,i.bottom+=n,i.pitch+=n,void 0!==i.pitch2&&(i.pitch2+=n)}}}(o,d):function(e,t,n){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+n.vocal/f.STEP,t.bottom=e.lyricHeightBelow+n.vocal/f.STEP,t.pitch-=n.vocal/f.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)}(o,d,l),c.pushTop(d.top),c.pushBottom(d.bottom)))}}for(s=0;s<t.otherchildren.length;s++)switch((r=t.otherchildren[s]).type){case"CrescendoElem":i=e,(a=r).dynamicHeightAbove?a.pitch=i.dynamicHeightAbove:a.pitch=i.dynamicHeightBelow;break;case"DynamicDecoration":a=e,(i=r).volumeHeightAbove?i.pitch=a.volumeHeightAbove:i.pitch=a.volumeHeightBelow;break;case"EndingElem":r.pitch=e.endingHeightAbove-2}}e.exports=function(e,t){for(var n,r=0;r<t.staffs.length;r++){var i=t.staffs[r],a={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};e.showDebug&&0<=e.showDebug.indexOf("box")&&(i.originalTop=i.top,i.originalBottom=i.bottom),l(i,a,"lyricHeightAbove"),l(i,a,"chordHeightAbove",i.specialY.chordLines.above),i.specialY.endingHeightAbove&&(i.specialY.chordHeightAbove?i.top+=2:i.top+=i.specialY.endingHeightAbove+1,a.endingHeightAbove=i.top),i.specialY.dynamicHeightAbove&&i.specialY.volumeHeightAbove?(i.top+=Math.max(i.specialY.dynamicHeightAbove,i.specialY.volumeHeightAbove)+1,a.dynamicHeightAbove=i.top,a.volumeHeightAbove=i.top):(l(i,a,"dynamicHeightAbove"),l(i,a,"volumeHeightAbove")),l(i,a,"partHeightAbove"),l(i,a,"tempoHeightAbove"),i.specialY.lyricHeightBelow&&(i.specialY.lyricHeightBelow+=e.spacing.vocal/f.STEP,a.lyricHeightBelow=i.bottom,i.bottom-=i.specialY.lyricHeightBelow+1),i.specialY.chordHeightBelow&&(a.chordHeightBelow=i.bottom,s=i.specialY.chordHeightBelow,i.specialY.chordLines.below&&(s*=i.specialY.chordLines.below),i.bottom-=s+1),i.specialY.volumeHeightBelow&&i.specialY.dynamicHeightBelow?(a.volumeHeightBelow=i.bottom,a.dynamicHeightBelow=i.bottom,i.bottom-=Math.max(i.specialY.volumeHeightBelow,i.specialY.dynamicHeightBelow)+1):i.specialY.volumeHeightBelow?(a.volumeHeightBelow=i.bottom,i.bottom-=i.specialY.volumeHeightBelow+1):i.specialY.dynamicHeightBelow&&(a.dynamicHeightBelow=i.bottom,i.bottom-=i.specialY.dynamicHeightBelow+1),e.showDebug&&0<=e.showDebug.indexOf("box")&&(i.positionY=a);for(var s,o,c=0;c<i.voices.length;c++)h(a,t.voices[i.voices[c]],e.spacing);void 0!==n&&(s=n+(i.top-10),0<(o=e.spacing.systemStaffSeparation/f.STEP-s)&&(i.top+=o)),n=2-i.bottom}}},735:function(e,t,n){var S=n(937);function E(e){return e.durationindex-(e.children[e.i]&&0<e.children[e.i].duration?0:5e-7)}e.exports=function(e,t,n,r,i){var a=0,s=1e3,o=i;r.startx=o;var c=0;for(n&&console.log("init layout",e),d=0;d<r.voices.length;d++)S.beginLayout(o,r.voices[d]);for(var l=0;!function(e){for(var t=0;t<e.length;t++)if(!S.layoutEnded(e[t]))return;return 1}(r.voices);){for(c=null,d=0;d<r.voices.length;d++)S.layoutEnded(r.voices[d])||c&&!(E(r.voices[d])<c)||(c=E(r.voices[d]));for(var h=[],u=[],d=0;d<r.voices.length;d++)(1e-7<E(r.voices[d])-c?u:h).push(r.voices[d]);var l=0,f=0;for(d=0;d<h.length;d++)S.getNextX(h[d])>o&&(o=S.getNextX(h[d]),l=S.getSpacingUnits(h[d]),f=h[d].spacingduration);a+=l,s=Math.min(s,l),n&&console.log("currentduration: ",c,a,s);var p=void 0;for(d=0;d<h.length;d++){var m=h[d],g=void 0!==(p=0===m.voicenumber?d:p)&&h[p].voicenumber!==m.voicenumber?h[p]:void 0,v=g,v=(m&&m.staff&&m.staff.voices&&0!==m.staff.voices.length&&v&&v.staff&&v.staff.voices&&0!==v.staff.voices.length&&m.staff.voices[0]===v.staff.voices[0]||(g=void 0),S.layoutOneItem(o,e,m,t.minPadding,g)),b=v-o;if(0<b)for(var o=v,y=0;y<d;y++)S.shiftRight(b,h[y])}for(d=0;d<u.length;d++)u[d].spacingduration-=f,S.updateNextX(o,e,u[d]);for(d=0;d<h.length;d++){var x=h[d];S.updateIndices(x)}}for(d=0;d<r.voices.length;d++)S.getNextX(r.voices[d])>o&&(o=S.getNextX(r.voices[d]),l=S.getSpacingUnits(r.voices[d]));for(var w=r.voices,k=0,C=0;C<w.length;C++){var T,_=w[C];0<_.children.length&&(T=_.children.length-1,"bar"===(_=_.children[T]).abcelem.el_type&&(k<(T=_.children[0].x)?k=T:_.children[0].x=k))}return a+=l,r.setWidth(o),{spacingUnits:a,minSpace:s}}},3294:function(e,t,n){var o=n(3721);function c(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 n=c(t)?e.anchor1.x+e.anchor1.w:e.anchor1.x;e.yTextPos=(a=e.anchor2.x,0===t.beams.length?0:(s=t.beams[0],o(s.startX,s.startY,s.endX,s.endY,n+(a-n)/2))),e.yTextPos+=c(t)?3:-2,e.xTextPos=n+(e.anchor2.x-n)/2,e.top=e.yTextPos+1,e.bottom=e.yTextPos-2,c(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 r=0,i=0;i<e.middleElems.length;i++)r=Math.max(r,e.middleElems[i].top);((r+=4)>e.startNote||r>e.endNote)&&(e.startNote=r,e.endNote=r),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 a,s;delete e.middleElems,delete e.flatBeams}},937:function(e){function t(){}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,n,r,i){var a=n.children[n.i];if(!a)return 0;var s=e-n.minx,r=0<n.durationindex+a.duration?r:0;if("note"===a.abcelem.el_type&&!a.abcelem.rest&&0!==n.voicenumber&&i){var i=i.children[i.i],o=i&&(a.abcelem.maxpitch<=i.abcelem.maxpitch+1&&a.abcelem.maxpitch>=i.abcelem.minpitch-1||a.abcelem.minpitch<=i.abcelem.maxpitch+1&&a.abcelem.minpitch>=i.abcelem.minpitch-1);if(o=o&&a.abcelem.minpitch===i.abcelem.minpitch&&a.abcelem.maxpitch===i.abcelem.maxpitch&&i.heads&&0<i.heads.length&&a.heads&&0<a.heads.length&&i.heads[0].c===a.heads[0].c?!1:o){var c=i.heads&&0<i.heads.length?i.heads[0].realWidth:i.fixed.w;a.adjustedWidth||(a.adjustedWidth=c+a.w),a.w=a.adjustedWidth;for(var l=0;l<a.children.length;l++){var h=a.children[l];h.name.indexOf("accidental")<0&&(h.adjustedWidth||(h.adjustedWidth=h.dx+c),h.dx=h.adjustedWidth)}}}o=0,"note"!==a.type&&"bar"!==a.type||(o=r);i=-a.extraw+o;return s<i&&(0===n.i||"bar"!==a.type||"part"!==n.children[n.i-1].type&&"tempo"!==n.children[n.i-1].type)&&(e+=i-s),a.setX(e),n.spacingduration=a.duration,n.minx=e+a.w,n.i!==n.children.length-1&&(n.minx+=a.minspacing),this.updateNextX(e,t,n),e},t.shiftRight=function(e,t){var n=t.children[t.i];n&&(n.setX(n.x+e),t.minx+=e,t.nextx+=e)},t.updateNextX=function(e,t,n){n.nextx=e+t*Math.sqrt(8*n.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},6759:function(e,t,n){var i=n(6251),c=n(3721),a=n(3294);function s(e){for(var t,n=0;n<e.elems.length;n++){var r=e.elems[n];if(r.top){t=(t=e).beams[0];for(var i=c(t.startX,t.startY,t.endX,t.endY,r.x),a=0;a<r.children.length;a++){var s,o=r.children[a];"ornament"===o.klass&&o.bottom-1.5<i&&(s=i-o.bottom+1.5,o.bottom+=s,o.top+=s,o.pitch+=s,i=r.top=o.top)}}}}function f(e,t){var n=t.getChordDim();if(n){for(var r=0;r<e.length;r++)if(e[r]<n.left)return 0<r&&t.putChordInLane(r),e[r]=n.right;e.push(n.right),t.putChordInLane(e.length-1)}}e.exports=function(e){for(var t=0;t<e.beams.length;t++)if("BeamElem"===e.beams[t].type){i(e.beams[t]),s(e.beams[t]);for(var n=0;n<e.beams[t].elems.length;n++)e.adjustRange(e.beams[t].elems[n])}for(e.staff.specialY.chordLines=function(e){for(var t,n,r=[0],i=[0],a=0;a<e.length;a++){for(t=0;t<e[a].children.length;t++)(n=e[a].children[t]).chordHeightAbove&&f(r,n);for(t=e[a].children.length-1;0<=t;t--)(n=e[a].children[t]).chordHeightBelow&&f(i,n)}if(1<r.length||1<i.length)for(var s=e,o=r.length,c=0;c<s.length;c++){h=l=void 0;for(var l=s[c],h=0;h<l.children.length;h++)l.children[h].chordHeightBelow&&0;for(var u=0;u<s[c].children.length;u++){var d=s[c].children[u];d.chordHeightAbove&&d.invertLane(o)}}return{above:r.length,below:i.length}}(e.children),t=0;t<e.otherchildren.length;t++){var r=e.otherchildren[t];"TripletElem"===r.type&&(a(r),e.adjustRange(r))}e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom)}},8510:function(e,t,n){function r(e){this.paper=new a(e),this.controller=null,this.space=3*i.SPACE,this.padding={},this.reset(),this.firefox112=0<=navigator.userAgent.indexOf("Firefox/112.0")}var i=n(4331),a=n(4101);r.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()},r.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.isPrint="print"===e.media,this.setPadding(e)},r.prototype.setLineThickness=function(e){this.lineThickness=e},r.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}},r.prototype.setPadding=function(a){function e(e,t,n,r,i){void 0!==a.formatting[n]?e.padding[t]=a.formatting[n]:void 0!==e.paddingOverride[t]?e.padding[t]=e.paddingOverride[t]:e.isPrint?e.padding[t]=r:e.padding[t]=i}e(this,"top","topmargin",38,15),e(this,"bottom","botmargin",38,15),e(this,"left","leftmargin",68,15),e(this,"right","rightmargin",68,15)},r.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},r.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}},r.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)},r.prototype.calcY=function(e){return this.y-e*i.STEP},r.prototype.moveY=function(e,t){this.y+=e*(t=void 0===t?1:t)},r.prototype.absolutemoveY=function(e){this.y=e},e.exports=r},4101:function(e){var f="http://www.w3.org/2000/svg";function t(e){this.svg=n(),this.currentGroup=[],e.appendChild(this.svg)}function s(e,t,n){n-=e;return"M "+e+" "+t+" l "+n+" 0 l 0 1 l "+-n+" 0 z "}function o(e,t,n){n-=t;return"M "+e+" "+t+" l 0 "+n+" l 1 0 l 0 "+-n+" z "}t.prototype.clear=function(){var e;this.svg&&(e=this.svg.parentNode,this.svg=n(),this.currentGroup=[],e&&(e.innerHTML="",e.appendChild(this.svg)))},t.prototype.setTitle=function(e){var t=document.createElement("title"),e=document.createTextNode(e);t.appendChild(e),this.svg.insertBefore(t,this.svg.firstChild)},t.prototype.setResponsiveWidth=function(e,t){var n;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&&((n=this.svg.parentNode.getAttribute("class"))?n.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",n+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%",this.svg.parentNode.style["padding-bottom"]=t/e*100+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden")},t.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)},t.prototype.setAttribute=function(e,t){this.svg.setAttribute(e,t)},t.prototype.setScale=function(e){1!==e?(this.svg.style.transform="scale("+e+","+e+")",this.svg.style["-ms-transform"]="scale("+e+","+e+")",this.svg.style["-webkit-transform"]="scale("+e+","+e+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},t.prototype.insertStyles=function(e){var t=document.createElementNS(f,"style");t.textContent=e,this.svg.insertBefore(t,this.svg.firstChild)},t.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)},t.prototype.rect=function(e){var t=[],n=e.x,r=e.y,i=e.x+e.width,a=e.y+e.height;return t.push(s(n,r,i)),t.push(s(n,a,i)),t.push(o(i,r,a)),t.push(o(n,a,r)),this.path({path:t.join(" "),stroke:"none","data-name":e["data-name"]})},t.prototype.dottedLine=function(e){var t=document.createElementNS(f,"line");t.setAttribute("x1",e.x1),t.setAttribute("x2",e.x2),t.setAttribute("y1",e.y1),t.setAttribute("y2",e.y2),t.setAttribute("stroke",e.stroke),t.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(t,this.svg.firstChild)},t.prototype.rectBeneath=function(e){var t=document.createElementNS(f,"rect");t.setAttribute("x",e.x),t.setAttribute("width",e.width),t.setAttribute("y",e.y),t.setAttribute("height",e.height),e.stroke&&t.setAttribute("stroke",e.stroke),e["stroke-opacity"]&&t.setAttribute("stroke-opacity",e["stroke-opacity"]),e.fill&&t.setAttribute("fill",e.fill),e["fill-opacity"]&&t.setAttribute("fill-opacity",e["fill-opacity"]),this.svg.insertBefore(t,this.svg.firstChild)},t.prototype.text=function(e,t,n){var r,i=document.createElementNS(f,"text");for(r in i.setAttribute("stroke","none"),t)t.hasOwnProperty(r)&&i.setAttribute(r,t[r]);for(var a=(""+e).split("\n"),s=0;s<a.length;s++){var o,c,l,h=document.createElementNS(f,"tspan");h.setAttribute("x",t.x||0),0!==s&&h.setAttribute("dy","1.2em"),-1!==a[s].indexOf("")?(o=a[s].split(""),h.textContent=o[0],o[1]&&((c=document.createElementNS(f,"tspan")).setAttribute("dy","-0.3em"),c.setAttribute("style","font-size:0.7em"),c.textContent=o[1],h.appendChild(c)),o[2]&&(c=o[1]?"0.4em":"0.1em",(l=document.createElementNS(f,"tspan")).setAttribute("dy",c),l.setAttribute("style","font-size:0.7em"),l.textContent=o[2],h.appendChild(l))):h.textContent=a[s],i.appendChild(h)}return n?n.appendChild(i):this.append(i),i},t.prototype.richTextLine=function(e,t,n,r,i,a){var s=document.createElementNS(f,"text");s.setAttribute("stroke","none"),s.setAttribute("class",r),s.setAttribute("x",t),s.setAttribute("y",n),s.setAttribute("text-anchor",i),s.setAttribute("dominant-baseline","middle");for(var o=0;o<e.length;o++){for(var c=e[o],l=document.createElementNS(f,"tspan"),h=Object.keys(c.attrs),u=0;u<h.length;u++){var d=c.attrs[h[u]];""!==d&&l.setAttribute(h[u],d)}l.textContent=c.content,s.appendChild(l)}return a?a.appendChild(s):this.append(s),s},t.prototype.guessWidth=function(e,t){var n,r=this.createDummySvg(),i=this.text(e,t,r);try{n=i.getBBox(),n=isNaN(n.height)||!n.height?{width:t["font-size"]/2,height:t["font-size"]+2}:{width:n.width,height:n.height}}catch(e){n={width:t["font-size"]/2,height:t["font-size"]+2}}return r.removeChild(i),n},t.prototype.createDummySvg=function(){return this.dummySvg||(this.dummySvg=n(),this.dummySvg.setAttribute("style",["display: block !important;","height: 1px;","width: 1px;","position: absolute;"].join("")),document.querySelector("body").appendChild(this.dummySvg)),this.dummySvg};var c={};function n(){var e=document.createElementNS(f,"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}t.prototype.getTextSize=function(e,t,n){if(!(e="number"==typeof e?""+e:e)||e.match(/^\s+$/))return{width:0,height:0};var r;if(e.length<20&&(r=e+JSON.stringify(t),c[r]))return c[r];var i,a=!n;n=n||this.text(e,t);try{i=n.getBBox(),i=isNaN(i.height)||!i.height?this.guessWidth(e,t):{width:i.width,height:i.height}}catch(n){i=this.guessWidth(e,t)}return a&&(0<this.currentGroup.length?this.currentGroup[0]:this.svg).removeChild(n),r&&(c[r]=i),i},t.prototype.openGroup=function(e){e=e||{};var t=document.createElementNS(f,"g");return e.klass&&t.setAttribute("class",e.klass),e.fill&&t.setAttribute("fill",e.fill),e.stroke&&t.setAttribute("stroke",e.stroke),e["data-name"]&&t.setAttribute("data-name",e["data-name"]),e.prepend?this.prepend(t):this.append(t),this.currentGroup.unshift(t),t},t.prototype.closeGroup=function(){var e=this.currentGroup.shift();return e&&0===e.children.length?(e.parentElement.removeChild(e),null):e},t.prototype.path=function(e){var t,n=document.createElementNS(f,"path");for(t in e)e.hasOwnProperty(t)&&("path"===t?n.setAttributeNS(null,"d",e.path):"klass"===t?n.setAttributeNS(null,"class",e[t]):void 0!==e[t]&&n.setAttributeNS(null,t,e[t]));return this.append(n),n},t.prototype.pathToBack=function(e){var t,n=document.createElementNS(f,"path");for(t in e)e.hasOwnProperty(t)&&("path"===t?n.setAttributeNS(null,"d",e.path):"klass"===t?n.setAttributeNS(null,"class",e[t]):n.setAttributeNS(null,t,e[t]));return this.prepend(n),n},t.prototype.lineToBack=function(e){for(var t=document.createElementNS(f,"line"),n=Object.keys(e),r=0;r<n.length;r++)t.setAttribute(n[r],e[n[r]]);return this.prepend(t),t},t.prototype.append=function(e){(0<this.currentGroup.length?this.currentGroup[0]:this.svg).appendChild(e)},t.prototype.prepend=function(e){0<this.currentGroup.length?this.currentGroup[0].appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)},t.prototype.setAttributeOnElement=function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttributeNS(null,n,t[n])},t.prototype.moveElementToChild=function(e,t){e.appendChild(t)},e.exports=t},1185:function(e){e.exports="6.3.0"}},i={},function e(t){var n=i[t];if(void 0!==n)return n.exports;n=i[t]={exports:{}};return r[t](n,n.exports,e),n.exports}(1045);var r,i});