orbitchat 3.10.2 → 3.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +16 -15
  2. package/bin/orbitchat.js +4 -3
  3. package/dist/assets/ChartRenderer-CsLOLqNN.js +80 -0
  4. package/dist/assets/{MermaidRenderer-BPk_MuJJ.js → MermaidRenderer-DNbuWll0.js} +66 -66
  5. package/dist/assets/{MusicRenderer-BNMS85mG.js → MusicRenderer-DW6lysGY.js} +4 -4
  6. package/dist/assets/SVGRenderer-DAIMVJgr.js +6 -0
  7. package/dist/assets/{arc-BHwyCqLz.js → arc-1qRI0DXn.js} +1 -1
  8. package/dist/assets/architectureDiagram-3BPJPVTR-Cow01YMa.js +36 -0
  9. package/dist/assets/{blockDiagram-GPEHLZMM-D0D5HOcH.js → blockDiagram-GPEHLZMM-C5XzJyId.js} +4 -4
  10. package/dist/assets/c4Diagram-AAUBKEIU-Cmx-NXVO.js +10 -0
  11. package/dist/assets/channel-BPmzEReZ.js +1 -0
  12. package/dist/assets/{chunk-2J33WTMH-W5xmIUUR.js → chunk-2J33WTMH-CUt5uiXo.js} +1 -1
  13. package/dist/assets/{chunk-4BX2VUAB-DKq33P57.js → chunk-4BX2VUAB-CJj_7pn2.js} +1 -1
  14. package/dist/assets/{chunk-55IACEB6-DaDI8NE3.js → chunk-55IACEB6-DVyyaDvO.js} +1 -1
  15. package/dist/assets/chunk-727SXJPM-CL3otgv0.js +206 -0
  16. package/dist/assets/chunk-AQP2D5EJ-C45-Gx0g.js +231 -0
  17. package/dist/assets/{chunk-FMBD7UC4-CWclT1f0.js → chunk-FMBD7UC4-MubvFkwu.js} +1 -1
  18. package/dist/assets/chunk-ND2GUHAM-BodP1saw.js +1 -0
  19. package/dist/assets/{chunk-QZHKN3VN-D0S54BW6.js → chunk-QZHKN3VN-CZzLds6P.js} +1 -1
  20. package/dist/assets/classDiagram-4FO5ZUOK-DsBJVdDP.js +1 -0
  21. package/dist/assets/classDiagram-v2-Q7XG4LA2-DsBJVdDP.js +1 -0
  22. package/dist/assets/cose-bilkent-S5V4N54A-DEY7stpG.js +1 -0
  23. package/dist/assets/cytoscape.esm-DTSO7Bv0.js +331 -0
  24. package/dist/assets/dagre-BM42HDAG-W9SEsE-N.js +4 -0
  25. package/dist/assets/diagram-2AECGRRQ-BlqzAN8a.js +43 -0
  26. package/dist/assets/diagram-5GNKFQAL-BLp8AGzL.js +10 -0
  27. package/dist/assets/{diagram-KO2AKTUF-Bu2G80gC.js → diagram-KO2AKTUF-D05qxtNL.js} +2 -2
  28. package/dist/assets/diagram-LMA3HP47-CnQ23_X8.js +24 -0
  29. package/dist/assets/diagram-OG6HWLK6-CA92e8BM.js +24 -0
  30. package/dist/assets/docx-preview-C0UevYcE.js +38 -0
  31. package/dist/assets/erDiagram-TEJ5UH35-DSF2yibf.js +85 -0
  32. package/dist/assets/{flowDiagram-I6XJVG4X-CwDXxjFX.js → flowDiagram-I6XJVG4X-DY5MD6ts.js} +5 -5
  33. package/dist/assets/ganttDiagram-6RSMTGT7-BgubAiWl.js +292 -0
  34. package/dist/assets/gitGraphDiagram-PVQCEYII-BmCo7lBu.js +106 -0
  35. package/dist/assets/graph-CAnANduQ.js +1 -0
  36. package/dist/assets/index--_ARL9JL.js +134 -0
  37. package/dist/assets/index-BNr1l_xK.css +1 -0
  38. package/dist/assets/{index-mJaxTisw.js → index-CZz_ECqk.js} +3 -3
  39. package/dist/assets/index-UQoJXX25.js +361 -0
  40. package/dist/assets/infoDiagram-5YYISTIA-CPT2KkJP.js +2 -0
  41. package/dist/assets/isPrototype-DezZrpQP.js +1 -0
  42. package/dist/assets/ishikawaDiagram-YF4QCWOH-BKDzsZ93.js +70 -0
  43. package/dist/assets/journeyDiagram-JHISSGLW-CZBIRXVn.js +139 -0
  44. package/dist/assets/{kanban-definition-UN3LZRKU-B1RqdBrJ.js → kanban-definition-UN3LZRKU-Dg7Po601.js} +4 -4
  45. package/dist/assets/layout-DGIYPm2g.js +1 -0
  46. package/dist/assets/{linear-CB3-LqbC.js → linear-BGneeY6s.js} +1 -1
  47. package/dist/assets/mindmap-definition-RKZ34NQL-DDJH6RNg.js +96 -0
  48. package/dist/assets/papaparse.min-CdRM_ppG.js +15 -0
  49. package/dist/assets/{pieDiagram-4H26LBE5-DsS9okNl.js → pieDiagram-4H26LBE5-VmwJRM5q.js} +2 -2
  50. package/dist/assets/quadrantDiagram-W4KKPZXB-BApnkjpH.js +7 -0
  51. package/dist/assets/requirementDiagram-4Y6WPE33-B3wRcSqV.js +84 -0
  52. package/dist/assets/sankeyDiagram-5OEKKPKP-CMdvyTCy.js +40 -0
  53. package/dist/assets/sequenceDiagram-3UESZ5HK-Bez2saVY.js +162 -0
  54. package/dist/assets/stateDiagram-AJRCARHV-CnB2Ac4-.js +1 -0
  55. package/dist/assets/stateDiagram-v2-BHNVJYJU-D_TnKrY9.js +1 -0
  56. package/dist/assets/{time-C80Ah3yu.js → time-DJ0lCX4i.js} +1 -1
  57. package/dist/assets/timeline-definition-PNZ67QCA-kNKpwGZ_.js +120 -0
  58. package/dist/assets/vendor-auth-CrXMNoGZ.js +5 -0
  59. package/dist/assets/vendor-markdown-CQ_RitqP.js +307 -0
  60. package/dist/assets/vendor-react-C3O77mRn.js +9 -0
  61. package/dist/assets/vendor-syntax-Bg-E9hW_.js +16 -0
  62. package/dist/assets/vennDiagram-CIIHVFJN-DiFbBKbD.js +34 -0
  63. package/dist/assets/{wardley-L42UT6IY-DeoMKeIP.js → wardley-L42UT6IY-BftqliwA.js} +8 -8
  64. package/dist/assets/wardleyDiagram-YWT4CUSO-CvoUjOCY.js +78 -0
  65. package/dist/assets/xychartDiagram-2RQKCTM6-eU0cm1JE.js +7 -0
  66. package/dist/index.html +6 -2
  67. package/package.json +8 -3
  68. package/dist/assets/ChartRenderer-CJhkQxr5.js +0 -80
  69. package/dist/assets/SVGRenderer-BKs8t04X.js +0 -6
  70. package/dist/assets/architectureDiagram-3BPJPVTR-DNVUHp8X.js +0 -36
  71. package/dist/assets/c4Diagram-AAUBKEIU-jxm4Q2dz.js +0 -10
  72. package/dist/assets/channel-C0UHqIVM.js +0 -1
  73. package/dist/assets/chunk-727SXJPM-oH6pbgmY.js +0 -206
  74. package/dist/assets/chunk-AQP2D5EJ-BOAt4UHd.js +0 -231
  75. package/dist/assets/chunk-ND2GUHAM-EN-M7UQl.js +0 -1
  76. package/dist/assets/classDiagram-4FO5ZUOK-DK9l-Nt9.js +0 -1
  77. package/dist/assets/classDiagram-v2-Q7XG4LA2-DK9l-Nt9.js +0 -1
  78. package/dist/assets/cose-bilkent-S5V4N54A-DIz5r1WY.js +0 -1
  79. package/dist/assets/cytoscape.esm-CUqq0XTU.js +0 -331
  80. package/dist/assets/dagre-BM42HDAG-B1YowwH4.js +0 -4
  81. package/dist/assets/diagram-2AECGRRQ-CcxjYTez.js +0 -43
  82. package/dist/assets/diagram-5GNKFQAL-doHPj552.js +0 -10
  83. package/dist/assets/diagram-LMA3HP47-Bd9mEx4B.js +0 -24
  84. package/dist/assets/diagram-OG6HWLK6-B1eNiFKb.js +0 -24
  85. package/dist/assets/docx-preview-C6iSKpeJ.js +0 -38
  86. package/dist/assets/erDiagram-TEJ5UH35-DKCJg-lZ.js +0 -85
  87. package/dist/assets/ganttDiagram-6RSMTGT7-DV6bMXjj.js +0 -292
  88. package/dist/assets/gitGraphDiagram-PVQCEYII-MHD7foEN.js +0 -106
  89. package/dist/assets/graph-BlwPajkw.js +0 -1
  90. package/dist/assets/index-BNgJuX90.css +0 -1
  91. package/dist/assets/index-DSYvHtCG.js +0 -134
  92. package/dist/assets/index-d44-iZXq.js +0 -694
  93. package/dist/assets/infoDiagram-5YYISTIA-D17zY9os.js +0 -2
  94. package/dist/assets/isPrototype-D0troCl1.js +0 -1
  95. package/dist/assets/ishikawaDiagram-YF4QCWOH-DvpJL7SF.js +0 -70
  96. package/dist/assets/journeyDiagram-JHISSGLW-DkU2K_ZT.js +0 -139
  97. package/dist/assets/layout-Boy8vhSP.js +0 -1
  98. package/dist/assets/mindmap-definition-RKZ34NQL-hYEikaKe.js +0 -96
  99. package/dist/assets/papaparse.min-B9gzx6n-.js +0 -15
  100. package/dist/assets/quadrantDiagram-W4KKPZXB-BJ1xlVso.js +0 -7
  101. package/dist/assets/requirementDiagram-4Y6WPE33-5B_D-bcw.js +0 -84
  102. package/dist/assets/sankeyDiagram-5OEKKPKP-BE6dcD0u.js +0 -40
  103. package/dist/assets/sequenceDiagram-3UESZ5HK-B_mdzMvI.js +0 -162
  104. package/dist/assets/stateDiagram-AJRCARHV-Du3Wh5YU.js +0 -1
  105. package/dist/assets/stateDiagram-v2-BHNVJYJU-ZxCn0EBw.js +0 -1
  106. package/dist/assets/timeline-definition-PNZ67QCA-CTz1MSU2.js +0 -120
  107. package/dist/assets/vennDiagram-CIIHVFJN-lIVzPmZZ.js +0 -34
  108. package/dist/assets/wardleyDiagram-YWT4CUSO-aSA1lZV1.js +0 -78
  109. package/dist/assets/xychartDiagram-2RQKCTM6-DPH3go07.js +0 -7
@@ -0,0 +1,134 @@
1
+ import{g as ps}from"./vendor-markdown-CQ_RitqP.js";function gs(A,y){for(var g=0;g<y.length;g++){const l=y[g];if(typeof l!="string"&&!Array.isArray(l)){for(const a in l)if(a!=="default"&&!(a in A)){const o=Object.getOwnPropertyDescriptor(l,a);o&&Object.defineProperty(A,a,o.get?o:{enumerable:!0,get:()=>l[a]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var Ye,Ur;function bs(){if(Ur)return Ye;Ur=1;var A="6.6.3";return Ye=A,Ye}var We,Vr;function Nr(){if(Vr)return We;Vr=1;var A=function(g,l){var a=this;if(l||(l={}),a.qpm=l.qpm?parseInt(l.qpm,10):null,!a.qpm){var o=g.metaText?g.metaText.tempo:null;a.qpm=g.getBpm(o)}a.extraMeasuresAtBeginning=l.extraMeasuresAtBeginning?parseInt(l.extraMeasuresAtBeginning,10):0,a.beatCallback=l.beatCallback,a.eventCallback=l.eventCallback,a.lineEndCallback=l.lineEndCallback,a.lineEndAnticipation=l.lineEndAnticipation?parseInt(l.lineEndAnticipation,10):0,a.beatSubdivisions=l.beatSubdivisions?parseInt(l.beatSubdivisions,10):1,a.beatSubdivisions||(a.beatSubdivisions=1),a.joggerTimer=null,a.replaceTarget=function(s){if(a.noteTimings=s.setTiming(a.qpm,a.extraMeasuresAtBeginning),s.noteTimings.length===0&&(a.noteTimings=s.setTiming(0,0)),a.lineEndCallback&&(a.lineEndTimings=y(s.noteTimings,a.lineEndAnticipation)),a.startTime=null,a.currentBeat=0,a.currentEvent=0,a.currentLine=0,a.currentTime=0,a.isPaused=!1,a.isRunning=!1,a.pausedPercent=null,a.justUnpaused=!1,a.newSeekPercent=0,a.lastTimestamp=0,a.noteTimings.length!==0){a.millisecondsPerBeat=1e3/(a.qpm/60)/a.beatSubdivisions,a.lastMoment=a.noteTimings[a.noteTimings.length-1].milliseconds;var c=s.getMeter(),v="";if(c&&c.type==="specified"&&c.value&&c.value.length>0&&c.value[0].num.indexOf("+")>0&&(v=c.value[0].num),a.beatStarts=[],v){for(var u=a.noteTimings[a.noteTimings.length-1].millisecondsPerMeasure,f=a.lastMoment/u,n=v.split("+"),t=0;t<n.length;t++)n[t]=parseInt(n[t],10)/2;for(var r=0,e=0,h=0;h<f;h++)for(var p=h*u,d=0,m=0;m<n.length;m++){var w=n[m];if(a.beatSubdivisions===1)a.beatSubdivisions===1&&r<a.lastMoment&&a.beatStarts.push({b:e,ts:r}),r+=w*a.millisecondsPerBeat;else for(var T=w*a.beatSubdivisions,D=0;D<Math.floor(T);D++){var B=D/T,S=Math.round(p+d*a.millisecondsPerBeat);S<a.lastMoment&&a.beatStarts.push({b:e+B,ts:S}),d++}e++}a.beatStarts.push({b:f*n.length,ts:a.lastMoment}),a.totalBeats=a.beatStarts.length}else{a.totalBeats=Math.round(a.lastMoment/a.millisecondsPerBeat);for(var L=0;L<a.totalBeats+1;L++)a.beatStarts.push({b:L/a.beatSubdivisions,ts:Math.round(L*a.millisecondsPerBeat)})}}},a.replaceTarget(g),a.doTiming=function(s){if(a.lastTimestamp!==s&&(a.lastTimestamp=s,!a.isPaused&&a.isRunning)){for(a.startTime||(a.startTime=s),a.currentTime=s-a.startTime,a.currentTime+=16;a.noteTimings.length>a.currentEvent&&a.noteTimings[a.currentEvent].milliseconds<a.currentTime;){if(a.eventCallback&&a.noteTimings[a.currentEvent].type==="event"){var c=a.startTime;a.eventCallback(a.noteTimings[a.currentEvent]),c!==a.startTime&&(a.currentTime=s-a.startTime)}a.currentEvent++}if(a.lineEndCallback&&a.lineEndTimings.length>a.currentLine&&a.lineEndTimings[a.currentLine].milliseconds<a.currentTime&&a.currentEvent<a.noteTimings.length){var v=a.noteTimings[a.currentEvent].milliseconds===a.currentTime?a.noteTimings[a.currentEvent]:a.noteTimings[a.currentEvent-1];a.lineEndCallback(a.lineEndTimings[a.currentLine],v,{line:a.currentLine,endTimings:a.lineEndTimings,currentTime:a.currentTime}),a.currentLine++}if(a.currentTime<a.lastMoment){if(requestAnimationFrame(a.doTiming),a.currentBeat<a.beatStarts.length&&a.beatStarts[a.currentBeat].ts<=a.currentTime){var u=a.doBeatCallback(s);a.currentBeat++,u!==null&&(a.currentTime=u)}}else if(a.currentBeat<=a.totalBeats&&a.beatCallback){var f=a.doBeatCallback(s);a.currentBeat++,f!==null&&(a.currentTime=f),requestAnimationFrame(a.doTiming)}if(a.currentTime>=a.lastMoment)if(a.eventCallback){var n=a.eventCallback(null);a.shouldStop(n).then(function(t){t&&a.stop()})}else a.stop()}},a.shouldStop=function(s){return new Promise(function(c){if(!s)return c(!0);if(s==="continue")return c(!1);s.then&&s.then(function(v){c(v!=="continue")})})},a.doBeatCallback=function(s){if(a.beatCallback){for(var c=a.currentEvent;c<a.noteTimings.length&&a.noteTimings[c].left===null;)c++;var v,u;if(c<a.noteTimings.length){for(v=a.noteTimings[c].milliseconds,c=Math.max(0,a.currentEvent-1);c>=0&&a.noteTimings[c].left===null;)c--;u=a.noteTimings[c]}var f={},n={};if(u){f.top=u.top,f.height=u.height;var t=Math.max(0,s-a.startTime-u.milliseconds),r=v-u.milliseconds,e=u.endX-u.left,h=r?t*e/r:0;f.left=u.left+h,a.currentEvent===0&&u.milliseconds>s-a.startTime&&(f.left=void 0),n={timestamp:s,startTime:a.startTime,ev:u,endMs:v,offMs:t,offPx:h,gapMs:r,gapPx:e}}else n={timestamp:s,startTime:a.startTime};var p=a.startTime;if(a.beatCallback(a.beatStarts[a.currentBeat].b,a.totalBeats/a.beatSubdivisions,a.lastMoment,f,n),p!==a.startTime)return s-a.startTime}return null};var i=60;a.animationJogger=function(){a.isRunning&&(a.doTiming(performance.now()),a.joggerTimer=setTimeout(a.animationJogger,i))},a.start=function(s,c){if(a.isRunning=!0,a.isPaused&&(a.isPaused=!1,s===void 0&&(a.justUnpaused=!0)),s)a.setProgress(s,c);else if(s===0)a.reset();else if(a.pausedPercent!==null){var v=performance.now();a.currentTime=a.lastMoment*a.pausedPercent,a.startTime=v-a.currentTime,a.pausedPercent=null,a.reportNext=!0}requestAnimationFrame(a.doTiming),a.joggerTimer=setTimeout(a.animationJogger,i)},a.pause=function(){a.isPaused=!0;var s=performance.now();a.pausedPercent=(s-a.startTime)/a.lastMoment,a.isRunning=!1,a.joggerTimer&&(clearTimeout(a.joggerTimer),a.joggerTimer=null)},a.currentMillisecond=function(){return a.currentTime},a.reset=function(){a.currentBeat=0,a.currentEvent=0,a.currentLine=0,a.startTime=null,a.pausedPercent=null},a.stop=function(){a.pause(),a.reset()},a.setProgress=function(s,c){var v;switch(c){case"seconds":a.currentTime=s*1e3,a.currentTime<0&&(a.currentTime=0),a.currentTime>a.lastMoment&&(a.currentTime=a.lastMoment),v=a.currentTime/a.lastMoment;break;case"beats":a.currentTime=s*a.millisecondsPerBeat*a.beatSubdivisions,a.currentTime<0&&(a.currentTime=0),a.currentTime>a.lastMoment&&(a.currentTime=a.lastMoment),v=a.currentTime/a.lastMoment;break;default:v=s,v<0&&(v=0),v>1&&(v=1),a.currentTime=a.lastMoment*v;break}a.isRunning||(a.pausedPercent=v);var u=performance.now();for(a.startTime=u-a.currentTime,a.currentEvent=0;a.noteTimings.length>a.currentEvent&&a.noteTimings[a.currentEvent].milliseconds<a.currentTime;)a.currentEvent++;if(a.lineEndCallback)for(a.currentLine=0;a.lineEndTimings.length>a.currentLine&&a.lineEndTimings[a.currentLine].milliseconds+a.lineEndAnticipation<a.currentTime;)a.currentLine++;var f=a.currentBeat;for(a.currentBeat=0;a.currentBeat<a.beatStarts.length&&!(a.beatStarts[a.currentBeat].ts>a.currentTime);a.currentBeat++);a.currentBeat--,a.beatCallback&&f!==a.currentBeat&&(a.doBeatCallback(a.startTime+a.currentTime),a.currentBeat++),a.eventCallback&&a.currentEvent>=0&&a.noteTimings[a.currentEvent].type==="event"&&a.eventCallback(a.noteTimings[a.currentEvent]),a.lineEndCallback&&a.lineEndCallback(a.lineEndTimings[a.currentLine],a.noteTimings[a.currentEvent],{line:a.currentLine,endTimings:a.lineEndTimings}),a.joggerTimer=setTimeout(a.animationJogger,i)}};function y(g,l){for(var a=[],o=null,i=0;i<g.length;i++){var s=g[i];s.type!=="end"&&s.top!==o&&(a.push({measureNumber:s.measureNumber,milliseconds:s.milliseconds-l,top:s.top,bottom:s.top+s.height}),o=s.top)}return a}return We=A,We}var Xe,jr;function ms(){if(jr)return Xe;jr=1;var A=Nr(),y={};return(function(){var g,l;y.startAnimation=function(a,o,i){g&&(g.stop(),g=void 0),i.showCursor&&(l=a.querySelector(".abcjs-cursor"),l||(l=document.createElement("DIV"),l.className="abcjs-cursor cursor",l.style.position="absolute",a.appendChild(l),a.style.position="relative"));function s(r){for(var e=0;e<r.length;e++){var h=r[e];h.classList.contains("abcjs-bar")||(h.style.display="none")}}var c;function v(r){if(c){var e=a.querySelectorAll(c);s(e)}c=r}function u(r){var e=a.querySelectorAll(r);s(e)}function f(r){i.hideCurrentMeasure?u(r):i.hideFinishedMeasures&&v(r)}function n(r){return".abcjs-l"+r.line+".abcjs-m"+r.measureNumber}function t(r){if(r){if(r.measureStart){var e=n(r);e&&f(e)}l&&(l.style.left=r.left+"px",l.style.top=r.top+"px",l.style.width=r.width+"px",l.style.height=r.height+"px")}else g.stop(),g=void 0}g=new A(o,{qpm:i.bpm,eventCallback:t}),g.start()},y.pauseAnimation=function(a){g&&(a?g.pause():g.start())},y.stopAnimation=function(){g&&(g.stop(),g=void 0)}})(),Xe=y,Xe}var Ue,Kr;function _e(){if(Kr)return Ue;Kr=1;var A={};return A.cloneArray=function(y){for(var g=[],l=0;l<y.length;l++)g.push(Object.assign({},y[l]));return g},A.cloneHashOfHash=function(y){var g={};for(var l in y)y.hasOwnProperty(l)&&(g[l]=Object.assign({},y[l]));return g},A.cloneHashOfArrayOfHash=function(y){var g={};for(var l in y)y.hasOwnProperty(l)&&(g[l]=A.cloneArray(y[l]));return g},A.strip=function(y){return y.replace(/^\s+/,"").replace(/\s+$/,"")},A.startsWith=function(y,g){return y.indexOf(g)===0},A.endsWith=function(y,g){var l=y.length-g.length;return l>=0&&y.lastIndexOf(g)===l},A.last=function(y){return y.length===0?null:y[y.length-1]},Ue=A,Ue}var Ve,$r;function Pr(){if($r)return Ve;$r=1;var A=_e(),y={};return(function(){var g,l,a,o,i;y.initialize=function(b,k,E,R,O){g=b,l=k,a=E,o=R,i=O,s()};function s(){a.annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},a.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},a.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},a.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},a.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},a.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},a.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},a.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},a.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},o.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},o.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},o.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},o.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},o.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},o.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},o.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},o.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},o.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},o.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},o.formatting.annotationfont=a.annotationfont,o.formatting.gchordfont=a.gchordfont,o.formatting.historyfont=a.historyfont,o.formatting.infofont=a.infofont,o.formatting.measurefont=a.measurefont,o.formatting.partsfont=a.partsfont,o.formatting.repeatfont=a.repeatfont,o.formatting.textfont=a.textfont,o.formatting.tripletfont=a.tripletfont,o.formatting.vocalfont=a.vocalfont,o.formatting.wordsfont=a.wordsfont}var c={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},v=function(b){switch(b){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}},u=function(b,k,E,R,O){function G(){var ue=parseInt(b[0].token);return b.shift(),k?b.length===0?{face:k.face,weight:k.weight,style:k.style,decoration:k.decoration,size:ue}:b.length===1&&b[0].token==="box"&&c[O]?{face:k.face,weight:k.weight,style:k.style,decoration:k.decoration,size:ue,box:!0}:(l("Extra parameters in font definition.",E,R),{face:k.face,weight:k.weight,style:k.style,decoration:k.decoration,size:ue}):(l("Can't set just the size of the font since there is no default value.",E,R),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:ue})}if(b[0].token==="*"){if(b.shift(),b[0].type==="number")return G();l("Expected font size number after *.",E,R)}if(b[0].type==="number")return G();for(var H=[],X,Q="normal",j="normal",ee="none",J=!1,ae="face",V=!1;b.length;){var Z=b.shift(),$=Z.token.toLowerCase();switch(ae){case"face":V||$!=="utf"&&Z.type!=="number"&&$!=="bold"&&$!=="italic"&&$!=="underline"&&$!=="box"?H.length>0&&Z.token==="-"?(V=!0,H[H.length-1]=H[H.length-1]+Z.token):V?(V=!1,H[H.length-1]=H[H.length-1]+Z.token):H.push(Z.token):Z.type==="number"?(X?l("Font size specified twice in font definition.",E,R):X=Z.token,ae="modifier"):$==="bold"?Q="bold":$==="italic"?j="italic":$==="underline"?ee="underline":$==="box"?(c[O]?J=!0:l(`This font style doesn't support "box"`,E,R),ae="finished"):$==="utf"?(Z=b.shift(),ae="size"):l("Unknown parameter "+Z.token+" in font definition.",E,R);break;case"size":Z.type==="number"?X?l("Font size specified twice in font definition.",E,R):X=Z.token:l("Expected font size in font definition.",E,R),ae="modifier";break;case"modifier":$==="bold"?Q="bold":$==="italic"?j="italic":$==="underline"?ee="underline":$==="box"?(c[O]?J=!0:l(`This font style doesn't support "box"`,E,R),ae="finished"):l("Unknown parameter "+Z.token+" in font definition.",E,R);break;case"finished":l('Extra characters found after "box" in font definition.',E,R);break}}X===void 0?k?X=k.size:(l("Must specify the size of the font since there is no default value.",E,R),X=12):X=parseFloat(X),H=H.join(" "),H===""&&(k?H=k.face:(l("Must specify the name of the font since there is no default value.",E,R),H="sans-serif"));var oe=v(H),ce={};return oe?(ce.face=oe.face,ce.weight=oe.weight,ce.style=oe.style,ce.decoration=oe.decoration,ce.size=X,J&&(ce.box=!0),ce):(ce.face=H,ce.weight=Q,ce.style=j,ce.decoration=ee,ce.size=X,J&&(ce.box=!0),ce)},f=function(b,k,E){return k.length===0?'Directive "'+b+'" requires a font as a parameter.':(a[b]=u(k,a[b],E,0,b),a.is_in_header&&(o.formatting[b]=a[b]),null)},n=function(b,k,E){return k.length===0?'Directive "'+b+'" requires a font as a parameter.':(o.formatting[b]=u(k,o.formatting[b],E,0,b),null)},t=function(b,k){var E="";k.forEach(function(O){E+=O.token});var R=parseFloat(E);if(isNaN(R)||R===0)return'Directive "'+b+'" requires a number as a parameter.';o.formatting.scale=R},r=["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"],e=function(b){var k=b.split(/\s+/);if(k.length!==2&&k.length!==3)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var E=k[0],R=parseInt(k[1],10);if((isNaN(R)||R<35||R>81)&&k[1]&&(R=r.indexOf(k[1].toLowerCase())+35),isNaN(R)||R<35||R>81)return{error:'Expected drum name, received "'+k[1]+'"'};var O={sound:R};return k.length===3&&(O.noteHead=k[2]),{key:E,value:O}},h=function(b,k){var E=g.getMeasurement(k);return E.used===0||k.length!==0?{error:'Directive "'+b+'" requires a measurement as a parameter.'}:E.value},p=function(b,k){var E=g.getMeasurement(k);return E.used===0||k.length!==0?'Directive "'+b+'" requires a measurement as a parameter.':(o.formatting[b]=E.value,null)},d=function(b,k,E,R,O){if(E.length!==1||E[0].type!=="number")return'Directive "'+k+'" requires a number as a parameter.';var G=E[0].intt;return R!==void 0&&G<R?'Directive "'+k+'" requires a number greater than or equal to '+R+" as a parameter.":O!==void 0&&G>O?'Directive "'+k+'" requires a number less than or equal to '+O+" as a parameter.":(a[b]=G,null)},m=function(b,k,E){if(E.length===1&&(E[0].token==="true"||E[0].token==="false"))return a[b]=E[0].token==="true",null;var R=d(b,k,E,0,1);return R!==null?R:(a[b]=a[b]===1,null)},w=function(b,k,E,R){if(E.length!==1)return'Directive "'+k+'" requires one of [ '+R.join(", ")+" ] as a parameter.";for(var O=E[0].token,G=!1,H=0;!G&&H<R.length;H++)R[H]===O&&(G=!0);return G?(a[b]=O,null):'Directive "'+k+'" requires one of [ '+R.join(", ")+" ] as a parameter."},T=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],D=["gchord","ptstress","beatstring"],B=["bassvol","chordvol","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","vol","volinc","gchordbars"],S=["program"],L=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],x=["beat"],M=["drone"],N=["portamento"],F=["expand","grace","trim"],C=["drum","chordname"],_=["bassprog","chordprog"],P=function(b,k,E){var R=b.shift().token,O=[];if(T.indexOf(R)>=0)b.length!==0&&l("Unexpected parameter in MIDI "+R,E,0);else if(D.indexOf(R)>=0)b.length!==1?l("Expected one parameter in MIDI "+R,E,0):O.push(b[0].token);else if(B.indexOf(R)>=0)b.length!==1?l("Expected one parameter in MIDI "+R,E,0):b[0].type!=="number"?l("Expected one integer parameter in MIDI "+R,E,0):O.push(b[0].intt);else if(S.indexOf(R)>=0)b.length!==1&&b.length!==2?l("Expected one or two parameters in MIDI "+R,E,0):b[0].type!=="number"||b.length===2&&b[1].type!=="number"?l("Expected integer parameter in MIDI "+R,E,0):(O.push(b[0].intt),b.length===2&&O.push(b[1].intt));else if(L.indexOf(R)>=0)b.length!==2?l("Expected two parameters in MIDI "+R,E,0):b[0].type!=="number"||b[1].type!=="number"?l("Expected two integer parameters in MIDI "+R,E,0):(O.push(b[0].intt),O.push(b[1].intt));else if(N.indexOf(R)>=0)b.length!==2?l("Expected two parameters in MIDI "+R,E,0):b[0].type!=="alpha"||b[1].type!=="number"?l("Expected one string and one integer parameters in MIDI "+R,E,0):(O.push(b[0].token),O.push(b[1].intt));else if(R==="drummap")b.length===2&&b[0].type==="alpha"&&b[1].type==="number"?(k.formatting||(k.formatting={}),k.formatting.midi||(k.formatting.midi={}),k.formatting.midi.drummap||(k.formatting.midi.drummap={}),k.formatting.midi.drummap[b[0].token]=b[1].intt,O=k.formatting.midi.drummap):b.length===3&&b[0].type==="punct"&&b[1].type==="alpha"&&b[2].type==="number"?(k.formatting||(k.formatting={}),k.formatting.midi||(k.formatting.midi={}),k.formatting.midi.drummap||(k.formatting.midi.drummap={}),k.formatting.midi.drummap[b[0].token+b[1].token]=b[2].intt,O=k.formatting.midi.drummap):l("Expected one note name and one integer parameter in MIDI "+R,E,0);else if(F.indexOf(R)>=0)b.length!==3||b[0].type!=="number"||b[1].token!=="/"||b[2].type!=="number"?l("Expected fraction parameter in MIDI "+R,E,0):(O.push(b[0].intt),O.push(b[2].intt));else if(x.indexOf(R)>=0)b.length!==4?l("Expected four parameters in MIDI "+R,E,0):b[0].type!=="number"||b[1].type!=="number"||b[2].type!=="number"||b[3].type!=="number"?l("Expected four integer parameters in MIDI "+R,E,0):(O.push(b[0].intt),O.push(b[1].intt),O.push(b[2].intt),O.push(b[3].intt));else if(M.indexOf(R)>=0)b.length!==5?l("Expected five parameters in MIDI "+R,E,0):b[0].type!=="number"||b[1].type!=="number"||b[2].type!=="number"||b[3].type!=="number"||b[4].type!=="number"?l("Expected five integer parameters in MIDI "+R,E,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(S.indexOf(R)>=0)b.length!==1||b.length!==4?l("Expected one or two parameters in MIDI "+R,E,0):b[0].type!=="number"?l("Expected integer parameter in MIDI "+R,E,0):b.length===4?(b[1].token!=="octave"&&l("Expected octave parameter in MIDI "+R,E,0),b[2].token!=="="&&l("Expected octave parameter in MIDI "+R,E,0),b[3].type!=="number"&&l("Expected integer parameter for octave in MIDI "+R,E,0)):(O.push(b[0].intt),b.length===4&&O.push(b[3].intt));else if(C.indexOf(R)>=0)if(b.length<2)l("Expected string parameter and at least one integer parameter in MIDI "+R,E,0);else if(b[0].type!=="alpha")l("Expected string parameter and at least one integer parameter in MIDI "+R,E,0);else{var G=b.shift();for(O.push(G.token);b.length>0;)G=b.shift(),G.type!=="number"&&l("Expected integer parameter in MIDI "+R,E,0),O.push(G.intt)}else if(_.indexOf(R)>=0){if(b.length!==1&&b.length!==2)l("Expected one or two parameters in MIDI "+R,E,0);else if(b[0].type!=="number")l("Expected integer parameter in MIDI "+R,E,0);else if(b.length===2&&b[1].type!=="alpha")l("Expected alpha parameter in MIDI "+R,E,0);else if(O.push(b[0].intt),b.length===2){var H=b[1].token;H.indexOf("octave=")!=-1?(H=H.replace("octave=",""),H=parseInt(H),isNaN(H)?l("Expected octave value in MIDI"+R):(H<-1&&(l("Expected octave= in MIDI "+R+" to be >= -1 (recv:"+H+")"),H=-1),H>3&&(l("Expected octave= in MIDI "+R+" to be <= 3 (recv:"+H+")"),H=3),O.push(H))):l("Expected octave= in MIDI"+R)}}i.hasBeginMusic()?i.appendElement("midi",-1,-1,{cmd:R,params:O}):(k.formatting.midi===void 0&&(k.formatting.midi={}),k.formatting.midi[R]=O)};y.parseFontChangeLine=function(b){b=b.replace(/\$\$/g,"");var k=b.split("$");if(k.length>1&&a.setfont){var E=[];k[0]!==""&&E.push({text:k[0]});for(var R=1;R<k.length;R++)if(k[R][0]==="0")E.push({text:k[R].substring(1).replace(/\x03/g,"$$")});else{var O=parseInt(k[R][0],10);a.setfont[O]?E.push({font:a.setfont[O],text:k[R].substring(1).replace(/\x03/g,"$$")}):E[E.length-1].text+="$"+k[R].replace(/\x03/g,"$$")}return E}return b.replace(/\x03/g,"$$")};var I=["auto","above","below","hidden"];y.addDirective=function(b){var k=g.tokenize(b,0,b.length);if(k.length===0||k[0].type!=="alpha")return null;var E=b.substring(b.indexOf(k[0].token)+k[0].token.length);E=g.stripComment(E);var R=k.shift().token.toLowerCase(),O="",G;switch(R){case"bagpipes":o.formatting.bagpipes=!0;break;case"flatbeams":o.formatting.flatbeams=!0;break;case"jazzchords":o.formatting.jazzchords=!0;break;case"accentAbove":o.formatting.accentAbove=!0;break;case"germanAlphabet":o.formatting.germanAlphabet=!0;break;case"landscape":a.landscape=!0;break;case"papersize":a.papersize=E;break;case"graceslurs":if(k.length!==1)return"Directive graceslurs requires one parameter: 0 or 1";if(k[0].token==="0"||k[0].token==="false")o.formatting.graceSlurs=!1;else if(k[0].token==="1"||k[0].token==="true")o.formatting.graceSlurs=!0;else return"Directive graceslurs requires one parameter: 0 or 1 (received "+k[0].token+")";break;case"lineThickness":var H=q(k);if(H.value!==void 0&&(o.formatting.lineThickness=H.value),H.error)return H.error;break;case"stretchlast":var X=q(k);if(X.value!==void 0&&(o.formatting.stretchlast=X.value),X.error)return X.error;break;case"titlecaps":a.titlecaps=!0;break;case"titleleft":o.formatting.titleleft=!0;break;case"measurebox":o.formatting.measurebox=!0;break;case"vocal":return w("vocalPosition",R,k,I);case"dynamic":return w("dynamicPosition",R,k,I);case"gchord":return w("chordPosition",R,k,I);case"ornament":return w("ornamentPosition",R,k,I);case"volume":return w("volumePosition",R,k,I);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"stafftopmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return p(R,k);case"voicescale":if(k.length!==1||k[0].type!=="number")return"voicescale requires one float as a parameter";var Q=k.shift();return a.currentVoice&&(a.currentVoice.scale=Q.floatt,i.changeVoiceScale(a.currentVoice.scale)),null;case"voicecolor":if(k.length!==1)return"voicecolor requires one string as a parameter";var j=k.shift();return a.currentVoice&&(a.currentVoice.color=j.token,i.changeVoiceColor(a.currentVoice.color)),null;case"vskip":var ee=Math.round(h(R,k));return ee.error?ee.error:(i.addSpacing(ee),null);case"scale":t(R,k);break;case"sep":if(k.length===0)i.addSeparator(14,14,85,{startChar:a.iChar,endChar:a.iChar+5});else{var J=g.getMeasurement(k);if(J.used===0)return'Directive "'+R+'" requires 3 numbers: space above, space below, length of line';var ae=J.value;if(J=g.getMeasurement(k),J.used===0)return'Directive "'+R+'" requires 3 numbers: space above, space below, length of line';var V=J.value;if(J=g.getMeasurement(k),J.used===0||k.length!==0)return'Directive "'+R+'" requires 3 numbers: space above, space below, length of line';var Z=J.value;i.addSeparator(ae,V,Z,{startChar:a.iChar,endChar:a.iChar+E.length})}break;case"barsperstaff":if(O=d("barsperstaff",R,k),O!==null)return O;break;case"staffnonote":if(k.length!==1)return"Directive staffnonote requires one parameter: 0 or 1";if(k[0].token==="0")a.staffnonote=!0;else if(k[0].token==="1")a.staffnonote=!1;else return"Directive staffnonote requires one parameter: 0 or 1 (received "+k[0].token+")";break;case"printtempo":if(O=m("printTempo",R,k),O!==null)return O;break;case"partsbox":if(O=m("partsBox",R,k),O!==null)return O;a.partsfont.box=a.partsBox;break;case"freegchord":if(O=m("freegchord",R,k),O!==null)return O;break;case"measurenb":case"barnumbers":if(O=d("barNumbers",R,k),O!==null)return O;break;case"setbarnb":if(k.length!==1||k[0].type!=="number")return"Directive setbarnb requires a number as a parameter.";a.currBarNumber=i.setBarNumberImmediate(k[0].intt);break;case"keywarn":if(k.length!==1||k[0].type!=="number"||k[0].intt!==1&&k[0].intt!==0)return"Directive "+R+" requires 0 or 1 as a parameter.";a[R]=k[0].intt===1;break;case"begintext":var $="";for(G=g.nextLine();G&&G.indexOf("%%endtext")!==0;){if(A.startsWith(G,"%%")){var oe=G.substring(2);oe=oe.trim()+`
2
+ `,$+=oe}else $+=G.trim()+`
3
+ `;G=g.nextLine()}i.addText($,{startChar:a.iChar,endChar:a.iChar+$.length+7});break;case"continueall":a.continueall=!0;break;case"beginps":for(G=g.nextLine();G&&G.indexOf("%%endps")!==0;)g.nextLine();l("Postscript ignored",b,0);break;case"deco":E.length>0&&a.ignoredDecorations.push(E.substring(0,E.indexOf(" "))),l("Decoration redefinition ignored",b,0);break;case"text":var ce=g.translateString(E);i.addText(y.parseFontChangeLine(ce),{startChar:a.iChar,endChar:a.iChar+E.length+7});break;case"center":var ue=g.translateString(E);i.addCentered(y.parseFontChangeLine(ue));break;case"font":break;case"setfont":var fe=g.tokenize(E,0,E.length);if(fe.length>=4&&fe[0].token==="-"&&fe[1].type==="number"){var be=parseInt(fe[1].token);be>=1&&be<=9&&(a.setfont||(a.setfont=[]),fe.shift(),fe.shift(),a.setfont[be]=u(fe,a.setfont[be],b,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 f(R,k,b);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return n(R,k,b);case"barlabelfont":case"barnumberfont":case"barnumfont":return f("measurefont",k,b);case"staves":case"score":a.score_is_present=!0;for(var ge=function(Fe,ds,Wr,Xr,vs){(ds||a.staves.length===0)&&a.staves.push({index:a.staves.length,numVoices:0});var Be=A.last(a.staves);Wr!==void 0&&Be.bracket===void 0&&(Be.bracket=Wr),Xr!==void 0&&Be.brace===void 0&&(Be.brace=Xr),vs&&(Be.connectBarLines="end"),a.voices[Fe]===void 0&&(a.voices[Fe]={staffNum:Be.index,index:Be.numVoices},Be.numVoices++)},ye=!1,Y=!1,U=!1,z=!1,W=!1,K=!1,te=!1,ie,le=function(){if(te=!0,ie){var Fe="start";ie.staffNum>0&&(a.staves[ie.staffNum-1].connectBarLines==="start"||a.staves[ie.staffNum-1].connectBarLines==="continue")&&(Fe="continue"),a.staves[ie.staffNum].connectBarLines=Fe}};k.length;){var re=k.shift();switch(re.token){case"(":ye?l("Can't nest parenthesis in %%score",b,re.start):(ye=!0,z=!0);break;case")":!ye||z?l("Unexpected close parenthesis in %%score",b,re.start):ye=!1;break;case"[":Y?l("Can't nest brackets in %%score",b,re.start):(Y=!0,W=!0);break;case"]":!Y||W?l("Unexpected close bracket in %%score",b,re.start):(Y=!1,a.staves[ie.staffNum].bracket="end");break;case"{":U?l("Can't nest braces in %%score",b,re.start):(U=!0,K=!0);break;case"}":!U||K?l("Unexpected close brace in %%score",b,re.start):(U=!1,a.staves[ie.staffNum].brace="end");break;case"|":le();break;default:for(var se="";(re.type==="alpha"||re.type==="number")&&(se+=re.token,re.continueId);)re=k.shift();var ve=!ye||z,pe=W?"start":Y?"continue":void 0,ne=K?"start":U?"continue":void 0;ge(se,ve,pe,ne,te),z=!1,W=!1,K=!1,te=!1,ie=a.voices[se],R==="staves"&&le();break}}break;case"maxstaves":var de=g.getInt(E);de.digits===0?l("Expected number of staves in maxstaves"):de.value>0&&(o.formatting.maxStaves=de.value);break;case"newpage":var me=g.getInt(E);i.addNewPage(me.digits===0?-1:me.value);break;case"abc":var he=E.split(" ");switch(he[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Ee=he.shift();i.addMetaText(R+Ee,he.join(" "),{startChar:a.iChar,endChar:a.iChar+E.length+5});break;default:return"Unknown directive: "+R+he[0]}break;case"header":case"footer":var xe=g.getMeat(E,0,E.length);xe=E.substring(xe.start,xe.end),xe[0]==='"'&&xe[xe.length-1]==='"'&&(xe=xe.substring(1,xe.length-1));var we=xe.split(" "),Le={};we.length===1?Le={left:"",center:we[0],right:""}:we.length===2?Le={left:we[0],center:we[1],right:""}:Le={left:we[0],center:we[1],right:we[2]},we.length>3&&l("Too many tabs in "+R+": "+we.length+" found.",E,0),i.addMetaTextObj(R,Le,{startChar:a.iChar,endChar:a.iChar+b.length});break;case"midi":var Ae=g.tokenize(E,0,E.length,!0);Ae.length>0&&Ae[0].token==="="&&Ae.shift(),Ae.length===0?l("Expected midi command",E,0):P(Ae,o,E);break;case"percmap":var Me=e(E);Me.error?l(Me.error,b,8):(o.formatting.percmap||(o.formatting.percmap={}),o.formatting.percmap[Me.key]=Me.value);break;case"visualtranspose":var Re=g.getInt(E);Re.digits===0?l("Expected number of half steps in visualTranspose"):a.globalTranspose=Re.value;break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":o.formatting[R]=E;break;default:return"Unknown directive: "+R}return null},y.globalFormatting=function(b){for(var k in b)if(b.hasOwnProperty(k)){var E=""+b[k],R=g.tokenize(E,0,E.length),O;switch(k){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":f(k,R,E);break;case"scale":t(k,R);break;case"partsbox":O=m("partsBox",k,R),O!==null&&l(O),a.partsfont.box=a.partsBox;break;case"freegchord":O=m("freegchord",k,R),O!==null&&l(O);break;case"fontboxpadding":(R.length!==1||R[0].type!=="number")&&l('Directive "'+k+'" requires a number as a parameter.'),o.formatting.fontboxpadding=R[0].floatt;break;case"stafftopmargin":(R.length!==1||R[0].type!=="number")&&l('Directive "'+k+'" requires a number as a parameter.'),o.formatting.stafftopmargin=R[0].floatt;break;case"stretchlast":var G=q(R);if(G.value!==void 0&&(o.formatting.stretchlast=G.value),G.error)return G.error;break;default:l("Formatting directive unrecognized: ",k,0)}}};function q(b){if(b.length===0)return{value:1};if(b.length===1)if(b[0].type==="number"){if(b[0].floatt>=0||b[0].floatt<=1)return{value:b[0].floatt}}else{if(b[0].token==="false")return{value:0};if(b[0].token==="true")return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+b[0].token+")"}}})(),Ve=y,Ve}var je,Qr;function ys(){if(Qr)return je;Qr=1;var A={};const y=["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'''"];return A.pitchIndex=function(g){return y.indexOf(g)},A.noteName=function(g){return y[g]},je=A,je}var Ke,Jr;function In(){if(Jr)return Ke;Jr=1;var A=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],y=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"],g=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],l=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];function a(o,i,s,c){if(!i||i%12===0)return o;for(;i<0;)i+=12;i>11&&(i=i%12);var v=o.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!v)return o;var u=v[1],f=v[2],n=v[3],t=v[4],r=A.indexOf(u);if(r<0&&(r=y.indexOf(u)),r<0&&(r=g.indexOf(u)),r<0&&(r=l.indexOf(u)),r<0)return o;r+=i,r=r%12,s?c?o=l[r]:o=y[r]:c?o=g[r]:o=A[r];var e=f&&(f.indexOf("dim")>=0||f.indexOf("°")>=0);if(e&&o==="A#"&&(o="Bb"),e&&o==="D#"&&(o="Eb"),e&&o==="A♯"&&(o="B♭"),e&&o==="D♯"&&(o="E♭"),f&&(o+=f),n){var r=A.indexOf(n);r<0&&(r=y.indexOf(n)),r<0&&(r=g.indexOf(n)),r<0&&(r=l.indexOf(n)),o+="/",r>=0?(r+=i,r=r%12,s?c?o+=l[r]:o+=y[r]:c?o+=g[r]:o+=A[r]):o+=n}return t&&(o+=t),o}return Ke=a,Ke}var $e,Zr;function Rn(){if(Zr)return $e;Zr=1;var A={C:{modes:["CMaj","CIon","Amin","AAeo","Am","GMix","DDor","EPhr","FLyd","BLoc"],stepsFromC:0},Db:{modes:["DbMaj","DbIon","Bbmin","BbAeo","Bbm","AbMix","EbDor","FPhr","GbLyd","CLoc"],stepsFromC:1},D:{modes:["DMaj","DIon","Bmin","BAeo","Bm","AMix","EDor","F#Phr","GLyd","C#Loc"],stepsFromC:2},Eb:{modes:["EbMaj","EbIon","Cmin","CAeo","Cm","BbMix","FDor","GPhr","AbLyd","DLoc"],stepsFromC:3},E:{modes:["EMaj","EIon","C#min","C#Aeo","C#m","BMix","F#Dor","G#Phr","ALyd","D#Loc"],stepsFromC:4},F:{modes:["FMaj","FIon","Dmin","DAeo","Dm","CMix","GDor","APhr","BbLyd","ELoc"],stepsFromC:5},Gb:{modes:["GbMaj","GbIon","Ebmin","EbAeo","Ebm","DbMix","AbDor","BbPhr","CbLyd","FLoc"],stepsFromC:6},G:{modes:["GMaj","GIon","Emin","EAeo","Em","DMix","ADor","BPhr","CLyd","F#Loc"],stepsFromC:7},Ab:{modes:["AbMaj","AbIon","Fmin","FAeo","Fm","EbMix","BbDor","CPhr","DbLyd","GLoc"],stepsFromC:8},A:{modes:["AMaj","AIon","F#min","F#Aeo","F#m","EMix","BDor","C#Phr","DLyd","G#Loc"],stepsFromC:9},Bb:{modes:["BbMaj","BbIon","Gmin","GAeo","Gm","FMix","CDor","DPhr","EbLyd","ALoc"],stepsFromC:10},B:{modes:["BMaj","BIon","G#min","G#Aeo","G#m","F#Mix","C#Dor","D#Phr","ELyd","A#Loc"],stepsFromC:11},"C#":{modes:["C#Maj","C#Ion","A#min","A#Aeo","A#m","G#Mix","D#Dor","E#Phr","F#Lyd","B#Loc"],stepsFromC:1},"F#":{modes:["F#Maj","F#Ion","D#min","D#Aeo","D#m","C#Mix","G#Dor","A#Phr","BLyd","E#Loc"],stepsFromC:6},Cb:{modes:["CbMaj","CbIon","Abmin","AbAeo","Abm","GbMix","DbDor","EbPhr","FbLyd","BbLoc"],stepsFromC:11}},y=["maj","ion","min","aeo","m","mix","dor","phr","lyd","loc"];function g(c){return y.indexOf(c.toLowerCase())>=0}var l=null;function a(){l={};for(var c=Object.keys(A),v=0;v<c.length;v++){var u=A[c[v]];l[c[v].toLowerCase()]=c[v];for(var f=0;f<u.modes.length;f++){var n=u.modes[f].toLowerCase();l[n]=c[v]}}}function o(c){l||a();var v=c.toLowerCase().match(/([a-g][b#]?)(maj|ion|min|aeo|mix|dor|phr|lyd|loc|m)?/);if(!v||!v[2])return c;v=v[1]+v[2];var u=l[v];return u||c}function i(c,v){var u=A[c];if(!u||v==="")return c;var f=v.toLowerCase().match(/^(maj|ion|min|aeo|mix|dor|phr|lyd|loc|m)/);if(!f)return c;for(var n=f[1],t=0;t<u.modes.length;t++){var r=u.modes[t],e=r.toLowerCase().indexOf(n);if(e!==-1&&e===r.length-n.length)return r.substring(0,r.length-n.length)}return c}function s(c,v){var u=A[c];if(!u)return c;for(;v<0;)v+=12;for(var f=(u.stepsFromC+v)%12,n=0;n<Object.keys(A).length;n++){var t=Object.keys(A)[n];if(A[t].stepsFromC===f)return t}return c}return $e={relativeMajor:o,relativeMode:i,transposeKey:s,isLegalMode:g},$e}var Qe,ea;function Fn(){if(ea)return Qe;ea=1;var{relativeMajor:A}=Rn(),y={acc:"sharp",note:"f"},g={acc:"sharp",note:"c"},l={acc:"sharp",note:"g"},a={acc:"sharp",note:"d"},o={acc:"sharp",note:"A"},i={acc:"sharp",note:"e"},s={acc:"sharp",note:"B"},c={acc:"flat",note:"B"},v={acc:"flat",note:"e"},u={acc:"flat",note:"A"},f={acc:"flat",note:"d"},n={acc:"flat",note:"G"},t={acc:"flat",note:"c"},r={acc:"flat",note:"F"},e={"C#":[y,g,l,a,o,i,s],"F#":[y,g,l,a,o,i],B:[y,g,l,a,o],E:[y,g,l,a],A:[y,g,l],D:[y,g],G:[y],C:[],F:[c],Bb:[c,v],Eb:[c,v,u],Cm:[c,v,u],Ab:[c,v,u,f],Db:[c,v,u,f,n],Gb:[c,v,u,f,n,t],Cb:[c,v,u,f,n,t,r],"A#":[c,v],"B#":[],"D#":[c,v,u],"E#":[c],"G#":[c,v,u,f],none:[]};function h(p){var d=e[A(p)];return d?JSON.parse(JSON.stringify(d)):null}return Qe=h,Qe}var Je,ta;function On(){if(ta)return Je;ta=1;var A=ys(),y=In(),g=Fn(),l={},a={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},o=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],i=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];l.keySignature=function(n,t,r,e,h){if(n.clef.type==="perc"||n.clef.type==="none")return{accidentals:g(t),root:r,acc:e};h||(h=0),n.localTransposeVerticalMovement=0,n.localTransposePreferFlats=!1;var p=g(t);if(!p)return n.key;if(n.localTranspose=(n.globalTranspose?n.globalTranspose:0)+h,!n.localTranspose)return{accidentals:p,root:r,acc:e};if(n.globalTransposeOrigKeySig=p,n.localTranspose%12===0)return n.localTransposeVerticalMovement=n.localTranspose/12*7,{accidentals:p,root:r,acc:e};var d=t[0];t[1]==="b"||t[1]==="#"?(d+=t[1],t=t.substr(2)):t=t.substr(1);var m=a[d],w=m!==void 0;w||(m=0,d="C",t="");for(var T=m+n.localTranspose;T<0;)T+=12;T>11&&(T=T%12);var D=t[0]==="m"?i[T]:o[T],B=D+t,S=g(B);(S.length===0||S[0].acc==="flat")&&(n.localTransposePreferFlats=!0);var L=B.charCodeAt(0)-d.charCodeAt(0);return n.localTranspose>0?(L<0||L===0&&(d[1]==="#"||B[1]==="b"))&&(L+=7):n.localTranspose<0&&(L>0||L===0&&(d[1]==="b"||B[1]==="#"))&&(L-=7),n.localTranspose>0?n.localTransposeVerticalMovement=L+Math.floor(n.localTranspose/12)*7:n.localTransposeVerticalMovement=L+Math.ceil(n.localTranspose/12)*7,w?{accidentals:S,root:D[0],acc:D.length>1?D[1]:""}:{accidentals:[],root:r,acc:e}},l.chordName=function(n,t){return y(t,n.localTranspose,n.localTransposePreferFlats,n.freegchord)};var s=["c","d","e","f","g","a","b"];function c(n,t,r,e,h){for(var p=s[(n+49)%7],d=0,m=0;m<e.length;m++)e[m].note.toLowerCase()===p&&(d=v[e[m].acc]);for(var w=v[r],T=w-d,D=s[(t+49)%7],B=0,S=0;S<h.accidentals.length;S++)h.accidentals[S].note.toLowerCase()===D&&(B=v[h.accidentals[S].acc]);var L=T+B;return L<-2&&(t--,L+=D==="c"||D==="f"?1:2),L>2&&(t++,L-=D==="b"||D==="e"?1:2),[t,L]}var v={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},u={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},f={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};return l.note=function(n,t){if(!(!n.localTranspose||n.clef.type==="perc")){var r=t.pitch;if(n.localTransposeVerticalMovement&&(t.pitch=t.pitch+n.localTransposeVerticalMovement,t.name)){var e=t.accidental?t.name.substring(1):t.name,h=t.accidental?t.name[0]:"",p=A.pitchIndex(e);t.name=h+A.noteName(p+n.localTransposeVerticalMovement)}if(t.accidental){var d=c(r,t.pitch,t.accidental,n.globalTransposeOrigKeySig,n.targetKey);t.pitch=d[0],t.accidental=u[d[1]],t.name&&(t.name=f[d[1]]+t.name.replace(/[_^=]/g,""))}}},Je=l,Je}var Ze,ra;function Lr(){if(ra)return Ze;ra=1;var A=Pr(),y=On(),g={};return(function(){var l,a,o,i;g.initialize=function(t,r,e,h,p){l=t,a=r,o=e,i=p},g.standardKey=function(t,r,e,h){return y.keySignature(o,t,r,e,h)};var s={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},c=function(t,r){var e=s[t],h=e?e.mid:0;return h+r};g.fixClef=function(t){var r=s[t.type];r&&(t.clefPos=r.pitch,t.type=r.clef)},g.deepCopyKey=function(t){var r={accidentals:[],root:t.root,acc:t.acc,mode:t.mode};return t.accidentals.forEach(function(e){r.accidentals.push(Object.assign({},e))}),r};var v={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};g.addPosToKey=function(t,r){var e=t.verticalPos;r.accidentals.forEach(function(h){var p=v[h.note];p=p-e,h.verticalPos=p}),r.impliedNaturals&&r.impliedNaturals.forEach(function(h){var p=v[h.note];p=p-e,h.verticalPos=p}),e<-10?(r.accidentals.forEach(function(h){h.verticalPos-=7,(h.verticalPos>=11||h.verticalPos===10&&h.acc==="flat")&&(h.verticalPos-=7),h.note==="A"&&h.acc==="sharp"&&(h.verticalPos-=7),(h.note==="G"||h.note==="F")&&h.acc==="flat"&&(h.verticalPos-=7)}),r.impliedNaturals&&r.impliedNaturals.forEach(function(h){h.verticalPos-=7,(h.verticalPos>=11||h.verticalPos===10&&h.acc==="flat")&&(h.verticalPos-=7),h.note==="A"&&h.acc==="sharp"&&(h.verticalPos-=7),(h.note==="G"||h.note==="F")&&h.acc==="flat"&&(h.verticalPos-=7)})):e<-4?(r.accidentals.forEach(function(h){h.verticalPos-=7,e===-8&&(h.note==="f"||h.note==="g")&&h.acc==="sharp"&&(h.verticalPos-=7)}),r.impliedNaturals&&r.impliedNaturals.forEach(function(h){h.verticalPos-=7,e===-8&&(h.note==="f"||h.note==="g")&&h.acc==="sharp"&&(h.verticalPos-=7)})):e>=7&&(r.accidentals.forEach(function(h){h.verticalPos+=7}),r.impliedNaturals&&r.impliedNaturals.forEach(function(h){h.verticalPos+=7}))},g.fixKey=function(t,r){var e=Object.assign({},r);return g.addPosToKey(t,e),e};var u=function(t){var r=0,e=t[r++];(e==="^"||e==="_")&&(e=t[r++]);var h=v[e];for(h===void 0&&(h=6);r<t.length;r++)if(t[r]===",")h-=7;else if(t[r]==="'")h+=7;else break;return{mid:h-6,str:t.substring(r)}},f=function(t){for(var r=0;r<t.length;r++)t[r].note==="b"?t[r].note="B":t[r].note==="a"?t[r].note="A":t[r].note==="F"?t[r].note="f":t[r].note==="E"?t[r].note="e":t[r].note==="D"?t[r].note="d":t[r].note==="C"?t[r].note="c":t[r].note==="G"&&t[r].acc==="sharp"?t[r].note="g":t[r].note==="g"&&t[r].acc==="flat"&&(t[r].note="G")};g.parseKey=function(t,r){t.length===0&&(t="none");var e=l.tokenize(t,0,t.length),h={};if(e.length===0)return a("Must pass in key signature.",t,0),h;switch(e[0].token){case"HP":A.addDirective("bagpipes"),o.key={root:"HP",accidentals:[],acc:"",mode:""},h.foundKey=!0,e.shift();break;case"Hp":A.addDirective("bagpipes"),o.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},h.foundKey=!0,e.shift();break;case"none":o.key={root:"none",accidentals:[],acc:"",mode:""},h.foundKey=!0,e.shift();break;default:var p=l.getKeyPitch(e[0].token);if(p.len>0){h.foundKey=!0;var d="",m="";e[0].token.length>1?e[0].token=e[0].token.substring(1):e.shift();var w=p.token;if(e.length>0){var T=l.getSharpFlat(e[0].token);if(T.len>0&&(e[0].token.length>1?e[0].token=e[0].token.substring(1):e.shift(),w+=T.token,d=T.token),e.length>0){var D=l.getMode(e[0].token);D.len>0&&(e.shift(),w+=D.token,m=D.token)}if(g.standardKey(w,p.token,d,0)===void 0)return a("Unsupported key signature: "+w,t,0),h}var B=g.deepCopyKey(o.key),S=!r&&o.globalTranspose?-o.globalTranspose:0,L;if(r&&(L=o.globalTransposeOrigKeySig),o.key=g.deepCopyKey(g.standardKey(w,p.token,d,S)),r&&(o.globalTransposeOrigKeySig=L),o.key.mode=m,B&&o.keywarn!==!1){for(var x,M=0;M<o.key.accidentals.length;M++)for(x=0;x<B.accidentals.length;x++)B.accidentals[x].note&&o.key.accidentals[M].note.toLowerCase()===B.accidentals[x].note.toLowerCase()&&(B.accidentals[x].note=null);for(x=0;x<B.accidentals.length;x++)B.accidentals[x].note&&(o.key.impliedNaturals||(o.key.impliedNaturals=[]),o.key.impliedNaturals.push({acc:"natural",note:B.accidentals[x].note}))}}break}if(e.length===0||(e[0].token==="exp"&&e.shift(),e.length===0)||(e[0].token==="oct"&&e.shift(),e.length===0))return h;var N=l.getKeyAccidentals2(e);if(N.warn&&a(N.warn,t,0),N.accs){h.foundKey||(h.foundKey=!0,o.key={root:"none",acc:"",mode:"",accidentals:[]}),f(N.accs);for(var F=0;F<N.accs.length;F++){for(var C=!1,_=0;_<o.key.accidentals.length&&!C;_++)o.key.accidentals[_].note===N.accs[F].note&&(C=!0,o.key.accidentals[_].acc!==N.accs[F].acc&&(o.key.accidentals[_].acc=N.accs[F].acc,o.key.explicitAccidentals||(o.key.explicitAccidentals=[]),o.key.explicitAccidentals.push(N.accs[F])));if(!C&&(o.key.explicitAccidentals||(o.key.explicitAccidentals=[]),o.key.explicitAccidentals.push(N.accs[F]),o.key.accidentals.push(N.accs[F]),o.key.impliedNaturals))for(var P=0;P<o.key.impliedNaturals.length;P++)o.key.impliedNaturals[P].note===N.accs[F].note&&o.key.impliedNaturals.splice(P,1)}}for(var I;e.length>0;)switch(e[0].token){case"m":case"middle":if(e.shift(),e.length===0)return a("Expected = after middle",t,0),h;if(I=e.shift(),I.token!=="="){a("Expected = after middle",t,I.start);break}if(e.length===0)return a("Expected parameter after middle=",t,0),h;var q=l.getPitchFromTokens(e);q.warn&&a(q.warn,t,0),q.position&&(o.clef.verticalPos=q.position-6);break;case"transpose":if(e.shift(),e.length===0)return a("Expected = after transpose",t,0),h;if(I=e.shift(),I.token!=="="){a("Expected = after transpose",t,I.start);break}if(e.length===0)return a("Expected parameter after transpose=",t,0),h;if(e[0].type!=="number"){a("Expected number after transpose",t,e[0].start);break}o.clef.transpose=e[0].intt,e.shift();break;case"stafflines":if(e.shift(),e.length===0)return a("Expected = after stafflines",t,0),h;if(I=e.shift(),I.token!=="="){a("Expected = after stafflines",t,I.start);break}if(e.length===0)return a("Expected parameter after stafflines=",t,0),h;if(e[0].type!=="number"){a("Expected number after stafflines",t,e[0].start);break}o.clef.stafflines=e[0].intt,e.shift();break;case"staffscale":if(e.shift(),e.length===0)return a("Expected = after staffscale",t,0),h;if(I=e.shift(),I.token!=="="){a("Expected = after staffscale",t,I.start);break}if(e.length===0)return a("Expected parameter after staffscale=",t,0),h;if(e[0].type!=="number"){a("Expected number after staffscale",t,e[0].start);break}o.clef.staffscale=e[0].floatt,e.shift();break;case"octave":if(e.shift(),e.length===0)return a("Expected = after octave",t,0),h;if(I=e.shift(),I.token!=="="){a("Expected = after octave",t,I.start);break}if(e.length===0)return a("Expected parameter after octave=",t,0),h;if(e[0].type!=="number"){a("Expected number after octave",t,e[0].start);break}o.octave=e[0].intt,e.shift();break;case"style":if(e.shift(),e.length===0)return a("Expected = after style",t,0),h;if(I=e.shift(),I.token!=="="){a("Expected = after style",t,I.start);break}if(e.length===0)return a("Expected parameter after style=",t,0),h;switch(e[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":o.style=e[0].token,e.shift();break;default:a("error parsing style element: "+e[0].token,t,e[0].start);break}break;case"clef":if(e.shift(),e.length===0)return a("Expected = after clef",t,0),h;if(I=e.shift(),I.token!=="="){a("Expected = after clef",t,I.start);break}if(e.length===0)return a("Expected parameter after clef=",t,0),h;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var b=e.shift();switch(b.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":b.token="alto";break;case"F":b.token="bass";break;case"G":b.token="treble";break;case"c":b.token="alto";break;case"f":b.token="bass";break;case"g":b.token="treble";break;default:a("Expected clef name. Found "+b.token,t,b.start);break}e.length>0&&e[0].type==="number"&&(b.token+=e[0].token,e.shift()),e.length>1&&(e[0].token==="-"||e[0].token==="+"||e[0].token==="^"||e[0].token==="_")&&e[1].token==="8"&&(b.token+=e[0].token+e[1].token,e.shift(),e.shift()),o.clef={type:b.token,verticalPos:c(b.token,0)},o.currentVoice&&o.currentVoice.transpose!==void 0&&(o.clef.transpose=o.currentVoice.transpose),h.foundClef=!0;break;default:a("Unknown parameter: "+e[0].token,t,e[0].start),e.shift()}return h};var n=function(t){var r=o.voices[t];if(!(o.currentVoice&&o.currentVoice.index===r.index&&o.currentVoice.staffNum===r.staffNum))return o.currentVoice=r,i.setCurrentVoice(r.staffNum,r.index,t)};g.parseVoice=function(t,r,e){var h=l.getMeat(t,r,e),p=h.start,d=h.end,m=l.getToken(t,p,d);if(m.length===0){a("Expected a voice id",t,p);return}var w=!1;o.voices[m]===void 0&&(o.voices[m]={},w=!0,o.score_is_present&&a("Can't have an unknown V: id when the %score directive is present",t,p)),p+=m.length,p+=l.eatWhiteSpace(t,p);for(var T={startStaff:w},D=function(q){var b=l.getVoiceToken(t,p,d);b.warn!==void 0?a("Expected value for "+q+" in voice: "+b.warn,t,p):b.err!==void 0?a("Expected value for "+q+" in voice: "+b.err,t,p):b.token.length===0&&t[p]!=='"'?a("Expected value for "+q+" in voice",t,p):T[q]=b.token,p+=b.len},B=function(q,b,k){var E=l.getVoiceToken(t,p,d);E.warn!==void 0?a("Expected value for "+b+" in voice: "+E.warn,t,p):E.err!==void 0?a("Expected value for "+b+" in voice: "+E.err,t,p):E.token.length===0&&t[p]!=='"'?a("Expected value for "+b+" in voice",t,p):(E.token=parseFloat(E.token),o.voices[q][b]=E.token),p+=E.len},S=function(q,b){var k=l.getVoiceToken(t,p,d);if(k.warn!==void 0)a("Expected value for "+q+" in voice: "+k.warn,t,p);else if(k.err!==void 0)a("Expected value for "+q+" in voice: "+k.err,t,p);else if(k.token.length===0&&t[p]!=='"')a("Expected value for "+q+" in voice",t,p);else return k.token;p+=k.len},L=function(q,b){var k={_B:2,_E:9,_b:-10,_e:-3},E=l.getVoiceToken(t,p,d);if(E.warn!==void 0)a("Expected one of (_B, _E, _b, _e) for "+b+" in voice: "+E.warn,t,p);else if(E.token.length===0&&t[p]!=='"')a("Expected one of (_B, _E, _b, _e) for "+b+" in voice",t,p);else{var R=k[E.token];R?o.voices[q][b]=R:a("Expected one of (_B, _E, _b, _e) for "+b+" in voice",t,p)}p+=E.len};p<d;){var x=l.getVoiceToken(t,p,d);if(p+=x.len,x.warn)a("Error parsing voice: "+x.warn,t,p);else{var M=null;switch(x.token){case"clef":case"cl":D("clef");var N=0;T.clef!==void 0&&(T.clef=T.clef.replace(/[',]/g,""),T.clef.indexOf("+16")!==-1&&(N+=14,T.clef=T.clef.replace("+16","")),T.verticalPos=c(T.clef,N));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,,":case"treble+8":case"treble-8":case"treble^8":case"treble_8":case"treble1":case"treble2":case"treble3":case"treble4":case"treble5":case"bass+8":case"bass-8":case"bass^8":case"bass_8":case"bass+16":case"bass-16":case"bass^16":case"bass_16":case"bass1":case"bass2":case"bass3":case"bass4":case"bass5":case"tenor1":case"tenor2":case"tenor3":case"tenor4":case"tenor5":case"alto1":case"alto2":case"alto3":case"alto4":case"alto5":case"alto+8":case"alto-8":case"alto^8":case"alto_8":var F=0;T.clef=x.token.replace(/[',]/g,""),T.verticalPos=c(T.clef,F),o.voices[m].clef=x.token;break;case"staves":case"stave":case"stv":D("staves");break;case"brace":case"brc":D("brace");break;case"bracket":case"brk":D("bracket");break;case"name":case"nm":D("name");break;case"subname":case"sname":case"snm":D("subname");break;case"merge":T.startStaff=!1;break;case"stem":case"stems":M=l.getVoiceToken(t,p,d),M.warn!==void 0?a("Expected value for stems in voice: "+M.warn,t,p):M.err!==void 0?a("Expected value for stems in voice: "+M.err,t,p):M.token==="up"||M.token==="down"?o.voices[m].stem=M.token:a("Expected up or down for voice stem",t,p),p+=M.len;break;case"up":case"down":o.voices[m].stem=x.token;break;case"middle":case"m":D("verticalPos"),T.verticalPos=u(T.verticalPos).mid;break;case"gchords":case"gch":o.voices[m].suppressChords=!0,M=l.getVoiceToken(t,p,d),M.token==="0"&&(p=p+M.len);break;case"space":case"spc":D("spacing");break;case"scale":B(m,"scale");break;case"score":L(m,"scoreTranspose");break;case"transpose":B(m,"transpose");break;case"stafflines":B(m,"stafflines");break;case"staffscale":B(m,"staffscale");break;case"octave":B(m,"octave");break;case"volume":B(m,"volume");break;case"cue":var C=S("cue");C==="on"?o.voices[m].scale=.6:o.voices[m].scale=1;break;case"style":M=l.getVoiceToken(t,p,d),M.warn!==void 0?a("Expected value for style in voice: "+M.warn,t,p):M.err!==void 0?a("Expected value for style in voice: "+M.err,t,p):M.token==="normal"||M.token==="harmonic"||M.token==="rhythm"||M.token==="x"||M.token==="triangle"?o.voices[m].style=M.token:a("Expected one of [normal, harmonic, rhythm, x, triangle] for voice style",t,p),p+=M.len;break}}p+=l.eatWhiteSpace(t,p)}if((T.startStaff||o.staves.length===0)&&(o.staves.push({index:o.staves.length,meter:o.origMeter}),o.score_is_present||(o.staves[o.staves.length-1].numVoices=0)),o.voices[m].staffNum===void 0){o.voices[m].staffNum=o.staves.length-1;var _=0;for(var P in o.voices)o.voices.hasOwnProperty(P)&&o.voices[P].staffNum===o.voices[m].staffNum&&_++;o.voices[m].index=_-1}var I=o.staves[o.voices[m].staffNum];return o.score_is_present||I.numVoices++,T.clef&&(I.clef={type:T.clef,verticalPos:T.verticalPos}),T.spacing&&(I.spacing_below_offset=T.spacing),T.verticalPos&&(I.verticalPos=T.verticalPos),T.name&&(I.name?I.name.push(T.name):I.name=[T.name]),T.subname&&(I.subname?I.subname.push(T.subname):I.subname=[T.subname]),n(m)}})(),Ze=g,Ze}var et,aa;function ws(){if(aa)return et;aa=1;var A=_e(),y=Pr(),g=Lr(),l=function(a,o,i,s,c){this.reset=function(f,n,t,r){g.initialize(f,n,t,r,c),y.initialize(f,n,t,r,c)},this.reset(a,o,i,s),this.setTitle=function(f,n){i.hasMainTitle?c.addSubtitle(f,{startChar:i.iChar,endChar:i.iChar+n+2}):(c.addMetaText("title",f,{startChar:i.iChar,endChar:i.iChar+n+2}),i.hasMainTitle=!0)},this.setMeter=function(f){if(f=a.stripComment(f),f==="C")return i.havent_set_length===!0&&(i.default_length=.125,i.havent_set_length=!1),{type:"common_time"};if(f==="C|")return i.havent_set_length===!0&&(i.default_length=.125,i.havent_set_length=!1),{type:"cut_time"};if(f==="o")return i.havent_set_length===!0&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum"};if(f==="c")return i.havent_set_length===!0&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum"};if(f==="o.")return i.havent_set_length===!0&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if(f==="c.")return i.havent_set_length===!0&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(f.length===0||f.toLowerCase()==="none")return i.havent_set_length===!0&&(i.default_length=.125,i.havent_set_length=!1),null;var n=a.tokenize(f,0,f.length);try{var t=function(){var m={value:0,num:""},w=n.shift();for(w.token==="("&&(w=n.shift());;){if(w.type!=="number")throw"Expected top number of meter";if(m.value+=parseInt(w.token),m.num+=w.token,n.length===0||n[0].token==="/")return m;if(w=n.shift(),w.token===")"){if(n.length===0||n[0].token==="/")return m;throw"Unexpected paren in meter"}if(w.token!=="."&&w.token!=="+"||(m.num+=w.token,n.length===0))throw"Expected top number of meter";w=n.shift()}return m},r=function(){var m=t();if(n.length===0)return m;var w=n.shift();if(w.token!=="/")throw"Expected slash in meter";if(w=n.shift(),w.type!=="number")throw"Expected bottom number of meter";return m.den=w.token,m.value=m.value/parseInt(m.den),m};if(n.length===0)throw"Expected meter definition in M: line";for(var e={type:"specified",value:[]},h=0;;){var p=r();h+=p.value;var d={num:p.num};if(p.den!==void 0&&(d.den=p.den),e.value.push(d),n.length===0)break}return i.havent_set_length===!0&&(i.default_length=h<.75?.0625:.125,i.havent_set_length=!1),e}catch(m){o(m,f,0)}return null},this.calcTempo=function(f){var n=.25;i.meter&&i.meter.type==="specified"?n=1/parseInt(i.meter.value[0].den):i.origMeter&&i.origMeter.type==="specified"&&(n=1/parseInt(i.origMeter.value[0].den));for(var t=0;t<f.duration;t++)f.duration[t]=n*f.duration[t];return f},this.resolveTempo=function(){i.tempo&&(this.calcTempo(i.tempo),s.metaText.tempo=i.tempo,delete i.tempo)},this.addUserDefinition=function(f,n,t){var r=f.indexOf("=",n);if(r===-1){o("Need an = in a macro definition",f,n);return}var e=A.strip(f.substring(n,r)),h=A.strip(f.substring(r+1));if(e.length!==1){o("Macro definitions can only be one character",f,n);return}var p="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~";if(p.indexOf(e)===-1){o("Macro definitions must be H-Y, h-w, or tilde",f,n);return}if(h.length===0){o("Missing macro definition",f,n);return}i.macros===void 0&&(i.macros={}),i.macros[e]=h},this.setDefaultLength=function(f,n,t){var r=f.substring(n,t).replace(/ /g,""),e=r.split("/");if(e.length===2){var h=parseInt(e[0]),p=parseInt(e[1]);p>0&&(i.default_length=h/p,i.havent_set_length=!1)}else e.length===1&&e[0]==="1"&&(i.default_length=1,i.havent_set_length=!1)};var v={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(f,n,t,r){try{var e=a.tokenize(f,n,t);if(e.length===0)throw"Missing parameter in Q: field";var h={startChar:r+n-2,endChar:r+t},p=!0,d=e.shift();if(d.type==="quote"&&(h.preString=d.token,d=e.shift(),e.length===0))return v[h.preString.toLowerCase()]&&(h.bpm=v[h.preString.toLowerCase()],h.suppressBpm=!0),{type:"immediate",tempo:h};if(d.type==="alpha"&&d.token==="C"){if(e.length===0)throw"Missing tempo after C in Q: field";if(d=e.shift(),d.type==="punct"&&d.token==="="){if(e.length===0)throw"Missing tempo after = in Q: field";if(d=e.shift(),d.type!=="number")throw"Expected number after = in Q: field";h.duration=[1],h.bpm=parseInt(d.token)}else if(d.type==="number"){if(h.duration=[parseInt(d.token)],e.length===0)throw"Missing = after duration in Q: field";if(d=e.shift(),d.type!=="punct"||d.token!=="=")throw"Expected = after duration in Q: field";if(e.length===0)throw"Missing tempo after = in Q: field";if(d=e.shift(),d.type!=="number")throw"Expected number after = in Q: field";h.bpm=parseInt(d.token)}else throw"Expected number or equal after C in Q: field"}else if(d.type==="number"){var m=parseInt(d.token);if(e.length===0||e[0].type==="quote")h.duration=[1],h.bpm=m;else{if(p=!1,d=e.shift(),d.type!=="punct"&&d.token!=="/"||(d=e.shift(),d.type!=="number"))throw"Expected fraction in Q: field";var w=parseInt(d.token);for(h.duration=[m/w];e.length>0&&e[0].token!=="="&&e[0].type!=="quote";){if(d=e.shift(),d.type!=="number"||(m=parseInt(d.token),d=e.shift(),d.type!=="punct"&&d.token!=="/")||(d=e.shift(),d.type!=="number"))throw"Expected fraction in Q: field";w=parseInt(d.token),h.duration.push(m/w)}if(d=e.shift(),d.type!=="punct"&&d.token!=="=")throw"Expected = in Q: field";if(d=e.shift(),d.type!=="number")throw"Expected tempo in Q: field";h.bpm=parseInt(d.token)}}else throw"Unknown value in Q: field";if(e.length!==0&&(d=e.shift(),d.type==="quote"&&(h.postString=d.token,d=e.shift()),e.length!==0))throw"Unexpected string at end of Q: field";return i.printTempo===!1&&(h.suppress=!0),{type:p?"delaySet":"immediate",tempo:h}}catch(T){return o(T,f,n),{type:"none"}}},this.letter_to_inline_header=function(f,n,t){var r=!1,e=a.eatWhiteSpace(f,n);if(n+=e,f.length>=n+5&&f[n]==="["&&f[n+2]===":"){var h=f.indexOf("]",n),p=i.iChar+n,d=i.iChar+h+1;switch(f.substring(n,n+3)){case"[I:":var m=y.addDirective(f.substring(n+3,h));return m&&o(m,f,n),[h-n+1+e];case"[M:":var w=this.setMeter(f.substring(n+3,h));return c.hasBeginMusic()&&w?c.appendStartingElement("meter",p,d,w):i.meter=w,[h-n+1+e];case"[K:":var T=g.parseKey(f.substring(n+3,h),!0);return T.foundClef&&c.hasBeginMusic()&&c.appendStartingElement("clef",p,d,i.clef),T.foundKey&&c.hasBeginMusic()&&c.appendStartingElement("key",p,d,g.fixKey(i.clef,i.key)),[h-n+1+e];case"[P:":var D=y.parseFontChangeLine(f.substring(n+3,h));return t||s.lines.length<=s.lineNum?i.partForNextLine={title:D,startChar:p,endChar:d}:c.appendElement("part",p,d,{title:D}),[h-n+1+e];case"[L:":return this.setDefaultLength(f,n+3,h),[h-n+1+e];case"[Q:":if(h>0){var B=this.setTempo(f,n+3,h,i.iChar);return B.type==="delaySet"?c.hasBeginMusic()?c.appendElement("tempo",p,d,this.calcTempo(B.tempo)):i.tempoForNextLine=["tempo",p,d,this.calcTempo(B.tempo)]:B.type==="immediate"&&(!t&&c.hasBeginMusic()?c.appendElement("tempo",p,d,B.tempo):i.tempoForNextLine=["tempo",p,d,B.tempo]),[h-n+1+e,f[n+1],f.substring(n+3,h)]}break;case"[V:":if(h>0)return r=g.parseVoice(f,n+3,h),[h-n+1+e,f[n+1],f.substring(n+3,h),r];break;case"[r:":return[h-n+1+e]}}return[0]},this.letter_to_body_header=function(f,n){var t=!1;if(f.length>=n+3)switch(f.substring(n,n+2)){case"I:":var r=y.addDirective(f.substring(n+2));return r&&o(r,f,n),[f.length];case"M:":var e=this.setMeter(f.substring(n+2));return c.hasBeginMusic()&&e&&c.appendStartingElement("meter",i.iChar+n,i.iChar+f.length,e),[f.length];case"K:":var h=g.parseKey(f.substring(n+2),c.hasBeginMusic());return h.foundClef&&c.hasBeginMusic()&&i.keywarn!==!1&&c.appendStartingElement("clef",i.iChar+n,i.iChar+f.length,i.clef),h.foundKey&&c.hasBeginMusic()&&i.keywarn!==!1&&c.appendStartingElement("key",i.iChar+n,i.iChar+f.length,g.fixKey(i.clef,i.key)),[f.length];case"P:":return c.hasBeginMusic()&&c.appendElement("part",i.iChar+n,i.iChar+f.length,{title:f.substring(n+2)}),[f.length];case"L:":return this.setDefaultLength(f,n+2,f.length),[f.length];case"Q:":var p=f.indexOf("",n+2);p===-1&&(p=f.length);var d=this.setTempo(f,n+2,p,i.iChar);return d.type==="delaySet"?c.appendElement("tempo",i.iChar+n,i.iChar+f.length,this.calcTempo(d.tempo)):d.type==="immediate"&&c.appendElement("tempo",i.iChar+n,i.iChar+f.length,d.tempo),[p,f[n],A.strip(f.substring(n+2))];case"V:":return t=g.parseVoice(f,n+2,f.length),[f.length,f[n],A.strip(f.substring(n+2)),t]}return[0]};var u={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(f){var n=u[f[0]],t=f.length-2,r=a.translateString(a.stripComment(f.substring(2)));if(n==="unalignedWords"||n==="notes")c.addMetaTextArray(n,y.parseFontChangeLine(r),{startChar:i.iChar,endChar:i.iChar+f.length});else if(n!==void 0)c.addMetaText(n,y.parseFontChangeLine(r),{startChar:i.iChar,endChar:i.iChar+f.length});else{var e=i.iChar,h=e+f.length;switch(f[0]){case"H":for(c.addMetaTextArray("history",y.parseFontChangeLine(r),{startChar:i.iChar,endChar:i.iChar+f.length}),f=a.peekLine();f&&f[1]!==":";)a.nextLine(),c.addMetaTextArray("history",y.parseFontChangeLine(a.translateString(a.stripComment(f))),{startChar:i.iChar,endChar:i.iChar+f.length}),f=a.peekLine();break;case"K":this.resolveTempo();var p=g.parseKey(f.substring(2),!1);!i.is_in_header&&c.hasBeginMusic()&&i.keywarn!==!1&&(p.foundClef&&c.appendStartingElement("clef",e,h,i.clef),p.foundKey&&c.appendStartingElement("key",e,h,g.fixKey(i.clef,i.key))),i.is_in_header=!1;break;case"L":this.setDefaultLength(f,2,f.length);break;case"M":i.origMeter=i.meter=this.setMeter(f.substring(2));break;case"P":i.is_in_header?c.addMetaText("partOrder",y.parseFontChangeLine(r),{startChar:i.iChar,endChar:i.iChar+f.length}):i.partForNextLine={title:r,startChar:e,endChar:h};break;case"Q":var d=this.setTempo(f,2,f.length,i.iChar);d.type==="delaySet"?i.tempo=d.tempo:d.type==="immediate"&&(s.metaText.tempo?i.tempoForNextLine=["tempo",e,h,d.tempo]:s.metaText.tempo=d.tempo);break;case"T":i.titlecaps&&(r=r.toUpperCase()),this.setTitle(y.parseFontChangeLine(a.theReverser(r)),t);break;case"U":this.addUserDefinition(f,2,f.length);break;case"V":if(g.parseVoice(f,2,f.length),!i.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":o("Ignored header",f,0);break;default:return{regular:!0}}}return{}}};return et=l,et}var ke={},ia;function xs(){return ia||(ia=1,ke.legalAccents=["trill","trillh","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","beambr1","beambr2","slide","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"],ke.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],ke.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"],ke.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],ke.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],ke.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",ke.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],ke.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},ke.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"},ke.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"},ke.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2}),ke}var tt,na;function Cs(){if(na)return tt;na=1;var A=Lr(),y=On(),g,l,a,o,i,s,{legalAccents:c,volumeDecorations:v,dynamicDecorations:u,accentPseudonyms:f,accentDynamicPseudonyms:n,nonDecorations:t,durations:r,pitches:e,rests:h,accMap:p,tripletQ:d}=xs(),m=function(b,k,E,R,O,G){g=b,l=k,a=E,o=R,i=O,s=G,this.lineContinuation=!1},w=function(b,k,E){if(b.inTie[k]===void 0)return!1;var R=b.currentVoice?b.currentVoice.staffNum*100+b.currentVoice.index:0;return!!(b.inTie[k][R]&&(E.pitches!==void 0||E.rest.type!=="spacer"))},T={};m.prototype.parseMusic=function(b){s.resolveTempo(),a.is_in_header=!1;for(var k=0,E=a.iChar;g.isWhiteSpace(b[k])&&k<b.length;)k++;if(!(k===b.length||b[k]==="%")){var R=a.start_new_line;a.continueall===void 0?a.start_new_line=!0:a.start_new_line=!1;var O=0,G=s.letter_to_body_header(b,k);G[0]>0&&(k+=G[0],G[1]==="V"&&this.startNewLine());for(var H=0;k<b.length;){var X=k;if(b[k]==="%")break;var Q=s.letter_to_inline_header(b,k,R);if(Q[0]>0)k+=Q[0],Q[1]==="V"&&(R=!0);else{(!i.hasBeginMusic()||R&&!this.lineContinuation)&&(this.startNewLine(),R=!1);for(var j;;)if(j=g.eatWhiteSpace(b,k),j>0&&(k+=j),k>0&&b[k-1]===""&&(j=s.letter_to_body_header(b,k),j[0]>0&&(j[1]==="V"&&this.startNewLine(),k=j[0],a.start_new_line=!1)),j=N(b,k),j[0]>0&&(k+=j[0]),j=B(b,k),j[0]>0){T.chord||(T.chord=[]);var ee=g.translateString(j[1]);ee=ee.replace(/;/g,`
4
+ `);for(var J=!1,ae=0;ae<T.chord.length;ae++)T.chord[ae].position===j[2]&&(J=!0,T.chord[ae].name+=`
5
+ `+ee);J===!1&&(j[2]===null&&j[3]?T.chord.push({name:ee,rel_position:j[3]}):T.chord.push({name:ee,position:j[2]})),k+=j[0];var V=g.skipWhiteSpace(b.substring(k));V>0&&(T.force_end_beam_last=!0),k+=V}else if(t.indexOf(b[k])===-1?j=M(b,k):j=[0],j[0]>0)j[1]===null?k+1<b.length&&this.startNewLine():j[1].length>0&&(j[1].indexOf("style=")===0?T.style=j[1].substr(6):(T.decoration===void 0&&(T.decoration=[]),j[1]==="beambr1"?T.beambr=1:j[1]==="beambr2"?T.beambr=2:T.decoration.push(j[1]))),k+=j[0];else if(j=S(b,k),j[0]>0)T.gracenotes=j[1],k+=j[0];else break;if(j=F(b,k),j[0]>0){H=0,T.gracenotes!==void 0&&(T.rest={type:"spacer"},T.duration=.125,a.addFormattingOptions(T,o.formatting,"note"),i.appendElement("note",E+k,E+k+j[0],T),a.measureNotEmpty=!0,T={});var Z={type:j[1]};Z.type.length===0?l("Unknown bar type",b,k):(a.inEnding&&Z.type!=="bar_thin"&&(Z.endEnding=!0,a.inEnding=!1),j[2]&&(Z.startEnding=j[2],a.inEnding&&(Z.endEnding=!0),a.inEnding=!0,j[1]==="bar_right_repeat"?a.restoreStartEndingHoldOvers():a.duplicateStartEndingHoldOvers()),T.decoration!==void 0&&(Z.decoration=T.decoration),T.chord!==void 0&&(Z.chord=T.chord),Z.startEnding&&a.barFirstEndingNum===void 0?a.barFirstEndingNum=a.currBarNumber:Z.startEnding&&Z.endEnding&&a.barFirstEndingNum?a.currBarNumber=a.barFirstEndingNum:Z.endEnding&&(a.barFirstEndingNum=void 0),Z.type!=="bar_invisible"&&a.measureNotEmpty&&q()&&(a.currBarNumber++,a.barNumbers&&a.currBarNumber%a.barNumbers===0&&(Z.barNumber=a.currBarNumber)),a.addFormattingOptions(T,o.formatting,"bar"),i.appendElement("bar",E+X,E+k+j[0],Z),a.measureNotEmpty=!1,T={}),k+=j[0]}else if(b[k]==="&")j=L(b,k),j[0]>0&&(i.appendElement("overlay",E,E+1,{}),k+=1,H++);else{if(j=C(b,k),j.consumed>0&&(j.startSlur!==void 0&&(T.startSlur=j.startSlur),j.dottedSlur&&(T.dottedSlur=!0),j.triplet!==void 0&&(O>0?l("Can't nest triplets",b,k):(T.startTriplet=j.triplet,T.tripletMultiplier=j.tripletQ/j.triplet,T.tripletR=j.num_notes,O=j.num_notes===void 0?j.triplet:j.num_notes)),k+=j.consumed),b[k]==="["){k++;for(var $=null,oe=!1,ce=!1;!ce;){var ue=M(b,k);ue[0]>0&&(k+=ue[0]);var fe=P(b,k,{},!1);if(fe!==null&&fe.pitch!==void 0)ue[0]>0&&ue[1].indexOf("style=")!==0&&(T.decoration===void 0&&(T.decoration=[]),T.decoration.push(ue[1])),fe.end_beam&&(T.end_beam=!0,delete fe.end_beam),T.pitches===void 0?(T.duration=fe.duration,T.pitches=[fe]):T.pitches.push(fe),delete fe.duration,ue[0]>0&&ue[1].indexOf("style=")===0&&(T.pitches[T.pitches.length-1].style=ue[1].substr(6)),a.inTieChord[T.pitches.length]&&(fe.endTie=!0,a.inTieChord[T.pitches.length]=void 0),fe.startTie&&(a.inTieChord[T.pitches.length]=!0),k=fe.endChar,delete fe.endChar;else if(b[k]===" ")l("Spaces are not allowed in chords",b,k),k++;else{if(k<b.length&&b[k]==="]"){k++,a.next_note_duration!==0&&(T.duration=T.duration*a.next_note_duration,a.next_note_duration=0),w(a,H,T)&&(T.pitches.forEach(function(K){K.endTie=!0}),D(a,H,!1)),O>0&&!(T.rest&&T.rest.type==="spacer")&&(O--,O===0&&(T.endTriplet=!0));for(var be=!1;k<b.length&&!be;){switch(b[k]){case" ":case" ":_(T);break;case")":T.endSlur===void 0?T.endSlur=1:T.endSlur++;break;case"-":T.pitches.forEach(function(K){K.startTie={}}),D(a,H,!0);break;case">":case"<":var ge=I(b,k);k+=ge[0]-1,a.next_note_duration=ge[2],$?$=$*ge[1]:$=ge[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var ye=g.getFraction(b,k);$=ye.value,k=ye.index;var Y=b[k];Y===" "&&(oe=!0),Y==="-"||Y===")"||Y===" "||Y==="<"||Y===">"?k--:be=!0;break;case"0":$=0;break;default:be=!0;break}be||k++}}else l("Expected ']' to end the chords",b,k);T.pitches!==void 0&&($!==null&&(T.duration=T.duration*$,oe&&_(T)),a.addFormattingOptions(T,o.formatting,"note"),i.appendElement("note",E+X,E+k,T),a.measureNotEmpty=!0,T={}),ce=!0}}}else{var U={},z=P(b,k,U,!0);if(U.endTie!==void 0&&D(a,H,!0),z!==null){z.pitch!==void 0?(T.pitches=[{}],z.accidental!==void 0&&(T.pitches[0].accidental=z.accidental),T.pitches[0].pitch=z.pitch,T.pitches[0].name=z.name,(z.midipitch||z.midipitch===0)&&(T.pitches[0].midipitch=z.midipitch),z.endSlur!==void 0&&(T.pitches[0].endSlur=z.endSlur),z.endTie!==void 0&&(T.pitches[0].endTie=z.endTie),z.startSlur!==void 0&&(T.pitches[0].startSlur=z.startSlur),T.startSlur!==void 0&&(T.pitches[0].startSlur=T.startSlur),T.dottedSlur!==void 0&&(T.pitches[0].dottedSlur=!0),z.startTie!==void 0&&(T.pitches[0].startTie=z.startTie),T.startTie!==void 0&&(T.pitches[0].startTie=T.startTie)):(T.rest=z.rest,z.rest.type==="multimeasure"&&q()&&(a.currBarNumber+=z.rest.text-1),z.endSlur!==void 0&&(T.endSlur=z.endSlur),z.endTie!==void 0&&(T.rest.endTie=z.endTie),z.startSlur!==void 0&&(T.startSlur=z.startSlur),z.startTie!==void 0&&(T.rest.startTie=z.startTie),T.startTie!==void 0&&(T.rest.startTie=T.startTie)),z.chord!==void 0&&(T.chord=z.chord),z.duration!==void 0&&(T.duration=z.duration),z.decoration!==void 0&&(T.decoration=z.decoration),z.graceNotes!==void 0&&(T.graceNotes=z.graceNotes),delete T.startSlur,delete T.dottedSlur,w(a,H,T)&&(T.pitches!==void 0?T.pitches[0].endTie=!0:T.rest.type!=="spacer"&&(T.rest.endTie=!0),D(a,H,!1)),(z.startTie||T.startTie)&&D(a,H,!0),k=z.endChar,O>0&&!(z.rest&&z.rest.type==="spacer")&&(O--,O===0&&(T.endTriplet=!0)),z.end_beam&&_(T),T.rest&&T.rest.type==="rest"&&T.duration===1&&x(a)<=1&&(T.rest.type="whole",T.duration=x(a)),T.duration<1&&r.indexOf(T.duration)===-1&&T.duration!==0&&(!T.rest||T.rest.type!=="spacer")&&l("Duration not representable: "+b.substring(X,k),b,k),a.addFormattingOptions(T,o.formatting,"note");var W=i.appendElement("note",E+X,E+k,T);W||(this.startNewLine(),i.appendElement("note",E+X,E+k,T)),a.measureNotEmpty=!0,T={}}}k===X&&(b[k]!==" "&&b[k]!=="`"&&l("Unknown character ignored",b,k),k++)}}}this.lineContinuation=b.indexOf("")>=0||G[0]>0,this.lineContinuation||(T={})}};var D=function(b,k,E){var R=b.currentVoice?b.currentVoice.staffNum*100+b.currentVoice.index:0;b.inTie[k]===void 0&&(b.inTie[k]=[]),b.inTie[k][R]=E},B=function(b,k){if(b[k]==='"'){var E=g.getBrackettedSubstring(b,k,5);if(E[2]||l("Missing the closing quote while parsing the chord symbol",b,k),E[0]>0&&E[1].length>0&&E[1][0]==="^")E[1]=E[1].substring(1),E[2]="above";else if(E[0]>0&&E[1].length>0&&E[1][0]==="_")E[1]=E[1].substring(1),E[2]="below";else if(E[0]>0&&E[1].length>0&&E[1][0]==="<")E[1]=E[1].substring(1),E[2]="left";else if(E[0]>0&&E[1].length>0&&E[1][0]===">")E[1]=E[1].substring(1),E[2]="right";else if(E[0]>0&&E[1].length>0&&E[1][0]==="@"){E[1]=E[1].substring(1);var R=g.getFloat(E[1]);if(R.digits===0)return l("Missing first position in absolutely positioned annotation.",b,k),E[1]=E[1].replace("@",""),E[2]="above",E;if(E[1]=E[1].substring(R.digits),E[1][0]!==",")return l("Missing comma absolutely positioned annotation.",b,k),E[1]=E[1].replace("@",""),E[2]="above",E;E[1]=E[1].substring(1);var O=g.getFloat(E[1]);if(O.digits===0)return l("Missing second position in absolutely positioned annotation.",b,k),E[1]=E[1].replace("@",""),E[2]="above",E;E[1]=E[1].substring(O.digits);var G=g.skipWhiteSpace(E[1]);E[1]=E[1].substring(G),E[2]=null,E[3]={x:R.value,y:O.value}}else a.freegchord!==!0&&(E[1]=E[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),E[1]=E[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),E[1]=E[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),E[1]=E[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),E[1]=E[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),E[1]=E[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),E[2]="default",E[1]=y.chordName(a,E[1]);return E}return[0,""]},S=function(b,k){if(b[k]==="{"){var E=g.getBrackettedSubstring(b,k,1,"}");E[2]||l("Missing the closing '}' while parsing grace note",b,k),b[k+E[0]]===")"&&(E[0]++,E[1]+=")");for(var R=[],O=0,G=!1;O<E[1].length;){var H=!1;E[1][O]==="/"&&(H=!0,O++);var X=P(E[1],O,{},!1);X!==null?(X.duration=X.duration/(a.default_length*8),H&&(X.acciaccatura=!0),X.rest?l("Rests not allowed as grace notes '"+E[1][O]+"' while parsing grace note",b,k):R.push(X),G&&(X.endTie=!0,G=!1),X.startTie&&(G=!0),O=X.endChar,delete X.endChar,X.end_beam&&(X.endBeam=!0,delete X.end_beam)):(E[1][O]===" "?R.length>0&&(R[R.length-1].endBeam=!0):l("Unknown character '"+E[1][O]+"' while parsing grace note",b,k),O++)}if(R.length)return[E[0],R]}return[0]};function L(b,k){if(b[k]==="&"){for(var E=k;b[k]&&b[k]!==":"&&b[k]!=="|";)k++;return[k-E,b.substring(E+1,k)]}return[0]}function x(b){var k=b.origMeter;return!k||k.type!=="specified"||!k.value||k.value.length===0?1:parseInt(k.value[0].num,10)/parseInt(k.value[0].den,10)}var M=function(b,k){var E=a.macros[b[k]];if(E!==void 0)return(E[0]==="!"||E[0]==="+")&&(E=E.substring(1)),(E[E.length-1]==="!"||E[E.length-1]==="+")&&(E=E.substring(0,E.length-1)),c.includes(E)?[1,E]:v.includes(E)?(a.volumePosition==="hidden"&&(E=""),[1,E]):u.includes(E)?(a.dynamicPosition==="hidden"&&(E=""),[1,E]):(a.ignoredDecorations.includes(E)||l("Unknown macro: "+E,b,k),[1,""]);switch(b[k]){case".":if(b[k+1]==="("||b[k+1]==="-")break;return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var R=g.getBrackettedSubstring(b,k,5);if(R[1].length>1&&(R[1][0]==="^"||R[1][0]==="_")&&(R[1]=R[1].substring(1)),c.includes(R[1]))return R;if(v.includes(R[1]))return a.volumePosition==="hidden"&&(R[1]=""),R;if(u.includes(R[1]))return a.dynamicPosition==="hidden"&&(R[1]=""),R;var O=f.findIndex(function(G){return R[1]===G[0]});return O>=0?(R[1]=f[O][1],R):(O=n.findIndex(function(G){return R[1]===G[0]}),O>=0?(R[1]=n[O][1],a.dynamicPosition==="hidden"&&(R[1]=""),R):b[k]==="!"&&(R[0]===1||b[k+R[0]-1]!=="!")?[1,null]:(l("Unknown decoration: "+R[1],b,k),R[1]="",R));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"];case"t":return[1,"trillh"]}return[0,0]},N=function(b,k){for(var E=k;g.isWhiteSpace(b[k]);)k++;return[k-E]},F=function(b,k){var E=g.getBarLine(b,k);if(E.len===0)return[0,""];if(E.warn)return l(E.warn,b,k),[E.len,""];for(var R=0;R<b.length&&b[k+E.len+R]===" ";R++);var O=E.len;if(b[k+E.len+R]==="["&&(E.len+=R+1),b[k+E.len]==='"'&&b[k+E.len-1]==="["){var G=g.getBrackettedSubstring(b,k+E.len,5);return[E.len+G[0],E.token,G[1]]}var H=g.getTokenOf(b.substring(k+E.len),"1234567890-,");return H.len===0||H.token[0]==="-"?[O,E.token]:[E.len+H.len,E.token,H.token]},C=function(b,k){var E={},R=k;for(b[k]==="."&&b[k+1]==="("&&(E.dottedSlur=!0,k++);b[k]==="("||g.isWhiteSpace(b[k]);)b[k]==="("&&(k+1<b.length&&b[k+1]>="2"&&b[k+1]<="9"?(E.triplet!==void 0?l("Can't nest triplets",b,k):(E.triplet=b[k+1]-"0",E.tripletQ=d[E.triplet],E.num_notes=E.triplet,k+2<b.length&&b[k+2]===":"&&(k+3<b.length&&b[k+3]===":"?k+4<b.length&&b[k+4]>="1"&&b[k+4]<="9"?(E.num_notes=b[k+4]-"0",k+=3):l("expected number after the two colons after the triplet to mark the duration",b,k):k+3<b.length&&b[k+3]>="1"&&b[k+3]<="9"?(E.tripletQ=b[k+3]-"0",k+4<b.length&&b[k+4]===":"?k+5<b.length&&b[k+5]>="1"&&b[k+5]<="9"&&(E.num_notes=b[k+5]-"0",k+=4):k+=2):l("expected number after the triplet to mark the duration",b,k))),k++):E.startSlur===void 0?E.startSlur=1:E.startSlur++),k++;return E.consumed=k-R,E};m.prototype.startNewLine=function(){var b={startChar:-1,endChar:-1};a.partForNextLine.title&&(b.part=a.partForNextLine),b.clef=a.currentVoice&&a.staves[a.currentVoice.staffNum].clef!==void 0?Object.assign({},a.staves[a.currentVoice.staffNum].clef):Object.assign({},a.clef);var k=a.currentVoice?a.currentVoice.scoreTranspose:0;if(b.key=A.standardKey(a.key.root+a.key.acc+a.key.mode,a.key.root,a.key.acc,k),b.key.mode=a.key.mode,a.key.impliedNaturals&&(b.key.impliedNaturals=a.key.impliedNaturals),a.key.explicitAccidentals)for(var E=0;E<a.key.explicitAccidentals.length;E++){for(var R=!1,O=0;O<b.key.accidentals.length;O++)b.key.accidentals[O].note===a.key.explicitAccidentals[E].note&&(b.key.accidentals[O].acc=a.key.explicitAccidentals[E].acc,R=!0);R||b.key.accidentals.push(a.key.explicitAccidentals[E])}if(a.targetKey=b.key,b.key.explicitAccidentals&&delete b.key.explicitAccidentals,A.addPosToKey(b.clef,b.key),a.meter!==null?(a.currentVoice?(a.staves.forEach(function(Q){Q.meter=a.meter}),b.meter=a.staves[a.currentVoice.staffNum].meter,a.staves[a.currentVoice.staffNum].meter=null):b.meter=a.meter,a.meter=null):a.currentVoice&&a.staves[a.currentVoice.staffNum].meter&&(b.meter=a.staves[a.currentVoice.staffNum].meter,a.staves[a.currentVoice.staffNum].meter=null),a.currentVoice&&a.currentVoice.name&&(b.name=a.currentVoice.name),a.vocalfont&&(b.vocalfont=a.vocalfont),a.tripletfont&&(b.tripletfont=a.tripletfont),a.gchordfont&&(b.gchordfont=a.gchordfont),a.style&&(b.style=a.style),a.currentVoice){var G=a.staves[a.currentVoice.staffNum];G.brace&&(b.brace=G.brace),G.bracket&&(b.bracket=G.bracket),G.connectBarLines&&(b.connectBarLines=G.connectBarLines),G.name&&(b.name=G.name[a.currentVoice.index]),G.subname&&(b.subname=G.subname[a.currentVoice.index]),a.currentVoice.stem&&(b.stem=a.currentVoice.stem),a.currentVoice.stafflines&&(b.stafflines=a.currentVoice.stafflines),a.currentVoice.staffscale&&(b.staffscale=a.currentVoice.staffscale),a.currentVoice.scale&&(b.scale=a.currentVoice.scale),a.currentVoice.color&&(b.color=a.currentVoice.color),a.currentVoice.style&&(b.style=a.currentVoice.style),a.currentVoice.transpose&&(b.clef.transpose=a.currentVoice.transpose),b.currentVoice=a.currentVoice;for(var H=Object.keys(a.voices),X=0;X<H.length;X++)b.currentVoice.staffNum===a.voices[H[X]].staffNum&&b.currentVoice.index===a.voices[H[X]].index&&(b.currentVoiceName=H[X])}a.barNumbers===0&&q()&&a.currBarNumber!==1&&(b.barNumber=a.currBarNumber),i.startNewLine(b),a.key.impliedNaturals&&delete a.key.impliedNaturals,a.partForNextLine={},a.tempoForNextLine.length===4&&i.appendElement(a.tempoForNextLine[0],a.tempoForNextLine[1],a.tempoForNextLine[2],a.tempoForNextLine[3]),a.tempoForNextLine=[]};var _=function(b){return b.duration!==void 0&&b.duration<.25&&(b.end_beam=!0),b},P=function(b,k,E,R){var O=function(ae){return ae==="octave"||ae==="duration"||ae==="Zduration"||ae==="broken_rhythm"||ae==="end_slur"},G;b[k]==="."&&b[k+1]==="-"&&(G=!0,k++);for(var H="startSlur",X=!1;;){switch(b[k]){case"(":if(H==="startSlur")E.startSlur===void 0?E.startSlur=1:E.startSlur++;else return O(H)?(E.endChar=k,E):null;break;case")":if(O(H))E.endSlur===void 0?E.endSlur=1:E.endSlur++;else return null;break;case"^":if(H==="startSlur")E.accidental="sharp",H="sharp2";else if(H==="sharp2")E.accidental="dblsharp",H="pitch";else return O(H)?(E.endChar=k,E):null;break;case"_":if(H==="startSlur")E.accidental="flat",H="flat2";else if(H==="flat2")E.accidental="dblflat",H="pitch";else return O(H)?(E.endChar=k,E):null;break;case"=":if(H==="startSlur")E.accidental="natural",H="pitch";else return O(H)?(E.endChar=k,E):null;break;case"A":case"B":case"C":case"D":case"E":case"F":case"G":case"a":case"b":case"c":case"d":case"e":case"f":case"g":if(H==="startSlur"||H==="sharp2"||H==="flat2"||H==="pitch"){if(E.pitch=e[b[k]],E.pitch+=7*(a.currentVoice&&a.currentVoice.octave!==void 0?a.currentVoice.octave:a.octave),E.name=b[k],E.accidental&&(E.name=p[E.accidental]+E.name),y.note(a,E),H="octave",R&&a.next_note_duration!==0?(E.duration=a.default_length*a.next_note_duration,a.next_note_duration=0,X=!0):E.duration=a.default_length,a.clef&&a.clef.type==="perc"||a.currentVoice&&a.currentVoice.clef==="perc"){var Q=b[k];E.accidental&&(Q=p[E.accidental]+Q),o.formatting&&o.formatting.midi&&o.formatting.midi.drummap&&(E.midipitch=o.formatting.midi.drummap[Q])}}else return O(H)?(E.endChar=k,E):null;break;case",":if(H==="octave")E.pitch-=7,E.name+=",";else return O(H)?(E.endChar=k,E):null;break;case"'":if(H==="octave")E.pitch+=7,E.name+="'";else return O(H)?(E.endChar=k,E):null;break;case"x":case"X":case"y":case"z":case"Z":if(H==="startSlur")E.rest={type:h[b[k]]},delete E.accidental,delete E.startSlur,delete E.startTie,delete E.endSlur,delete E.endTie,delete E.end_beam,delete E.grace_notes,E.rest.type.indexOf("multimeasure")>=0?(E.duration=o.getBarLength(),E.rest.text=1,H="Zduration"):(R&&a.next_note_duration!==0?(E.duration=a.default_length*a.next_note_duration,a.next_note_duration=0,X=!0):E.duration=a.default_length,H="duration");else return O(H)?(E.endChar=k,E):null;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if(H==="octave"||H==="duration"){var j=g.getFraction(b,k);for(E.duration=E.duration*j.value,E.endChar=j.index;j.index<b.length&&(g.isWhiteSpace(b[j.index])||b[j.index]==="-");)b[j.index]==="-"?E.startTie={}:E=_(E),j.index++;k=j.index-1,H="broken_rhythm"}else if(H==="sharp2")E.accidental="quartersharp",H="pitch";else if(H==="flat2")E.accidental="quarterflat",H="pitch";else if(H==="Zduration"){var ee=g.getNumber(b,k);return E.duration=ee.num*o.getBarLength(),E.rest.text=ee.num,E.endChar=ee.index,E}else return null;break;case"-":if(H==="startSlur")i.addTieToLastNote(G),E.endTie=!0;else if(H==="octave"||H==="duration"||H==="end_slur")if(E.startTie={},!X&&R)H="broken_rhythm";else return g.isWhiteSpace(b[k+1])&&_(E),E.endChar=k+1,E;else return H==="broken_rhythm"?(E.endChar=k,E):null;break;case" ":case" ":if(O(H)){E.end_beam=!0,G=!1;do b[k]==="."&&b[k+1]==="-"&&(G=!0,k++),b[k]==="-"&&(E.startTie={},G&&(E.startTie.style="dotted")),k++;while(k<b.length&&(g.isWhiteSpace(b[k])||b[k]==="-")||b[k]==="."&&b[k+1]==="-");if(E.endChar=k,!X&&R&&(b[k]==="<"||b[k]===">"))k--,H="broken_rhythm";else return E}else return null;break;case">":case"<":if(O(H))if(R){var J=I(b,k);k+=J[0]-1,a.next_note_duration=J[2],E.duration=J[1]*E.duration,H="end_slur"}else return E.endChar=k,E;else return null;break;default:return O(H)?(E.endChar=k,E):null}if(k++,k===b.length)return O(H)?(E.endChar=k,E):null}return null},I=function(b,k){switch(b[k]){case">":return k<b.length-2&&b[k+1]===">"&&b[k+2]===">"?[3,1.875,.125]:k<b.length-1&&b[k+1]===">"?[2,1.75,.25]:[1,1.5,.5];case"<":return k<b.length-2&&b[k+1]==="<"&&b[k+2]==="<"?[3,.125,1.875]:k<b.length-1&&b[k+1]==="<"?[2,.25,1.75]:[1,.5,1.5]}return null};function q(){return a.currentVoice===void 0||a.currentVoice.staffNum===0&&a.currentVoice.index===0}return tt=m,tt}var rt,sa;function ks(){if(sa)return rt;sa=1;var A=_e(),y=function(g,l){this.lineIndex=0,this.lines=g,this.multilineVars=l,this.skipWhiteSpace=function(t){for(var r=0;r<t.length;r++)if(!this.isWhiteSpace(t[r]))return r;return t.length};var a=function(t,r){return r>=t.length};this.eatWhiteSpace=function(t,r){for(var e=r;e<t.length;e++)if(!this.isWhiteSpace(t[e]))return e-r;return e-r},this.getKeyPitch=function(t){var r=this.skipWhiteSpace(t);if(a(t,r))return{len:0};switch(t[r]){case"A":return{len:r+1,token:"A"};case"B":return{len:r+1,token:"B"};case"C":return{len:r+1,token:"C"};case"D":return{len:r+1,token:"D"};case"E":return{len:r+1,token:"E"};case"F":return{len:r+1,token:"F"};case"G":return{len:r+1,token:"G"}}return{len:0}},this.getSharpFlat=function(t){if(t==="bass")return{len:0};switch(t[0]){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(t){var r=function(p,d){for(;d<p.length&&(p[d]>="a"&&p[d]<="z"||p[d]>="A"&&p[d]<="Z");)d++;return d},e=this.skipWhiteSpace(t);if(a(t,e))return{len:0};var h=t.substring(e,e+3).toLowerCase();switch((h.length>1&&h[1]===" "||h[1]==="^"||h[1]==="_"||h[1]==="=")&&(h=h[0]),h){case"mix":return{len:r(t,e),token:"Mix"};case"dor":return{len:r(t,e),token:"Dor"};case"phr":return{len:r(t,e),token:"Phr"};case"lyd":return{len:r(t,e),token:"Lyd"};case"loc":return{len:r(t,e),token:"Loc"};case"aeo":return{len:r(t,e),token:"m"};case"maj":return{len:r(t,e),token:""};case"ion":return{len:r(t,e),token:""};case"min":return{len:r(t,e),token:"m"};case"m":return{len:r(t,e),token:"m"}}return{len:0}},this.getClef=function(t,r){var e=t,h=this.skipWhiteSpace(t);if(a(t,h))return{len:0};var p=!1,d=t.substring(h);if(A.startsWith(d,"clef=")&&(p=!0,d=d.substring(5),h+=5),d.length===0&&p)return{len:h+5,warn:"No clef specified: "+e};var m=this.skipWhiteSpace(d);if(a(d,m))return{len:0};m>0&&(h+=m,d=d.substring(m));var w=null;if(A.startsWith(d,"treble"))w="treble";else if(A.startsWith(d,"bass3"))w="bass3";else if(A.startsWith(d,"bass"))w="bass";else if(A.startsWith(d,"tenor"))w="tenor";else if(A.startsWith(d,"alto2"))w="alto2";else if(A.startsWith(d,"alto1"))w="alto1";else if(A.startsWith(d,"alto"))w="alto";else if(!r&&p&&A.startsWith(d,"none"))w="none";else if(A.startsWith(d,"perc"))w="perc";else if(!r&&p&&A.startsWith(d,"C"))w="tenor";else if(!r&&p&&A.startsWith(d,"F"))w="bass";else if(!r&&p&&A.startsWith(d,"G"))w="treble";else return{len:h+5,warn:"Unknown clef specified: "+e};return d=d.substring(w.length),m=this.isMatch(d,"+8"),m>0?w+="+8":(m=this.isMatch(d,"-8"),m>0&&(w+="-8")),{len:h+w.length,token:w,explicit:p}},this.getBarLine=function(t,r){switch(t[r]){case"]":switch(++r,t[r]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++r,t[r]>="1"&&t[r]<="9"||t[r]==='"'?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}case":":switch(++r,t[r]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++r,t[r]){case"]":switch(++r,t[r]){case"|":return++r,t[r]===":"?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}case"|":return++r,t[r]===":"?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}default:return{len:1,warn:"Unknown bar symbol"}}case"[":if(++r,t[r]==="|")switch(++r,t[r]){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}else return t[r]>="1"&&t[r]<="9"||t[r]==='"'?{len:1,token:"bar_invisible"}:{len:0};case"|":switch(++r,t[r]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++r,t[r]===":"?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var e=0;t[r+e]===":";)e++;return{len:1+e,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(t,r){for(var e=0;e<t.length;e++)if(r.indexOf(t[e])<0)return{len:e,token:t.substring(0,e)};return{len:e,token:t}},this.getToken=function(t,r,e){for(var h=r;h<e&&!this.isWhiteSpace(t[h]);)h++;return t.substring(r,h)},this.isMatch=function(t,r){var e=this.skipWhiteSpace(t);return a(t,e)?0:A.startsWith(t.substring(e),r)?e+r.length:0},this.getPitchFromTokens=function(t){var r={},e={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};if(r.position=e[t[0].token],r.position===void 0)return{warn:"Pitch expected. Found: "+t[0].token};for(t.shift();t.length;)switch(t[0].token){case",":r.position-=7,t.shift();break;case"'":r.position+=7,t.shift();break;default:return r}return r},this.getKeyAccidentals2=function(t){for(var r;t.length>0;){var e;if(t[0].token==="^"){if(e="sharp",t.shift(),t.length===0)return{accs:r,warn:"Expected note name after "+e};switch(t[0].token){case"^":e="dblsharp",t.shift();break;case"/":e="quartersharp",t.shift();break}}else if(t[0].token==="=")e="natural",t.shift();else if(t[0].token==="_"){if(e="flat",t.shift(),t.length===0)return{accs:r,warn:"Expected note name after "+e};switch(t[0].token){case"_":e="dblflat",t.shift();break;case"/":e="quarterflat",t.shift();break}}else return{accs:r};if(t.length===0)return{accs:r,warn:"Expected note name after "+e};switch(t[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":r===void 0&&(r=[]),r.push({acc:e,note:t[0].token[0]}),t[0].token.length===1?t.shift():t[0].token=t[0].token.substring(1);break;default:return{accs:r,warn:"Expected note name after "+e+" Found: "+t[0].token}}}return{accs:r}},this.getKeyAccidental=function(t){var r={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},e=this.skipWhiteSpace(t);if(a(t,e))return{len:0};var h=null;switch(t[e]){case"^":case"_":case"=":h=t[e];break;default:return{len:0}}if(e++,a(t,e))return{len:1,warn:"Expected note name after accidental"};switch(t[e]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:e+1,token:{acc:r[h],note:t[e]}};case"^":case"_":case"/":if(h+=t[e],e++,a(t,e))return{len:2,warn:"Expected note name after accidental"};switch(t[e]){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:e+1,token:{acc:r[h],note:t[e]}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(t){return t===" "||t===" "||t===""},this.getMeat=function(t,r,e){var h=t.indexOf("%",r);for(h>=0&&h<e&&(e=h);r<e&&(t[r]===" "||t[r]===" "||t[r]==="");)r++;for(;r<e&&(t[e-1]===" "||t[e-1]===" "||t[e-1]==="");)e--;return{start:r,end:e}};var o=function(t){return t>="A"&&t<="Z"||t>="a"&&t<="z"},i=function(t){return t>="0"&&t<="9"};this.tokenize=function(t,r,e,h){var p=this.getMeat(t,r,e);r=p.start,e=p.end;for(var d=[],m;r<e;){if(t[r]==='"'){for(m=r+1;m<e&&t[m]!=='"';)m++;d.push({type:"quote",token:t.substring(r+1,m),start:r+1,end:m}),m++}else if(o(t[r])){if(m=r+1,h)for(;m<e&&!this.isWhiteSpace(t[m]);)m++;else for(;m<e&&o(t[m]);)m++;d.push({type:"alpha",token:t.substring(r,m),continueId:i(t[m]),start:r,end:m}),r=m+1}else if(t[r]==="."&&i(t[m+1])){m=r+1;for(var w=null,T=null;m<e&&i(t[m]);)m++;T=parseFloat(t.substring(r,m)),d.push({type:"number",token:t.substring(r,m),intt:w,floatt:T,continueId:o(t[m]),start:r,end:m}),r=m+1}else if(i(t[r])||t[r]==="-"&&i(t[m+1])){m=r+1;for(var D=null,B=null;m<e&&i(t[m]);)m++;if(t[m]==="."&&i(t[m+1]))for(m++;m<e&&i(t[m]);)m++;else D=parseInt(t.substring(r,m));B=parseFloat(t.substring(r,m)),d.push({type:"number",token:t.substring(r,m),intt:D,floatt:B,continueId:o(t[m]),start:r,end:m}),r=m+1}else t[r]===" "||t[r]===" "||d.push({type:"punct",token:t[r],start:r,end:r+1}),m=r+1;r=m}return d},this.getVoiceToken=function(t,r,e){for(var h=r;h<e&&this.isWhiteSpace(t[h])||t[h]==="=";)h++;if(t[h]==='"'){var p=t.indexOf('"',h+1);return p===-1||p>=e?{len:1,err:"Missing close quote"}:{len:p-r+1,token:this.translateString(t.substring(h+1,p))}}else{for(var d=h;d<e&&!this.isWhiteSpace(t[d])&&t[d]!=="=";)d++;return{len:d-r+1,token:t.substring(h,d)}}};var s={"`a":"à","'a":"á","^a":"â","~a":"ã",'"a':"ä",oa:"å",aa:"å","=a":"ā",ua:"ă",";a":"ą","`e":"è","'e":"é","^e":"ê",'"e':"ë","=e":"ē",ue:"ĕ",";e":"ę",".e":"ė","`i":"ì","'i":"í","^i":"î",'"i':"ï","=i":"ī",ui:"ĭ",";i":"į","`o":"ò","'o":"ó","^o":"ô","~o":"õ",'"o':"ö","=o":"ō",uo:"ŏ","/o":"ø","`u":"ù","'u":"ú","^u":"û","~u":"ũ",'"u':"ü",ou:"ů","=u":"ū",uu:"ŭ",";u":"ų","`A":"À","'A":"Á","^A":"Â","~A":"Ã",'"A':"Ä",oA:"Å",AA:"Å","=A":"Ā",uA:"Ă",";A":"Ą","`E":"È","'E":"É","^E":"Ê",'"E':"Ë","=E":"Ē",uE:"Ĕ",";E":"Ę",".E":"Ė","`I":"Ì","'I":"Í","^I":"Î","~I":"Ĩ",'"I':"Ï","=I":"Ī",uI:"Ĭ",";I":"Į",".I":"İ","`O":"Ò","'O":"Ó","^O":"Ô","~O":"Õ",'"O':"Ö","=O":"Ō",uO:"Ŏ","/O":"Ø","`U":"Ù","'U":"Ú","^U":"Û","~U":"Ũ",'"U':"Ü",oU:"Ů","=U":"Ū",uU:"Ŭ",";U":"Ų",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",ss:"ß","'c":"ć","^c":"ĉ",uc:"č",cc:"ç",".c":"ċ",cC:"Ç","'C":"Ć","^C":"Ĉ",uC:"Č",".C":"Ċ","~N":"Ñ","~n":"ñ","=s":"š",vs:"š",DH:"Ð",dh:"ð",HO:"Ő",Ho:"ő",HU:"Ű",Hu:"ű","'Y":"Ý","'y":"ý","^Y":"Ŷ","^y":"ŷ",'"Y':"Ÿ",'"y':"ÿ",vS:"Š",vZ:"Ž",vz:"ž"},c={"#":"♯",b:"♭","=":"♮"},v={201:"♯",202:"♭",203:"♮",241:"¡",242:"¢",252:"a",262:"2",272:"o",302:"Â",312:"Ê",322:"Ò",332:"Ú",342:"â",352:"ê",362:"ò",372:"ú",243:"£",253:"«",263:"3",273:"»",303:"Ã",313:"Ë",323:"Ó",333:"Û",343:"ã",353:"ë",363:"ó",373:"û",244:"¤",254:"¬",264:" ́",274:"1⁄4",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"1⁄2",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"3⁄4",306:"Æ",316:"Î",326:"Ö",336:"Þ",346:"æ",356:"î",366:"ö",376:"þ",247:"§",257:" ̄",267:"·",277:"¿",307:"Ç",317:"Ï",327:"×",337:"ß",347:"ç",357:"ï",367:"÷",377:"ÿ",250:" ̈",260:"°",270:" ̧",300:"À",310:"È",320:"Ð",330:"Ø",340:"à",350:"è",360:"ð",370:"ø",251:"©",261:"±",271:"1",301:"Á",311:"É",321:"Ñ",331:"Ù",341:"á",351:"é",361:"ñ",371:"ù"};this.translateString=function(t){var r=t.split("\\");if(r.length===1)return t;var e=null;return r.forEach(function(h){if(e===null)e=h;else{var p=s[h.substring(0,2)];p!==void 0?e+=p+h.substring(2):(p=v[h.substring(0,3)],p!==void 0?e+=p+h.substring(3):(p=c[h.substring(0,1)],p!==void 0?e+=p+h.substring(1):e+="\\"+h))}}),e},this.getNumber=function(t,r){for(var e=0;r<t.length;)switch(t[r]){case"0":e=e*10,r++;break;case"1":e=e*10+1,r++;break;case"2":e=e*10+2,r++;break;case"3":e=e*10+3,r++;break;case"4":e=e*10+4,r++;break;case"5":e=e*10+5,r++;break;case"6":e=e*10+6,r++;break;case"7":e=e*10+7,r++;break;case"8":e=e*10+8,r++;break;case"9":e=e*10+9,r++;break;default:return{num:e,index:r}}return{num:e,index:r}},this.getFraction=function(t,r){var e=1,h=1;if(t[r]!=="/"){var p=this.getNumber(t,r);e=p.num,r=p.index}if(t[r]==="/")if(r++,t[r]==="/"){for(var d=.5;t[r++]==="/";)d=d/2;return{value:e*d,index:r-1}}else{var m=r,w=this.getNumber(t,r);w.num===0&&m===r&&(w.num=2),w.num!==0&&(h=w.num),r=w.index}return{value:e/h,index:r}};function u(t){const e=/^(\d+)\./.exec(t);return e?e[1]:null}var f=[{match:/,\s*The$/,replace:"The "},{match:/,\s*the$/,replace:"the "},{match:/,\s*A$/,replace:"A "},{match:/,\s*a$/,replace:"a "},{match:/,\s*An$/,replace:"An "},{match:/,\s*an$/,replace:"an "},{match:/,\s*Da$/,replace:"Da "},{match:/,\s*La$/,replace:"La "},{match:/,\s*Le$/,replace:"Le "},{match:/,\s*Les$/,replace:"Les "},{match:/,\s*Ye$/,replace:"Ye "}];this.theReverser=function(t){for(var r=0;r<f.length;r++){var e=f[r],h=t.match(e.match);if(h){var p=u(t);p&&(t=t.replace(p+".",""),t=t.trim());var d=h[0].length,m=e.replace+t.substring(0,t.length-d);return p&&(m=p+". "+m),m}}return t},this.stripComment=function(t){var r=t.indexOf("%");return r>=0?A.strip(t.substring(0,r)):A.strip(t)},this.getInt=function(t){var r=parseInt(t);if(isNaN(r))return{digits:0};var e=""+r,h=t.indexOf(e);return{value:r,digits:h+e.length}},this.getFloat=function(t){var r=parseFloat(t);if(isNaN(r))return{digits:0};var e=""+r,h=t.indexOf(e);return{value:r,digits:h+e.length}},this.getMeasurement=function(t){if(t.length===0)return{used:0};var r=1,e="";if(t[0].token==="-")t.shift(),e="-",r++;else if(t[0].type!=="number")return{used:0};if(e+=t.shift().token,t.length===0)return{used:1,value:parseInt(e)};var h=t.shift();if(h.token==="."){if(r++,t.length===0)return{used:r,value:parseInt(e)};if(t[0].type==="number"&&(h=t.shift(),e=e+"."+h.token,r++,t.length===0))return{used:r,value:parseFloat(e)};h=t.shift()}switch(h.token){case"pt":return{used:r+1,value:parseFloat(e)};case"px":return{used:r+1,value:parseFloat(e)};case"cm":return{used:r+1,value:parseFloat(e)/2.54*72};case"in":return{used:r+1,value:parseFloat(e)*72};default:return t.unshift(h),{used:r,value:parseFloat(e)}}};var n=function(t){return t=t.replace(/\\n/g,`
6
+ `),t=t.replace(/\\"/g,'"'),t};this.getBrackettedSubstring=function(t,r,e,h){for(var p=h||t[r],d=r+1,m=!1;d<t.length&&(m||t[d]!==p);)m=t[d]==="\\",++d;return t[d]===p?[d-r+1,n(t.substring(r+1,d)),!0]:(d=r+e,d>t.length-1&&(d=t.length-1),[d-r+1,n(t.substring(r+1,d)),!1])}};return y.prototype.peekLine=function(){return this.lines[this.lineIndex]},y.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex<this.lines.length){var g=this.lines[this.lineIndex];return this.lineIndex++,g}return null},rt=y,rt}var at,oa;function Hn(){if(oa)return at;oa=1;function A(u,f,n){if(!(!f||u.lines.length===0)){var t=u.deline({lineBreaks:!1}),r=g(t,f);u.lines=y(t,r,n),u.lineBreaks=r}}function y(u,f,n){for(var t=[],r=[],e=[],h=1,p=0;p<f.length;p++){var d=f[p];if(u[d.ogLine].staff){var m=u[d.ogLine].staff[d.staff];if(t[d.line]||(t[d.line]={staff:[]}),!t[d.line].staff[d.staff]){t[d.line].staff[d.staff]={voices:[]},n!==void 0&&d.staff===0&&d.line>0&&(t[d.line].staff[d.staff].barNumber=h);for(var w=Object.keys(m),T=0;T<w.length;T++){var D=w[T]==="voices";w[T]==="meter"&&d.line!==0&&(D=!0),D||(t[d.line].staff[d.staff][w[T]]=m[w[T]])}r[d.staff]&&(t[d.line].staff[d.staff].key=r[d.staff])}t[d.line].staff[d.staff].voices[d.voice]||(t[d.line].staff[d.staff].voices[d.voice]=[]),t[d.line].staff[d.staff].voices[d.voice]=u[d.ogLine].staff[d.staff].voices[d.voice].slice(d.start,d.end+1),e[d.staff*10+d.voice]&&t[d.line].staff[d.staff].voices[d.voice].unshift({el_type:"stem",direction:e[d.staff*10+d.voice].direction});for(var B=t[d.line].staff[d.staff].voices[d.voice],S=B.length-1;S>=0;S--)if(B[S].el_type==="key"){r[d.staff]={root:B[S].root,acc:B[S].acc,mode:B[S].mode,accidentals:B[S].accidentals.filter(function(x){return x.acc!=="natural"})};break}for(S=B.length-1;S>=0;S--)if(B[S].el_type==="stem"){e[d.staff*10+d.voice]={direction:B[S].direction};break}if(n!==void 0&&d.staff===0&&d.voice===0)for(S=0;S<B.length;S++)B[S].el_type==="bar"&&(h++,S===B.length-1?delete B[S].barNumber:B[S].barNumber=h)}else t[d.line]=u[d.ogLine]}for(var L=0;L<t.length;L++)t[L].staff&&(t[L].staff=t[L].staff.filter(function(x){return x!=null}));return t}function g(u,f){for(var n=[],t=0,r=0,e=0,h=0;h<u.length;h++){var p=u[h];if(p.staff){var d=r,m=f[t];t++;for(var w=0;w<p.staff.length;w++)for(var T=p.staff[w],D=0;D<T.voices.length;D++){e=d;for(var B=0,S=0,L=T.voices[D],x=0,M=0;M<L.length;M++){var N=L[M];N.el_type==="bar"&&(m[S]===B&&(n.push({ogLine:h,line:e,staff:w,voice:D,start:x,end:M}),x=M+1,e++,r=Math.max(r,e),S++),B++)}n.push({ogLine:h,line:e,staff:w,voice:D,start:x,end:L.length}),e++,r=Math.max(r,e)}}else n.push({ogLine:h,line:e}),e++,r=Math.max(r,e)}return n}function l(u,f){for(var n=[],t=[],r=0,e=0;e<u.length;e++){var h=u[e],p=r+h;if(p<f)r=p;else{var d=f-r,m=p-f;d<m&&r>0?(n.push(e-1),t.push(Math.round(r-h)),r=h):e<u.length-1&&(n.push(e),t.push(Math.round(r)),r=0)}}return t.push(Math.round(r)),{lineBreaks:n,totals:t}}function a(u){for(var f=[],n=0;n<u.length;n++)f.push(u[n]);return f}function o(u,f,n,t,r,e,h,p,d,m,w){for(var T=m;T<u.length;T++){var D=u[T];n+=D,t+=D;var B=Math.abs(n-f[p]),S=Math.abs(B-e)<f[0]/10;if(S)if(B<e){var L=a(r),x=a(d);x.push(T-1),L.push(t-D),w.push({accumulator:n,lineAccumulator:D,lineWidths:L,lastVariance:Math.abs(n-f[p+1]),highestVariance:Math.max(h,e),currLine:p+1,lineBreaks:x,startIndex:T+1})}else B>e&&T<u.length-1&&(L=a(r),x=a(d),w.push({accumulator:n,lineAccumulator:t,lineWidths:L,lastVariance:B,highestVariance:Math.max(h,B),currLine:p,lineBreaks:x,startIndex:T+1}));B>e?(d.push(T-1),p++,h=Math.max(h,e),e=Math.abs(n-f[p]),r.push(t-D),t=D):e=B}r.push(t)}function i(u,f,n,t){for(var r=Math.ceil(u.total/f),e=Math.floor(u.total/r),h=[],p=0;p<r;p++)h.push(e*(p+1));var d=[];d.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var m=0;m<d.length;)o(u.measureWidths,h,d[m].accumulator,d[m].lineAccumulator,d[m].lineWidths,d[m].lastVariance,d[m].highestVariance,d[m].currLine,d[m].lineBreaks,d[m].startIndex,d),m++;for(p=0;p<d.length;p++){var w=d[p];w.variances=[],w.aveVariance=0;for(var T=0;T<w.lineWidths.length;T++){var D=w.lineWidths[T];w.variances.push(D-h[0]),w.aveVariance+=Math.abs(D-h[0])}w.aveVariance=w.aveVariance/w.lineWidths.length,t.attempts.push({type:"optimizeLineWidths",lineBreaks:w.lineBreaks,variances:w.variances,aveVariance:w.aveVariance,widths:u.measureWidths})}var B=9999999,S=-1;for(p=0;p<d.length;p++)w=d[p],w.aveVariance<B&&(B=w.aveVariance,S=p);return{failed:!1,lineBreaks:d[S].lineBreaks,variance:d[S].highestVariance}}function s(u,f,n){for(var t=[],r=[],e=0,h=!1,p=0;p<u.length;p++)e+=u[p],e>f&&(h=!0),p%n===n-1&&(p!==u.length-1&&t.push(p),r.push(Math.round(e)),e=0);return{failed:h,totals:r,lineBreaks:t}}function c(u,f,n){var t={lineBreaks:u,staffwidth:f};for(var r in n)n.hasOwnProperty(r)&&r!=="wrap"&&r!=="staffwidth"&&(t[r]=n[r]);return{revisedParams:t}}function v(u,f,n){if(f.length===0||n.staffwidth<f[0].left)return{reParse:!1,explanation:"Staff width is narrower than the margin",revisedParams:n};var t=n.scale?Math.max(n.scale,.1):1,r=n.wrap.minSpacing?Math.max(parseFloat(n.wrap.minSpacing),1):1,e=n.wrap.minSpacingLimit?Math.max(parseFloat(n.wrap.minSpacingLimit),1):r-.1,h=n.wrap.maxSpacing?Math.max(parseFloat(n.wrap.maxSpacing),1):void 0;n.wrap.lastLineLimit&&!h&&(h=Math.max(parseFloat(n.wrap.lastLineLimit),1));for(var p=n.wrap.preferredMeasuresPerLine?Math.max(parseInt(n.wrap.preferredMeasuresPerLine,10),0):void 0,d=[],m=[],w=0;w<f.length;w++){var T=f[w],D=n.staffwidth-T.left,B=D/r/t,S=D/h/t,L=D/e/t,x={widths:T,lineBreakPoint:B,minLineSize:S,attempts:[],staffWidth:n.staffwidth,minWidth:Math.round(L)},M=null;if(p){var N=s(T.measureWidths,B,p);x.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:p,lineBreaks:N.lineBreaks,failed:N.failed,totals:N.totals}),N.failed||(M=N.lineBreaks)}if(!M){var F=l(T.measureWidths,B);x.attempts.push({type:"Free Form",lineBreaks:F.lineBreaks,totals:F.totals}),M=F.lineBreaks,M.length>0&&T.measureWidths.length<25&&(F=i(T,B,M,x),x.attempts.push({type:"Optimize",failed:F.failed,reason:F.reason,lineBreaks:F.lineBreaks,totals:F.totals}),F.failed||(M=F.lineBreaks))}d.push(M),m.push(x)}var C=n.staffwidth,_=c(d,C,n);return _.explanation=m,_.reParse=!0,_}return at={wrapLines:A,calcLineWraps:v},at}var it,ca;function _s(){if(ca)return it;ca=1;function A(c){const v=c.getMeterFraction(),u=v.num===4&&v.den===4;if(!(v.num===2&&v.den===2)&&!u)throw new Error("notCommonTime");const n=c.deline();let t=[],r=!1;return n.forEach(e=>{if(e.subtitle)r&&t.push({type:"subtitle",subtitle:e.subtitle.text});else if(e.text)r=!0,t.push({type:"text",text:e.text.text});else if(e.staff){r=!0;const h=e.staff,p=g(h);t=t.concat(p)}}),a(t),o(t),i(t),t}const y=["break","(break)","no chord","n.c.","tacet"];function g(c){const v=[];let u="",f=[],n={chord:["","","",""]},t="",r="";if(c.forEach((e,h)=>{e.voices&&e.voices.forEach((p,d)=>{let m=0,w=0;p.forEach(T=>{if(T.el_type==="part")f.length>0&&h===0&&d===0&&(v.push({type:"part",name:u,lines:[f]}),f=[]),u=T.title;else if(T.el_type==="note"){s(T,n);const D=Math.floor(m);if(T.chord&&T.chord.length>0){const B=T.chord[0],S=B.position==="default"||y.indexOf(B.name.toLowerCase())>=0?B.name:"";S&&(D>0&&!n.chord[0]&&(n.chord[0]=t),t=S,n.chord[D]?D<4&&!n.chord[D+1]&&(n.chord[D+1]=S):n.chord[D]=S),T.chord.forEach(L=>{L.position!=="default"&&y.indexOf(B.name.toLowerCase())<0&&(n.annotations||(n.annotations=[]),n.annotations.push(L.name))})}if(!T.rest||T.rest.type!=="spacer"){const B=T.duration===0&&!T.rest?.25:T.duration,S=Math.floor(B*4);if(S>4)w+=Math.floor(S/4),m=0;else{let L=B*4;T.tripletMultiplier&&(L*=T.tripletMultiplier),m+=L}}}else if(T.el_type==="bar"){if(r&&(n.ending=r,r=""),s(T,n),T.chord&&T.chord.forEach(D=>{D.position!=="default"&&(n.annotations||(n.annotations=[]),n.annotations.push(D.name))}),(T.type==="bar_dbl_repeat"||T.type==="bar_left_repeat")&&(n.hasStartRepeat=!0),(T.type==="bar_dbl_repeat"||T.type==="bar_right_repeat")&&(n.hasEndRepeat=!0),T.startEnding&&(r=T.startEnding),m>=4){if(n.chord[0]===""&&(n.chord[1]||n.chord[2]||n.chord[3])&&(n.chord[0]=l(f)),h===0&&d===0)f.push(n);else{let D=w,B=0;for(;D>=v[B].lines[0].length&&B<v.length;)D-=v[B].lines[0].length,B++;if(B<v.length&&D<v[B].lines[0].length){const S=v[B].lines[0][D];!S.chord[0]&&n.chord[0]&&(S.chord[0]=n.chord[0]),!S.chord[1]&&n.chord[1]&&(S.chord[1]=n.chord[1]),!S.chord[2]&&n.chord[2]&&(S.chord[2]=n.chord[2]),!S.chord[3]&&n.chord[3]&&(S.chord[3]=n.chord[3]),n.annotations&&(S.annotations?S.annotations=S.annotations.concat(n.annotations):S.annotations=n.annotations)}w++}n={chord:["","","",""]}}else n.chord=["","","",""];m=0}else T.el_type}),h===0&&d===0&&v.push({type:"part",name:u,lines:[f]})})}),!t)throw new Error("noChords");return v}function l(c){for(let v=c.length-1;v>=0;v--)for(let u=c[v].chord.length-1;u>=0;u--)if(c[v].chord[u])return c[v].chord[u]}function a(c){c.forEach(v=>{if(v.type==="part"){const u=v.lines[0],f=u.findIndex(t=>!!t.ending),n=u.findIndex((t,r)=>r>f&&!!t.ending);if(f>=0&&n>=0&&n-f===u.length-n){let t=!0;for(let r=0;r<n-f&&t;r++){const e=u[f+r],h=u[n+r];if(e.chord[0]!==h.chord[0]&&(t=!1),e.chord[1]!==h.chord[1]&&(t=!1),e.chord[2]!==h.chord[2]&&(t=!1),e.chord[3]!==h.chord[3]&&(t=!1),e.annotations&&!h.annotations&&(t=!1),!e.annotations&&h.annotations&&(t=!1),e.annotations&&h.annotations)if(e.annotations.length!==h.annotations.length)t=!1;else for(let p=0;p<e.annotations.length;p++)e.annotations[p]!==h.annotations[p]&&(t=!1)}t&&(delete u[f].ending,u.splice(n,u.length-n))}}})}function o(c){c.forEach(v=>{if(v.type==="part"){const u=[],f=v.lines[0];let n=!1;const t=f.findIndex(h=>!!h.hasEndRepeat);(t>=0?Math.min(t+1,f.length):f.length)===12&&(n=!0);const e=n?4:8;for(let h=0;h<f.length;h+=e){const p=f.slice(h,h+e),d=p.findIndex(m=>!!m.hasEndRepeat);d>=0&&d<p.length-1?(u.push(p.slice(0,d+1)),u.push(p.slice(d+1))):u.push(p)}for(let h=0;h<u.length;h++)if(u[h][0].ending){const p=Math.max(0,h-1),d=u[p].length-u[h].length,m=[];for(let w=0;w<d;w++)m.push({noBorder:!0,chord:["","","",""]});u[h]=m.concat(u[h])}v.lines=u}})}function i(c){c.forEach(v=>{if(v.lines){let u=!1,f="";v.lines.forEach(n=>{n.forEach(t=>{if(!t.noBorder){const r=t.chord;!r[0]&&!r[1]&&!r[2]&&!r[3]?(u?f&&(r[0]="%"):r[0]=f,u=!0):!r[1]&&!r[2]&&!r[3]?(u=!0,f=r[0]):(u=!1,f=r[3]||r[2]||r[1])}})})}})}function s(c,v){if(c.decoration)for(let u=0;u<c.decoration.length;u++)switch(c.decoration[u]){case"fermata":case"segno":case"coda":case"D.C.":case"D.S.":case"D.C.alcoda":case"D.C.alfine":case"D.S.alcoda":case"D.S.alfine":case"fine":v.annotations||(v.annotations=[]),v.annotations.push(c.decoration[u]);break}}return it=A,it}var nt,la;function Ce(){if(la)return nt;la=1;var A={};return A.FONTEM=360,A.FONTSIZE=30,A.STEP=A.FONTSIZE*93/720,A.SPACE=10,A.TOPNOTE=15,A.STAVEHEIGHT=100,A.INDENT=50,nt=A,nt}var st,fa;function Ts(){if(fa)return st;fa=1;const A=_e();function y(i){this.sections=[{type:"startRepeat",index:-1}],this.addBar=function(s){var c=i.length-1,v=s.type==="bar_left_repeat"||s.type==="bar_dbl_repeat",u=s.type==="bar_right_repeat"||s.type==="bar_dbl_repeat",f=s.startEnding?o(s.startEnding):void 0;u&&(this.sections.length>0&&this.sections[this.sections.length-1].type==="endRepeat"&&this.sections.push({type:"startRepeat",index:this.sections[this.sections.length-1].index}),this.sections.push({type:"endRepeat",index:c})),v&&this.sections.push({type:"startRepeat",index:c}),f&&this.sections.push({type:"startEnding",index:c,endings:f})},this.resolveRepeats=function(){var s,c=this.sections[this.sections.length-1],v=i.length-1;if(c.type==="startRepeat"?c.end=v:c.index+1<v&&this.sections.push({type:"startRepeat",index:c.index+1}),this.sections.length<2)return i;for(var u=[],f=null,n=0;n<this.sections.length;n++){var t=this.sections[n];switch(t.type){case"startRepeat":if(f){if(f.common.end||(f.common.end=t.index),f.endings)for(s=0;s<f.endings.length;s++)f.endings[s]&&!f.endings[s].end&&f.endings[s].start!==t.index&&(f.endings[s].end=t.index);this.sections[n-1].type==="endRepeat"&&f.endings&&f.endings.length&&(f.endings[f.endings.length]={start:-1,end:-1}),u.push(f)}if(f){var r=f.common.end;if(f.endings)for(s=0;s<f.endings.length;s++)f.endings[s]&&(r=Math.max(r,f.endings[s].end));r<t.index-1&&u.push({common:{start:r+1,end:t.index}})}f={common:{start:t.index}};break;case"startEnding":{if(f)for(f.common.end||(f.common.end=t.index),f.endings||(f.endings=[]),s=0;s<t.endings.length;s++)f.endings[t.endings[s]]={start:t.index+1};break}case"endRepeat":if(f){if(f.endings||(f.endings=[]),f.endings.length>0)for(s=0;s<f.endings.length;s++)f.endings[s]&&!f.endings[s].end&&(f.endings[s].end=t.index);f.common.end||(f.common.end=t.index)}break}}if(f){if(f.common.end||(f.common.end=v),f.endings)for(s=0;s<f.endings.length;s++)f.endings[s]&&!f.endings[s].end&&(f.endings[s].end=v);u.push(f)}for(var e=[],h=-1,p=0;p<u.length;p++){var d=u[p];if(!d.endings)g(i,e,d.common.start,d.common.end);else if(d.endings.length===0)g(i,e,d.common.start,d.common.end),g(i,e,d.common.start,d.common.end);else for(s=0;s<d.endings.length;s++){var m=d.endings[s];m&&(g(i,e,d.common.start,d.common.end),m.start>0&&g(i,e,m.start,m.end),h=Math.max(h,m.end))}}return e}}function g(i,s,c,v){c<0&&(c=0),s.length>0&&i[c].el_type==="bar"&&s[s.length-1].el_type==="bar"&&c++;for(var u=c;u<=v;u++){var f,n=!1;if(i[u].el_type==="key"||i[u].el_type==="meter"||i[u].el_type==="tempo"||i[u].el_type==="instrument"){for(f=s.length-1;f>=0&&s[f].el_type!==i[u].el_type;)f--;f>=0&&(i[u].el_type==="key"&&a(i[u],s[f])||i[u].el_type==="meter"&&i[u].num===s[f].num&&i[u].den===s[f].den||i[u].el_type==="instrument"&&i[u].program===s[f].program||i[u].el_type==="tempo"&&i[u].qpm===s[f].qpm)&&(n=!0)}n||s.push(l(i[u]))}}function l(i){var s=Object.assign({},i);return s.pitches&&(s.pitches=A.cloneArray(s.pitches)),s}function a(i,s){return!i.accidentals||!s.accidentals?!1:JSON.stringify(i.accidentals)===JSON.stringify(s.accidentals)}function o(i){var s=[],c,v,u;if(i.indexOf(",")>0)for(v=i.split(","),u=0;u<v.length;u++)c=parseInt(v[u],10),c>0&&s.push(c);else if(i.indexOf("-")>0){v=i.split("-");var f=parseInt(v[0],10),n=parseInt(v[1],10);for(u=f;u<=n;u++)s.push(u)}else c=parseInt(i,10),c>0&&s.push(c);return s}return st=y,st}var ot,ha;function zn(){if(ha)return ot;ha=1;var A,y=_e(),g=Ts();return(function(){var l=1,a=128;A=function(h,p){p=p||{};var d,m=p.program||0,w=p.midiTranspose||0;h.visualTranspose&&(w-=h.visualTranspose);var T=p.channel||0,D=!1,B=p.drum||"",S=p.drumBars||1,L=p.drumIntro||0,x=B!=="",M=!!p.drumOff,N=[],F=50;m=parseInt(m,10),w=parseInt(w,10),T=parseInt(T,10),T===10&&(m=a),B=B.split(" "),S=parseInt(S,10),L=parseInt(L,10);var C=h.formatting.bagpipes;C&&(m=71);var _=[];if(h.formatting.midi){var P=h.formatting.midi;P.program&&P.program.length>0&&(m=P.program[0],P.program.length>1&&(m=P.program[1],T=P.program[0]),D=!0),P.transpose&&(w=P.transpose[0]),P.channel&&(T=P.channel[0],D=!0),P.drum&&(B=P.drum),P.drumbars&&(S=P.drumbars[0]),P.drumon&&(x=!0),T===10&&(m=a),P.beat&&_.push({el_type:"beat",beats:P.beat}),P.nobeataccents&&_.push({el_type:"beataccents",value:!1})}p.qpm?d=parseInt(p.qpm,10):h.metaText.tempo?d=u(h.metaText.tempo,h.getBeatLength()):p.defaultQpm?d=p.defaultQpm:d=180;var I=[];C&&I.push({el_type:"bagpipes"}),I.push({el_type:"instrument",program:m}),T&&I.push({el_type:"channel",channel:T}),w&&I.push({el_type:"transpose",transpose:w}),I.push({el_type:"tempo",qpm:d});for(var q=0;q<_.length;q++)I.push(_[q]);var b=[],k=[],E=[],R=[],O=[0],G={};G[0]={el_type:"tempo",qpm:d,timing:0};for(var H,X=[],Q=!1,j=h.lines,ee=0;ee<j.length;ee++){var J=j[ee];if(J.staff){let pe=function(ne){var de={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]},me;if(ne.decoration){if(ne.decoration.indexOf("pppp")>=0?me="pppp":ne.decoration.indexOf("ppp")>=0?me="ppp":ne.decoration.indexOf("pp")>=0?me="pp":ne.decoration.indexOf("p")>=0?me="p":ne.decoration.indexOf("mp")>=0?me="mp":ne.decoration.indexOf("mf")>=0?me="mf":ne.decoration.indexOf("f")>=0?me="f":ne.decoration.indexOf("ff")>=0?me="ff":ne.decoration.indexOf("fff")>=0?me="fff":ne.decoration.indexOf("ffff")>=0&&(me="ffff"),me){H=de[me].slice(0);let Me=[H];Array.isArray(ne.decoration)&&(Me=[],ne.decoration.forEach(Re=>{Re in de&&Me.push(de[Re].slice(0))})),b[V].push({el_type:"beat",beats:H.slice(0),volumesPerNotePitch:Me}),E[oe]=!1,R[oe]=!1}if(ne.decoration.indexOf("crescendo(")>=0){var he=o(ce,U,"crescendo)"),Ee=Math.min(127,H[0]+F),xe=i(ce,U+he+1,Object.keys(de));xe&&(Ee=de[xe][0]),he>0?E[oe]=Math.floor((Ee-H[0])/he):E[oe]=!1,R[oe]=!1}else if(ne.decoration.indexOf("crescendo)")>=0)E[oe]=!1;else if(ne.decoration.indexOf("diminuendo(")>=0){var we=o(ce,U,"diminuendo)"),Le=Math.max(15,H[0]-F),Ae=i(ce,U+we+1,Object.keys(de));Ae&&(Le=de[Ae][0]),E[oe]=!1,we>0?R[oe]=Math.floor((Le-H[0])/we):R[oe]=!1}else ne.decoration.indexOf("diminuendo)")>=0&&(R[oe]=!1)}};for(var ae=J.staff,V=0,Z=0;Z<ae.length;Z++){var $=ae[Z];if(!($.clef&&$.clef.type==="TAB"))for(var oe=0;oe<$.voices.length;oe++){var ce=$.voices[oe];if(!b[V]){b[V]=[].concat(JSON.parse(JSON.stringify(I)));var ue=v(J.staff,V);ue&&b[V].unshift({el_type:"name",trackName:ue}),X[V]=new g(b[V])}if(w&&$.clef.type==="perc"&&b[V].push({el_type:"transpose",transpose:0}),$.clef&&$.clef.type==="perc"&&!D)for(var fe=0;fe<b[V].length;fe++)b[V][fe].el_type==="instrument"&&(b[V][fe].program=a);else $.key&&t(b[V],$.key);$.meter&&r(b[V],$.meter),!Q&&x&&(b[V].push({el_type:"drum",params:{pattern:B,bars:S,on:x,intro:L}}),Q=!0),$.clef&&$.clef.type!=="perc"&&$.clef.transpose&&($.clef.el_type="clef",b[V].push({el_type:"transpose",transpose:$.clef.transpose}),k[V]=!1),$.clef&&$.clef.type&&($.clef.type.indexOf("-8")>=0?(b[V].push({el_type:"transpose",transpose:-12}),k[V]=!0):$.clef.type.indexOf("+8")>=0?(b[V].push({el_type:"transpose",transpose:12}),k[V]=!0):k[V]&&(b[V].push({el_type:"transpose",transpose:0}),k[V]=!1)),h.formatting.midi&&h.formatting.midi.drumoff&&(b[V].push({el_type:"bar"}),b[V].push({el_type:"drum",params:{pattern:"",on:!1}}));var be=0,ge=0,ye=0,Y=0;H=[105,95,85,1];for(var U=0;U<ce.length;U++){var z=ce[U];switch(z.el_type){case"note":if(E[oe]&&(H[0]+=E[oe],H[1]+=E[oe],H[2]+=E[oe],b[V].push({el_type:"beat",beats:H.slice(0)})),R[oe]&&(H[0]+=R[oe],H[1]+=R[oe],H[2]+=R[oe],b[V].push({el_type:"beat",beats:H.slice(0)})),pe(z),!z.rest||z.rest.type!=="spacer"){var W={elem:z,el_type:"note",timing:O[V]};if(z.style?W.style=z.style:N[V]&&(W.style=N[V]),W.duration=z.duration===0?.25:z.duration,z.startTriplet){if(ge=z.tripletMultiplier,ye=z.startTriplet*ge*z.duration,z.startTriplet!==z.tripletR&&U+z.tripletR<=ce.length){for(var K=0,te=U;te<U+z.tripletR;te++)K+=ce[te].duration;ye=ge*K}W.duration=W.duration*ge,W.duration=Math.round(W.duration*1e6)/1e6,Y=W.duration}else ge&&(z.endTriplet?(ge=0,W.duration=Math.round((ye-Y)*1e6)/1e6):(W.duration=W.duration*ge,W.duration=Math.round(W.duration*1e6)/1e6,Y+=W.duration));z.rest&&(W.rest=z.rest),z.decoration&&(W.decoration=z.decoration.slice(0)),z.pitches&&(W.pitches=y.cloneArray(z.pitches)),z.gracenotes&&(W.gracenotes=y.cloneArray(z.gracenotes)),z.chord&&(W.chord=y.cloneArray(z.chord)),b[V].push(W),z.style==="rhythm"&&c(b),be++,O[V]+=W.duration}break;case"key":case"keySignature":t(b[V],z);break;case"meter":r(b[V],z);break;case"clef":z.transpose&&b[V].push({el_type:"transpose",transpose:z.transpose}),z.type&&(z.type.indexOf("-8")>=0?b[V].push({el_type:"transpose",transpose:-12}):z.type.indexOf("+8")>=0&&b[V].push({el_type:"transpose",transpose:12}));break;case"tempo":d=u(z,h.getBeatLength()),b[V].push({el_type:"tempo",qpm:d,timing:O[V]}),G[""+O[V]]={el_type:"tempo",qpm:d,timing:O[V]};break;case"bar":be>0&&b[V].push({el_type:"bar"}),pe(z),be=0,X[V].addBar(z,V);break;case"style":N[V]=z.head;break;case"timeSignature":b[V].push(f(z));break;case"part":break;case"stem":case"scale":case"break":case"font":break;case"midi":var ie=!1;switch(z.cmd){case"drumon":x=!0,ie=!0;break;case"drumoff":x=!1,ie=!0;break;case"drum":B=z.params,ie=!0;break;case"drumbars":S=z.params[0],ie=!0;break;case"drummap":break;case"channel":z.params[0]===10&&b[V].push({el_type:"instrument",program:a});break;case"program":e(b[V],{el_type:"instrument",program:z.params[0]}),D=!0;break;case"transpose":b[V].push({el_type:"transpose",transpose:z.params[0]});break;case"gchordoff":b[V].push({el_type:"gchordOn",tacet:!0});break;case"gchordon":b[V].push({el_type:"gchordOn",tacet:!1});break;case"beat":b[V].push({el_type:"beat",beats:z.params});break;case"nobeataccents":b[V].push({el_type:"beataccents",value:!1});break;case"beataccents":b[V].push({el_type:"beataccents",value:!0});break;case"vol":case"volinc":b[V].push({el_type:z.cmd,volume:z.params[0]});break;case"swing":case"gchord":case"bassvol":case"chordvol":b[V].push({el_type:z.cmd,param:z.params[0]});break;case"bassprog":case"chordprog":b[V].push({el_type:z.cmd,value:z.params[0],octaveShift:z.params[1]});break;case"gchordbars":b[V].push({el_type:z.cmd,param:z.params[0]});break;default:console.log("MIDI seq: midi cmd not handled: ",z.cmd,z)}ie&&(b[0].push({el_type:"drum",params:{pattern:B,bars:S,intro:L,on:x}}),Q=!0);break;default:console.log("MIDI: element type "+z.el_type+" not handled.")}}V++,O[V]||(O[V]=0)}}}}for(var le=0;le<X.length;le++)b[le]=X[le].resolveRepeats();if(s(b,G),L)for(var re=h.getPickupLength(),se=0;se<b.length;se++){for(var ve=0;b[se][ve].el_type!=="note"&&b[se].length>ve;)ve++;if(b[se].length>ve){for(var te=0;te<L;te++)re===0||te<L-1?(b[se].splice(ve,0,{el_type:"note",rest:{type:"rest"},duration:l},{el_type:"bar"}),ve+=2):b[se].splice(ve++,0,{el_type:"note",rest:{type:"rest"},duration:l-re});M&&(x=!1,b[se].splice(ve++,0,{el_type:"drum",params:{pattern:B,bars:S,intro:L,on:x}}),M=!1)}}return b.length>0&&b[0].length>0&&(b[0][0].pickupLength=h.getPickupLength()),b};function o(h,p,d){for(var m=0,w=p+1;w<h.length;w++)if(h[w].el_type==="note"&&m++,h[w].decoration&&h[w].decoration.indexOf(d)>=0)return m;return m}function i(h,p,d){for(var m=Math.min(h.length,p+3),w=p;w<m;w++)if(h[w].el_type==="note"&&h[w].decoration){for(var T=0;T<h[w].decoration.length;T++)if(d.indexOf(h[w].decoration[T])>=0)return h[w].decoration[T]}return null}function s(h,p){if(!(!p||p.length===0))for(var d=Object.keys(p),m=0;m<h.length;m++)for(var w=h[m],T=p[0]?p[0].qpm:0,D=0;D<w.length;D++){var B=w[D];B.el_type==="tempo"&&(T=B.qpm),d.indexOf(""+B.timing)>=0&&T!==p[""+B.timing].qpm&&(T=p[""+B.timing].qpm,B.el_type==="tempo"?(B.qpm=p[""+B.timing].qpm,D++):(h[m].splice(D,0,{el_type:"tempo",qpm:p[""+B.timing].qpm,timing:B.timing}),D+=2))}}function c(h){for(var p=0;p<h.length;p++)for(var d=h[p],m=d.length-1;m>=0&&d[m].el_type!=="bar";)d[m].noChordVoice=!0,m--}function v(h,p){if(!(!h||h.length<=p||!h[p].title))return h[p].title.join(" ")}function u(h,p){var d=.25;h.duration&&(d=h.duration[0]);var m=60;return h.bpm&&(m=h.bpm),d*m/p}function f(h){var p;switch(h.type){case"common_time":p={el_type:"meter",num:4,den:4},l=4/4;break;case"cut_time":p={el_type:"meter",num:2,den:2},l=2/2;break;case"specified":let w=0;if(h.value&&h.value.length>0&&h.value[0].num.indexOf("+")>0)for(var d=h.value[0].num.split("+"),m=0;m<d.length;m++)w+=parseInt(d[m],10);else w=parseInt(h.value[0].num,10);p={el_type:"meter",num:w,den:h.value[0].den},l=w/parseInt(h.value[0].den,10);break;default:p={el_type:"meter"},l=1}return p}function n(h){for(var p=[],d=0;d<h.length;d++)h[d].acc!=="natural"&&p.push(h[d]);return p}function t(h,p){var d;p.root==="HP"?d={el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:d={el_type:"key",accidentals:n(p.accidentals)},e(h,d)}function r(h,p){var d=f(p);e(h,d)}function e(h,p){for(var d=h.length-1;d>=0;d--)if(h[d].el_type===p.el_type){JSON.stringify(h[d])!==JSON.stringify(p)&&h.push(p);return}h.push(p)}})(),ot=A,ot}var ct,ua;function Ss(){if(ua)return ct;ua=1;var A=function(v,u,f,n){this.chordTrack=[],this.chordTrackFinished=!1,this.chordChannel=v,this.currentChords=[],this.lastChord,this.chordLastBar,this.chordsOff=!!u,this.gChordTacet=this.chordsOff,this.hasRhythmHead=!1,this.transpose=0,this.lastBarTime=0,this.meter=n,this.tempoChangeFactor=1,this.bassInstrument=f.bassprog&&f.bassprog.length>=1?f.bassprog[0]:0,this.chordInstrument=f.chordprog&&f.chordprog.length>=1?f.chordprog[0]:0,this.bassOctaveShift=f.bassprog&&f.bassprog.length===2?f.bassprog[1]:0,this.chordOctaveShift=f.chordprog&&f.chordprog.length===2?f.chordprog[1]:0,this.boomVolume=f.bassvol&&f.bassvol.length===1?f.bassvol[0]:64,this.chickVolume=f.chordvol&&f.chordvol.length===1?f.chordvol[0]:48,f.gchord&&f.gchord.length>0?this.overridePattern=l(f.gchord[0]):this.overridePattern=void 0};A.prototype.setMeter=function(c){this.meter=c},A.prototype.setTempoChangeFactor=function(c){this.tempoChangeFactor=c},A.prototype.setLastBarTime=function(c){this.lastBarTime=c},A.prototype.setTranspose=function(c){this.transpose=c},A.prototype.setRhythmHead=function(c,v){this.hasRhythmHead=c;var u=[];if(c&&this.lastChord&&this.lastChord.chick)for(var f=0;f<this.lastChord.chick.length;f++){var n=Object.assign({},v.pitches[0]);n.actualPitch=this.lastChord.chick[f],u.push(n)}return u},A.prototype.barEnd=function(c){this.chordTrack.length>0&&!this.chordTrackFinished&&(this.resolveChords(this.lastBarTime,i(c.time)),this.currentChords=[]),this.chordLastBar=this.lastChord},A.prototype.gChordOn=function(c){this.chordsOff||(this.gChordTacet=c.tacet)},A.prototype.paramChange=function(c){switch(c.el_type){case"gchord":c.param&&c.param.length>0?this.overridePattern=l(c.param):this.overridePattern=void 0;break;case"bassprog":this.bassInstrument=c.value,c.octaveShift!=null&&c.octaveShift!=null?this.bassOctaveShift=c.octaveShift:this.bassOctaveShift=0;break;case"chordprog":this.chordInstrument=c.value,c.octaveShift!=null&&c.octaveShift!=null?this.chordOctaveShift=c.octaveShift:this.chordOctaveShift=0;break;case"bassvol":this.boomVolume=c.param;break;case"chordvol":this.chickVolume=c.param;break;default:console.log("unhandled midi param",c)}},A.prototype.finish=function(){this.chordTrackEmpty()||(this.chordTrackFinished=!0)},A.prototype.addTrack=function(c){this.chordTrackEmpty()||c.push(this.chordTrack)},A.prototype.findChord=function(c){if(this.gChordTacet)return"break";if(this.chordTrackFinished||!c.chord||c.chord.length===0)return null;for(var v=0;v<c.chord.length;v++){var u=c.chord[v];if(u.position==="default")return u.name;if(this.breakSynonyms.indexOf(u.name.toLowerCase())>=0)return"break"}return null},A.prototype.interpretChord=function(c){if(c.length!==0){if(c==="break")return{chick:[]};var v=c.substring(0,1);if(v==="("){if(c=c.substring(1,c.length-1),c.length===0)return;v=c.substring(0,1)}var u=this.basses[v];if(u){for(var f=this.transpose;f<-8;)f+=12;for(;f>8;)f-=12;u+=f,u<33?u+=12:u>44&&(u-=12);var n=u;u+=this.bassOctaveShift*12;var t=u-5,r;c.length===1&&(r=this.chordNotes(u,""));var e=c.substring(1),h=e.substring(0,1);h==="b"||h==="♭"?(n--,u--,t--,e=e.substring(1)):(h==="#"||h==="♯")&&(n++,u++,t++,e=e.substring(1));var p=e.split("/");if(r=this.chordNotes(n,p[0]),r.length>=3){var d=r[2]-r[0];t=t+d-7}if(p.length===2){var m=this.basses[p[1].substring(0,1)];if(m){var w=p[1].substring(1),T={"#":1,"♯":1,b:-1,"♭":-1}[w]||0;u=this.basses[p[1].substring(0,1)]+T+f,u+=this.bassOctaveShift*12,t=u}}return{boom:u,boom2:t,chick:r}}}},A.prototype.chordNotes=function(c,v){var u=this.chordIntervals[v];u||(v.slice(0,2).toLowerCase()==="ma"||v[0]==="M"?u=this.chordIntervals.M:v[0]==="m"||v[0]==="-"?u=this.chordIntervals.m:u=this.chordIntervals.M),c+=12,c+=this.chordOctaveShift*12;for(var f=[],n=0;n<u.length;n++)f.push(c+u[n]);return f},A.prototype.writeNote=function(c,v,u,f,n,t){c!==void 0&&this.chordTrack.push({cmd:"note",pitch:c,volume:u,start:this.lastBarTime+f*s(v,this.tempoChangeFactor),duration:s(n,this.tempoChangeFactor),gap:0,instrument:t})},A.prototype.chordTrackEmpty=function(){for(var c=!0,v=0;v<this.chordTrack.length&&c;v++)this.chordTrack[v].cmd==="note"&&(c=!1);return c},A.prototype.resolveChords=function(c,v){if(!this.hasRhythmHead){var u=this.meter.num,f=this.meter.den,n=1/f,t=n/2,r=parseInt(u,10)/parseInt(f,10),e=r-(v-c)/this.tempoChangeFactor;Math.abs(e)<1e-5&&(e=0),(this.currentChords.length===0||this.currentChords[0].beat!==0)&&this.currentChords.unshift({beat:0,chord:this.chordLastBar});var h=a(this.currentChords,8*u/f),p=this.overridePattern?this.overridePattern:this.rhythmPatterns[u+"/"+f];if(e){p=[];for(var d=(v-c)/this.tempoChangeFactor*8,m=0;m<d/2;m+=2)p.push("chick"),p.push("")}if(!p){p=[];for(var m=0;m<8*u/f/2;m++)p.push("chick"),p.push("")}for(var w=!0,T=Math.min(p.length,h.length),m=0;m<T;m++){m>0&&h[m-1]&&h[m]&&h[m-1].boom!==h[m].boom&&(w=!0);var D=p[m],B=D.indexOf("boom")>=0,S=!B&&m!==0&&p[0].indexOf("boom")>=0&&(!h[m-1]||h[m-1].boom!==h[m].boom),L=y(h[m],D,w,S);B&&(w=!1);for(var x=0;x<L.length;x++)this.writeNote(L[x],.125,B||S?this.boomVolume:this.chickVolume,m,t,B||S?this.bassInstrument:this.chordInstrument),S?S=!1:B=!1}}},A.prototype.processChord=function(c){if(!this.chordTrackFinished){var v=this.findChord(c);if(v){var u=this.interpretChord(v);if(u){this.chordTrack.length===0&&this.chordTrack.push({cmd:"program",channel:this.chordChannel,instrument:this.chordInstrument}),this.lastChord=u;var f=o(this.lastBarTime,i(c.time));this.currentChords.push({chord:this.lastChord,beat:f,start:i(c.time)})}}}};function y(c,v,u,f){var n=[];if(!c)return n;v.indexOf("boom")>=0?n.push(u?c.boom:c.boom2):f&&n.push(c.boom);var t=c.chick.length;if(v.indexOf("chick")>=0)for(var r=0;r<t;r++)n.push(c.chick[r]);switch(v){case"DO":n.push(c.chick[0]);break;case"MI":n.push(c.chick[1]);break;case"SOL":n.push(g(c,2));break;case"TI":n.push(g(c,3));break;case"TOP":n.push(g(c,4));break;case"do":n.push(c.chick[0]+12);break;case"mi":n.push(c.chick[1]+12);break;case"sol":n.push(g(c,2)+12);break;case"ti":n.push(g(c,3)+12);break;case"top":n.push(g(c,4)+12);break}return n}function g(c,v){var u=Math.floor(v/c.chick.length),f=c.chick[v%c.chick.length];return f+u*12}function l(c){for(var v=[],u=0;u<c.length;u++){var f=c[u];switch(f){case"z":v.push("");break;case"2":v.push("");break;case"c":v.push("chick");break;case"b":v.push("boom&chick");break;case"f":v.push("boom");break;case"G":v.push("DO");break;case"H":v.push("MI");break;case"I":v.push("SOL");break;case"J":v.push("TI");break;case"K":v.push("TOP");break;case"g":v.push("do");break;case"h":v.push("mi");break;case"i":v.push("sol");break;case"j":v.push("ti");break;case"k":v.push("top");break}}return v}function a(c,v,u){var f=[];if(c.length===0)return f;for(var n=c[0].chord,t=1;t<c.length;t++){for(var r=c[t];f.length<r.beat;)f.push(n);n=r.chord}for(;f.length<v;)f.push(n);return f}function o(c,v){var u=v-c;return u*8}A.prototype.breakSynonyms=["break","(break)","no chord","n.c.","tacet"],A.prototype.basses={A:33,B:35,C:36,D:38,E:40,F:41,G:43},A.prototype.chordIntervals={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],5:[0,7],"5(8)":[0,7,12],"5add8":[0,7,12]},A.prototype.rhythmPatterns={"2/2":["boom","","","","chick","","",""],"3/2":["boom","","","","chick","","","","chick","","",""],"4/2":["boom","","","","chick","","","","boom","","","","chick","","",""],"2/4":["boom","","chick",""],"3/4":["boom","","chick","","chick",""],"4/4":["boom","","chick","","boom","","chick",""],"5/4":["boom","","chick","","chick","","boom","","chick",""],"6/4":["boom","","chick","","boom","","chick","","boom","","chick",""],"3/8":["boom","","chick"],"5/8":["boom","chick","chick","boom","chick"],"6/8":["boom","","chick","boom","","chick"],"7/8":["boom","chick","chick","boom","chick","boom","chick"],"9/8":["boom","","chick","boom","","chick","boom","","chick"],"10/8":["boom","chick","chick","boom","chick","chick","boom","chick","boom","chick"],"11/8":["boom","chick","chick","boom","chick","chick","boom","chick","boom","chick","chick"],"12/8":["boom","","chick","boom","","chick","boom","","chick","boom","","chick"]};function i(c){return c/1e6}function s(c,v){return Math.round(c*v*1e6)/1e6}return ct=A,ct}var lt,da;function Gn(){if(da)return lt;da=1;var A={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'"};function y(g){var l=(g.accidental?g.accidental[0]:"x")+g.verticalPos;return A[l]}return lt=y,lt}var ft,va;function Es(){if(va)return ft;va=1;var A,y=Ss(),g=Gn();return(function(){var l,a,o,i,s,c=1,v,u,f,n,t,r,e={num:4,den:4},h=128,p,d=!0,m=105,w=95,T=85,D=[[m,w,T]],B=.25,S,L,x=0,M,N={},F,C=0,_,P=0,I=-.001,q=.4;A=function(Y,U,z,W){U||(U={}),W||(W={}),l=[],a=[0,0,0,0,0,0,0],i=[],s=U.qpm,c=1,v=void 0,u=void 0,f=void 0,n=void 0,t=0,_=z,e={num:4,den:4},d=!0,m=105,w=95,T=85,D=[],B=.25,S=void 0,L=void 0,x=0,M=[],N={},F=1,Y.length>0&&Y[0].length>0&&(C=Y[0][0].pickupLength),U.bassprog!==void 0&&!W.bassprog&&(W.bassprog=[U.bassprog]),U.bassvol!==void 0&&!W.bassvol&&(W.bassvol=[U.bassvol]),U.chordprog!==void 0&&!W.chordprog&&(W.chordprog=[U.chordprog]),U.chordvol!==void 0&&!W.chordvol&&(W.chordvol=[U.chordvol]),U.gchord!==void 0&&!W.gchord&&(W.gchord=[U.gchord]),r=new y(Y.length,U.chordsOff,W,e),R(Y,U);for(var K=0;K<Y.length;K++){o=0,r.setTranspose(o);var te=Y[K];f=[{cmd:"program",channel:K,instrument:v}],n=void 0,p=0,r.setLastBarTime(0);var ie=!1;(U.voicesOff===!0||U.voicesOff&&U.voicesOff.length&&U.voicesOff.indexOf(K)>=0)&&(ie=!0);for(var le=0;le<te.length;le++){var re=te[le];switch(re.el_type){case"name":n={cmd:"text",type:"name",text:re.trackName};break;case"note":j(re,ie);break;case"key":a=V(re);break;case"meter":e=re,r.setMeter(e),B=O(e),be();break;case"tempo":s?c=re.qpm?s/re.qpm:1:s=re.qpm,r.setTempoChangeFactor(c);break;case"transpose":o=re.transpose,r.setTranspose(o);break;case"bar":r.barEnd(re),l=[],K===0&&ge(Y.length+1),r.setRhythmHead(!1),p=k(re.time),r.setLastBarTime(p);break;case"bagpipes":break;case"instrument":if(v===void 0&&(v=re.program),u=re.program,f.length>0&&f[f.length-1].cmd==="program")f[f.length-1].instrument=re.program;else{var se;for(se=f.length-1;se>=0&&f[se].cmd!=="program";se--);(se<0||f[se].instrument!==re.program)&&f.push({cmd:"program",channel:0,instrument:re.program})}break;case"channel":b(re.channel);break;case"drum":N=fe(re.params),be();break;case"gchordOn":r.gChordOn(re);break;case"beat":m=re.beats[0],w=re.beats[1],T=re.beats[2],re.volumesPerNotePitch?D=re.volumesPerNotePitch:D=[];break;case"vol":S=re.volume;break;case"volinc":L=re.volume;break;case"beataccents":d=re.value;break;case"gchord":case"bassprog":case"chordprog":case"bassvol":case"chordvol":case"gchordbars":r.paramChange(re);break;default:console.log("MIDI creation. Unknown el_type: "+re.el_type+`
7
+ `);break}}f[0].instrument===void 0&&(f[0].instrument=v||0),n&&f.unshift(n),i.push(f),r.finish(),M.length>0}return U.detuneOctave&&ye(i,parseInt(U.detuneOctave,10)),r.addTrack(i),M.length>0&&i.push(M),{tempo:s,instrument:v,tracks:i,totalDuration:t}};function b(Y){for(var U=f.length-1;U>=0;U--)if(f[U].cmd==="program"){f[U].channel=Y;return}}function k(Y){return Y/1e6}function E(Y){return Math.round(Y*c*1e6)/1e6}function R(Y,U){for(var z=0;z<Y.length;z++){for(var W=Y[z],K={},te=U.qpm,ie=0,le=1,re=0;re<W.length;re++){var se=W[re];if(se.el_type==="tempo"){te?le=se.qpm?te/se.qpm:1:te=se.qpm;continue}se.time=ie;var ve=se.duration?se.duration:0;if(ie+=Math.round(ve*le*1e6),se.pitches){for(var pe=0;pe<se.pitches.length;pe++){var ne=se.pitches[pe];if(ne){if(ne.duration=se.duration,ne.startTie)K[ne.pitch]===void 0?K[ne.pitch]={el:re,pitch:pe}:(W[K[ne.pitch].el].pitches[K[ne.pitch].pitch].duration+=ne.duration,se.pitches[pe]=null);else if(ne.endTie){var de=K[ne.pitch];if(de){var me=ne.duration;delete W[de.el].pitches[de.pitch].startTie,W[de.el].pitches[de.pitch].duration+=me,se.pitches[pe]=null,delete K[ne.pitch]}else delete ne.endTie}}}delete se.duration}}for(var he in K)if(K.hasOwnProperty(he)){var Ee=K[he];delete W[Ee.el].pitches[Ee.pitch].startTie}}}function O(Y){switch(parseInt(Y.den,10)){case 2:return .5;case 4:return .25;case 8:return Y.num%3===0?.375:.125;case 16:return .125}return .25}function G(Y,U,z){var W=z-Y;return W/U}function H(Y,U,z){if(U)return 0;let W=m,K=w,te=T;z!==void 0&&D.length>=z+1&&(W=D[z][0],K=D[z][1],te=D[z][2]);var ie;if(S!==void 0)ie=S,S=void 0;else if(!d)ie=K;else if(C>Y)ie=te;else{var le=G(p,O(e),Y);le===0?ie=W:parseInt(le,10)===le?ie=K:ie=te}return L&&(ie+=L,L=void 0),ie<0&&(ie=0),ie>127&&(ie=127),U?0:ie}function X(Y,U){var z={};if(Y.decoration)for(var W=0;W<Y.decoration.length;W++)Y.decoration[W]==="staccato"?z.thisBreakBetweenNotes="staccato":Y.decoration[W]==="tenuto"?z.thisBreakBetweenNotes="tenuto":Y.decoration[W]==="accent"?z.velocity=Math.min(127,U*1.5):Y.decoration[W]==="trill"?z.noteModification="trill":Y.decoration[W]==="lowermordent"?z.noteModification="lowermordent":Y.decoration[W]==="uppermordent"?z.noteModification="pralltriller":Y.decoration[W]==="mordent"?z.noteModification="mordent":Y.decoration[W]==="turn"?z.noteModification="turn":Y.decoration[W]==="roll"?z.noteModification="roll":Y.decoration[W]==="pralltriller"?z.noteModification="pralltriller":Y.decoration[W]==="trillh"&&(z.noteModification="trillh");return z}function Q(Y,U){var z=U.start,W=U.duration,K=E(1/32);switch(Y){case"trill":for(var te=2;W>0;)f.push({cmd:"note",pitch:U.pitch+te,volume:U.volume,start:z,duration:K,gap:0,instrument:u,style:"decoration"}),te=te===2?0:2,W-=K,z+=K;break;case"trillh":for(var te=1;W>0;)f.push({cmd:"note",pitch:U.pitch+te,volume:U.volume,start:z,duration:K,gap:0,instrument:u,style:"decoration"}),te=te===1?0:1,W-=K,z+=K;break;case"pralltriller":f.push({cmd:"note",pitch:U.pitch,volume:U.volume,start:z,duration:K,gap:0,instrument:u,style:"decoration"}),W-=K,z+=K,f.push({cmd:"note",pitch:U.pitch+2,volume:U.volume,start:z,duration:K,gap:0,instrument:u,style:"decoration"}),W-=K,z+=K,f.push({cmd:"note",pitch:U.pitch,volume:U.volume,start:z,duration:W,gap:0,instrument:u});break;case"mordent":case"lowermordent":f.push({cmd:"note",pitch:U.pitch,volume:U.volume,start:z,duration:K,gap:0,instrument:u,style:"decoration"}),W-=K,z+=K,f.push({cmd:"note",pitch:U.pitch-2,volume:U.volume,start:z,duration:K,gap:0,instrument:u,style:"decoration"}),W-=K,z+=K,f.push({cmd:"note",pitch:U.pitch,volume:U.volume,start:z,duration:W,gap:0,instrument:u});break;case"turn":K=U.duration/4,f.push({cmd:"note",pitch:U.pitch+2,volume:U.volume,start:z,duration:K,gap:0,instrument:u,style:"decoration"}),f.push({cmd:"note",pitch:U.pitch,volume:U.volume,start:z+K,duration:K,gap:0,instrument:u,style:"decoration"}),f.push({cmd:"note",pitch:U.pitch-1,volume:U.volume,start:z+K*2,duration:K,gap:0,instrument:u,style:"decoration"}),f.push({cmd:"note",pitch:U.pitch,volume:U.volume,start:z+K*3,duration:K,gap:0,instrument:u,style:"decoration"});break;case"roll":for(;W>0;)f.push({cmd:"note",pitch:U.pitch,volume:U.volume,start:z,duration:K,gap:0,instrument:u,style:"decoration"}),W-=K*2,z+=K*2;break}}function j(Y,U){var z=H(k(Y.time),U);r.processChord(Y);var W;if(Y.gracenotes&&Y.pitches&&Y.pitches.length>0&&Y.pitches[0]&&(W=Z(Y.gracenotes,Y.pitches[0].duration),Y.elem&&(Y.elem.midiGraceNotePitches=$(W,k(Y.time),z*2/3,u))),Y.elem){var K=k(Y.time),te=K/B/s*60*1e3;if(Y.elem.currentTrackMilliseconds===void 0)Y.elem.currentTrackMilliseconds=te,Y.elem.currentTrackWholeNotes=K;else if(Y.elem.currentTrackMilliseconds.length===void 0)Y.elem.currentTrackMilliseconds!==te&&(Y.elem.currentTrackMilliseconds=[Y.elem.currentTrackMilliseconds,te],Y.elem.currentTrackWholeNotes=[Y.elem.currentTrackWholeNotes,K]);else{for(var ie=!1,le=0;le<Y.elem.currentTrackMilliseconds.length;le++)Y.elem.currentTrackMilliseconds[le]===te&&(ie=!0);ie||(Y.elem.currentTrackMilliseconds.push(te),Y.elem.currentTrackWholeNotes.push(K))}}if(Y.pitches){var re="",se=X(Y,z);se.thisBreakBetweenNotes&&(re=se.thisBreakBetweenNotes),se.velocity&&(z=se.velocity);var ve=Y.pitches;Y.style==="rhythm"&&(ve=r.setRhythmHead(!0,Y)),Y.elem&&(Y.elem.midiPitches=[]);for(var pe=0;pe<ve.length;pe++){let we=z;!se.velocity&&Array.isArray(Y.decoration)&&Y.decoration.length>pe&&(we=H(k(Y.time),U,pe));var ne=ve[pe];if(ne){ne.startSlur&&(x+=ne.startSlur.length),ne.endSlur&&(x-=ne.endSlur.length);var de=ne.actualPitch?ne.actualPitch:ae(ne);if(u===h&&_){var me=g(ne);me&&_[me]&&(de=_[me].sound)}var he={cmd:"note",pitch:de,volume:we,start:k(Y.time),duration:E(ne.duration),instrument:u,startChar:Y.elem.startChar,endChar:Y.elem.endChar};if(he=oe(he),Y.gracenotes&&(he.duration=he.duration/2,he.start=he.start+he.duration),Y.elem&&Y.elem.midiPitches.push(he),se.noteModification)Q(se.noteModification,he);else{switch(x>0?he.endType="tenuto":re&&(he.endType=re),he.endType){case"tenuto":he.gap=I;break;case"staccato":var Ee=he.duration*q;he.gap=s/60*Ee;break;default:he.gap=P;break}f.push(he)}}}f.length-1}var xe=ee(Y);t=Math.max(t,k(Y.time)+E(xe))}function ee(Y){return Y.pitches&&Y.pitches.length>0&&Y.pitches[0]?Y.pitches[0].duration:Y.elem?Y.elem.duration:Y.duration}var J=[0,2,4,5,7,9,11];function ae(Y){if(Y.midipitch!==void 0)return Y.midipitch;var U=Y.pitch;if(Y.accidental)switch(Y.accidental){case"sharp":l[U]=1;break;case"flat":l[U]=-1;break;case"natural":l[U]=0;break;case"dblsharp":l[U]=2;break;case"dblflat":l[U]=-2;break;case"quartersharp":l[U]=.25;break;case"quarterflat":l[U]=-.25;break}var z=ce(U)*12+J[ue(U)]+60;return l[U]!==void 0?z+=l[U]:z+=a[ue(U)],z+=o,z}function V(Y){var U=[0,0,0,0,0,0,0];if(!Y.accidentals)return U;for(var z=0;z<Y.accidentals.length;z++){var W=Y.accidentals[z],K;switch(W.acc){case"flat":K=-1;break;case"quarterflat":K=-.25;break;case"sharp":K=1;break;case"quartersharp":K=.25;break;default:K=0;break}var te=W.note.toLowerCase(),ie=ue(te.charCodeAt(0)-99);U[ie]+=K}return U}function Z(Y,U){for(var z=0,W=[],K,te=0;te<Y.length;te++)K=Y[te],z+=K.duration;var ie=U/2/z;for(te=0;te<Y.length;te++){K=Y[te];var le=ae(K);if(u===h&&_){var re=g(K);re&&_[re]&&(le=_[re].sound)}var se={pitch:le,duration:K.duration*ie};se=oe(se),W.push(se)}return W}function $(Y,U,z,W){var K=[];z=Math.round(z);for(var te=0;te<Y.length;te++){var ie=Y[te];f.push({cmd:"note",pitch:ie.pitch,volume:z,start:U,duration:ie.duration,gap:0,instrument:W,style:"grace"}),K.push({pitch:ie.pitch,durationInMeasures:ie.duration,volume:z,instrument:W}),U+=ie.duration}return K}function oe(Y){var U=""+Y.pitch;return U.indexOf(".75")>=0?(Y.pitch=Math.round(Y.pitch),Y.cents=-50):U.indexOf(".25")>=0&&(Y.pitch=Math.round(Y.pitch),Y.cents=50),Y}function ce(Y){return Math.floor(Y/7)}function ue(Y){return Y=Y%7,Y<0&&(Y+=7),Y}function fe(Y){if(Y.pattern.length===0||Y.on===!1)return{on:!1};for(var U=Y.pattern[0],z=[],W="",K=0,te=0;te<U.length;te++)if(U[te]==="d"&&K++,U[te]==="d"||U[te]==="z")W.length!==0?(z.push(W),W=U[te]):W=W+U[te];else{if(W.length===0)return{on:!1};W=W+U[te]}if(W.length!==0&&z.push(W),Y.pattern.length!==K*2+1)return{on:!1};for(var ie={on:!0,bars:Y.bars,pattern:[]},le=O(e),re=0,se=0;se<z.length;se++){W=z[se];for(var ve=1,pe=!1,ne=0,de=1;de<W.length;de++)switch(W[de]){case"/":ne!==0&&(ve*=ne),ne=0,pe=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":ne=ne*10+W[de];break;default:return{on:!1}}pe?(ne===0&&(ne=2),ve/=ne):ne&&(ve*=ne),W[0]==="d"?(ie.pattern.push({len:ve*le,pitch:Y.pattern[1+re],velocity:Y.pattern[1+re+K]}),re++):ie.pattern.push({len:ve*le,pitch:null})}return F=Y.bars?Y.bars:1,ie}function be(){if(!(!N||!N.pattern)){for(var Y=N,U=0,z=e.num/e.den,W=0;W<Y.pattern.length;W++)U+=Y.pattern[W].len;var K=U/F/z;for(W=0;W<Y.pattern.length;W++)Y.pattern[W].len=Y.pattern[W].len/K;N=Y}}function ge(Y){if(!(M.length===0&&!N.on)){var U=e.num/e.den;if(M.length===0){if(t<U)return;M.push({cmd:"program",channel:Y,instrument:h})}if(N.on)for(var z=p,W=0;W<N.pattern.length;W++){var K=E(N.pattern[W].len);N.pattern[W].pitch&&M.push({cmd:"note",pitch:N.pattern[W].pitch,volume:N.pattern[W].velocity,start:z,duration:K,gap:0,instrument:h}),z+=K}}}function ye(Y,U){for(var z={},W=0;W<Y.length;W++)for(var K=0;K<Y[W].length;K++){var te=Y[W][K];te.cmd==="note"&&(z[te.start]===void 0&&(z[te.start]=[]),z[te.start].push({track:W,event:K,pitch:te.pitch}))}var ie=Object.keys(z);for(W=0;W<ie.length;W++){var le=z[ie[W]];if(le.length>1){le=le.sort(function(ne,de){return ne.pitch-de.pitch});var re=le[le.length-1],se=re.pitch%12,ve=!1;for(K=0;!ve&&K<le.length-1;K++)le[K].pitch%12===se&&(ve=!0);if(ve){var pe=Y[re.track][re.event];pe.cents||(pe.cents=0),pe.cents+=U}}}}})(),ft=A,ft}var ht,pa;function As(){if(pa)return ht;pa=1;function A(c,v){v||(v={});for(var u=!!v.lineBreaks,f=[],n=!1,t=[],r=[],e=[],h=[],p=[],d=[],m=[],w=0;w<c.length;w++){var T=s(c[w]);if(T.staff){if(n&&!T.vskip)for(var D=f[f.length-1],B=0;B<D.staff.length;B++){var S=T.staff[B],L=D.staff[B];if(S&&(i(S.meter,t[B])||(g(S.meter,S.voices),t[B]=S.meter,delete S.meter),i(S.key,r[B])||(l(S.key,S.voices),r[B]=S.key,delete S.key),S.title&&(L.abbrevTitle=S.title),i(S.clef,e[B])||(a(S.clef,S.voices),e[B]=S.clef,delete S.clef),i(S.vocalfont,h[B])||(o(S.vocalfont,S.voices,"vocalfont"),h[B]=S.vocalfont,delete S.vocalfont),i(S.gchordfont,p[B])||(o(S.gchordfont,S.voices,"gchordfont"),p[B]=S.gchordfont,delete S.gchordfont),i(S.tripletfont,d[B])||(o(S.tripletfont,S.voices,"tripletfont"),d[B]=S.tripletfont,delete S.tripletfont),i(S.annotationfont,m[B])||(o(S.annotationfont,S.voices,"annotationfont"),m[B]=S.annotationfont,delete S.annotationfont)),S)for(var x=0;x<L.voices.length;x++){var M=L.voices[x],N=S.voices[x];u&&M.push({el_type:"break"}),N&&(L.voices[x]=M.concat(N))}}else{for(var F=0;F<T.staff.length;F++)r[F]=T.staff[F].key,t[F]=T.staff[F].meter,e[F]=T.staff[F].clef;f.push(s(T))}n=!0}else n=!1,f.push(T)}return f}function y(c,v){return c==="abselem"?"abselem":v}function g(c,v){c.el_type="meter",c.startChar=-1,c.endChar=-1;for(var u=0;u<v.length;u++)v[u].unshift(c)}function l(c,v){c.el_type="key",c.startChar=-1,c.endChar=-1;for(var u=0;u<v.length;u++)v[u].unshift(c)}function a(c,v){c.el_type="clef",c.startChar=-1,c.endChar=-1;for(var u=0;u<v.length;u++)v[u].unshift(c)}function o(c,v,u){c.el_type="font",c.type=u,c.startChar=-1,c.endChar=-1;for(var f=0;f<v.length;f++)v[f].unshift(c)}function i(c,v){if(!c)return!0;var u=JSON.stringify(c,y),f=JSON.stringify(v,y);return u===f}function s(c){for(var v={},u=Object.keys(c),f=0;f<u.length;f++)if(u[f]!=="staff")v[u[f]]=c[u[f]];else{v.staff=[];for(var n=0;n<c.staff.length;n++){for(var t={},r=Object.keys(c.staff[n]),e=0;e<r.length;e++)if(r[e]!=="voices")t[r[e]]=c.staff[n][r[e]];else{t.voices=[];for(var h=0;h<c.staff[n].voices.length;h++)t.voices.push([].concat(c.staff[n].voices[h]))}v.staff.push(t)}}return v}return ht=A,ht}var ut,ga;function Yn(){if(ga)return ut;ga=1;var A=_e(),y=Ce(),g=zn(),l=Es(),a=As(),o=function(){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();function i(n,t,r,e){for(var h=0;h<e.length;h++)n[r][e[h]]=t[r][e[h]]}this.copyTopInfo=function(n){var t=["tempo","title","header","rhythm","origin","composer","author","partOrder"];i(this,n,"metaText",t),i(this,n,"metaTextInfo",t)},this.copyBottomInfo=function(n){var t=["unalignedWords","book","source","discography","notes","transcription","history","abc-copyright","abc-creator","abc-edited-by","footer"];i(this,n,"metaText",t),i(this,n,"metaTextInfo",t)},this.getBeatLength=function(){var n=this.getMeterFraction(),t=1;return n.num===6||n.num===9||n.num===12||n.num===3&&n.den===8?t=3:n.den===8&&(n.num===5||n.num===7)&&(t=2),t/n.den};function s(n,t){for(var r=0,e=0;e<n.length;e++)if(n[e].staff)for(var h=0;h<n[e].staff.length;h++)for(var p=0;p<n[e].staff[h].voices.length;p++)for(var d=n[e].staff[h].voices[p],m=1,w=0;w<d.length;w++){var T=d[w].rest&&d[w].rest.type==="spacer";if(d[w].startTriplet&&(m=d[w].tripletMultiplier),d[w].duration&&!T&&d[w].el_type!=="tempo"&&(r+=d[w].duration*m),d[w].endTriplet&&(m=1),r>=t&&(r-=t),d[w].el_type==="bar")return r}return r}this.getPickupLength=function(){var n=this.getBarLength(),t=s(this.lines,n);return t<1e-8||n-t<1e-8?0:t},this.getBarLength=function(){var n=this.getMeterFraction();return n.num/n.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(n){var t;if(n)t=n;else{var r=this.metaText?this.metaText.tempo:null;t=this.getBpm(r)}t<=0&&(t=1);var e=this.getBeatsPerMeasure(),h=e/t;return h*6e4},this.getBeatsPerMeasure=function(){var n=this.getBeatLength(),t=this.getBarLength();return t/n},this.getMeter=function(){for(var n=0;n<this.lines.length;n++){var t=this.lines[n];if(t.staff)for(var r=0;r<t.staff.length;r++){var e=t.staff[r].meter;if(e)return e}}return{type:"common_time"}},this.getMeterFraction=function(){var n=this.getMeter(),t=4,r=4;if(n)if(n.type==="specified"){if(n.value&&n.value.length>0&&n.value[0].num.indexOf("+")>0){var e=n.value[0].num.split("+");t=0;for(var h=0;h<e.length;h++)t+=parseInt(e[h],10)}else t=parseInt(n.value[0].num,10);r=parseInt(n.value[0].den,10)}else n.type==="cut_time"?(t=2,r=2):n.type==="common_time"&&(t=4,r=4);return this.meter={num:t,den:r},this.meter},this.getKeySignature=function(){for(var n=0;n<this.lines.length;n++){var t=this.lines[n];if(t.staff){for(var r=0;r<t.staff.length;r++)if(t.staff[r].key)return t.staff[r].key}}return{}},this.getElementFromChar=function(n){for(var t=0;t<this.lines.length;t++){var r=this.lines[t];if(r.staff)for(var e=0;e<r.staff.length;e++)for(var h=r.staff[e],p=0;p<h.voices.length;p++)for(var d=h.voices[p],m=0;m<d.length;m++){var w=d[m];if(w.startChar&&w.endChar&&w.startChar<=n&&w.endChar>n)return w}}return null};function c(n){for(var t,r,e,h,p=n.length-1;p>=0;p--){var d=n[p];d.type==="bar"?(d.top=e,d.nextTop=t,t=e,d.bottom=h,d.nextBottom=r,r=h):d.type==="event"&&(e=d.top,h=d.top+d.height)}}function v(n){var t=[];for(var r in n)n.hasOwnProperty(r)&&t.push(n[r]);return t=t.sort(function(e,h){var p=e.milliseconds-h.milliseconds;return p!==0?p:e.type==="bar"?-1:1}),t}this.addElementToEvents=function(n,t,r,e,h,p,d,m,w,T){if(t.hint)return{isTiedState:void 0,duration:0};var D=t.durationClass?t.durationClass:t.duration;if(t.abcelem.rest&&t.abcelem.rest.type==="spacer"&&(D=0),D>0){for(var B=[],S=0;S<t.elemset.length;S++)t.elemset[S]!==null&&B.push(t.elemset[S]);var L=t.startTie;if(w!==void 0)n["event"+w].elements.push(B),T&&(n["event"+r]||(n["event"+r]={type:"event",milliseconds:r,line:p,measureNumber:d,top:e,height:h,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),n["event"+r].measureStart=!0,T=!1),L||(w=void 0);else{if(!n["event"+r])n["event"+r]={type:"event",milliseconds:r,line:p,measureNumber:d,top:e,height:h,left:t.x,width:t.w,elements:[B],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?A.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(n["event"+r].midiGraceNotePitches=A.cloneArray(t.abcelem.midiGraceNotePitches));else{if(n["event"+r].left?n["event"+r].left=Math.min(n["event"+r].left,t.x):n["event"+r].left=t.x,n["event"+r].elements.push(B),n["event"+r].startCharArray.push(t.abcelem.startChar),n["event"+r].endCharArray.push(t.abcelem.endChar),n["event"+r].startChar===null&&(n["event"+r].startChar=t.abcelem.startChar),n["event"+r].endChar===null&&(n["event"+r].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length){n["event"+r].midiPitches||(n["event"+r].midiPitches=[]);for(var S=0;S<t.abcelem.midiPitches.length;S++)n["event"+r].midiPitches.push(t.abcelem.midiPitches[S])}if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){n["event"+r].midiGraceNotePitches||(n["event"+r].midiGraceNotePitches=[]);for(var x=0;x<t.abcelem.midiGraceNotePitches.length;x++)n["event"+r].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[x])}}T&&(n["event"+r].measureStart=!0,T=!1)}}return{isTiedState:w,duration:D/m,nextIsBar:T||t.type==="bar"}},this.makeVoicesArray=function(){for(var n=[],t=[],r={},e=0;e<this.engraver.staffgroups.length;e++){var h=this.engraver.staffgroups[e];if(h&&h.staffs&&h.staffs.length>0){var p=h.staffs[0],d=p.absoluteY,m=d-p.top*y.STEP,w=h.staffs[h.staffs.length-1];d=w.absoluteY;for(var T=d-w.bottom*y.STEP,D=T-m,B=h.voices,S=0;S<B.length;S++)if(!(B[S].staff&&B[S].staff.isTabStaff)){var L=!1;n[S]||(n[S]=[]),t[S]===void 0&&(t[S]=0);for(var x=B[S].children,M=0;M<x.length;M++)x[M].type==="tempo"&&(r[t[S]]=this.getBpm(x[M].abcelem)),n[S].push({top:m,height:D,line:h.line,measureNumber:t[S],elem:x[M]}),x[M].type==="bar"&&L&&t[S]++,(x[M].type==="note"||x[M].type==="rest")&&(L=!0)}}}return this.tempoLocations=r,n},this.setupEvents=function(n,t,r,e){e||(e=1);for(var h=[],p={},d=n,m,w=!0,T=this.makeVoicesArray(),D=0,B=0;B<T.length;B++){var S=d,L=Math.round(S*1e3),x=0,M=-1,N=T[B],F=r;t=this.getBeatLength()*F/60;for(var C=-1,_=0;_<N.length;_++){var P=N[_].measureNumber;C!==P&&this.tempoLocations[P]&&(F=this.tempoLocations[P],t=e*this.getBeatLength()*F/60,C=P);var I=N[_].elem,q=this.addElementToEvents(p,I,L,N[_].top,N[_].height,N[_].line,N[_].measureNumber,t,m,w);m=q.isTiedState,w=q.nextIsBar,S+=q.duration;var b;if(I.duration>0&&p["event"+L]&&(b="event"+L),L=Math.round(S*1e3),I.type==="bar"){var k=I.abcelem.type,E=k==="bar_right_repeat"||k==="bar_dbl_repeat",R=I.abcelem.startEnding==="1",O=k==="bar_left_repeat"||k==="bar_dbl_repeat"||k==="bar_right_repeat";if(E){_>0&&(p[b].endX=I.x),M===-1&&(M=_);var G=0;C=-1;for(var H=x;H<M;H++){P=N[H].measureNumber,C!==P&&this.tempoLocations[P]&&(F=this.tempoLocations[P],t=e*this.getBeatLength()*F/60,C=P);var X=N[H].elem;q=this.addElementToEvents(p,X,L,N[H].top,N[H].height,N[H].line,N[H].measureNumber,t,m,w),m=q.isTiedState,w=q.nextIsBar,S+=q.duration,G=L,L=Math.round(S*1e3)}p["event"+G]&&(p["event"+G].endX=N[M].elem.x),w=!0,M=-1}R&&(M=_),O&&(x=_)}}D=Math.max(D,L)}return h=v(p),c(h),f(this.lines,h),h.push({type:"end",milliseconds:D}),this.addUsefulCallbackInfo(h,F*e),h},this.addUsefulCallbackInfo=function(n,t){for(var r=this.millisecondsPerMeasure(t),e=0;e<n.length;e++){var h=n[e];h.millisecondsPerMeasure=r}};function u(n,t){for(;t<n.length&&n[t].left===null;)t++;return n[t]}function f(n,t){if(!(t.length<1)){for(var r=0;r<t.length-1;r++){var e=t[r],h=u(t,r+1);if(e.left!==null){var p=h&&e.top===h.top?h.left:n[e.line].staffGroup.w;e.endX!==void 0?p>e.left&&(e.endX=Math.min(e.endX,p)):e.endX=p}}var d=t[t.length-1];d.endX=n[d.line].staffGroup.w}}this.getBpm=function(n){var t;if(n||(n=this.metaText?this.metaText.tempo:null),n){t=n.bpm;var r=this.getBeatLength(),e=n.duration&&n.duration.length>0?n.duration[0]:r;t=t*e/r}if(!t){t=180;var h=this.getMeterFraction();h&&h.num!==3&&h.num%3===0&&(t=120)}return t},this.setTiming=function(n,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 r=this.metaText?this.metaText.tempo:null,e=this.getBpm(r),h=1;n?r&&(h=n/e):n=e;var p=this.getBeatLength(),d=n/60,m=this.getBarLength(),w=m/p*t/d;w&&(w-=this.getPickupLength()/p/d);var T=p*d;return this.noteTimings=this.setupEvents(w,T,n,h),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*d):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(n){n||(n={});var t=g(this,n);return l(t,n,this.formatting.percmap,this.formatting.midi)},this.deline=function(n){return a(this.lines,n)},this.findSelectableElement=function(n){return this.engraver&&this.engraver.selectables?this.engraver.findSelectableElement(n):null},this.getSelectableArray=function(){return this.engraver&&this.engraver.selectables?this.engraver.selectables:[]}};return ut=o,ut}var dt,ba;function Ms(){if(ba)return dt;ba=1;var A=Lr(),y=function(x){var M=this,N={},F="";x.reset(),this.setVisualTranspose=function(C){C!==void 0&&(x.visualTranspose=C)},this.cleanUp=function(C,_,P){t(x),delete x.runningFonts,l(x),x.metaText.tempo&&x.metaText.tempo.bpm&&!x.metaText.tempo.duration&&(x.metaText.tempo.duration=[x.getBeatLength()]);var I=!1,q,b,k;for(q=0;q<x.lines.length;q++)if(x.lines[q].staff!==void 0){var E=!1;for(b=0;b<x.lines[q].staff.length;b++)if(x.lines[q].staff[b]===void 0)I=!0,x.lines[q].staff[b]=null;else for(k=0;k<x.lines[q].staff[b].voices.length;k++)x.lines[q].staff[b].voices[k]===void 0?x.lines[q].staff[b].voices[k]=[]:r(x.lines[q].staff[b].voices[k])&&(E=!0);E||(x.lines[q]=null,I=!0)}if(I&&(x.lines=x.lines.filter(function(J){return!!J}),x.lines.forEach(function(J){J.staff&&(J.staff=J.staff.filter(function(ae){return!!ae}))})),C)for(;c(x.lines,C););if(_){for(I=!1,q=0;q<x.lines.length;q++)if(x.lines[q].staff!==void 0)for(b=0;b<x.lines[q].staff.length;b++){var R=!1;for(k=0;k<x.lines[q].staff[b].voices.length;k++)e(x.lines[q].staff[b].voices[k])&&(R=!0);R||(I=!0,x.lines[q].staff[b]=null)}I&&x.lines.forEach(function(J){J.staff&&(J.staff=J.staff.filter(function(ae){return!!ae}))})}for(i(x.lines),q=0;q<x.lines.length;q++)if(x.lines[q].staff)for(b=0;b<x.lines[q].staff.length;b++)delete x.lines[q].staff[b].workingClef;for(var O=!1;a(x);)O=!0;if(O)for(var G=0,H=S(x.lines,G);H!=="not-found";)H=S(x.lines,G),H?G++:L(x.lines,G);for(var q=0;q<x.lines.length;q++){var X=x.lines[q].staff;if(X)for(x.staffNum=0;x.staffNum<X.length;x.staffNum++)for(X[x.staffNum].clef&&A.fixClef(X[x.staffNum].clef),x.voiceNum=0;x.voiceNum<X[x.staffNum].voices.length;x.voiceNum++){var Q=X[x.staffNum].voices[x.voiceNum];s(Q,x.staffNum,x.voiceNum,P);for(var j=0;j<Q.length;j++)Q[j].el_type==="clef"&&A.fixClef(Q[j]);if(Q.length>0&&Q[Q.length-1].barNumber){var ee=u(x.lines,q);ee&&(ee.staff[0].barNumber=Q[Q.length-1].barNumber),delete Q[Q.length-1].barNumber}}}return delete x.staffNum,delete x.voiceNum,delete x.lineNum,delete x.potentialStartBeam,delete x.potentialEndBeam,delete x.vskipPending,P},this.addTieToLastNote=function(C){var _=f(x);return _&&_.pitches&&_.pitches.length>0?(_.pitches[0].startTie={},C&&(_.pitches[0].startTie.style="dotted"),!0):!1},this.appendElement=function(C,_,P,I){if(I.el_type=C,_!==null&&(I.startChar=_),P!==null&&(I.endChar=P),C==="note"){var q=n(I);q>=.25||I.force_end_beam_last&&x.potentialStartBeam!==void 0?m(x):I.end_beam&&x.potentialStartBeam!==void 0?I.rest===void 0?d(I,x):m(x):I.rest===void 0&&(x.potentialStartBeam===void 0?I.end_beam||(x.potentialStartBeam=I,delete x.potentialEndBeam):x.potentialEndBeam=I)}else m(x);return delete I.end_beam,delete I.force_end_beam_last,I.rest&&I.rest.type==="invisible"&&delete I.decoration,x.lines.length<=x.lineNum||x.lines[x.lineNum].staff.length<=x.staffNum?!1:(p(M,x,I,N,F),!0)},this.appendStartingElement=function(C,_,P,I){t(x);var q;C==="key"&&(q=I.impliedNaturals,delete I.impliedNaturals,delete I.explicitAccidentals);var b=Object.assign({},I);if(x.lines[x.lineNum]){var k=x.lines[x.lineNum].staff;if(k){k.length<=x.staffNum&&(k[x.staffNum]={},k[x.staffNum].clef=Object.assign({},k[0].clef),k[x.staffNum].key=Object.assign({},k[0].key),k[0].meter&&(k[x.staffNum].meter=Object.assign({},k[0].meter)),k[x.staffNum].workingClef=Object.assign({},k[0].workingClef),k[x.staffNum].voices=[[]]),C==="clef"&&(k[x.staffNum].workingClef=b);for(var E=k[x.staffNum].voices[x.voiceNum],R=0;R<E.length;R++){if(E[R].el_type==="note"||E[R].el_type==="bar"){b.el_type=C,b.startChar=_,b.endChar=P,q&&(b.accidentals=q.concat(b.accidentals)),E.push(b);return}if(E[R].el_type===C){b.el_type=C,b.startChar=_,b.endChar=P,q&&(b.accidentals=q.concat(b.accidentals)),E[R]=b;return}}k[x.staffNum][C]=I}}},this.addSubtitle=function(C,_){h(x,{subtitle:{text:C,startChar:_.startChar,endChar:_.endChar}})},this.addSpacing=function(C){x.vskipPending=C},this.addNewPage=function(C){h(x,{newpage:C})},this.addSeparator=function(C,_,P,I){h(x,{separator:{spaceAbove:Math.round(C),spaceBelow:Math.round(_),lineLength:Math.round(P),startChar:I.startChar,endChar:I.endChar}})},this.addText=function(C,_){h(x,{text:{text:C,startChar:_.startChar,endChar:_.endChar}})},this.addCentered=function(C){h(x,{text:[{text:C,center:!0}]})},this.changeVoiceScale=function(C){M.appendElement("scale",null,null,{size:C})},this.changeVoiceColor=function(C){M.appendElement("color",null,null,{color:C})},this.startNewLine=function(C){t(x),C.currentVoiceName&&(F=C.currentVoiceName,N[C.currentVoiceName]=C),x.lines[x.lineNum]===void 0?B(M,x,C):x.lines[x.lineNum].staff===void 0?(x.lineNum++,this.startNewLine(C)):x.lines[x.lineNum].staff[x.staffNum]===void 0?D(M,x,C):x.lines[x.lineNum].staff[x.staffNum].voices[x.voiceNum]===void 0?T(M,x,C):r(x.lines[x.lineNum].staff[x.staffNum].voices[x.voiceNum])?(x.lineNum++,this.startNewLine(C)):C.part&&M.appendElement("part",C.part.startChar,C.part.endChar,{title:C.part.title})},this.setRunningFont=function(C,_){x.runningFonts[C]=_},this.setBarNumberImmediate=function(C){var _=this.getCurrentVoice();if(_&&_.length>0){var P=_[_.length-1];if(P.el_type==="bar")P.barNumber!==void 0&&(P.barNumber=C);else return C-1}return C},this.hasBeginMusic=function(){for(var C=0;C<x.lines.length;C++)if(x.lines[C].staff)return!0;return!1},this.isFirstLine=function(C){for(var _=C-1;_>=0;_--)if(x.lines[_].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var C=v(x.lines,x.lineNum);if(!C)return null;var _=C.staff[x.staffNum];return _&&_.voices[x.voiceNum]!==void 0?_.voices[x.voiceNum]:null},this.setCurrentVoice=function(C,_,P){x.staffNum=C,x.voiceNum=_,F=P;for(var I=0;I<x.lines.length;I++)if(x.lines[I].staff&&(x.lines[I].staff[C]===void 0||x.lines[I].staff[C].voices[_]===void 0||!r(x.lines[I].staff[C].voices[_])))return x.lineNum=I,!!(!x.lines[I].staff[C]||x.lines[I].staff[C].voices[_]);return x.lineNum=I,!1},this.addMetaText=function(C,_,P){x.metaText[C]===void 0?(x.metaText[C]=_,x.metaTextInfo[C]=P):(typeof x.metaText[C]=="string"&&typeof _=="string"?x.metaText[C]+=`
8
+ `+_:(x.metaText[C]==="string"&&(x.metaText[C]=[{text:x.metaText[C]}]),typeof _=="string"&&(_=[{text:_}]),x.metaText[C]=x.metaText[C].concat(_)),x.metaTextInfo[C].endChar=P.endChar)},this.addMetaTextArray=function(C,_,P){x.metaText[C]===void 0?(x.metaText[C]=[_],x.metaTextInfo[C]=P):(x.metaText[C].push(_),x.metaTextInfo[C].endChar=P.endChar)},this.addMetaTextObj=function(C,_,P){x.metaText[C]=_,x.metaTextInfo[C]=P}};function g(x){if(!x||typeof x=="string")return!1;for(var M=0;M<x.length;M++)if(typeof x[M]!="string")return!1;return!0}function l(x){g(x.metaText.notes)&&(x.metaText.notes=x.metaText.notes.join(`
9
+ `)),g(x.metaText.history)&&(x.metaText.history=x.metaText.history.join(`
10
+ `))}function a(x){for(var M=!1,N=0;N<x.lines.length;N++){var F=x.lines[N];if(F.staff)for(var C=0;C<F.staff.length;C++){for(var _=F.staff[C],P=[],I=0;I<_.voices.length;I++){var q=_.voices[I];P.push({hasOverlay:!1,voice:[],snip:[]});for(var b=0,k=!1,E=-1,R=0;R<q.length;R++){var O=q[R];if(O.el_type==="overlay"&&!k){M=!0,k=!0,E=R,P[I].hasOverlay=!0;for(var G=0;G<N;G++)x.lines[G].staff&&x.lines[G].staff.forEach(J=>{_.voices.length>=J.voices.length&&J.voices.forEach(ae=>{let V=[];ae.forEach(Z=>{Z.el_type==="bar"?V.push(Z):Z.el_type==="note"&&V.push({el_type:"note",duration:Z.duration,rest:{type:"invisible"},startChar:Z.startChar,endChar:Z.endChar})}),J.voices.push(V)})})}else O.el_type==="bar"?(k?(k=!1,P[I].snip.push({start:E,len:R-E}),P[I].voice.push(O)):(b>0&&P[I].voice.push({el_type:"note",duration:b,rest:{type:"invisible"},startChar:O.startChar,endChar:O.endChar}),P[I].voice.push(O)),b=0):O.el_type==="note"?k?P[I].voice.push(O):(!O.rest||O.rest.type!=="spacer")&&(b+=O.duration):(O.el_type==="scale"||O.el_type==="stem"||O.el_type==="overlay"||O.el_type==="style"||O.el_type==="transpose"||O.el_type==="color")&&P[I].voice.push(O)}P[I].hasOverlay&&P[I].snip.length===0&&P[I].snip.push({start:E,len:q.length-E})}for(I=0;I<P.length;I++){var H=P[I];if(H.hasOverlay){H.voice.splice(0,0,{el_type:"stem",direction:"down"}),_.voices.push(H.voice);for(var X=H.snip.length-1;X>=0;X--){var Q=H.snip[X];_.voices[I].splice(Q.start,Q.len),_.voices[I].splice(Q.start+1,0,{el_type:"stem",direction:"auto"});var j=o(_.voices[I],Q.start);_.voices[I].splice(j,0,{el_type:"stem",direction:"up"})}for(X=0;X<_.voices[_.voices.length-1].length;X++){_.voices[_.voices.length-1][X]=Object.assign({},_.voices[_.voices.length-1][X]);var ee=_.voices[_.voices.length-1][X];ee.el_type==="bar"&&ee.startEnding&&delete ee.startEnding,ee.el_type==="bar"&&ee.endEnding&&delete ee.endEnding}}}}}return M}function o(x,M){for(var N=M-1;N>0&&x[N].el_type!=="bar";N--);return N}function i(x){for(var M=!0,N=0;N<x.length;N++){var F=x[N];if(F.staff){for(var C=0;C<F.staff.length;C++){var _=F.staff[C];if(_.title){for(var P=!1,I=0;I<_.title.length;I++)_.title[I]?(_.title[I]=M?_.title[I].name:_.title[I].subname,_.title[I]?P=!0:_.title[I]=""):_.title[I]="";P||delete _.title}}M=!1}}}function s(x,M,N,F){F[M]||(F[M]=[]),F[M][N]||(F[M][N]=[]);for(var C,_=function(Q,j,ee){if(F[M][N][ee]===void 0){for(C=0;C<F[M][N].length;C++)if(F[M][N][C]!==void 0){ee=C;break}if(F[M][N][ee]===void 0){var J=ee*100+1;Q.endSlur.forEach(function(Z){J===Z&&--J}),F[M][N][ee]=[J]}}for(var ae,V=0;V<j;V++)ae=F[M][N][ee].pop(),Q.endSlur.push(ae);return F[M][N][ee].length===0&&delete F[M][N][ee],ae},P=function(Q,j,ee,J){Q.startSlur=[],F[M][N][ee]===void 0&&(F[M][N][ee]=[]);for(var ae=ee*100+1,V=0;V<j;V++)J&&(J.forEach(function(Z){ae===Z&&++ae}),J.forEach(function(Z){ae===Z&&++ae}),J.forEach(function(Z){ae===Z&&++ae})),F[M][N][ee].forEach(function(Z){ae===Z&&++ae}),F[M][N][ee].forEach(function(Z){ae===Z&&++ae}),F[M][N][ee].push(ae),Q.startSlur.push({label:ae}),Q.dottedSlur&&(Q.startSlur[Q.startSlur.length-1].style="dotted",delete Q.dottedSlur),ae++},I=0;I<x.length;I++){var q=x[I];if(q.el_type==="note"){if(q.gracenotes)for(var b=0;b<q.gracenotes.length;b++){if(q.gracenotes[b].endSlur){var k=q.gracenotes[b].endSlur;q.gracenotes[b].endSlur=[];for(var E=0;E<k;E++)_(q.gracenotes[b],1,20)}q.gracenotes[b].startSlur&&(C=q.gracenotes[b].startSlur,P(q.gracenotes[b],C,20))}if(q.endSlur&&(C=q.endSlur,q.endSlur=[],_(q,C,0)),q.startSlur&&(C=q.startSlur,P(q,C,0)),q.pitches){for(var R=[],O=0;O<q.pitches.length;O++)if(q.pitches[O].endSlur){var G=q.pitches[O].endSlur;q.pitches[O].endSlur=[];for(var H=0;H<G;H++){var X=_(q.pitches[O],1,O+1);R.push(X)}}for(O=0;O<q.pitches.length;O++)q.pitches[O].startSlur&&(C=q.pitches[O].startSlur,P(q.pitches[O],C,O+1,R));q.gracenotes&&q.pitches[0].endSlur&&q.pitches[0].endSlur[0]===100&&q.pitches[0].startSlur&&(q.gracenotes[0].endSlur?q.gracenotes[0].endSlur.push(q.pitches[0].startSlur[0].label):q.gracenotes[0].endSlur=[q.pitches[0].startSlur[0].label],q.pitches[0].endSlur.length===1?delete q.pitches[0].endSlur:q.pitches[0].endSlur[0]===100?q.pitches[0].endSlur.shift():q.pitches[0].endSlur[q.pitches[0].endSlur.length-1]===100&&q.pitches[0].endSlur.pop(),F[M][N][1].length===1?delete F[M][N][1]:F[M][N][1].pop())}}}}function c(x,M){for(var N=0;N<x.length;N++)if(x[N].staff!==void 0)for(var F=0;F<x[N].staff.length;F++)for(var C=[],_=0;_<x[N].staff[F].voices.length;_++)for(var P=x[N].staff[F].voices[_],I=0,q=0;q<P.length;q++)if(P[q].el_type==="bar"){if(I++,I>=M&&q<P.length-1){var b=u(x,N);if(!b){var k=JSON.parse(JSON.stringify(x[N]));x.push(Object.assign({},k)),b=x[x.length-1];for(var E=0;E<b.staff.length;E++)for(var R=0;R<b.staff[E].voices.length;R++)b.staff[E].voices[R]=[]}var O=q+1,G=x[N].staff[F].voices[_].slice(O);return x[N].staff[F].voices[_]=x[N].staff[F].voices[_].slice(0,O),b.staff[F].voices[_]=C.concat(G.concat(b.staff[F].voices[_])),!0}}else P[q].duration||C.push(P[q]);return!1}function v(x,M){if(x.length<=M)return null;for(;M>=0;){if(x[M].staff)return x[M];M--}return null}function u(x,M){for(M++;x.length>M;){if(x[M].staff)return x[M];M++}return null}function f(x){if(!x.lines[x.lineNum]||!x.lines[x.lineNum].staff||!x.lines[x.lineNum].staff[x.staffNum])return null;var M=x.lines[x.lineNum].staff[x.staffNum].voices[x.voiceNum];if(!M)return null;for(var N=M.length-1;N>=0;N--){var F=M[N];if(F.el_type==="note")return F}return null}function n(x){return x.duration?x.duration:0}function t(x){x.potentialStartBeam&&x.potentialEndBeam&&(x.potentialStartBeam.startBeam=!0,x.potentialEndBeam.endBeam=!0),delete x.potentialStartBeam,delete x.potentialEndBeam}function r(x){for(var M=0;M<x.length;M++)if(x[M].el_type==="note"||x[M].el_type==="bar")return!0;return!1}function e(x){for(var M=0;M<x.length;M++)if(x[M].el_type==="note"&&(x[M].rest===void 0||x[M].chord!==void 0))return!0;return!1}function h(x,M){x.vskipPending&&(M.vskip=x.vskipPending,delete x.vskipPending),x.lines.push(M)}function p(x,M,N,F,C){var _=M.lines[M.lineNum].staff[M.staffNum];if(N.pitches!==void 0){var P=_.workingClef.verticalPos;N.pitches.forEach(function(q){q.verticalPos=q.pitch-P})}if(N.gracenotes!==void 0){var I=_.workingClef.verticalPos;N.gracenotes.forEach(function(q){q.verticalPos=q.pitch-I})}_.voices.length<=M.voiceNum&&(F[C]||(F[C]={}),T(x,M,F[C])),_.voices[M.voiceNum].push(N)}function d(x,M){M.potentialStartBeam.startBeam=!0,x.endBeam=!0,delete M.potentialStartBeam,delete M.potentialEndBeam}function m(x){x.potentialStartBeam!==void 0&&x.potentialEndBeam!==void 0&&(x.potentialStartBeam.startBeam=!0,x.potentialEndBeam.endBeam=!0),delete x.potentialStartBeam,delete x.potentialEndBeam}function w(x,M,N){if(x.runningFonts[M]){for(var F=!1,C=Object.keys(N),_=0;_<C.length;_++)x.runningFonts[M][C[_]]!==N[C[_]]&&(F=!0);F&&(x.lines[x.lineNum].staff[x.staffNum][M]=N)}x.runningFonts[M]=N}function T(x,M,N){var F=M.lines[M.lineNum].staff[M.staffNum];if(F.voices[M.voiceNum]=[],F.title||(F.title=[]),F.title[M.voiceNum]={name:N.name,subname:N.subname},N.style&&x.appendElement("style",null,null,{head:N.style}),N.stem)x.appendElement("stem",null,null,{direction:N.stem});else if(M.voiceNum>0){if(F.voices[0]!==void 0){for(var C=!1,_=0;_<F.voices[0].length;_++)F.voices[0].el_type==="stem"&&(C=!0);if(!C){var P={el_type:"stem",direction:"up"};F.voices[0].splice(0,0,P)}}x.appendElement("stem",null,null,{direction:"down"})}N.scale&&x.appendElement("scale",null,null,{size:N.scale}),N.color&&x.appendElement("color",null,null,{color:N.color})}function D(x,M,N){N.key&&N.key.impliedNaturals&&(N.key.accidentals=N.key.accidentals.concat(N.key.impliedNaturals),delete N.key.impliedNaturals),M.lines[M.lineNum].staff[M.staffNum]={voices:[],clef:N.clef,key:N.key,workingClef:N.clef};var F=M.lines[M.lineNum].staff[M.staffNum];N.stafflines!==void 0&&(F.clef.stafflines=N.stafflines,F.workingClef.stafflines=N.stafflines),N.staffscale&&(F.staffscale=N.staffscale),N.annotationfont&&w(M,"annotationfont",N.annotationfont),N.gchordfont&&w(M,"gchordfont",N.gchordfont),N.tripletfont&&w(M,"tripletfont",N.tripletfont),N.vocalfont&&w(M,"vocalfont",N.vocalfont),N.bracket&&(F.bracket=N.bracket),N.brace&&(F.brace=N.brace),N.connectBarLines&&(F.connectBarLines=N.connectBarLines),N.barNumber&&(F.barNumber=N.barNumber),T(x,M,N),N.part&&x.appendElement("part",N.part.startChar,N.part.endChar,{title:N.part.title}),N.meter!==void 0&&(F.meter=N.meter),M.vskipPending&&(M.lines[M.lineNum].vskip=M.vskipPending,delete M.vskipPending)}function B(x,M,N){M.lines[M.lineNum]={staff:[]},D(x,M,N)}function S(x,M){for(var N=!1,F=!1,C=0;C<x.length;C++){var _=x[C].staff;if(_)for(var P=0;P<_.length;P++){var I=_[P];if(M<I.voices.length){F=!0;for(var q=I.voices[M],b=0;b<q.length;b++){var k=q[b];k.el_type==="note"&&(!k.rest||k.chord)&&(N=!0)}}}}return F?N:"not-found"}function L(x,M){for(var N=0;N<x.length;N++){var F=x[N].staff;if(F)for(var C=0;C<F.length;C++){var _=F[C];M<_.voices.length&&_.voices.splice(M,1)}}}return dt=y,dt}var vt,ma;function Wn(){if(ma)return vt;ma=1;var A=_e(),y=Pr(),g=ws(),l=Cs(),a=ks(),o=Hn(),i=_s(),s=Yn(),c=Ms(),v=function(){var u=new s,f=new c(u),n,t="",r="";this.getTune=function(){var C={formatting:u.formatting,lines:u.lines,media:u.media,metaText:u.metaText,metaTextInfo:u.metaTextInfo,version:u.version,addElementToEvents:u.addElementToEvents,addUsefulCallbackInfo:u.addUsefulCallbackInfo,getTotalTime:u.getTotalTime,getTotalBeats:u.getTotalBeats,getBarLength:u.getBarLength,getBeatLength:u.getBeatLength,getBeatsPerMeasure:u.getBeatsPerMeasure,getBpm:u.getBpm,getMeter:u.getMeter,getMeterFraction:u.getMeterFraction,getPickupLength:u.getPickupLength,getKeySignature:u.getKeySignature,getElementFromChar:u.getElementFromChar,makeVoicesArray:u.makeVoicesArray,millisecondsPerMeasure:u.millisecondsPerMeasure,setupEvents:u.setupEvents,setTiming:u.setTiming,setUpAudio:u.setUpAudio,deline:u.deline,findSelectableElement:u.findSelectableElement,getSelectableArray:u.getSelectableArray};return u.lineBreaks&&(C.lineBreaks=u.lineBreaks),u.visualTranspose&&(C.visualTranspose=u.visualTranspose),u.chordGrid&&(C.chordGrid=u.chordGrid),C};function e(C,_,P){C.positioning||(C.positioning={}),C.positioning[_]=P}function h(C,_,P){C.fonts||(C.fonts={}),C.fonts[_]=P}var p={reset:function(){for(var C in this)this.hasOwnProperty(C)&&typeof this[C]!="function"&&delete this[C];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(C,_){return this[C].decoration!==_[C].decoration||this[C].face!==_[C].face||this[C].size!==_[C].size||this[C].style!==_[C].style||this[C].weight!==_[C].weight},addFormattingOptions:function(C,_,P){P==="note"?(this.vocalPosition!=="auto"&&e(C,"vocalPosition",this.vocalPosition),this.dynamicPosition!=="auto"&&e(C,"dynamicPosition",this.dynamicPosition),this.chordPosition!=="auto"&&e(C,"chordPosition",this.chordPosition),this.ornamentPosition!=="auto"&&e(C,"ornamentPosition",this.ornamentPosition),this.volumePosition!=="auto"&&e(C,"volumePosition",this.volumePosition),this.differentFont("annotationfont",_)&&h(C,"annotationfont",this.annotationfont),this.differentFont("gchordfont",_)&&h(C,"gchordfont",this.gchordfont),this.differentFont("vocalfont",_)&&h(C,"vocalfont",this.vocalfont),this.differentFont("tripletfont",_)&&h(C,"tripletfont",this.tripletfont)):P==="bar"&&(this.dynamicPosition!=="auto"&&e(C,"dynamicPosition",this.dynamicPosition),this.chordPosition!=="auto"&&e(C,"chordPosition",this.chordPosition),this.ornamentPosition!=="auto"&&e(C,"ornamentPosition",this.ornamentPosition),this.volumePosition!=="auto"&&e(C,"volumePosition",this.volumePosition),this.differentFont("measurefont",_)&&h(C,"measurefont",this.measurefont),this.differentFont("repeatfont",_)&&h(C,"repeatfont",this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var C=0;C<this.inTie.length;C++)if(this.endingHoldOver.inTie.push([]),this.inTie[C])for(var _=0;_<this.inTie[C].length;_++)this.endingHoldOver.inTie[C].push(this.inTie[C][_]);for(var P in this.inTieChord)this.inTieChord.hasOwnProperty(P)&&(this.endingHoldOver.inTieChord[P]=this.inTieChord[P])},restoreStartEndingHoldOvers:function(){if(this.endingHoldOver.inTie){this.inTie=[],this.inTieChord={};for(var C=0;C<this.endingHoldOver.inTie.length;C++){this.inTie.push([]);for(var _=0;_<this.endingHoldOver.inTie[C].length;_++)this.inTie[C].push(this.endingHoldOver.inTie[C][_])}for(var P in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(P)&&(this.inTieChord[P]=this.endingHoldOver.inTieChord[P])}}},d=function(C){p.warnings||(p.warnings=[]),p.warnings.push(C)},m=function(C){p.warningObjects||(p.warningObjects=[]),p.warningObjects.push(C)},w=function(C){var _=C.replace(/\x12/g," ");return _=_.replace(/&/g,"&amp;"),_=_.replace(/</g,"&lt;"),_.replace(/>/g,"&gt;")},T=function(C,_,P){_||(_=" ");var I=_[P];(I===" "||!I)&&(I="SPACE");var q=w(_.substring(P-64,P))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+I+"</span>"+w(_.substring(P+1).substring(0,64));d("Music Line:"+n.lineIndex+":"+(P+1)+": "+C+": "+q),m({message:C,line:_,startChar:p.iChar+P,column:P})},D,B;this.getWarnings=function(){return p.warnings},this.getWarningObjects=function(){return p.warningObjects};var S=function(C,_){if(_.indexOf("")>=0){t+=_;return}if(_=t+_,t="",!C){T("Can't add words before the first line of music",C,0);return}_=A.strip(_),_[_.length-1]!=="-"&&(_=_+" ");for(var P=[],I=0,q=!1,b=function(R){var O=A.strip(_.substring(I,R));if(O=O.replace(/\\([-_*|~])/g,"$1"),I=R+1,O.length>0){q&&(O=O.replace(/~/g," "));var G=_[R];return G!=="_"&&G!=="-"&&(G=" "),P.push({syllable:n.translateString(O),divider:G}),q=!1,!0}return!1},k=!1,E=0;E<_.length;E++){switch(_[E]){case" ":case"":b(E);break;case"-":!k&&!b(E)&&P.length>0&&(A.last(P).divider="-",P.push({skip:!0,to:"next"}));break;case"_":k||(b(E),P.push({skip:!0,to:"slur"}));break;case"*":k||(b(E),P.push({skip:!0,to:"next"}));break;case"|":k||(b(E),P.push({skip:!0,to:"bar"}));break;case"~":k||(q=!0);break}k=_[E]==="\\"}C.forEach(function(R){if(P.length!==0){if(P[0].skip){switch(P[0].to){case"next":R.el_type==="note"&&R.pitches!==null&&P.shift();break;case"slur":R.el_type==="note"&&R.pitches!==null&&P.shift();break;case"bar":R.el_type==="bar"&&P.shift();break}R.el_type!=="bar"&&(R.lyric===void 0?R.lyric=[{syllable:"",divider:" "}]:R.lyric.push({syllable:"",divider:" "}))}else if(R.el_type==="note"&&R.rest===void 0){var O=P.shift();O.syllable&&(O.syllable=O.syllable.replace(/ +/g," ")),R.lyric===void 0?R.lyric=[O]:R.lyric.push(O)}}})},L=function(C,_){if(_.indexOf("")>=0){r+=_;return}if(_=r+_,r="",!C){T("Can't add symbols before the first line of music",C,0);return}_=A.strip(_),_[_.length-1]!=="-"&&(_=_+" ");for(var P=[],I=0,q=!1,b=function(E){var R=A.strip(_.substring(I,E));if(I=E+1,R.length>0){q&&(R=R.replace(/~/g," "));var O=_[E];return O!=="_"&&O!=="-"&&(O=" "),P.push({syllable:n.translateString(R),divider:O}),q=!1,!0}return!1},k=0;k<_.length;k++)switch(_[k]){case" ":case"":b(k);break;case"-":!b(k)&&P.length>0&&(A.last(P).divider="-",P.push({skip:!0,to:"next"}));break;case"_":b(k),P.push({skip:!0,to:"slur"});break;case"*":b(k),P.push({skip:!0,to:"next"});break;case"|":b(k),P.push({skip:!0,to:"bar"});break;case"~":q=!0;break}C.forEach(function(E){if(P.length!==0){if(P[0].skip)switch(P[0].to){case"next":E.el_type==="note"&&E.pitches!==null&&P.shift();break;case"slur":E.el_type==="note"&&E.pitches!==null&&P.shift();break;case"bar":E.el_type==="bar"&&P.shift();break}else if(E.el_type==="note"&&E.rest===void 0){var R=P.shift();E.lyric===void 0?E.lyric=[R]:E.lyric.push(R)}}})},x=function(C){if(A.startsWith(C,"%%")){var _=y.addDirective(C.substring(2));_&&T(_,C,2);return}var P=C.indexOf("%");if(P>=0&&(C=C.substring(0,P)),C=C.replace(/\s+$/,""),C.length!==0){if(t){S(f.getCurrentVoice(),C.substring(2));return}if(r){L(f.getCurrentVoice(),C.substring(2));return}if(C.length<2||C[1]!==":"||B.lineContinuation){B.parseMusic(C);return}var I=D.parseHeader(C);I.regular&&B.parseMusic(C),I.newline&&B.startNewLine(),I.words&&S(f.getCurrentVoice(),C.substring(2)),I.symbols&&L(f.getCurrentVoice(),C.substring(2))}};function M(C,_){C.push({el_type:"hint"});for(var P=0;P<_.length;P++){var I=_[P],q=Object.assign({},I);if(C.push(q),I.el_type==="bar")return}}function N(C,_){for(var P=0;P<C.length;P++){var I=C[P],q=_[P];if(q)for(var b=0;b<q.voices.length;b++){var k=q.voices[b],E=I.voices[b];E&&M(E,k)}}}function F(){for(var C=0;C<u.lines.length;C++){var _=u.lines[C].staff;if(_){for(var P=C+1;P<u.lines.length&&u.lines[P].staff===void 0;)P++;if(P<u.lines.length){var I=u.lines[P].staff;N(_,I)}}}}this.parse=function(C,_,P){_||(_={}),P||(P=0),u.reset(),C=C.replace(/\r\n?/g,`
11
+ `)+`
12
+ `;var I=C.split(`
13
+ \\`);if(I.length>1){for(var q=1;q<I.length;q++)for(;I[q].length>0&&I[q][0]!==`
14
+ `;)I[q]=I[q].substr(1),I[q-1]+=" ";C=I.join(" ")}C=C.replace(/\\([ \t]*)(%.*)*\n/g,function(H,X,Q){var j=Q?Array(Q.length+1).join(" "):"";return X+""+j+`
15
+ `});var b=C.split(`
16
+ `);A.last(b).length===0&&b.pop(),n=new a(b,p),D=new g(n,T,p,u,f),B=new l(n,T,p,u,f,D),_.print&&(u.media="print"),p.reset(),p.iChar=P,_.visualTranspose?(p.globalTranspose=parseInt(_.visualTranspose),p.globalTranspose===0?p.globalTranspose=void 0:f.setVisualTranspose(_.visualTranspose)):p.globalTranspose=void 0,_.lineBreaks&&(p.lineBreaks=_.lineBreaks),D.reset(n,T,p,u);try{_.format&&y.globalFormatting(_.format);for(var k=n.nextLine();k;){if(_.header_only&&p.is_in_header===!1||_.stop_on_warning&&p.warnings)throw"normal_abort";var E=p.is_in_header;x(k),E&&!p.is_in_header&&(f.setRunningFont("annotationfont",p.annotationfont),f.setRunningFont("gchordfont",p.gchordfont),f.setRunningFont("tripletfont",p.tripletfont),f.setRunningFont("vocalfont",p.vocalfont)),k=n.nextLine()}t&&S(f.getCurrentVoice(),""),r&&L(f.getCurrentVoice(),""),p.openSlurs=f.cleanUp(p.barsperstaff,p.staffnonote,p.openSlurs)}catch(H){if(H!=="normal_abort")throw H}var R=792,O=8.5*72;switch(p.papersize){case"legal":R=1008,O=8.5*72;break;case"A4":R=11.7*72,O=8.3*72;break}if(p.landscape){var G=R;R=O,O=G}if(u.formatting.pagewidth||(u.formatting.pagewidth=O),u.formatting.pageheight||(u.formatting.pageheight=R),_.hint_measures&&F(),o.wrapLines(u,p.lineBreaks,p.barNumbers),_.chordGrid)try{u.chordGrid=i(u)}catch(H){switch(H.message){case"notCommonTime":T("Chord grid only works for 2/2 and 4/4 time.",0,0);break;case"noChords":T("No chords are found in the tune.",0,0);break;default:T(H.message,0,0)}}}};return vt=v,vt}var pt,ya;function Bs(){if(ya)return pt;ya=1;var A=_e(),y=function(g){var l="",a=g.match(/(\s*)/);g=A.strip(g);for(var o=g.split(`
17
+ X:`),i=1;i<o.length;i++)o[i]="X:"+o[i];var s=a?a[0].length:0,c=[];if(o.forEach(function(n){c.push({abc:n,startPos:s}),s+=n.length+1}),c.length>1&&!A.startsWith(c[0].abc,"X:")){var v=c.shift(),u=v.abc.split(`
18
+ `);u.forEach(function(n){A.startsWith(n,"%%")&&(l+=n+`
19
+ `)})}var f=l;return c.forEach(function(n){var t=n.abc.indexOf(`
20
+
21
+ `);t>0&&(n.abc=n.abc.substring(0,t)),n.pure=n.abc,n.abc=l+n.abc,n.title="";var r=n.pure.split("T:");r.length>1&&(r=r[1].split(`
22
+ `),n.title=A.strip(r[0]));var e=n.pure.substring(2,n.pure.indexOf(`
23
+ `));n.id=A.strip(e)}),{header:f,tunes:c}};return pt=y,pt}var gt,wa;function Ns(){if(wa)return gt;wa=1;function A(y,g){this.numLines=y,this.lineSpace=g,this.verticalSize=this.numLines*this.lineSpace;var l=3;this.bar={pitch:l,pitch2:g*y,height:5}}return A.prototype.bypass=function(y){var g=y.staffGroup.voices;return!!(g.length>0&&g[0].isPercussion)},A.prototype.setRelative=function(y,g,l){switch(y.type){case"bar":g.pitch=this.bar.pitch,g.pitch2=this.bar.pitch2,g.height=this.height;break;case"symbol":var a=this.bar.pitch2/2;if(y.name=="dots.dot")return l?(g.pitch=a,!1):(g.pitch=a+this.lineSpace,!0);break}return l},gt=A,gt}var bt,xa;function Xn(){if(xa)return bt;xa=1;var A=function(g,l){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=g,this.voicetotal=l,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}};return A.prototype.addChild=function(y){if(y.type==="bar"){for(var g=!0,l=0;g&&l<this.children.length;l++)this.children[l].type.indexOf("staff-extra")<0&&this.children[l].type!=="tempo"&&(g=!1);g||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=y,this.setRange(y)},A.prototype.setLimit=function(y,g){var l=g.specialY;l||(l=g),l[y]&&(this.specialY[y]?this.specialY[y]=Math.max(this.specialY[y],l[y]):this.specialY[y]=l[y])},A.prototype.adjustRange=function(y){y.bottom!==void 0&&(this.bottom=Math.min(this.bottom,y.bottom)),y.top!==void 0&&(this.top=Math.max(this.top,y.top))},A.prototype.setRange=function(y){this.adjustRange(y),this.setLimit("tempoHeightAbove",y),this.setLimit("partHeightAbove",y),this.setLimit("volumeHeightAbove",y),this.setLimit("dynamicHeightAbove",y),this.setLimit("endingHeightAbove",y),this.setLimit("chordHeightAbove",y),this.setLimit("lyricHeightAbove",y),this.setLimit("lyricHeightBelow",y),this.setLimit("chordHeightBelow",y),this.setLimit("volumeHeightBelow",y),this.setLimit("dynamicHeightBelow",y)},A.prototype.addOther=function(y){this.otherchildren.push(y),this.setRange(y)},A.prototype.addBeam=function(y){this.beams.push(y)},A.prototype.setWidth=function(y){this.w=y},bt=A,bt}var mt,Ca;function qr(){if(Ca)return mt;Ca=1;var A=function(y,g,l,a){if(y)for(var o=0;o<y.length;o++){var i=y[o],s=i.getAttribute("highlight");s||(s="fill"),i.setAttribute(s,a);var c=i.getAttribute("class");c||(c=""),c=c.replace(l,""),c=c.replace(g,""),g.length>0&&(c.length>0&&c[c.length-1]!==" "&&(c+=" "),c+=g),i.setAttribute("class",c)}};return mt=A,mt}var yt,ka;function Un(){if(ka)return yt;ka=1;var A=qr(),y=function(g,l){g===void 0&&(g="abcjs-note_selected"),l===void 0&&(l="#ff0000"),A(this.elemset,g,"",l)};return yt=y,yt}var wt,_a;function Vn(){if(_a)return wt;_a=1;var A=qr(),y=function(g,l){g===void 0&&(g="abcjs-note_selected"),l===void 0&&(l="#000000"),A(this.elemset,"",g,l)};return wt=y,wt}var xt,Ta;function De(){if(Ta)return xt;Ta=1;var A=Un(),y=Vn(),g=function(a,o,i,s,c,v){v||(v={}),this.tuneNumber=c,this.abcelem=a,this.duration=o,this.durationClass=v.durationClassOveride?v.durationClassOveride:this.duration,this.minspacing=i||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=s,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}};return g.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},g.prototype.addExtra=function(l){this.fixed.w=Math.max(this.fixed.w,l.dx+l.w),this.fixed.t===void 0?this.fixed.t=l.top:this.fixed.t=Math.max(this.fixed.t,l.top),this.fixed.b===void 0?this.fixed.b=l.bottom:this.fixed.b=Math.min(this.fixed.b,l.bottom),l.dx<this.extraw&&(this.extraw=l.dx),this.extra[this.extra.length]=l,this._addChild(l)},g.prototype.addHead=function(l){l.dx<this.extraw&&(this.extraw=l.dx),this.heads[this.heads.length]=l,this.addRight(l)},g.prototype.addRight=function(l){this.fixed.w=Math.max(this.fixed.w,l.dx+l.w),l.top!==void 0&&(this.fixed.t===void 0?this.fixed.t=l.top:this.fixed.t=Math.max(this.fixed.t,l.top)),l.bottom!==void 0&&(this.fixed.b===void 0?this.fixed.b=l.bottom:this.fixed.b=Math.min(this.fixed.b,l.bottom)),l.dx+l.w>this.w&&(this.w=l.dx+l.w),this.right[this.right.length]=l,this._addChild(l)},g.prototype.addFixed=function(l){this._addChild(l)},g.prototype.addFixedX=function(l){this._addChild(l)},g.prototype.addCentered=function(l){var a=l.w/2;-a<this.extraw&&(this.extraw=-a),this.extra[this.extra.length]=l,l.dx+a>this.w&&(this.w=l.dx+a),this.right[this.right.length]=l,this._addChild(l)},g.prototype.setLimit=function(l,a){a[l]&&(this.specialY[l]?this.specialY[l]=Math.max(this.specialY[l],a[l]):this.specialY[l]=a[l])},g.prototype._addChild=function(l){var a=!0;this.abcelem.el_type=="clef"&&l.type=="barNumber"&&(a=!1),l.parent=this,this.children[this.children.length]=l,a&&this.pushTop(l.top),this.pushBottom(l.bottom),this.setLimit("tempoHeightAbove",l),this.setLimit("partHeightAbove",l),this.setLimit("volumeHeightAbove",l),this.setLimit("dynamicHeightAbove",l),this.setLimit("endingHeightAbove",l),this.setLimit("chordHeightAbove",l),this.setLimit("lyricHeightAbove",l),this.setLimit("lyricHeightBelow",l),this.setLimit("chordHeightBelow",l),this.setLimit("volumeHeightBelow",l),this.setLimit("dynamicHeightBelow",l)},g.prototype.pushTop=function(l){l!==void 0&&(this.top===void 0?this.top=l:this.top=Math.max(l,this.top))},g.prototype.pushBottom=function(l){l!==void 0&&(this.bottom===void 0?this.bottom=l:this.bottom=Math.min(l,this.bottom))},g.prototype.setX=function(l){this.x=l;for(var a=0;a<this.children.length;a++)this.children[a].setX(l)},g.prototype.center=function(l,a){var o=(a.x-l.x)/2+l.x;this.x=o-this.w/2;for(var i=0;i<this.children.length;i++)this.children[i].setX(this.x)},g.prototype.setHint=function(){this.hint=!0},g.prototype.highlight=function(l,a){A.bind(this)(l,a)},g.prototype.unhighlight=function(l,a){y.bind(this)(l,a)},xt=g,xt}var Ct,Sa;function Te(){if(Sa)return Ct;Sa=1;var A=function(g,l,a,o,i){switch(i=i||{},this.x=0,this.c=g,this.dx=l,this.w=a,this.pitch=o,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.chordPos=i.chordPos,this.anchor=i.anchor?i.anchor:"middle",this.top=o,this.pitch2!==void 0&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=o,this.pitch2!==void 0&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),i.thickness&&(this.top+=i.thickness/2,this.bottom-=i.thickness/2),i.stemHeight&&(i.stemHeight>0?this.top+=i.stemHeight:this.bottom+=i.stemHeight),i.dim&&(this.dim=i.dim),i.position&&(this.position=i.position),i.voiceNumber!==void 0&&(this.voiceNumber=i.voiceNumber),this.height=i.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&&i.position==="below"?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":i.position&&i.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":this.pitch===void 0?i.position&&i.position==="below"?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height;break}};return A.prototype.getChordDim=function(){if(this.type==="debug"||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var y=0,g=this.type==="chord"?this.realWidth/2:0,l=this.x-g-y,a=l+this.realWidth+y;return{left:l,right:a}},A.prototype.invertLane=function(y){this.lane===void 0&&(this.lane=0),this.lane=y-this.lane-1},A.prototype.putChordInLane=function(y){this.lane=y,this.chordHeightAbove?this.chordHeightAbove=this.height*1.25*this.lane:this.chordHeightBelow=this.height*1.25*this.lane},A.prototype.getLane=function(){return this.lane===void 0?0:this.lane},A.prototype.setX=function(y){this.x=y+this.dx},Ct=A,Ct}var kt,Ea;function Ps(){if(Ea)return kt;Ea=1;var A=De(),y=Te();function g(e){return e!=null&&e.constructor===Object}function l(e,h){for(var p in h)h.hasOwnProperty(p)&&(Array.isArray(h[p])||g(h[p])||(e[p]=h[p]))}function a(e){var h=new A("",0,0,"",0);return l(h,e),h.top=0,h.bottom=-1,e.abcelem&&(h.abcelem={},l(h.abcelem,e.abcelem),h.abcelem.el_type==="note"&&(h.abcelem.el_type="tabNumber")),e.cloned=h,h}function o(e,h){var p=a(e);if(h)for(var d=e.children,m=!0,w=0;w<d.length;w++){var T=d[w],D=new y("",0,0,0,"");l(D,T),m=h.tablature.setRelative(T,D,m),p.children.push(D)}return p}function i(e,h,p){var d="tab.tiny",m=7.5;e.isTabBig&&(d="tab.big",m=10);var w={el_type:"tab",icon:d,Ypos:m};if(m+=e.tabSymbolOffset,!e.hideTabSymbol){var T=new A(w,0,0,"symbol",0);T.x=h;var D=new y(d,0,0,7.5,"tab");D.x=p,T.children.push(D),T.abcelem.el_type=="tab"&&(D.pitch=m)}return T}function s(e){if(e.extra)for(var h=0;h<e.extra.length;h++){var p=e.extra[h];if(p.type=="lyric")return{bottom:p.bottom,height:p.height}}return null}function c(){this.accidentals=null}function v(e){for(var h=0,p=0;p<e.length;p++)e[p].tabNameInfos||h++;return h}function u(e,h,p,d,m){var w=d.num;d.note.quarter!=null&&(w=w.toString(),w+=d.note.quarter);var T=e.semantics.stringToPitch(d.str);p.notes.push({num:w,str:d.str,pitch:d.note.emit()});var D={type:"tabNumber"},B=new y(w,0,0,T+.3,D);return B.x=h,B.isGrace=m,B.isAltered=d.note.isAltered,B}function f(e,h){var p=0;if(e.extra){for(var d=0;d<e.extra.length;d++)if(e.extra[d].c.indexOf("noteheads")>=0){if(p===h)return e.extra[d].x+e.extra[d].w/2;p++}}return-1}function n(e){if(e.abcelem){var h=e.abcelem;if(h.rest)return h.gracenotes}return null}function t(e,h,p){var d=e.semantics.notesToNumber(h,p);if(d.error)return e.setError(d.error),d;if(d.graces&&d.notes){var m=d.notes.length-1;d.notes[m].graces=d.graces}return d}function r(e,h,p,d,m){for(var w=0;w<d.length;w++){var T={el_type:"note",startChar:p.abcelem.startChar,endChar:p.abcelem.endChar,notes:[],grace:!0},D=f(p,w),B=d[w],S=u(e,D,T,B,!0);h.children.push(S),m.push(T)}}return c.prototype.build=function(e,h,p,d,m,w,T){v(h);var D=h[m+d],B=h[T],S=null,L=null;D.children[0].abcelem.el_type!="clef"&&w!="none"&&D.children.splice(0,0,w);for(var x=0;x<D.children.length;x++){var M=D.children[x],N=M.x,F=N;switch(M.isClef&&(B.children.push(i(e,N,F)),M.abcelem.type.indexOf("-8")>=0&&(e.semantics.clefTranspose=-12),M.abcelem.type.indexOf("+8")>=0&&(e.semantics.clefTranspose=12)),M.type){case"staff-extra key-signature":this.accidentals=M.abcelem.accidentals,e.semantics.accidentals=this.accidentals;break;case"bar":e.semantics.measureAccidentals={};var C=!1;x===D.children.length-1&&(C=!0);var _=o(M,e);if(_.abcelem.barNumber){delete _.abcelem.barNumber;for(var P=0;P<_.children.length;P++)if(_.children[P].type==="barNumber"){_.children.splice(P,1);break}}_.abcelem.lastBar=C,B.children.push(_),p.push({el_type:M.abcelem.el_type,type:M.abcelem.type,endChar:M.abcelem.endChar,startChar:M.abcelem.startChar,abselem:_});break;case"rest":var I=n(M);if(I){if(S=t(e,null,I),S.error)return;H={el_type:"note",startChar:M.abcelem.startChar,endChar:M.abcelem.endChar,notes:[],grace:!0},r(e,q,M,S.graces,p)}break;case"note":var q=a(M);q.x=M.heads[0].x+M.heads[0].w/2,q.lyricDim=s(M);var b=M.abcelem.pitches,k=M.abcelem.gracenotes;if(q.type="tabNumber",S=t(e,b,k),S.error)return;if(S.graces){var E=S.notes.length-1;S.notes[E].graces=S.graces}L={el_type:"note",startChar:M.abcelem.startChar,endChar:M.abcelem.endChar,notes:[]};for(var R=0;R<S.notes.length;R++){var O=S.notes[R];if(O.graces)for(var G=0;G<O.graces.length;G++){var H={el_type:"note",startChar:M.abcelem.startChar,endChar:M.abcelem.endChar,notes:[],grace:!0},X=f(M,G),Q=O.graces[G],j=u(e,X,H,Q,!0);q.children.push(j),p.push(H)}var ee=u(e,q.x+M.heads[R].dx,L,O,!1);q.children.push(ee)}L.notes.length>0&&(L.abselem=q,p.push(L),B.children.push(q));break}}},kt=c,kt}var _t,Aa;function Ls(){if(Aa)return _t;Aa=1;var A=Xn(),y=Ps(),g=Ce();function l(){return{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}}function a(e){for(var h=0,p=0;p<e.children.length;p++){var d=e.children[p];d.specialY&&d.specialY.lyricHeightBelow>h&&(h=d.specialY.lyricHeightBelow)}return h}function o(e,h,p){var d=e.semantics,m=h.controller.getTextSize,w=d.tabInfos(e),T=d.suppress(e),D=!0;if(T&&(D=!1),D){var B=m.calc(w,"tablabelfont","text instrumentname");return p.tabNameInfos={textSize:{height:B.height,width:B.width},name:w},B.height}return 0}function i(e,h){return h[e].isTabStaff?e===h.length-1?!0:!h[e+1].isTabStaff:!1}function s(e){for(var h=0,p=0;p<e.length;p++)e[p].isTabStaff||h++;return h}function c(e,h){for(var p=h;p>=0;p--)if(!e[p].isTabStaff)return p;return-1}function v(e){for(var h=0;h<e.length;h++)if(e[h].isTabStaff){var p=c(e,h);e[h].hasStaff=e[p],e[p].hasTab||(e[p].hasTab=[]),e[p].hasTab.push(e[h])}}function u(e,h){return s(e)===1&&h.voices.length>1}function f(e,h){for(var p=0,d=0,m=!0,w=0;m;){if(!h[p])return-1;if(h[p].isTabStaff||(w=h[p].voices.length),h[p].isTabStaff){if(d++,i(p,h)&&d<w)return p+1}else if(d=0,p>=e&&(p+1==h.length||!h[p+1].isTabStaff))return p+1;if(p++,p>h.length)return-1}}function n(e,h){for(var p=h;p>=0;p--)if(!e[p].isTabStaff)return e[p];return null}function t(e,h){var p=e[h],d=p.children[0].abcelem;return d.el_type==="clef"?null:h==0?"none":e[h-1].children[0]}function r(e,h,p,d){var m=new y,w={clef:{type:"TAB"}},T=e.linePitch*e.nbLines,D=p.staff;if(D){var B=D[0];if(B&&B.clef&&B.clef.stafflines==0){e.setError("No tablatures when stafflines=0");return}D.splice(D.length,0,w)}var S=p.staffGroup,L=S.voices,x=L[0],M=a(x),N=3,F=d,C=S.staffs[F],_=T+N-C.bottom-M;C.isTabStaff&&(_=C.top);var P={bottom:-1,isTabStaff:!0,specialY:l(),lines:e.nbLines,linePitch:e.linePitch,dy:.15,top:_},I=f(d,S.staffs);if(I!==-1){P.parentIndex=I-1,S.staffs.splice(I,0,P),S.height+=T+N;var q=n(S.staffs,I),b=1;u(S.staffs,q)&&(b=q.voices.length),w.voices=[];for(var k=0;k<b;k++){var E=new A(0,0);k>0&&(E.duplicate=!0);var R=o(e,h,E)/g.STEP;R=Math.max(R,1),S.staffs[d].top+=1,S.height+=R,E.staff=P;var O=L.length;L.splice(L.length,0,E);var G=t(L,k+d);w.voices[k]=[],m.build(e,L,w.voices[k],k,d,G,O)}v(S.staffs)}}return _t=r,_t}var Tt,Ma;function jn(){if(Ma)return Tt;Ma=1;var A={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},y=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];function g(a){var o=a.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(o&&o.length===5){var i=A[o[1]],s=y.indexOf(o[2]),c=o[4].length-o[3].length;return 48+s+i+c*12}return 0}function l(a){a=parseInt(a,10);var o=Math.floor(a/12),i=a%12,s=y[i];if(s==="-"&&(s="^"+y[i-1]),o>4)for(s=s.toLowerCase(),o-=5;o>0;)s+="'",o--;else for(;o<4;)s+=",",o++;return s}return Tt={noteToMidi:g,midiToNote:l},Tt}var St,Ba;function Kn(){if(Ba)return St;Ba=1;var{noteToMidi:A,midiToNote:y}=jn();function g(a,o){var i=A(a);o&&(i+=o);var s=y(i),c=!1,v=!1,u=!1,f=null,n=null,t=!1,r=0;a.startsWith("_")?(c=!0,r=-1,a[1]=="/"?(c=!1,n="v",r=0):a[1]=="_"&&(t=!0,r-=1)):a.startsWith("^")?(v=!0,r=1,a[1]=="/"?(v=!1,n="^",r=0):a[1]=="^"&&(t=!0,r+=1)):a.startsWith("=")&&(f=!0,r=0),u=c||v||n!=null,(u||f)&&(n!=null||t?s=a.slice(2):s=a.slice(1));var e=(s.match(/,/g)||[]).length,h=(s.match(/'/g)||[]).length;this.pitch=i,this.pitchAltered=0,this.name=s,this.acc=r,this.isSharp=v,this.isKeySharp=!1,this.isDouble=t,this.isAltered=u,this.isFlat=c,this.isKeyFlat=!1,this.natural=f,this.quarter=n,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=e,this.isQuoted=h}function l(a){var o=a.name,i=new g(o);return i.pitch=a.pitch,i.hasComma=a.hasComma,i.isLower=a.isLower,i.isQuoted=a.isQuoted,i.isSharp=a.isSharp,i.isKeySharp=a.isKeySharp,i.isFlat=a.isFlat,i.isKeyFlat=a.isKeyFlat,i}return g.prototype.sameNoteAs=function(a){return a.pitch===this.pitch},g.prototype.isLowerThan=function(a){return a.pitch>this.pitch},g.prototype.checkKeyAccidentals=function(a,o){if(!(this.isAltered||this.natural)){if(o[this.name.toUpperCase()])switch(o[this.name.toUpperCase()]){case"__":this.acc=-2,this.pitchAltered=-2;return;case"_":this.acc=-1,this.pitchAltered=-1;return;case"=":this.acc=0,this.pitchAltered=0;return;case"^":this.acc=1,this.pitchAltered=1;return;case"^^":this.acc=2,this.pitchAltered=2;return}else if(a)for(var i=this.name,s=0;s<a.length;s++){var c=a[s];i==c.note.toUpperCase()&&(c.acc=="flat"&&(this.acc=-1,this.isKeyFlat=!0,this.pitchAltered=-1),c.acc=="sharp"&&(this.acc=1,this.isKeySharp=!0,this.pitchAltered=1))}}},g.prototype.getAccidentalEquiv=function(){var a=l(this);return a.isSharp||a.isKeySharp?(a=a.nextNote(),a.isFlat=!0,a.isSharp=!1,a.isKeySharp=!1):(a.isFlat||a.isKeyFlat)&&(a=a.prevNote(),a.isSharp=!0,a.isFlat=!1,a.isKeyFlat=!1),a},g.prototype.nextNote=function(){var a=y(this.pitch+1+this.pitchAltered);return new g(a)},g.prototype.prevNote=function(){var a=y(this.pitch-1+this.pitchAltered);return new g(a)},g.prototype.emitNoAccidentals=function(){var a=this.name;this.isLower&&(a=a.toLowerCase());for(var o=0;o<this.isQuoted;o++)a+="'";for(var i=0;i<this.hasComma;i++)a+=",";return a},g.prototype.emit=function(){var a=this.name;(this.isSharp||this.isKeySharp)&&(a="^"+a,this.isDouble&&(a="^"+a)),(this.isFlat||this.isKeyFlat)&&(a="_"+a,this.isDouble&&(a="_"+a)),this.quarter&&(this.quarter=="^"?a="^/"+a:a="_/"+a),this.natural&&(a="="+a);for(var o=1;o<=this.hasComma;o++)a+=",";if(this.isLower){a=a.toLowerCase();for(var i=1;i<=this.isQuoted;i++)a+="'"}return a},St=g,St}var Et,Na;function qs(){if(Na)return Et;Na=1;var A=Kn(),y=["A","B","C","D","E","F","G"];function g(l,a){var o=new A(l),i=new A(a);if(i.isLowerThan(o)){var s=o.emit(),c=i.emit();return{error:"Invalid string Instrument tuning : "+c+" string lower than "+s+" string"}}var v=[],u=y.indexOf(o.name),f=y.indexOf(i.name);if(u==-1||f==-1)return v;for(var n=!1;!n;)v.push(o.emit()),o=o.nextNote(),o.sameNoteAs(i)&&(n=!0);return v}return Et=g,Et}var At,Pa;function Ds(){if(Pa)return At;Pa=1;const{noteToMidi:A}=jn();var y=Kn(),g=qs();function l(n){var t=null,r=n.tuning;if(n.capo>0){t=[];for(var e=0;e<r.length;e++){for(var h=new y(r[e]),p=0;p<n.capo;p++)h=h.nextNote();t[e]=h.emit()}}return t}function a(n){var t=[],r=n.tuning;n.capo>0&&(r=n.capoTuning);for(var e=r.length-1,h=0;h<r.length;h++){var p=n.highestNote;h!=r.length-1&&(p=r[h+1]);var d=g(r[h],p);if(d.error)return d;t[e--]=d}return t}function o(n){var t=[];t[0]=[];for(var r=n.strings,e=1;e<r.length;e++)t[e]=r[e-1];return t}function i(n,t){for(var r=0;r<t.length-1;r++){var e=t[r],h=t[r+1];if(e.str==h.str){if(e.str==n.strings.length-1){e.num="?",h.num="?";return}h.num<e.num?(h.str++,h=c(n,h.note,h.str,n.secondPos,n.strings[h.str].length)):(e.str++,e=c(n,e.note,e.str,n.secondPos,n.strings[e.str].length)),t[r]=e,t[r+1]=h}}return null}function s(n,t){for(var r=[],e=0;e<t.length;e++)if(!t[e].endTie){var h=new y(t[e].name,n.clefTranspose);h.checkKeyAccidentals(n.accidentals,n.measureAccidentals);var p=v(n,h);r.push(p)}return i(n,r),r}function c(n,t,r,e,h){var p=n.strings;t.checkKeyAccidentals(n.accidentals,n.measureAccidentals),e&&(p=e);var d=t.emitNoAccidentals(),m=p[r].indexOf(d),w=t.acc;if(m!=-1){if(e&&(m+=h),(t.isFlat||t.acc==-1)&&m==0){var T=t.getAccidentalEquiv();r++,m=p[r].indexOf(T.emit()),w=0}return{num:m+w,str:r,note:t}}return null}function v(n,t){if(t.isAltered||t.natural){var r;t.isFlat?t.isDouble?r="__":r="_":t.isSharp?t.isDouble?r="^^":r="^":t.natural&&(r="="),n.measureAccidentals[t.name.toUpperCase()]=r}for(var e=n.stringPitches.length-1;e>=0;e--)if(t.pitch+t.pitchAltered>=n.stringPitches[e]){var h=t.pitch+t.pitchAltered-n.stringPitches[e];return t.quarter==="^"?h-=.5:t.quarter==="v"&&(h+=.5),{num:Math.round(h),str:n.stringPitches.length-1-e,note:t}}return{num:"?",str:n.stringPitches.length-1,note:t}}f.prototype.stringToPitch=function(n){var t=5.3,r=this.strings.length-1;return t+(r-n)*this.linePitch};function u(n,t){var r={num:"?",str:0,note:t};n.push(r),n.error=t.emit()+": unexpected note for instrument"}f.prototype.notesToNumber=function(n,t){var r,e,h=null,p=null;if(n&&(p=[],n.length>1?(p=s(this,n),p.error&&(h=p.error)):n[0].endTie||(r=new y(n[0].name,this.clefTranspose),r.checkKeyAccidentals(this.accidentals,this.measureAccidentals),e=v(this,r),e?p.push(e):(u(p,r),h=p.error))),h)return p;var d=null;if(t){d=[];for(var m=0;m<t.length;m++)r=new y(t[m].name,this.clefTranspose),r.checkKeyAccidentals(this.accidentals,this.measureAccidentals),e=v(this,r),e?d.push(e):(u(d,r),h=p.error)}return{notes:p,graces:d,error:h}},f.prototype.toString=function(){for(var n=[],t=0;t<this.tuning.length;t++){var r=this.tuning[t].replaceAll(",","").replaceAll("'","").toUpperCase();r[0]==="_"?r=r[1]+"b ":r[0]==="^"&&(r=r[1]+"# "),n.push(r)}return n.join("")},f.prototype.tabInfos=function(n){var t=n.params.label;if(t){var r=t.indexOf("%T"),e="";return r!=-1&&(e=this.toString(),n.capo>0&&(e+=" capo:"+n.capo),t=t.replace("%T",e)),t}return""},f.prototype.suppress=function(n){var t=n.params.suppress;return!!t};function f(n){var t=n.tuning,r=n.capo,e=n.params.highestNote;this.linePitch=n.linePitch,this.highestNote="a'",e&&(this.highestNote=e),this.measureAccidentals={},this.capo=0,r&&(this.capo=parseInt(r,10)),this.transpose=n.transpose?n.transpose:0,this.tuning=t,this.stringPitches=[];for(var h=0;h<this.tuning.length;h++){var p=A(this.tuning[h])+this.capo;this.stringPitches.push(p)}if(this.capo>0&&(this.capoTuning=l(this)),this.strings=a(this),this.strings.error){n.setError(this.strings.error),n.inError=!0;return}this.secondPos=o(this)}return At=f,At}var Mt,La;function Is(){if(La)return Mt;La=1;var A=Ns(),y=Ls(),g=Ds();l.prototype.init=function(o,i,s,c){this.tune=o,this.params=s,this.tuneNumber=i,this.inError=!1,this.abcTune=o,this.linePitch=3,this.nbLines=c.defaultTuning.length,this.isTabBig=c.isTabBig,this.tabSymbolOffset=c.tabSymbolOffset,this.capo=s.capo,this.transpose=s.visualTranspose,this.hideTabSymbol=s.hideTabSymbol,this.tablature=new A(this.nbLines,this.linePitch);var v=s.tuning;v||(v=c.defaultTuning),this.tuning=v,this.semantics=new g(this)},l.prototype.setError=function(o){o&&(this.error=o,this.inError=!0,this.tune.warnings?this.tune.warnings.push(o):this.tune.warnings=[o])},l.prototype.render=function(o,i,s){this.inError||this.tablature.bypass(i)||y(this,o,i,s)};function l(){}var a=function(){return{name:"StringTab",tablature:l}};return Mt=a,Mt}var Bt,qa;function $n(){if(qa)return Bt;qa=1;var A=Is(),y={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}},g={inited:!1,plugins:{},register:function(l){var a=l.name,o=l.tablature;this.plugins[a]=o},setError:function(l,a){l.warnings?l.warning.push(a):l.warnings=[a]},preparePlugins:function(l,a,o){this.inited||(this.register(new A),this.inited=!0);var i=null;if(o.tablature){var s=o.tablature;i=[];for(var c=0;c<s.length;c++){var v=s[c],u=v.instrument;if(u==null)return this.setError(l,"tablature 'instrument' is missing"),i;var f=y[u],n=null;if(f&&(n=this.plugins[f.name]),n){o.visualTranspose!=0&&(v.visualTranspose=o.visualTranspose),v.abcSrc=o.tablature.abcSrc;var t={classz:n,tuneNumber:a,params:v,instance:null,tabType:f};i.push(t)}else if(u==="")i.push(null);else return this.setError(l,"Undefined tablature plugin: "+u),i}}return i},layoutTablatures:function(a,o){var i=o.tablatures,s=0;if(i&&i.length>0)for(var c=i.length,v=0;v<c;++v)i[v]&&i[v].params.firstStaffOnly&&(i[v].params.suppress=!1);for(var u=0;u<o.lines.length;u++){var f=o.lines[u];if(f.staff&&s++,s>1&&i&&i.length>0)for(var c=i.length,v=0;v<c;++v)i[v].params.firstStaffOnly&&(i[v].params.suppress=!0);var n=f.staff;if(n){for(var t=n.length,r=0;r<n.length;r++)if(i[r]&&r<t){var e=i[r];e.instance==null&&(e.instance=new e.classz,e.instance.init(o,e.tuneNumber,e.params,e.tabType)),e.instance.render(a,f,r)}}}}};return Bt=g,Bt}var Nt,Da;function He(){if(Da)return Nt;Da=1;var A=Wn(),y=Bs(),g=$n(),l={};return(function(){l.numberOfTunes=function(o){var i=o.split(`
24
+ X:`),s=i.length;return s===0&&(s=1),s};var a=l.TuneBook=function(o){var i=y(o);this.header=i.header,this.tunes=i.tunes};a.prototype.getTuneById=function(o){for(var i=0;i<this.tunes.length;i++)if(this.tunes[i].id===""+o)return this.tunes[i];return null},a.prototype.getTuneByTitle=function(o){for(var i=0;i<this.tunes.length;i++)if(this.tunes[i].title===o)return this.tunes[i];return null},l.parseOnly=function(o,i){for(var s=l.numberOfTunes(o),c=[],v=0;v<s;v++)c.push(1);function u(){}return l.renderEngine(u,c,o,i)},l.renderEngine=function(o,i,s,c){var v=[],u=function(m){return m&&!m.propertyIsEnumerable("length")&&typeof m=="object"&&typeof m.length=="number"};if(!(i===void 0||s===void 0)){u(i)||(i=[i]),c===void 0&&(c={});for(var f=c.startingTune?parseInt(c.startingTune,10):0,n=new a(s),t=new A,r=0;r<i.length;r++){var e=i[r];if(e==="*"||typeof e=="string"&&(e=document.getElementById(e)),e)if(f>=0&&f<n.tunes.length){t.parse(n.tunes[f].abc,c,n.tunes[f].startPos-n.header.length);var h=t.getTune();c.tablature&&(h.tablatures=g.preparePlugins(h,f,c));var p=t.getWarnings();p&&(h.warnings=p);var d=o(e,h,r,n.tunes[f].abc);v.push(d||h)}else e.innerHTML&&(e.innerHTML="");f++}return v}},l.extractMeasures=function(o){for(var i=[],s=new a(o),c=0;c<s.tunes.length;c++){for(var v=s.tunes[c],u=v.abc.split("K:"),f=u[1].split(`
25
+ `),n=u[0]+"K:"+f[0]+`
26
+ `,t=null,r=null,e=null,h=[],p=!1,d=l.parseOnly(v.abc)[0],m=d.getPickupLength()>0,w=0;w<d.lines.length;w++){var T=d.lines[w];if(T.staff)for(var D=0;D<1;D++)for(var B=T.staff[D],S=0;S<1;S++)for(var L=B.voices[S],x=0;x<L.length;x++){var M=L[x];if(e===null&&M.startChar>=0&&(e=M.startChar,M.chord===void 0?r=t:r=null),M.chord&&(t=M),M.el_type==="bar"){if(p){var N=v.abc.substring(e,M.endChar),F={abc:N};t=r&&r.chord&&r.chord.length>0?r.chord[0].name:null,t&&(F.lastChord=t),M.startEnding&&(F.startEnding=M.startEnding),M.endEnding&&(F.endEnding=M.endEnding),h.push(F),e=null,p=!1}}else M.el_type==="note"&&(p=!0)}}i.push({header:n,measures:h,hasPickup:m})}return i}})(),Nt=l,Nt}var Pt,Ia;function Rs(){if(Ia)return Pt;Ia=1;var A=Fn(),{relativeMajor:y,transposeKey:g,relativeMode:l,isLegalMode:a}=Rn(),o=In(),i;return(function(){i=function(S,L,x){if(L==="TEST")return{keyAccidentals:A,relativeMajor:y,transposeKey:g,relativeMode:l,transposeChordName:o};x=parseInt(x,10);var M=[],N;for(N=0;N<L.length;N++)M=M.concat(s(S,L[N],x));M=M.sort(function(_,P){return P.start-_.start});var F=S.split("");for(N=0;N<M.length;N++){var C=M[N];F.splice(C.start,C.end-C.start,C.note)}return F.join("")};function s(S,L,x){var M=[],N=L.getKeySignature();if(N.root==="Hp"||N.root==="HP")return M;M=M.concat(c(S,x));for(var F=0;F<L.lines.length;F++){var C=L.lines[F].staff;if(C)for(var _=0;_<C.length;_++){var P=C[_];P.clef.type!=="perc"&&(M=M.concat(v(S,P.voices,P.key,x)))}}return M}function c(S,L){for(var x=[],M=S.split("K:"),N=M[0].length,F=1;F<M.length;F++){var C=M[F],_=C.match(/^( *)([A-G])([#b]?)( ?)(\w*)/);if(_){var P=N+2+_[1].length,I=a(_[5])?_[5]:"",q=_[2]+_[3]+_[4]+I,b=e({root:_[2],acc:_[3],mode:I},L),k=b.root+b.acc+_[4]+b.mode;x.push({start:P,end:P+q.length,note:k})}N+=C.length+2}return x}function v(S,L,x,M){for(var N=[],F=e(x,M),C=0;C<L.length;C++)N=N.concat(n(S,L[C],x.root,u(x),F,M));return N}function u(S){for(var L={},x=0;x<S.accidentals.length;x++){var M=S.accidentals[x];M.acc==="flat"?L[M.note.toUpperCase()]="_":M.acc==="sharp"&&(L[M.note.toUpperCase()]="^")}return L}function f(S,L,x){var M=t.indexOf(S.root)-t.indexOf(L);return L==="none"&&(M=t.indexOf(S.root)),M===0?x>2?M+=7:x===-12&&(M-=7):x>0&&M<0?M+=7:x<0&&M>0&&(M-=7),x>12?M+=7:x<-12&&(M-=7),M}function n(S,L,x,M,N,F){for(var C=[],_=f(N,x,F),P={},I={},q=0;q<L.length;q++){var b=L[q];if(b.chord)for(var k=0;k<b.chord.length;k++){var E=b.chord[k];if(E.position==="default"){var R=N.accidentals.length&&N.accidentals[0].acc==="flat",O=o(E.name,F,R,!0);O=O.replace(/♭/g,"b").replace(/♯/g,"#"),O!==E.name&&C.push(D(S,b.startChar,b.endChar,O))}}if(b.el_type==="note"&&b.pitches){for(var G=w(S,b.startChar,b.endChar),H=0;H<G.length;H++){var X=m(G[H].note,x,M,P);X.acc&&(P[X.name.toUpperCase()]=X.acc);var Q=h(X,N,_,I);Q.acc&&(I[Q.upper]=Q.acc),C.push({note:Q.acc+Q.name,start:G[H].index,end:G[H].index+G[H].note.length})}if(b.gracenotes)for(var j=0;j<b.gracenotes.length;j++){var ee=m(b.gracenotes[j].name,x,M,P);ee.acc&&(P[ee.name.toUpperCase()]=ee.acc);var J=h(ee,N,_,P);J.acc&&(I[J.upper]=J.acc),C.push(T(S,b.startChar,b.endChar,J.acc+J.name,j))}}else b.el_type==="bar"?(P={},I={}):b.el_type==="keySignature"&&(x=b.root,M=u(b),N=e(b,F),_=f(N,x,F))}return C}var t="CDEFGAB",r=[",,,,",",,,",",,",",","","'","''","'''","''''"];function e(S,L){if(S.root==="none")return{root:g("C",L),mode:"",acc:"",accidentals:[]};var x=y(S.root+S.acc+S.mode),M=g(x,L),N=l(M,S.mode),F=A(M);return{root:N[0],mode:S.mode,acc:N.length>1?N[1]:"",accidentals:F}}function h(S,L,x,M){for(var N=S.pitch,F=t.indexOf(S.name),C=t.indexOf(L.root),_=(C+N)%7,P=F+x,I=S.oct;P>6;)I++,P-=7;for(;P<0;)I--,P+=7;for(var q=t[_],b="",k=S.adj,E="=",R=0;R<L.accidentals.length;R++)if(L.accidentals[R].note.toLowerCase()===q.toLowerCase()){k=k+(L.accidentals[R].acc==="flat"?-1:1),E=L.accidentals[R].acc==="flat"?"_":"^";break}var O;switch(k){case-2:b="__";break;case-1:b="_";break;case 0:b="=";break;case 1:b="^";break;case 2:b="^^";break;case-3:return O={},O.pitch=S.pitch-1,O.oct=S.oct,O.name=t[t.indexOf(S.name)-1],O.name||(O.name="B",O.oct--),O.name==="B"||O.name==="E"?O.adj=S.adj+1:O.adj=S.adj+2,h(O,L,x+1,M);case 3:return O={},O.pitch=S.pitch+1,O.oct=S.oct,O.name=t[t.indexOf(S.name)+1],O.name||(O.name="C",O.oct++),O.name==="C"||O.name==="F"?O.adj=S.adj-1:O.adj=S.adj-2,h(O,L,x+1,M)}switch((M[q]===b||!M[q]&&b===E)&&!S.courtesy&&(b=""),I){case 0:q=q+",,,";break;case 1:q=q+",,";break;case 2:q=q+",";break;case 4:q=q.toLowerCase();break;case 5:q=q.toLowerCase()+"'";break;case 6:q=q.toLowerCase()+"''";break;case 7:q=q.toLowerCase()+"'''";break;case 8:q=q.toLowerCase()+"''''";break}return I>4&&(q=q.toLowerCase()),{acc:b,name:q,upper:q.toUpperCase()}}var p=/([_^=]*)([A-Ga-g])([,']*)/,d=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/;function m(S,L,x,M){var N=L==="none"?0:t.indexOf(L),F=S.match(p),C=F[2].toUpperCase(),_=t.indexOf(C)-N;_<0&&(_+=7);var P=r.indexOf(F[3]);C===F[2]&&P--;var I=M[C]||x[C]||"=";return{acc:F[1],name:C,pitch:_,oct:P,adj:B(F[1],x[C],M[C]),courtesy:F[1]===I}}function w(S,L,x){for(var M=S.substring(L,x),N,F=[],C=/("[^"]+")+/g;(N=C.exec(M))!==null;)F.push({start:C.lastIndex-N[0].length,end:C.lastIndex});for(var _=/(![^!]+!)+/g;(N=_.exec(M))!==null;)F.push({start:_.lastIndex-N[0].length,end:_.lastIndex});for(var P=[],I=/([_^=]*)([A-Ga-g])([,']*)/g;(N=I.exec(M))!==null;){for(var q=!1,b=0;b<F.length;b++)I.lastIndex>=F[b].start&&I.lastIndex<=F[b].end&&(q=!0);q||P.push({note:N[0],index:L+I.lastIndex-N[0].length})}return P}function T(S,L,x,M,N){var F=S.substring(L,x),C=/\{/,_=/\}/,P=/([^\{]*)/,I=/(\/*)/,q=F.match(new RegExp(P.source+C.source+I.source+d.source+I.source+d.source+I.source+d.source+I.source+d.source+I.source+d.source+I.source+d.source+I.source+d.source+I.source+d.source+_.source));if(q){for(var b=1+q[1].length,k=0;k<N;k++)q[k*3+2]&&(b+=q[k*3+2].length),q[k*3+3]&&(b+=q[k*3+3].length),q[k*3+4]&&(b+=q[k*3+4].length),q[k*3+5]&&(b+=q[k*3+5].length);q[N*3+2]&&(b+=q[k*3+2].length),L+=b;var E=q[N*3+3]?q[N*3+3].length:0;E+=q[N*3+4]?q[N*3+4].length:0,E+=q[N*3+5]?q[N*3+5].length:0,x=L+E}return{start:L,end:x,note:M}}function D(S,L,x,M){var N=S.substring(L,x).match(/([^"]+)?(".+")+/);return N[1]&&(L+=N[1].length),x=L+N[2].length,{start:L+1,end:x-1,note:M}}function B(S,L,x){if(!S&&x&&(S=x),!S)return 0;switch(L){case void 0:switch(S){case"__":return-2;case"_":return-1;case"=":return 0;case"^":return 1;case"^^":return 2;default:return 0}case"_":switch(S){case"__":return-1;case"_":return 0;case"=":return 1;case"^":return 2;case"^^":return 3;default:return 0}case"^":switch(S){case"__":return-3;case"_":return-2;case"=":return-1;case"^":return 0;case"^^":return 1;default:return 0}}return 0}})(),Pt=i,Pt}var Lt,Ra;function Fs(){if(Ra)return Lt;Ra=1;var A=function(l,a,o,i){this.type="BeamElem",this.isflat=!!o,this.isgrace=!!(a&&a==="grace"),this.forceup=!!(this.isgrace||a&&a==="up"),this.forcedown=!!(a&&a==="down"),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=l,this.beams=[],i&&i.duration?(this.duration=i.duration,i.startTriplet&&(this.duration*=i.tripletMultiplier),this.duration=Math.round(this.duration*1e3)/1e3):this.duration=0};A.prototype.setHint=function(){this.hint=!0},A.prototype.runningDirection=function(g){var l=g.averagepitch;l!==void 0&&(this.total=Math.round(this.total+l),this.count||(this.count=0),this.count++)},A.prototype.add=function(g){var l=g.abcelem.averagepitch;l!==void 0&&(g.abcelem.rest||(this.allrests=!1),g.beam=this,this.elems.push(g),this.total=Math.round(this.total+l),(this.min===void 0||g.abcelem.minpitch<this.min)&&(this.min=g.abcelem.minpitch),(this.max===void 0||g.abcelem.maxpitch>this.max)&&(this.max=g.abcelem.maxpitch))},A.prototype.addBeam=function(g){this.beams.push(g)},A.prototype.setStemDirection=function(){if(this.average=y(this.total,this.count),this.forceup)this.stemsUp=!0;else if(this.forcedown)this.stemsUp=!1;else{var g=6;this.stemsUp=this.average<g}delete this.count,this.total=0},A.prototype.calcDir=function(){if(this.average=y(this.total,this.elems.length),this.forceup)this.stemsUp=!0;else if(this.forcedown)this.stemsUp=!1;else{var g=6;this.stemsUp=this.average<g}for(var l=this.stemsUp?"up":"down",a=0;a<this.elems.length;a++)for(var o=0;o<this.elems[a].heads.length;o++)this.elems[a].heads[o].stemDir=l};function y(g,l){return l?g/l:0}return Lt=A,Lt}var qt,Fa;function Os(){if(Fa)return qt;Fa=1;var A=function(g,l){this.startVoice=g,this.type=l};return A.prototype.setBottomStaff=function(y){this.endVoice=y,this.startVoice.header&&!this.endVoice.header&&(this.header=this.startVoice.header,delete this.startVoice.header)},A.prototype.continuing=function(y){this.lastContinuedVoice=y},A.prototype.getWidth=function(){return 10},A.prototype.isStartVoice=function(y){return!!(this.startVoice&&this.startVoice.staff&&this.startVoice.staff.voices.length>0&&this.startVoice.staff.voices[0]===y)},qt=A,qt}var Dt,Oa;function Ne(){if(Oa)return Dt;Oa=1;var A=Ce(),y={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}};y["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},y["noteheads.slash.quarter"]={d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},y["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},y["noteheads.triangle.quarter"]={d:[["M",0,4],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9};var g=function(o){for(var i=[],s=0,c=o.length;s<c;s++){i[s]=[];for(var v=0,u=o[s].length;v<u;v++)i[s][v]=o[s][v]}return i},l=function(o,i,s){for(var c=0,v=o.length;c<v;c++){var u=o[c],f,n;for(f=1,n=u.length;f<n;f++)u[f]*=f%2?i:s}},a={printSymbol:function(o,i,s,c,v){if(!y[s])return null;var u=g(y[s].d);u[0][1]+=o,u[0][2]+=i;for(var f="",n=0;n<u.length;n++)f+=u[n].join(" ");return v.path=f,c.path(v)},getPathForSymbol:function(o,i,s,c,v){if(c=c||1,v=v||1,!y[s])return null;var u=g(y[s].d);return(c!==1||v!==1)&&l(u,c,v),u[0][1]+=o,u[0][2]+=i,u},getSymbolWidth:function(o){return y[o]?y[o].w:0},symbolHeightInPitches:function(o){var i=y[o]?y[o].h:0;return i/A.STEP},getSymbolAlign:function(o){return o.substring(0,7)==="scripts"&&o!=="scripts.roll"?"center":"left"},getYCorr:function(o){switch(o){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":return-2;case"timesig.common":case"timesig.cut":return 0;case"flags.d32nd":return-1;case"flags.d64th":return-2;case"flags.u32nd":return 1;case"flags.u64th":return 3;case"rests.whole":return 1;case"rests.half":return-1;case"rests.8th":return-1;case"rests.quarter":return-1;case"rests.16th":return-1;case"rests.32nd":return-1;case"rests.64th":return-1;case"f":case"m":case"p":case"s":case"z":return-4;case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"scripts.dfermata":return 1;default:return 0}},setSymbol:function(o,i){y[o]=i}};return Dt=a,Dt}var It,Ha;function Hs(){if(Ha)return It;Ha=1;var A=De(),y=Ne(),g=Te(),l=function(o,i){var s,c=0;o.el_type="clef";var v=new A(o,0,10,"staff-extra clef",i);switch(v.isClef=!0,o.type){case"treble":s="clefs.G";break;case"tenor":s="clefs.C";break;case"alto":s="clefs.C";break;case"bass":s="clefs.F";break;case"treble+8":s="clefs.G",c=1;break;case"tenor+8":s="clefs.C",c=1;break;case"bass+8":s="clefs.F",c=1;break;case"alto+8":s="clefs.C",c=1;break;case"treble-8":s="clefs.G",c=-1;break;case"tenor-8":s="clefs.C",c=-1;break;case"bass-8":s="clefs.F",c=-1;break;case"alto-8":s="clefs.C",c=-1;break;case"none":return null;case"perc":s="clefs.perc";break;default:v.addFixed(new g("clef="+o.type,0,0,void 0,{type:"debug"}))}var u=5;if(s){var f=y.symbolHeightInPitches(s),n=a(s);if(v.addRight(new g(s,u,y.getSymbolWidth(s),o.clefPos,{top:f+o.clefPos+n,bottom:o.clefPos+n})),c!==0){var t=.6666666666666666,r=(y.getSymbolWidth(s)-y.getSymbolWidth("8")*t)/2,e=c>0?v.top+3:v.bottom-1,h=c>0?v.top+3:v.bottom-3,p=h-2;o.type==="bass-8"&&(e=3,r=0),v.addRight(new g("8",u+r,y.getSymbolWidth("8")*t,e,{scalex:t,scaley:t,top:h,bottom:p}))}}return v};function a(o){switch(o){case"clefs.G":return-5;case"clefs.C":return-4;case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}return It=l,It}var Rt,za;function zs(){if(za)return Rt;za=1;var A=De(),y=Ne(),g=Te(),l=function(a,o){if(a.el_type="keySignature",!a.accidentals||a.accidentals.length===0)return null;var i=new A(a,0,10,"staff-extra key-signature",o);i.isKeySig=!0;var s=0;return a.accidentals.forEach(function(c){var v,u=0;switch(c.acc){case"sharp":v="accidentals.sharp",u=-3;break;case"natural":v="accidentals.nat";break;case"flat":v="accidentals.flat",u=-1.2;break;case"quartersharp":v="accidentals.halfsharp",u=-2.5;break;case"quarterflat":v="accidentals.halfflat",u=-1.2;break;default:v="accidentals.flat"}i.addRight(new g(v,s,y.getSymbolWidth(v),c.verticalPos,{thickness:y.symbolHeightInPitches(v),top:c.verticalPos+y.symbolHeightInPitches(v)+u,bottom:c.verticalPos+u})),s+=y.getSymbolWidth(v)+2},this),i};return Rt=l,Rt}var Ft,Ga;function Gs(){if(Ga)return Ft;Ga=1;var A=Ne(),y=Te(),g=function(l,a,o,i){i||(i={});var s=i.dir!==void 0?i.dir:null,c=i.headx!==void 0?i.headx:0,v=i.extrax!==void 0?i.extrax:0,u=i.flag!==void 0?i.flag:null,f=i.dot!==void 0?i.dot:0,n=i.dotshiftx!==void 0?i.dotshiftx:0,t=i.scale!==void 0?i.scale:1,r=i.accidentalSlot!==void 0?i.accidentalSlot:[],e=i.shouldExtendStem!==void 0?i.shouldExtendStem:!1,h=i.printAccidentals!==void 0?i.printAccidentals:!0,p=i.chordPos,d=o.verticalPos,m,w=0,T=0,D=0;if(a===void 0)l.addFixed(new y("pitch is undefined",0,0,0,{type:"debug"}));else if(a==="")m=new y(null,0,0,d,{chordPos:p});else{var B=c;if(o.printer_shift){var S=o.printer_shift==="same"?1:0;B=s==="down"?-A.getSymbolWidth(a)*t+S:A.getSymbolWidth(a)*t-S}var L={scalex:t,scaley:t,thickness:A.symbolHeightInPitches(a)*t,name:o.name,chordPos:p};if(m=new y(a,B,A.getSymbolWidth(a)*t,d,L),m.stemDir=s,u){var x=d+(s==="down"?-7:7)*t;e&&(s==="down"&&x>6&&(x=6),s==="up"&&x<6&&(x=6));var M=s==="down"?c:c+m.w-.6;l.addRight(new y(u,M,A.getSymbolWidth(u)*t,x,{scalex:t,scaley:t,chordPos:p}))}for(T=m.w+n-2+5*f;f>0;f--){var N=1-Math.abs(d)%2;l.addRight(new y("dots.dot",m.w+n-2+5*f,A.getSymbolWidth("dots.dot"),d+N,{chordPos:p}))}}if(m&&(m.highestVert=o.highestVert),h&&o.accidental){var F;switch(o.accidental){case"quartersharp":F="accidentals.halfsharp";break;case"dblsharp":F="accidentals.dblsharp";break;case"sharp":F="accidentals.sharp";break;case"quarterflat":F="accidentals.halfflat";break;case"flat":F="accidentals.flat";break;case"dblflat":F="accidentals.dblflat";break;case"natural":F="accidentals.nat"}for(var C=!1,_=v,P=0;P<r.length;P++)if(d-r[P][0]>=6){r[P][0]=d,_=r[P][1],C=!0;break}C===!1&&(_-=A.getSymbolWidth(F)*t+2,r.push([d,_]),w=A.getSymbolWidth(F)*t+2);var I=A.symbolHeightInPitches(F);l.addExtra(new y(F,_,A.getSymbolWidth(F),d,{scalex:t,scaley:t,top:d+I/2,bottom:d-I/2,chordPos:p})),D=A.getSymbolWidth(F)/2}return{notehead:m,accidentalshiftx:w,dotshiftx:T,extraLeft:D}};return Ft=g,Ft}var Ot,Ya;function Ys(){if(Ya)return Ot;Ya=1;var A=De(),y=Ne(),g=Te(),l=function(a,o){a.el_type="timeSignature";var i=new A(a,0,10,"staff-extra time-signature",o);if(a.type==="specified")for(var s=0,c=0;c<a.value.length;c++)if(c!==0&&(i.addRight(new g("+",s+1,y.getSymbolWidth("+"),6,{thickness:y.symbolHeightInPitches("+")})),s+=y.getSymbolWidth("+")+2),a.value[c].den){for(var v=0,u=0;u<a.value[c].num.length;u++)v+=y.getSymbolWidth(a.value[c].num[u]);var f=0;for(u=0;u<a.value[c].num.length;u++)f+=y.getSymbolWidth(a.value[c].den[u]);var n=Math.max(v,f);i.addRight(new g(a.value[c].num,s+(n-v)/2,v,8,{thickness:y.symbolHeightInPitches(a.value[c].num[0])})),i.addRight(new g(a.value[c].den,s+(n-f)/2,f,4,{thickness:y.symbolHeightInPitches(a.value[c].den[0])})),s+=n}else{for(var t=0,r=0;r<a.value[c].num.length;r++)t+=y.getSymbolWidth(a.value[c].num[r]);i.addRight(new g(a.value[c].num,s,t,6,{thickness:y.symbolHeightInPitches(a.value[c].num[0])})),s+=t}else a.type==="common_time"?i.addRight(new g("timesig.common",0,y.getSymbolWidth("timesig.common"),6,{thickness:y.symbolHeightInPitches("timesig.common")})):a.type==="cut_time"?i.addRight(new g("timesig.cut",0,y.getSymbolWidth("timesig.cut"),6,{thickness:y.symbolHeightInPitches("timesig.cut")})):a.type==="tempus_imperfectum"?i.addRight(new g("timesig.imperfectum",0,y.getSymbolWidth("timesig.imperfectum"),6,{thickness:y.symbolHeightInPitches("timesig.imperfectum")})):a.type==="tempus_imperfectum_prolatio"?i.addRight(new g("timesig.imperfectum2",0,y.getSymbolWidth("timesig.imperfectum2"),6,{thickness:y.symbolHeightInPitches("timesig.imperfectum2")})):a.type==="tempus_perfectum"?i.addRight(new g("timesig.perfectum",0,y.getSymbolWidth("timesig.perfectum"),6,{thickness:y.symbolHeightInPitches("timesig.perfectum")})):a.type==="tempus_perfectum_prolatio"?i.addRight(new g("timesig.perfectum2",0,y.getSymbolWidth("timesig.perfectum2"),6,{thickness:y.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",a);return i};return Ot=l,Ot}var Ht,Wa;function Ws(){if(Wa)return Ht;Wa=1;var A=function(g,l,a){this.type="DynamicDecoration",this.anchor=g,this.dec=l,a==="below"?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0};return Ht=A,Ht}var zt,Xa;function Xs(){if(Xa)return zt;Xa=1;var A=function(g,l,a,o){this.type="CrescendoElem",this.anchor1=g,this.anchor2=l,this.dir=a,o==="above"?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0};return zt=A,zt}var Gt,Ua;function Us(){if(Ua)return Gt;Ua=1;var A=function(g,l){this.type="GlissandoElem",this.anchor1=g,this.anchor2=l};return Gt=A,Gt}var Yt,Va;function Qn(){if(Va)return Yt;Va=1;var A=function(g){this.type="TieElem",this.anchor1=g.anchor1,this.anchor2=g.anchor2,g.isGrace&&(this.isGrace=!0),g.fixedY&&(this.fixedY=!0),g.stemDir&&(this.stemDir=g.stemDir),g.voiceNumber!==void 0&&(this.voiceNumber=g.voiceNumber),g.style!==void 0&&(this.dotted=!0),this.internalNotes=[]};return A.prototype.addInternalNote=function(y){this.internalNotes.push(y)},A.prototype.setEndAnchor=function(y){this.anchor2=y,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)},A.prototype.setStartX=function(y){this.startLimitX=y},A.prototype.setEndX=function(y){this.endLimitX=y},A.prototype.setHint=function(){this.hint=!0},A.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var y;this.anchor1?y=this.anchor1.pitch:this.anchor2?y=this.anchor2.pitch:y=14,this.anchor1&&this.anchor1.stemDir==="down"&&this.anchor2&&this.anchor2.stemDir==="down"?this.above=!0:this.anchor1&&this.anchor1.stemDir==="up"&&this.anchor2&&this.anchor2.stemDir==="up"?this.above=!1:this.anchor1&&this.anchor2?this.above=y>=6:this.anchor1?this.above=this.anchor1.stemDir==="down":this.anchor2?this.above=this.anchor2.stemDir==="down":this.above=y>=6}},A.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var y=!1;this.anchor1&&this.anchor1.stemDir==="down"&&(y=!0),this.anchor2&&this.anchor2.stemDir==="down"&&(y=!0);for(var g=0;g<this.internalNotes.length;g++){var l=this.internalNotes[g];l.stemDir==="down"&&(y=!0)}this.above=y}},A.prototype.calcX=function(y,g){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=y,!this.anchor1&&this.dotted&&(this.startX-=3),this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=g},A.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},A.prototype.calcSlurY=function(){if(this.anchor1&&this.anchor2){this.above&&this.anchor1.stemDir==="up"&&!this.fixedY?(this.startY=(this.anchor1.highestVert+this.anchor1.pitch)/2,this.startX+=this.anchor1.w/2):this.startY=this.anchor1.pitch;var y=this.anchor2.parent.beam&&this.anchor2.parent.beam.stemsUp&&this.anchor2.parent.beam.elems[0]!==this.anchor2.parent,g=(this.anchor2.highestVert+this.anchor2.pitch)/2;if(this.above&&this.anchor2.stemDir==="up"&&!this.fixedY&&!y&&g<this.startY?(this.endY=g,this.endX+=Math.round(this.anchor2.w/2)):this.endY=this.above&&y?this.anchor2.highestVert:this.anchor2.pitch,this.anchor1.scalex===1){var l=!!this.anchor1.parent.beam,a=!!this.anchor2.parent.beam;if(l){var o=this.anchor1.parent===this.anchor1.parent.beam.elems[this.anchor1.parent.beam.elems.length-1];o||(this.above?this.startY=this.anchor1.parent.fixed.t:this.startY=this.anchor1.parent.fixed.b)}if(a){var i=this.anchor2.parent===this.anchor2.parent.beam.elems[0];i||(this.above?this.endY=this.anchor2.parent.fixed.t:this.endY=this.anchor2.parent.fixed.b)}}}else this.anchor1?this.startY=this.endY=this.anchor1.pitch:this.anchor2?this.startY=this.endY=this.anchor2.pitch:(this.startY=this.above?14:0,this.endY=this.above?14:0)},A.prototype.avoidCollisionAbove=function(){if(this.above){for(var y=-50,g=0;g<this.internalNotes.length;g++)this.internalNotes[g].highestVert>y&&(y=this.internalNotes[g].highestVert);y>this.startY&&y>this.endY&&(this.startY=this.endY=y-1)}},A.prototype.getYBounds=function(){var y=10,g=1e3;this.isTie?(this.calcTieDirection(),this.calcX(y,g),this.calcTieY()):(this.calcSlurDirection(),this.calcX(y,g),this.calcSlurY());var l,a;return this.above?(a=Math.min(this.startY,this.endY),l=a+3):(l=Math.min(this.startY,this.endY),a=l-3),[l,a]},Yt=A,Yt}var Wt,ja;function Vs(){if(ja)return Wt;ja=1;var A=Ws(),y=Xs(),g=Us(),l=Ne(),a=Te(),o=Qn(),i=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},s=function(r,e,h,p,d,m,w,T,D){for(var B,S=0;S<e.length;S++){if(e[S]==="staccato"||e[S]==="tenuto"||e[S]==="accent"&&!D){var L="scripts."+e[S];if(e[S]==="accent"&&(L="scripts.sforzato"),B===void 0?B=w==="down"?h+2:T-2:B=w==="down"?B+2:B-2,e[S]==="accent")w==="up"?B--:B++;else switch(B){case 2:case 4:case 6:case 8:case 10:w==="up"?B--:B++;break}h>9&&B++;var x=p/2;l.getSymbolAlign(L)!=="center"&&(x-=l.getSymbolWidth(L)/2),d.addFixedX(new a(L,x,l.getSymbolWidth(L),B))}if(e[S]==="slide"&&d.heads[0]){var M=d.heads[0].pitch;M-=2;var N=new a("",-m-15,0,M-1),F=new a("",-m-5,0,M+1);d.addFixedX(N),d.addFixedX(F),r.addOther(new o({anchor1:N,anchor2:F,fixedY:!0}))}}return B===void 0&&(B=h),{above:B,below:d.bottom}},c=function(r,e,h,p){for(var d=0;d<e.length;d++)switch(e[d]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var m=new A(h,e[d],p);r.addOther(m)}},v=function(r,e,h,p,d){function m(){if(p.heads.length===0)return 10;for(var B=p.heads[0].pitch,S=1;S<p.heads.length;S++)B=Math.max(B,p.heads[S].pitch);return B}function w(){if(p.heads.length===0)return 2;for(var B=p.heads[0].pitch,S=1;S<p.heads.length;S++)B=Math.min(B,p.heads[S].pitch);return B}function T(B,S){var L=d==="down"?w()+1:m()+9;d!=="down"&&S===1&&L--;var x=h/2;x+=d==="down"?-5:3;for(var M=0;M<S;M++)L-=1,p.addFixedX(new a(B,x,l.getSymbolWidth(B),L))}for(var D=0;D<r.length;D++)switch(r[D]){case"/":T("flags.ugrace",1);break;case"//":T("flags.ugrace",2);break;case"///":T("flags.ugrace",3);break;case"////":T("flags.ugrace",4);break}},u=function(r,e,h,p,d,m,w,T){function D(F,C){F==="above"?p.above+=C:p.below-=C}function B(F){var C;return F==="above"?(C=p.above,C<m&&(C=m)):(C=p.below,C>w&&(C=w)),C}function S(F,C,_){var P=B(C),I=2,q=5;h.addFixedX(new a(F,e/2,0,P+I,{type:"decoration",klass:"ornament",thickness:3,anchor:_})),D(C,q)}function L(F,C){var _=e/2;l.getSymbolAlign(F)!=="center"&&(_-=l.getSymbolWidth(F)/2);var P=l.symbolHeightInPitches(F)+1,I=B(C);I=C==="above"?I+P/2:I-P/2,h.addFixedX(new a(F,_,l.getSymbolWidth(F),I,{klass:"ornament",thickness:l.symbolHeightInPitches(F),position:C})),D(C,P)}for(var x={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",trillh:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},M=!1,N=0;N<r.length;N++)switch(r[N]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":S(r[N],d,"middle"),M=!0;break;case"D.C.alcoda":S("D.C. al coda",d,"end"),M=!0;break;case"D.C.alfine":S("D.C. al fine",d,"end"),M=!0;break;case"D.S.alcoda":S("D.S. al coda",d,"end"),M=!0;break;case"D.S.alfine":S("D.S. al fine",d,"end"),M=!0;break;case"fine":S("FINE",d,"middle"),M=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":case"trillh":case"roll":case"irishroll":case"marcato":case"dmarcato":case"turn":case"uppermordent":case"pralltriller":case"mordent":case"lowermordent":case"downbow":case"upbow":case"fermata":case"breath":case"umarcato":case"coda":case"segno":L(x[r[N]],d),M=!0;break;case"invertedfermata":L(x[r[N]],"below"),M=!0;break;case"mark":h.klass="mark";break;case"accent":T&&(L("scripts.sforzato",d),M=!0);break}return M};function f(r,e,h){for(var p=0;p<r.length;p++)switch(r[p]){case"arpeggio":for(var d=e.abcelem.minpitch-1;d<=e.abcelem.maxpitch;d+=2)e.addExtra(new a("scripts.arpeggio",-l.getSymbolWidth("scripts.arpeggio")*2-h,0,d+2,{klass:"ornament",thickness:l.symbolHeightInPitches("scripts.arpeggio")}));break}}i.prototype.endLine=function(r){this.startDiminuendoX&&(r.addOther(new y(this.startDiminuendoX,t(r.children),">",this.dynamicPositioning)),this.startDiminuendoX=void 0),this.startCrescendoX&&(r.addOther(new y(this.startCrescendoX,t(r.children),"<",this.dynamicPositioning)),this.startCrescendoX=void 0)},i.prototype.dynamicDecoration=function(r,e,h,p){for(var d,m,w,T=0;T<e.length;T++)switch(e[T]){case"diminuendo(":this.startDiminuendoX=h,this.dynamicPositioning=p,d=void 0;break;case"diminuendo)":this.startDiminuendoX||(this.startDiminuendoX=n(r.children)),d={start:this.startDiminuendoX,stop:h},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=h,this.dynamicPositioning=p,m=void 0;break;case"crescendo)":this.startCrescendoX||(this.startCrescendoX=n(r.children)),m={start:this.startCrescendoX,stop:h},this.startCrescendoX=void 0;break;case"~(":case"glissando(":this.startGlissandoX=h,w=void 0;break;case"~)":case"glissando)":w={start:this.startGlissandoX,stop:h},this.startGlissandoX=void 0;break}d&&r.addOther(new y(d.start,d.stop,">",p)),m&&r.addOther(new y(m.start,m.stop,"<",p)),w&&r.addOther(new g(w.start,w.stop))};function n(r){for(var e=0;e<r.length;e++)if(r[e].abcelem.pitches)return r[e];return null}function t(r){return r[r.length-1]}return i.prototype.createDecoration=function(r,e,h,p,d,m,w,T,D,B,S){D||(D={ornamentPosition:"above",volumePosition:B?"above":"below",dynamicPosition:B?"above":"below"}),c(r,e,d,D.volumePosition),this.dynamicDecoration(r,e,d,D.dynamicPosition),v(e,h,p,d,w);var L=s(r,e,h,p,d,m,w,T,S);L.above=Math.max(L.above,this.minTop),L.below=Math.min(L.below,T),u(e,p,d,L,D.ornamentPosition,this.minTop,T,S),f(e,d,m)},Wt=i,Wt}var Xt,Ka;function js(){if(Ka)return Xt;Ka=1;var A=function(g,l,a){this.type="EndingElem",this.text=g,this.anchor1=l,this.anchor2=a,this.endingHeightAbove=5,this.pitch=void 0};return Xt=A,Xt}var Ut,$a;function Ks(){if($a)return Ut;$a=1;var A=function(y){for(var g=0,l=0;l<y.voices.length;l++){var a=y.voices[l].staff;y.voices[l].duplicate||(g+=a.top,g+=-a.bottom)}return g};return Ut=A,Ut}var Vt,Qa;function $s(){if(Qa)return Vt;Qa=1;var A=Ks(),y=function(g){this.getTextSize=g,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};return y.prototype.setLimit=function(g,l){l.specialY[g]&&(l.staff.specialY[g]?l.staff.specialY[g]=Math.max(l.staff.specialY[g],l.specialY[g]):l.staff.specialY[g]=l.specialY[g])},y.prototype.addVoice=function(g,l,a){var o=this.voices.length;this.voices[o]=g,this.staffs[l]?this.staffs[l].voices.push(o):this.staffs[this.staffs.length]={top:10,bottom:2,lines:a,voices:[o],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},g.staff=this.staffs[l]},y.prototype.setHeight=function(){this.height=A(this)},y.prototype.setWidth=function(g){this.w=g;for(var l=0;l<this.voices.length;l++)this.voices[l].setWidth(g)},y.prototype.setStaffLimits=function(g){g.staff.top=Math.max(g.staff.top,g.top),g.staff.bottom=Math.min(g.staff.bottom,g.bottom),this.setLimit("tempoHeightAbove",g),this.setLimit("partHeightAbove",g),this.setLimit("volumeHeightAbove",g),this.setLimit("dynamicHeightAbove",g),this.setLimit("endingHeightAbove",g),this.setLimit("chordHeightAbove",g),this.setLimit("lyricHeightAbove",g),this.setLimit("lyricHeightBelow",g),this.setLimit("chordHeightBelow",g),this.setLimit("volumeHeightBelow",g),this.setLimit("dynamicHeightBelow",g)},Vt=y,Vt}var jt,Ja;function Qs(){if(Ja)return jt;Ja=1;var A=De(),y=Te(),g=function(a,o,i){this.type="TempoElement",this.tempo=a,this.tempo.type="tempo",this.tuneNumber=o,this.totalHeightInPitches=6,this.tempoHeightAbove=this.totalHeightInPitches,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(i,a,o))};return g.prototype.setX=function(l){this.x=l},g.prototype.createNote=function(l,a,o){var i=.75,s=a.duration[0],c=new A(a,s,1,"tempo",o),v,u,f;s<=1/32?(f="noteheads.quarter",u="flags.u32nd",v=0):s<=1/16?(f="noteheads.quarter",u="flags.u16th",v=0):s<=3/32?(f="noteheads.quarter",u="flags.u16nd",v=1):s<=1/8?(f="noteheads.quarter",u="flags.u8th",v=0):s<=3/16?(f="noteheads.quarter",u="flags.u8th",v=1):s<=1/4?(f="noteheads.quarter",v=0):s<=3/8?(f="noteheads.quarter",v=1):s<=1/2?(f="noteheads.half",v=0):s<=3/4?(f="noteheads.half",v=1):s<=1?(f="noteheads.whole",v=0):s<=1.5?(f="noteheads.whole",v=1):s<=2?(f="noteheads.dbl",v=0):(f="noteheads.dbl",v=1);var n=l(c,f,{verticalPos:0},{dir:"up",flag:u,dot:v,scale:i}),t=n.notehead;c.addHead(t);var r;if(f!=="noteheads.whole"&&f!=="noteheads.dbl"){var e=.3333333333333333*i,h=5*i,p=t.dx+t.w,d=-.6;r=new y(null,p,0,e,{type:"stem",pitch2:h,linewidth:d}),c.addRight(r)}return c},jt=g,jt}var Kt,Za;function Js(){if(Za)return Kt;Za=1;var A=function(g,l,a){this.type="TripletElem",this.anchor1=l,this.number=g,this.durationClass=("d"+Math.round(l.parent.durationClass*1e3)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=a.flatBeams};return A.prototype.isClosed=function(){return!!this.anchor2},A.prototype.middleNote=function(y){this.middleElems.push(y)},A.prototype.setCloseAnchor=function(y){this.anchor2=y,(!this.anchor1.parent.beam||this.anchor1.stemDir==="up")&&(this.endingHeightAbove=4)},Kt=A,Kt}var $t,ei;function Zs(){if(ei)return $t;ei=1;function A(g){switch(g){case"B#":return"H#";case"B♯":return"H♯";case"B":return"H";case"Bb":return"B";case"B♭":return"B"}return g}function y(g,l,a){var o=g.split(`
27
+ `);for(let i=0;i<o.length;i++){let c=o[i].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/([ABCDEFG][#b♯♭]?))?/);if(!c)continue;let v=c[1]||"",u=c[2]||"",f=c[4]||"";a&&(v=A(v),f=A(f));const n=l?"":"",t=f?"/"+f:"";o[i]=[v,u,t].join(n)}return o.join(`
28
+ `)}return $t=y,$t}var Qt,ti;function eo(){if(ti)return Qt;ti=1;var A=Te(),y=Ce();const g=Zs();var l=function(o,i,s,c,v,u,f,n){for(var t=0;t<s.chord.length;t++){var r=s.chord[t].position,e=s.chord[t].rel_position,h=r==="left"||r==="right"||r==="below"||r==="above"||!!e,p,d;h?(p="annotationfont",d="abcjs-annotation"):(p="gchordfont",d="abcjs-chord");var m=o.attr(p,d),w=s.chord[t].name,T;if(typeof w=="string")T=a(w,r,e,h,p,d,m,o,i,s,c,v,u,f,n),c=T.roomTaken,v=T.roomTakenRight;else for(var D=0;D<w.length;D++)T=a(w[D].text,r,e,h,p,d,m,o,i,s,c,v,u,f,n),c=T.roomTaken,v=T.roomTakenRight}return{roomTaken:c,roomTakenRight:v}};function a(o,i,s,c,v,u,f,n,t,r,e,h,p,d,m){for(var w=o.split(`
29
+ `),T=w.length-1;T>=0;T--){var D=w[T],B=0,S;c||(D=g(D,d,m));var L=n.calc(D,v,u),x=L.width,M=L.height/y.STEP;switch(i){case"left":e+=x+7,B=-e,S=r.averagepitch,t.addExtra(new A(D,B,x+4,S,{type:"text",height:M,dim:f,position:"left"}));break;case"right":h+=4,B=h,S=r.averagepitch,t.addRight(new A(D,B,x+4,S,{type:"text",height:M,dim:f,position:"right"}));break;case"below":t.addRight(new A(D,0,0,void 0,{type:"text",position:"below",height:M,dim:f,realWidth:x}));break;case"above":t.addRight(new A(D,0,0,void 0,{type:"text",position:"above",height:M,dim:f,realWidth:x}));break;default:if(s){var N=s.y+3*y.STEP;t.addRight(new A(D,B+s.x,0,r.minpitch+N/y.STEP,{position:"relative",type:"text",height:M,dim:f}))}else{var F="above";r.positioning&&r.positioning.chordPosition&&(F=r.positioning.chordPosition),F!=="hidden"&&t.addCentered(new A(D,p/2,x,void 0,{type:"chord",position:F,height:M,dim:f,realWidth:x}))}}}return{roomTaken:e,roomTakenRight:h}}return Qt=l,Qt}var Jt,ri;function to(){if(ri)return Jt;ri=1;var A=De(),y=Fs(),g=Os(),l=Hs(),a=zs(),o=Gs(),i=Ys(),s=Vs(),c=js(),v=Ne(),u=Te(),f=Ce(),n=$s(),t=Qs(),r=Qn(),e=Js(),h=Xn(),p=eo(),d=Gn(),m=_e(),w=function(C){var _=0;return C.duration&&(_=C.duration),_},T=!1,D={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"}},B=function(C,_,P){this.decoration=new s,this.getTextSize=C,this.tuneNumber=_,this.isBagpipes=P.bagpipes,this.flatBeams=P.flatbeams,this.graceSlurs=P.graceSlurs,this.percmap=P.percmap,this.initialClef=P.initialClef,this.jazzchords=!!P.jazzchords,this.accentAbove=!!P.accentAbove,this.germanAlphabet=!!P.germanAlphabet,this.reset()};B.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},B.prototype.setStemHeight=function(C){this.stemHeight=Math.round(C*10/f.STEP)/10},B.prototype.getCurrentVoiceId=function(C,_){return"s"+C+"v"+_},B.prototype.pushCrossLineElems=function(C,_){this.slursbyvoice[this.getCurrentVoiceId(C,_)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(C,_)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(C,_)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(C,_)]=this.voiceScale,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(C,_)]=this.voiceColor)},B.prototype.popCrossLineElems=function(C,_){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(C,_)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(C,_)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(C,_)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(C,_)],this.voiceScale===void 0&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(C,_)]},B.prototype.containsLyrics=function(C){for(var _=0;_<C.length;_++)for(var P=0;P<C[_].voices.length;P++)for(var I=0;I<C[_].voices[P].length;I++){var q=C[_].voices[P][I];if(q.lyric){(!q.positioning||q.positioning.vocalPosition==="below")&&(this.hasVocals=!0);return}}},B.prototype.createABCLine=function(C,_,P){this.minY=2,this.containsLyrics(C);var I=new n(this.getTextSize);this.tempoSet=!1;for(var q=0;q<C.length;q++)T&&this.restoreState(),T=!1,this.createABCStaff(I,C[q],_,q,P);return I},B.prototype.createABCStaff=function(C,_,P,I,q){C.getTextSize.updateFonts(_);for(var b=0;b<_.voices.length;b++){var k=new h(b,_.voices.length);b===0?(k.barfrom=_.connectBarLines==="start"||_.connectBarLines==="continue",k.barto=_.connectBarLines==="continue"||_.connectBarLines==="end"):k.duplicate=!0,_.title&&_.title[b]&&(k.header=_.title[b].replace(/\\n/g,`
30
+ `),k.headerPosition=6+C.getTextSize.baselineToCenter(k.header,"voicefont","staff-extra voice-name",b,_.voices.length)/f.STEP),_.clef&&_.clef.type==="perc"&&(k.isPercussion=!0);var E=(!this.initialClef||q===0)&&l(_.clef,this.tuneNumber);E&&(b===0&&_.barNumber&&this.addMeasureNumber(_.barNumber,E),k.addChild(E),this.startlimitelem=E);var R=a(_.key,this.tuneNumber);if(R&&(k.addChild(R),this.startlimitelem=R),_.meter){_.meter.type==="specified"?this.measureLength=_.meter.value[0].num/_.meter.value[0].den:this.measureLength=1;var O=i(_.meter,this.tuneNumber);k.addChild(O),this.startlimitelem=O}k.duplicate&&(k.children=[]);var G=_.clef.stafflines||_.clef.stafflines===0?_.clef.stafflines:5;C.addVoice(k,I,G);var H=G===1;this.createABCVoice(_.voices[b],P,I,b,H,k),C.setStaffLimits(k),b===0&&(_.brace==="start"||!C.brace&&_.brace?(C.brace||(C.brace=[]),C.brace.push(new g(k,"brace"))):_.brace==="end"&&C.brace?C.brace[C.brace.length-1].setBottomStaff(k):_.brace==="continue"&&C.brace&&C.brace[C.brace.length-1].continuing(k),_.bracket==="start"||!C.bracket&&_.bracket?(C.bracket||(C.bracket=[]),C.bracket.push(new g(k,"bracket"))):_.bracket==="end"&&C.bracket?C.bracket[C.bracket.length-1].setBottomStaff(k):_.bracket==="continue"&&C.bracket&&C.bracket[C.bracket.length-1].continuing(k))}};function S(C,_){var P=C[_];if(P.el_type!=="note"||!P.startBeam||P.endBeam)return{count:1,elem:P};for(var I=[];_<C.length&&C[_].el_type==="note"&&(I.push(C[_]),!C[_].endBeam);)_++;return{count:I.length,elem:I}}B.prototype.createABCVoice=function(C,_,P,I,q,b){this.popCrossLineElems(P,I),this.stemdir=this.isBagpipes?"down":null,this.abcline=C,this.partstartelem&&(this.partstartelem=new c("",null,null),b.addOther(this.partstartelem));var k=b.voicetotal<2?-1:b.voicenumber;for(var E in this.slurs)this.slurs.hasOwnProperty(E)&&(this.slurs[E]=new r({force:this.slurs[E].force,voiceNumber:k,stemDir:this.slurs[E].stemDir,style:this.slurs[E].dotted}),T&&this.slurs[E].setHint(),b.addOther(this.slurs[E]));for(var R=0;R<this.ties.length;R++)this.ties[R]=new r({force:this.ties[R].force,stemDir:this.ties[R].stemDir,voiceNumber:k,style:this.ties[R].dotted}),T&&this.ties[R].setHint(),b.addOther(this.ties[R]);for(var O=0;O<this.abcline.length;O++)L(this.abcline[O]),this.minY=Math.min(this.abcline[O].minpitch,this.minY);for(var G=P===0,H=0;H<this.abcline.length;){var X=S(this.abcline,H),Q=this.createABCElement(G,q,b,X.elem);if(Q)for(R=0;R<Q.length;R++){if(!this.tempoSet&&_&&!_.suppress){this.tempoSet=!0;var j=new A(_,0,0,"tempo",this.tuneNumber,{});j.addFixedX(new t(_,this.tuneNumber,o)),b.addChild(j)}b.addChild(Q[R])}H+=X.count}this.decoration.endLine(b),this.pushCrossLineElems(P,I)},B.prototype.saveState=function(){this.tiesSave=m.cloneArray(this.ties),this.slursSave=m.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=m.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=m.cloneHashOfArrayOfHash(this.tiesbyvoice)},B.prototype.restoreState=function(){this.ties=m.cloneArray(this.tiesSave),this.slurs=m.cloneHashOfHash(this.slursSave),this.slursbyvoice=m.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=m.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},B.prototype.createABCElement=function(C,_,P,I){var q=[];switch(I.el_type){case void 0:q=this.createBeam(_,P,I);break;case"note":q[0]=this.createNote(I,!1,_,P),this.triplet&&this.triplet.isClosed()&&(P.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":q[0]=this.createBarLine(P,I,C),P.duplicate&&q.length>0&&(q[0].invisible=!0);break;case"meter":q[0]=i(I,this.tuneNumber),this.startlimitelem=q[0],P.duplicate&&q.length>0&&(q[0].invisible=!0);break;case"clef":if(q[0]=l(I,this.tuneNumber),!q[0])return null;P.duplicate&&q.length>0&&(q[0].invisible=!0);break;case"key":var b=a(I,this.tuneNumber);b&&(q[0]=b,this.startlimitelem=q[0]),P.duplicate&&q.length>0&&(q[0].invisible=!0);break;case"stem":this.stemdir=I.direction==="auto"?void 0:I.direction;break;case"part":var k=new A(I,0,0,"part",this.tuneNumber),E=this.getTextSize.calc(I.title,"partsfont","part");k.addFixedX(new u(I.title,0,0,void 0,{type:"part",height:E.height/f.STEP})),q[0]=k;break;case"tempo":var R=new A(I,0,0,"tempo",this.tuneNumber);I.suppress||R.addFixedX(new t(I,this.tuneNumber,o)),q[0]=R;break;case"style":I.head==="normal"?delete this.style:this.style=I.head;break;case"hint":T=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=I.size;break;case"color":this.voiceColor=I.color,P.color=this.voiceColor;break;default:var O=new A(I,0,0,"unsupported",this.tuneNumber);O.addFixed(new u("element type "+I.el_type,0,0,void 0,{type:"debug"})),q[0]=O}return q};function L(C){if(C.pitches){x(C);for(var _=0,P=0;P<C.pitches.length;P++)_+=C.pitches[P].verticalPos;C.averagepitch=_/C.pitches.length,C.minpitch=C.pitches[0].verticalPos,C.maxpitch=C.pitches[C.pitches.length-1].verticalPos}}B.prototype.createBeam=function(C,_,P){var I=[],q=new y(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,P[0]);T&&q.setHint();for(var b=0;b<P.length;b++)q.runningDirection(P[b]);q.setStemDirection();var k=this.stemdir;for(this.stemdir=q.stemsUp?"up":"down",b=0;b<P.length;b++){var E=P[b],R=this.createNote(E,!0,C,_);I.push(R),q.add(R),this.triplet&&this.triplet.isClosed()&&(_.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return q.calcDir(),_.addBeam(q),this.stemdir=k,I};var x=function(C){var _;do{_=!0;for(var P=0;P<C.pitches.length-1;P++)if(C.pitches[P].pitch>C.pitches[P+1].pitch){_=!1;var I=C.pitches[P];C.pitches[P]=C.pitches[P+1],C.pitches[P+1]=I}}while(!_)},M=function(C,_,P,I,q,b,k,E,R){for(var O=P;O>11;O--)O%2===0&&!I&&C.addFixed(new u(null,E,(q+4)*R,O,{type:"ledger"}));for(O=_;O<1;O++)O%2===0&&!I&&C.addFixed(new u(null,E,(q+4)*R,O,{type:"ledger"}));for(O=0;O<b.length;O++){var G=q;k==="down"&&(G=-G),C.addFixed(new u(null,G+E,(q+4)*R,b[O],{type:"ledger"}))}};B.prototype.addGraceNotes=function(C,_,P,I,q,b,k){var E=.6,R=3.5/5;q=Math.round(q*R);var O=null,G;C.gracenotes.length>1&&(O=new y(q,"grace",b),T&&O.setHint(),O.mainNote=P);var H,X=[];for(H=C.gracenotes.length-1;H>=0;H--)k+=10,X[H]=k,C.gracenotes[H].accidental&&(k+=7);for(H=0;H<C.gracenotes.length;H++){var Q=C.gracenotes[H].verticalPos;G=O?null:D.uflags[b?5:3];var j=[],ee=o(P,"noteheads.quarter",C.gracenotes[H],{dir:"up",headx:-X[H],extrax:-X[H],flag:G,scale:E*this.voiceScale,accidentalSlot:j});ee.notehead.highestVert=ee.notehead.pitch+q;var J=ee.notehead;if(this.addSlursAndTies(P,C.gracenotes[H],J,_,"up",!0),P.addExtra(J),C.gracenotes[H].acciaccatura){var ae=C.gracenotes[H].verticalPos+7*E,V=O?5:6;P.addRight(new u("flags.ugrace",-X[H]+V,0,ae,{scalex:E,scaley:E}))}if(O){var Z=C.gracenotes[H].duration/2;b&&(Z/=2);var $={heads:[J],abcelem:{averagepitch:Q,minpitch:Q,maxpitch:Q,duration:Z}};O.add($)}else{var oe=Q+.3333333333333333*E,ce=Q+7*E,ue=J.dx+J.w,fe=-.6;P.addExtra(new u(null,ue,0,oe,{type:"stem",pitch2:ce,linewidth:fe}))}M(P,Q,Q,!1,v.getSymbolWidth("noteheads.quarter"),[],!0,J.dx-1,.6);var be=C.rest&&(C.rest.type==="spacer"||C.rest.type==="invisible");H===0&&!b&&this.graceSlurs&&!be&&_.addOther(new r({anchor1:J,anchor2:I,isGrace:!0}))}return O&&(O.calcDir(),_.addBeam(O)),k};function N(C,_,P,I,q,b,k,E,R){var O,G=7,H,X,Q;switch(q&&(b==="down"&&(G=3),b==="up"&&(G=11)),k&&(P<.5||P<1?G=7:G=5),_.rest.type){case"whole":O=D.rest[0],_.averagepitch=G,_.minpitch=G,_.maxpitch=G,I=0;break;case"rest":_.style==="rhythm"?O=D.rhythm[-E]:O=D.rest[-E],_.averagepitch=G,_.minpitch=G,_.maxpitch=G;break;case"invisible":case"invisible-multimeasure":case"spacer":O="",_.averagepitch=G,_.minpitch=G,_.maxpitch=G;break;case"multimeasure":O=D.rest.multi,_.averagepitch=G,_.minpitch=G,_.maxpitch=G,I=0;var j=v.getSymbolWidth(O);C.addHead(new u(O,j,j*2,7));var ee=new u(""+_.rest.text,j,j,16,{type:"multimeasure-text"});C.addExtra(ee)}if(_.rest.type.indexOf("multimeasure")<0&&_.rest.type!=="invisible"){var J=o(C,O,{verticalPos:G},{dot:I,scale:R});H=J.notehead,H&&(C.addHead(H),X=J.accidentalshiftx,Q=J.dotshiftx)}return{noteHead:H,roomTaken:X,roomTakenRight:Q}}function F(C,_){for(var P=0;P<C.length;P++)if(JSON.stringify(C[P])===JSON.stringify(_))return;C.push(_)}return B.prototype.addNoteToAbcElement=function(C,_,P,I,q,b,k,E,R){var O=0,G,H=0,X=0,Q,j,ee=[],J=[],ae=0,V=_.averagepitch>=6?"down":"up";I&&(V=I),q=_.style?_.style:q,(!q||q==="normal")&&(q="note");var Z;b?Z=D[q].nostem:Z=D[q][-k],Z||console.log("noteSymbol:",q,k,b);var $;for($=V==="down"?_.pitches.length-2:1;V==="down"?$>=0:$<_.pitches.length;$=V==="down"?$-1:$+1){var oe=_.pitches[V==="down"?$+1:$-1],ce=_.pitches[$],ue=V==="down"?oe.pitch-ce.pitch:ce.pitch-oe.pitch;ue<=1&&!oe.printer_shift&&(ce.printer_shift=ue?"different":"same",(ce.verticalPos>11||ce.verticalPos<1)&&ee.push(ce.verticalPos-ce.verticalPos%2),V==="down"?H=v.getSymbolWidth(Z)+2:O=v.getSymbolWidth(Z)+2)}var fe=_.pitches.length;for($=0;$<_.pitches.length;$++){if(!E){var be;V==="down"&&$!==0||V==="up"&&$!==fe-1?be=null:be=D[V==="down"?"dflags":"uflags"][-k]}var ge;if(_.pitches[$].style)ge=D[_.pitches[$].style][-k];else if(R.isPercussion&&this.percmap){ge=Z;var ye=this.percmap[d(_.pitches[$])];ye&&ye.noteHead&&D[ye.noteHead]&&(ge=D[ye.noteHead][-k])}else ge=Z;_.pitches[$].highestVert=_.pitches[$].verticalPos;var Y=(I==="up"||V==="up")&&$===0,U=(I==="down"||V==="down")&&$===fe-1;if(Y||U){if((_.startSlur||fe===1)&&(_.pitches[$].highestVert=_.pitches[fe-1].verticalPos,w(_)<1&&(I==="up"||V==="up")&&(_.pitches[$].highestVert+=6)),_.startSlur)for(_.pitches[$].startSlur||(_.pitches[$].startSlur=[]),j=0;j<_.startSlur.length;j++)F(_.pitches[$].startSlur,_.startSlur[j]);if(_.endSlur)for(_.pitches[$].highestVert=_.pitches[fe-1].verticalPos,w(_)<1&&(I==="up"||V==="up")&&(_.pitches[$].highestVert+=6),_.pitches[$].endSlur||(_.pitches[$].endSlur=[]),j=0;j<_.endSlur.length;j++)F(_.pitches[$].endSlur,_.endSlur[j])}var z=!E&&k<=-1,W=fe>1?$+1:null,K=o(C,ge,_.pitches[$],{dir:V,extrax:-H,flag:be,dot:P,dotshiftx:O,scale:this.voiceScale,accidentalSlot:J,shouldExtendStem:!I,printAccidentals:!R.isPercussion,chordPos:W});ae=Math.max(v.getSymbolWidth(ge),ae),C.extraw-=K.extraLeft,G=K.notehead,G&&(this.addSlursAndTies(C,_.pitches[$],G,R,z?V:null,!1),_.gracenotes&&_.gracenotes.length>0&&(G.bottom=G.bottom-1),C.addHead(G)),H+=K.accidentalshiftx,X=Math.max(X,K.dotshiftx)}if(z){var te=Math.round(70*this.voiceScale)/10,ie=V==="down"?_.minpitch-te:_.minpitch+1/3;ie>6&&!I&&(ie=6);var le=V==="down"?_.maxpitch-1/3:_.maxpitch+te;le<6&&!I&&(le=6);var re=V==="down"||C.heads.length===0?0:C.heads[0].w,se=V==="down"?1:-1;G&&G.c==="noteheads.slash.quarter"&&(V==="down"?le-=1:ie+=1),G&&G.c==="noteheads.triangle.quarter"&&(V==="down"?le-=.7:ie-=1.2),C.addRight(new u(null,re,0,ie,{type:"stem",pitch2:le,linewidth:se,bottom:ie-1})),Q=Math.min(ie,le)}return{noteHead:G,roomTaken:H,roomTakenRight:X,min:Q,additionalLedgers:ee,dir:V,symbolWidth:ae}},B.prototype.addLyric=function(C,_,P){var I="";_.lyric.forEach(function(k){var E=k.divider===" "?"":k.divider;I+=k.syllable+E+`
31
+ `});var q=this.getTextSize.calc(I,"vocalfont","lyric"),b=_.positioning?_.positioning.vocalPosition:"below";C.addCentered(new u(I,0,q.width,void 0,{type:"lyric",position:b,height:q.height/f.STEP,dim:this.getTextSize.attr("vocalfont","lyric"),voiceNumber:P}))},B.prototype.createNote=function(C,_,P,I){var q=null,b=0,k=0,E=0,R=[],O,G=w(C),H=!1;G===0&&(H=!0,G=.25,_=!0);for(var X=Math.floor(Math.log(G)/Math.log(2)),Q=0,j=Math.pow(2,X),ee=j/2;j<G;Q++,j+=ee,ee/=2);C.startTriplet&&(this.tripletmultiplier=C.tripletMultiplier);var J=G*this.tripletmultiplier;C.rest&&C.rest.type==="multimeasure"&&(J=1),C.rest&&C.rest.type==="invisible-multimeasure"&&(J=this.measureLength*C.rest.text);var ae=C.rest?"rest":"note",V=new A(C,J,1,ae,this.tuneNumber,{durationClassOveride:C.duration*this.tripletmultiplier});if(T&&V.setHint(),C.rest){this.measureLength===G&&C.rest.type!=="invisible"&&C.rest.type!=="spacer"&&C.rest.type.indexOf("multimeasure")<0&&(C.rest.type="whole");var Z=N(V,C,G,Q,I.voicetotal>1,this.stemdir,P,X,this.voiceScale);q=Z.noteHead,b=Z.roomTaken,k=Z.roomTakenRight}else{var $=this.addNoteToAbcElement(V,C,Q,this.stemdir,this.style,H,X,_,I);$.min!==void 0&&(this.minY=Math.min($.min,this.minY)),q=$.noteHead,b=$.roomTaken,k=$.roomTakenRight,R=$.additionalLedgers,O=$.dir,E=$.symbolWidth}if(C.lyric!==void 0&&this.addLyric(V,C,I.voicenumber),C.gracenotes!==void 0&&(b+=this.addGraceNotes(C,I,V,q,this.stemHeight*this.voiceScale,this.isBagpipes,b)),C.decoration){var oe=_&&O!=="up"?Math.min(-3,V.bottom-6):V.bottom;this.decoration.createDecoration(I,C.decoration,V.top,q?q.w:0,V,b,O,oe,C.positioning,this.hasVocals,this.accentAbove)}if(C.barNumber&&V.addFixed(new u(C.barNumber,-10,0,0,{type:"barNumber"})),M(V,C.minpitch,C.maxpitch,C.rest,E,R,O,-2,1),C.chord!==void 0){var ce=p(this.getTextSize,V,C,b,k,E,this.jazzchords,this.germanAlphabet);b=ce.roomTaken,k=ce.roomTakenRight}return C.startTriplet&&(this.triplet=new e(C.startTriplet,q,{flatBeams:this.flatBeams})),C.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(q),this.triplet&&!C.startTriplet&&!C.endTriplet&&!(C.rest&&C.rest.type==="spacer")&&this.triplet.middleNote(q),V},B.prototype.addSlursAndTies=function(C,_,P,I,q,b){if(_.endTie&&this.ties.length>0){for(var k=!1,E=0;E<this.ties.length;E++)if(this.ties[E].anchor1&&this.ties[E].anchor1.pitch===P.pitch){this.ties[E].setEndAnchor(P),I.setRange(this.ties[E]),this.ties.splice(E,1),k=!0;break}k||(this.ties[0].setEndAnchor(P),I.setRange(this.ties[0]),this.ties.splice(0,1))}var R=I.voicetotal<2?-1:I.voicenumber;if(_.startTie){var O=new r({anchor1:P,force:this.stemdir==="down"||this.stemdir==="up",stemDir:this.stemdir,isGrace:b,voiceNumber:R,style:_.startTie.style});T&&O.setHint(),this.ties[this.ties.length]=O,I.addOther(O),C.startTie=!0}var G,H;if(_.endSlur)for(var X=0;X<_.endSlur.length;X++)H=_.endSlur[X],this.slurs[H]?(G=this.slurs[H],G.setEndAnchor(P),I.setRange(G),delete this.slurs[H]):(G=new r({anchor2:P,stemDir:this.stemdir,voiceNumber:R}),T&&G.setHint(),I.addOther(G)),this.startlimitelem&&G.setStartX(this.startlimitelem);else if(!b)for(var Q in this.slurs)this.slurs.hasOwnProperty(Q)&&this.slurs[Q].addInternalNote(P);if(_.startSlur)for(X=0;X<_.startSlur.length;X++)H=_.startSlur[X].label,G=new r({anchor1:P,stemDir:this.stemdir,voiceNumber:R,style:_.startSlur[X].style}),T&&G.setHint(),this.slurs[H]=G,I.addOther(G)},B.prototype.addMeasureNumber=function(C,_){var P=this.getTextSize.calc(C,"measurefont","bar-number"),I=0;_.isClef&&(I+=P.width/2);var q=P.width>10&&_.abcelem.type==="treble"?13.5:11;_.addFixed(new u(C,I,P.width,q+P.height/f.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))},B.prototype.createBarLine=function(C,_,P){var I=new A(_,0,10,"bar",this.tuneNumber),q=null,b=0;_.barNumber&&this.addMeasureNumber(_.barNumber,I);var k=_.type==="bar_right_repeat"||_.type==="bar_dbl_repeat",E=_.type!=="bar_left_repeat"&&_.type!=="bar_thick_thin"&&_.type!=="bar_invisible",R=_.type==="bar_right_repeat"||_.type==="bar_dbl_repeat"||_.type==="bar_left_repeat"||_.type==="bar_thin_thick"||_.type==="bar_thick_thin",O=_.type==="bar_left_repeat"||_.type==="bar_thick_thin"||_.type==="bar_thin_thin"||_.type==="bar_dbl_repeat",G=_.type==="bar_left_repeat"||_.type==="bar_dbl_repeat";if(k||G){for(var H in this.slurs)this.slurs.hasOwnProperty(H)&&this.slurs[H].setEndX(I);this.startlimitelem=I}if(k&&(I.addRight(new u("dots.dot",b,1,7)),I.addRight(new u("dots.dot",b,1,5)),b+=6),E&&(q=new u(null,b,1,2,{type:"bar",pitch2:10,linewidth:.6}),I.addRight(q)),_.type==="bar_invisible"&&(q=new u(null,b,1,2,{type:"none",pitch2:10,linewidth:.6}),I.addRight(q)),_.decoration&&this.decoration.createDecoration(C,_.decoration,12,R?3:1,I,0,"down",2,_.positioning,this.hasVocals,this.accentAbove),R&&(b+=4,q=new u(null,b,4,2,{type:"bar",pitch2:10,linewidth:4}),I.addRight(q),b+=5),this.partstartelem&&_.endEnding&&(this.partstartelem.anchor2=q,this.partstartelem=null),O&&(b+=3,q=new u(null,b,1,2,{type:"bar",pitch2:10,linewidth:.6}),I.addRight(q)),G&&(b+=3,I.addRight(new u("dots.dot",b,1,7)),I.addRight(new u("dots.dot",b,1,5))),_.startEnding&&P&&C.voicenumber===0){var X=this.getTextSize.calc(_.startEnding,"repeatfont","").width;I.minspacing+=X+10,this.partstartelem=new c(_.startEnding,q,null),C.addOther(this.partstartelem)}return I.extraw-=5,_.chord!==void 0&&p(this.getTextSize,I,_,0,0,0,!1,this.germanAlphabet),I},Jt=B,Jt}var Zt,ai;function ro(){if(ai)return Zt;ai=1;var A="http://www.w3.org/2000/svg";function y(i){this.svg=o(),this.currentGroup=[],i.appendChild(this.svg)}y.prototype.clear=function(){if(this.svg){var i=this.svg.parentNode;this.svg=o(),this.currentGroup=[],i&&(i.innerHTML="",i.appendChild(this.svg))}},y.prototype.setTitle=function(i){var s=document.createElement("title"),c=document.createTextNode(i);s.appendChild(c),this.svg.insertBefore(s,this.svg.firstChild)},y.prototype.setResponsiveWidth=function(i,s){if(this.svg.setAttribute("viewBox","0 0 "+i+" "+s),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var c=this.svg.parentNode.getAttribute("class");c?c.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",c+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%";var v=s/i*100;this.svg.parentNode.style["padding-bottom"]=v+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},y.prototype.setSize=function(i,s){this.svg.setAttribute("width",i),this.svg.setAttribute("height",s)},y.prototype.setAttribute=function(i,s){this.svg.setAttribute(i,s)},y.prototype.setScale=function(i){i!==1?(this.svg.style.transform="scale("+i+","+i+")",this.svg.style["-ms-transform"]="scale("+i+","+i+")",this.svg.style["-webkit-transform"]="scale("+i+","+i+")",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"]="")},y.prototype.insertStyles=function(i){var s=document.createElementNS(A,"style");s.textContent=i,this.svg.insertBefore(s,this.svg.firstChild)},y.prototype.setParentStyles=function(i){for(var s in i)i.hasOwnProperty(s)&&this.svg.parentNode&&(this.svg.parentNode.style[s]=i[s]);if(this.dummySvg){var c=document.querySelector("body");c.removeChild(this.dummySvg),this.dummySvg=null}};function g(i,s,c){var v=c-i;return"M "+i+" "+s+" l "+v+" 0 l 0 1 l "+-v+" 0 z "}function l(i,s,c){var v=c-s;return"M "+i+" "+s+" l 0 "+v+" l 1 0 l 0 "+-v+" z "}y.prototype.rect=function(i){var s=[],c=i.x,v=i.y,u=i.x+i.width,f=i.y+i.height;return s.push(g(c,v,u)),s.push(g(c,f,u)),s.push(l(u,v,f)),s.push(l(c,f,v)),this.path({path:s.join(" "),stroke:"none","data-name":i["data-name"]})},y.prototype.dottedLine=function(i){var s=document.createElementNS(A,"line");s.setAttribute("x1",i.x1),s.setAttribute("x2",i.x2),s.setAttribute("y1",i.y1),s.setAttribute("y2",i.y2),s.setAttribute("stroke",i.stroke),s.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(s,this.svg.firstChild)},y.prototype.rectBeneath=function(i){var s=document.createElementNS(A,"rect");s.setAttribute("x",i.x),s.setAttribute("width",i.width),s.setAttribute("y",i.y),s.setAttribute("height",i.height),i.stroke&&s.setAttribute("stroke",i.stroke),i["stroke-opacity"]&&s.setAttribute("stroke-opacity",i["stroke-opacity"]),i.fill&&s.setAttribute("fill",i.fill),i["fill-opacity"]&&s.setAttribute("fill-opacity",i["fill-opacity"]),this.svg.insertBefore(s,this.svg.firstChild)},y.prototype.text=function(i,s,c,v){var u=document.createElementNS(A,"text");u.setAttribute("stroke","none");for(var f in s)s.hasOwnProperty(f)&&u.setAttribute(f,s[f]);for(var n=s["data-name"]=="free-text",t=(""+i).split(`
32
+ `),r=0;r<t.length;r++)if(!(n&&t[r]=="")){var e=document.createElementNS(A,"tspan");if(v)for(var h in v)v.hasOwnProperty(h)&&e.setAttribute(h,v[h]);if(e.setAttribute("x",s.x?s.x:0),r!==0&&e.setAttribute("dy","1.2em"),t[r].indexOf("")!==-1){var p=t[r].split("");if(e.textContent=p[0],p[1]){var d=document.createElementNS(A,"tspan");d.setAttribute("dy","-0.3em"),d.setAttribute("style","font-size:0.7em"),d.textContent=p[1],e.appendChild(d)}if(p[2]){var m=p[1]?"0.4em":"0.1em",w=document.createElementNS(A,"tspan");w.setAttribute("dy",m),w.setAttribute("style","font-size:0.7em"),w.textContent=p[2],e.appendChild(w)}}else n&&t[r].trim()==""?e.innerHTML="&nbsp;":e.textContent=t[r];u.appendChild(e)}return c?c.appendChild(u):this.append(u),u},y.prototype.richTextLine=function(i,s,c,v,u,f){var n=document.createElementNS(A,"text");n.setAttribute("stroke","none"),n.setAttribute("class",v),n.setAttribute("x",s),n.setAttribute("y",c),n.setAttribute("text-anchor",u),n.setAttribute("dominant-baseline","middle");for(var t=0;t<i.length;t++){for(var r=i[t],e=document.createElementNS(A,"tspan"),h=Object.keys(r.attrs),p=0;p<h.length;p++){var d=r.attrs[h[p]];d!==""&&e.setAttribute(h[p],d)}e.textContent=r.content,n.appendChild(e)}return f?f.appendChild(n):this.append(n),n},y.prototype.guessWidth=function(i,s){var c=this.createDummySvg(),v=this.text(i,s,c),u;try{u=v.getBBox(),isNaN(u.height)||!u.height?u={width:s["font-size"]/2,height:s["font-size"]+2}:u={width:u.width,height:u.height}}catch{u={width:s["font-size"]/2,height:s["font-size"]+2}}return c.removeChild(v),u},y.prototype.createDummySvg=function(){if(!this.dummySvg){this.dummySvg=o();var i=["display: block !important;","height: 1px;","width: 1px;","position: absolute;"];this.dummySvg.setAttribute("style",i.join(""));var s=document.querySelector("body");s.appendChild(this.dummySvg)}return this.dummySvg};var a={};y.prototype.getTextSize=function(i,s,c){if(typeof i=="number"&&(i=""+i),!i||i.match(/^\s+$/))return{width:0,height:0};var v;if(i.length<20&&(v=i+JSON.stringify(s),a[v]))return a[v];var u=!c;c||(c=this.text(i,s));var f;try{f=c.getBBox(),isNaN(f.height)||!f.height?f=this.guessWidth(i,s):f={width:f.width,height:f.height}}catch{f=this.guessWidth(i,s)}return u&&(this.currentGroup.length>0?this.currentGroup[0].removeChild(c):this.svg.removeChild(c)),v&&(a[v]=f),f},y.prototype.openGroup=function(i){i=i||{};var s=document.createElementNS(A,"g");return i.klass&&s.setAttribute("class",i.klass),i.fill&&s.setAttribute("fill",i.fill),i.stroke&&s.setAttribute("stroke",i.stroke),i["data-name"]&&s.setAttribute("data-name",i["data-name"]),i.prepend?this.prepend(s):this.append(s),this.currentGroup.unshift(s),s},y.prototype.closeGroup=function(){var i=this.currentGroup.shift();return i&&i.children.length===0?(i.parentElement.removeChild(i),null):i},y.prototype.path=function(i){var s=document.createElementNS(A,"path");for(var c in i)i.hasOwnProperty(c)&&(c==="path"?s.setAttributeNS(null,"d",i.path):c==="klass"?s.setAttributeNS(null,"class",i[c]):i[c]!==void 0&&s.setAttributeNS(null,c,i[c]));return this.append(s),s},y.prototype.pathToBack=function(i){var s=document.createElementNS(A,"path");for(var c in i)i.hasOwnProperty(c)&&(c==="path"?s.setAttributeNS(null,"d",i.path):c==="klass"?s.setAttributeNS(null,"class",i[c]):s.setAttributeNS(null,c,i[c]));return this.prepend(s),s},y.prototype.lineToBack=function(i){for(var s=document.createElementNS(A,"line"),c=Object.keys(i),v=0;v<c.length;v++)s.setAttribute(c[v],i[c[v]]);return this.prepend(s),s},y.prototype.append=function(i){this.currentGroup.length>0?this.currentGroup[0].appendChild(i):this.svg.appendChild(i)},y.prototype.prepend=function(i){this.currentGroup.length>0?this.currentGroup[0].appendChild(i):this.svg.insertBefore(i,this.svg.firstChild)},y.prototype.setAttributeOnElement=function(i,s){for(var c in s)s.hasOwnProperty(c)&&i.setAttributeNS(null,c,s[c])},y.prototype.moveElementToChild=function(i,s){i.appendChild(s)};function o(){var i=document.createElementNS(A,"svg");return i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("role","img"),i.setAttribute("fill","currentColor"),i.setAttribute("stroke","currentColor"),i}return Zt=y,Zt}var e0,ii;function ao(){if(ii)return e0;ii=1;var A=Ce(),y=ro(),g=function(l){this.paper=new y(l),this.controller=null,this.space=3*A.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};return g.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()},g.prototype.newTune=function(l){this.abctune=l,this.setVerticalSpace(l.formatting),this.isPrint=l.media==="print",this.setPadding(l)},g.prototype.setLineThickness=function(l){this.lineThickness=l},g.prototype.setPaddingOverride=function(l){this.paddingOverride={top:l.paddingtop,bottom:l.paddingbottom,right:l.paddingright,left:l.paddingleft}},g.prototype.setPadding=function(l){function a(o,i,s,c,v){l.formatting[s]!==void 0?o.padding[i]=l.formatting[s]:o.paddingOverride[i]!==void 0?o.padding[i]=o.paddingOverride[i]:o.isPrint?o.padding[i]=c:o.padding[i]=v}a(this,"top","topmargin",38,15),a(this,"bottom","botmargin",38,15),a(this,"left","leftmargin",68,15),a(this,"right","rightmargin",68,15)},g.prototype.adjustNonScaledItems=function(l){this.padding.top/=l,this.padding.bottom/=l,this.padding.left/=l,this.padding.right/=l,this.abctune.formatting.headerfont.size/=l,this.abctune.formatting.footerfont.size/=l},g.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,staffTopMargin:0,stemHeight:26.67+10,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}},g.prototype.setVerticalSpace=function(l){l.staffsep!==void 0&&(this.spacing.staffSeparation=l.staffsep*4/3),l.composerspace!==void 0&&(this.spacing.composer=l.composerspace*4/3),l.partsspace!==void 0&&(this.spacing.parts=l.partsspace*4/3),l.textspace!==void 0&&(this.spacing.text=l.textspace*4/3),l.musicspace!==void 0&&(this.spacing.music=l.musicspace*4/3),l.titlespace!==void 0&&(this.spacing.title=l.titlespace*4/3),l.sysstaffsep!==void 0&&(this.spacing.systemStaffSeparation=l.sysstaffsep*4/3),l.stafftopmargin!==void 0&&(this.spacing.staffTopMargin=l.stafftopmargin*4/3),l.subtitlespace!==void 0&&(this.spacing.subtitle=l.subtitlespace*4/3),l.topspace!==void 0&&(this.spacing.top=l.topspace*4/3),l.vocalspace!==void 0&&(this.spacing.vocal=l.vocalspace*4/3),l.wordsspace!==void 0&&(this.spacing.words=l.wordsspace*4/3)},g.prototype.calcY=function(l){return this.y-l*A.STEP},g.prototype.yToPitch=function(l){return l/A.STEP},g.prototype.moveY=function(l,a){a===void 0&&(a=1),this.y+=l*a},g.prototype.absolutemoveY=function(l){this.y=l},e0=g,e0}var t0,ni;function io(){if(ni)return t0;ni=1;function A(y,g,l,a,o,i){var s=y.text;this.rows=[];var c;g&&this.rows.push({move:g});var v=l.calc("textfont","defined-text");if(s==="")this.rows.push({move:v.attr["font-size"]*2});else if(typeof s=="string"){let h=function(p){return p.replace(/^[ \t]*\n/gm,`X
33
+ `)};this.rows.push({move:v.attr["font-size"]/2}),this.rows.push({left:a,text:s,font:"textfont",klass:"defined-text",anchor:"start",startChar:y.startChar,endChar:y.endChar,absElemType:"freeText",name:"free-text"});var u=h(s);c=i.calc(u,"textfont","defined-text"),this.rows.push({move:c.height})}else if(s){for(var f=0,n=a,t="textfont",r=0;r<s.length;r++)s[r].font?t=s[r].font:t="textfont",this.rows.push({left:n,text:s[r].text,font:t,klass:"defined-text",anchor:"start",startChar:y.startChar,endChar:y.endChar,absElemType:"freeText",name:"free-text"}),c=i.calc(s[r].text,l.calc(t,"defined-text").font,"defined-text"),n+=c.width+c.height/2,f=Math.max(f,c.height);this.rows.push({move:f})}else if(y.length===1){var e=o/2;this.rows.push({left:e,text:y[0].text,font:"textfont",klass:"defined-text",anchor:"middle",startChar:y.startChar,endChar:y.endChar,absElemType:"freeText",name:"free-text"}),c=i.calc(y[0].text,"textfont","defined-text"),this.rows.push({move:c.height})}}return t0=A,t0}var r0,si;function no(){if(si)return r0;si=1;function A(y,g,l){this.rows=[],y&&this.rows.push({move:y}),this.rows.push({separator:g,absElemType:"separator"}),l&&this.rows.push({move:l})}return r0=A,r0}var a0,oi;function so(){if(oi)return a0;oi=1;function A(y,g,l,a,o,i){this.rows=[],y&&this.rows.push({move:y});var s=g.titleleft?"start":"middle",c=g.titleleft?o:a;this.rows.push({left:c,text:l.text,font:"subtitlefont",klass:"text subtitle",anchor:s,startChar:l.startChar,endChar:l.endChar,absElemType:"subtitle",name:"subtitle"});var v=i.calc(l.text,"subtitlefont","text subtitle");this.rows.push({move:v.height})}return a0=A,a0}var i0,ci;function Dr(){if(ci)return i0;ci=1;function A(y,g,l){if(g.text){g.marginLeft||(g.marginLeft=0),g.klass||(g.klass=""),g.anchor||(g.anchor="start"),g.info||(g.info={startChar:-2,endChar:-2}),g.marginTop&&y.push({move:g.marginTop});var a={left:g.marginLeft,text:g.text,font:g.font,anchor:g.anchor,startChar:g.info.startChar,endChar:g.info.endChar,"dominant-baseline":g["dominant-baseline"]};g.absElemType&&(a.absElemType=g.absElemType),!g.inGroup&&g.klass&&(a.klass=g.klass),g.name&&(a.name=g.name),y.push(a);var o=l.calc("A",g.font,g.klass),i=g.text.split(`
34
+ `).length;if(g.text[g.text.length-1]===`
35
+ `&&i--,!g.noMove){var s=o.height*1.1*i;y.push({move:Math.round(s)}),g.marginBottom&&y.push({move:g.marginBottom})}}}return i0=A,i0}var n0,li;function Jn(){if(li)return n0;li=1;const A=Dr();function y(g,l,a,o,i,s,c,v){var u=v.calc("i",a,o);if(l==="")g.push({move:u.height});else{if(typeof l=="string"){A(g,{marginLeft:s,text:l,font:a,klass:o,marginTop:c.marginTop,anchor:c.anchor,absElemType:c.absElemType,info:c.info,name:i},v);return}c.marginTop&&g.push({move:c.marginTop});var f=0,n={left:s,anchor:c.anchor,phrases:[]};o&&(n.klass=o),g.push(n);for(var t=0;t<l.length;t++){var r=l[t],e=r.font?r.font:v.attr(a,o).font,h={content:r.text};e&&(h.attrs={"font-family":v.getFamily(e.face),"font-size":e.size,"font-weight":e.weight,"font-style":e.style,"font-decoration":e.decoration}),n.phrases.push(h);var p=v.calc(r.text,e,o);f=Math.max(f,p.height),r.text[r.text.length-1]===" "&&u.width}g.push({move:f})}}return n0=y,n0}var s0,fi;function oo(){if(fi)return s0;fi=1;const A=Dr(),y=Jn();function g(l,a,o,i,s,c,v,u,f,n){if(this.rows=[],l.header&&c){var t=n.calc("X","headerfont","abcjs-header abcjs-meta-top").height;A(this.rows,{marginLeft:v,text:l.header.left,font:"headerfont",klass:"header meta-top",marginTop:-t,info:a.header,name:"header"},n),A(this.rows,{marginLeft:v+s/2,text:l.header.center,font:"headerfont",klass:"header meta-top",marginTop:-t,anchor:"middle",info:a.header,name:"header"},n),A(this.rows,{marginLeft:v+s,text:l.header.right,font:"headerfont",klass:"header meta-top",marginTop:-t,anchor:"end",info:a.header,name:"header"},n)}c&&this.rows.push({move:u.top});var r=o.titleleft?"start":"middle",e=o.titleleft?v:v+s/2;if(l.title){var h=f?"abcjs-title":"";y(this.rows,l.title,"titlefont",h,"title",e,{marginTop:u.title,anchor:r,absElemType:"title",info:a.title},n)}if(i.length)for(var p=0;p<i.length&&i[p].subtitle;){var h=f?"abcjs-text abcjs-subtitle":"";y(this.rows,i[p].subtitle.text,"subtitlefont",h,"subtitle",e,{marginTop:u.subtitle,anchor:r,absElemType:"subtitle",info:i[p].subtitle},n),p++}if(l.rhythm||l.origin||l.composer){if(this.rows.push({move:u.composer}),l.rhythm&&l.rhythm.length>0){var d=!!(l.composer||l.origin),h=f?"abcjs-rhythm":"";A(this.rows,{marginLeft:v,text:l.rhythm,font:"infofont",klass:h,absElemType:"rhythm",noMove:d,info:a.rhythm,name:"rhythm"},n)}l.composer&&l.composer,l.origin&&l.origin;var m=l.composer?l.composer:"";if(l.origin&&(typeof m=="string"&&typeof l.origin=="string"?m+=" ("+l.origin+")":typeof m=="string"&&typeof l.origin!="string"?(m=[{text:m}],m.push({text:" ("}),m=m.concat(l.origin),m.push({text:")"})):(m.push({text:" ("}),m=m.concat(l.origin),m.push({text:")"}))),m){var h=f?"abcjs-composer":"";y(this.rows,m,"composerfont",h,"composer",v+s,{anchor:"end",absElemType:"composer",info:a.composer,ingroup:!0},n)}}if(l.author&&l.author.length>0){var h=f?"abcjs-author":"";y(this.rows,l.author,"composerfont",h,"author",v+s,{anchor:"end",absElemType:"author",info:a.author},n)}if(l.partOrder&&l.partOrder.length>0){var h=f?"abcjs-part-order":"";y(this.rows,l.partOrder,"partsfont",h,"part-order",v,{absElemType:"partOrder",info:a.partOrder,anchor:"start"},n)}}return s0=g,s0}var o0,hi;function co(){if(hi)return o0;hi=1;const A=Dr(),y=Jn();function g(o,i,s,c,v,u,f){this.rows=[],o.unalignedWords&&o.unalignedWords.length>0&&this.unalignedWords(o.unalignedWords,c,v,u,f),this.extraText(o,c,v,u,f),o.footer&&s&&this.footer(o.footer,i,c,f)}g.prototype.unalignedWords=function(o,i,s,c,v){var u=c?"abcjs-unaligned-words":"",f="wordsfont",n=v.calc("i",f,u);this.rows.push({move:s.words}),a(this.rows,"",o,i,f,"unalignedWords","unalignedWords",u,"unalignedWords",s,c,v),this.rows.push({move:n.height})};function l(o,i,s,c,v,u,f){s&&(i&&(typeof s=="string"?s=i+s:s=[{text:i}].concat(s)),v=u?"abcjs-extra-text "+v:"",y(o,s,"historyfont",v,"description",c,{absElemType:"extraText",anchor:"start"},f))}function a(o,i,s,c,v,u,f,n,t,r,e,h){if(s){n=e?"abcjs-extra-text "+n:"";var p=h.calc("A",v,n);if(typeof s=="string")i&&(s=i+`
36
+ `+s),A(o,{marginLeft:c,text:s,font:v,absElemType:"extraText",name:t,"dominant-baseline":"middle",klass:n},h);else{o.push({startGroup:f,klass:n,name:t}),o.push({move:r.info}),i&&(A(o,{marginLeft:c,text:i,font:v,absElemType:"extraText",name:t,"dominant-baseline":"middle"},h),o.push({move:p.height*3/4}));for(var d=0;d<s.length;d++)y(o,s[d],v,"",t,c,{anchor:"start"},h),d<s.length-1&&typeof s[d]=="string"&&typeof s[d+1]!="string"&&o.push({move:p.height*3/4});o.push({endGroup:f,absElemType:u,startChar:-1,endChar:-1,name:t}),o.push({move:p.height})}}}return g.prototype.extraText=function(o,i,s,c,v){l(this.rows,"Book: ",o.book,i,"abcjs-book",c,v),l(this.rows,"Source: ",o.source,i,"abcjs-source",c,v),l(this.rows,"Discography: ",o.discography,i,"abcjs-discography",c,v),a(this.rows,"Notes:",o.notes,i,"historyfont","extraText","notes","abcjs-notes","description",s,c,v),l(this.rows,"Transcription: ",o.transcription,i,"abcjs-transcription",c,v),a(this.rows,"History:",o.history,i,"historyfont","extraText","history","abcjs-history","description",s,c,v),l(this.rows,"Copyright: ",o["abc-copyright"],i,"abcjs-copyright",c,v),l(this.rows,"Creator: ",o["abc-creator"],i,"abcjs-creator",c,v),l(this.rows,"Edited By: ",o["abc-edited-by"],i,"abcjs-edited-by",c,v)},g.prototype.footer=function(o,i,s,c){var v="header meta-bottom",u="footerfont";this.rows.push({startGroup:"footer",klass:v}),A(this.rows,{marginLeft:s,text:o.left,font:u,klass:v,name:"footer"},c),A(this.rows,{marginLeft:s+i/2,text:o.center,font:u,klass:v,anchor:"middle",name:"footer"},c),A(this.rows,{marginLeft:s+i,text:o.right,font:u,klass:v,anchor:"end",name:"footer"},c)},o0=g,o0}var c0,ui;function Zn(){if(ui)return c0;ui=1;function A(g,l,a,o){if(g.indexOf(l)===0){var i=g.replace(l,""),s=parseInt(i,10);""+s===i&&(a[o]=s)}}function y(g,l){var a=[];if(g.absEl.elemset){for(var o={},i=0;i<g.absEl.elemset.length;i++){var s=g.absEl.elemset[i];if(s)for(var c=s.getAttribute("class").split(" "),v=0;v<c.length;v++)o[c[v]]=!0}for(var u=0;u<Object.keys(o).length;u++)a.push(Object.keys(o)[u])}for(var f={},n=0;n<a.length;n++)A(a[n],"abcjs-v",f,"voice"),A(a[n],"abcjs-l",f,"line"),A(a[n],"abcjs-m",f,"measure");g.staffPos&&(f.staffPos=g.staffPos);for(var t=l.target;t&&t.dataset&&!t.dataset.name&&t.tagName.toLowerCase()!=="svg";)t=t.parentNode;for(var r=l.target;r&&r.dataset&&!r.dataset.index&&r.tagName.toLowerCase()!=="svg";)r=r.parentNode;return r&&r.dataset&&(f.name=r.dataset.name,f.clickedName=t.dataset.name,f.parentClasses=r.classList),t&&t.classList&&(f.clickedClasses=t.classList),f.selectableElement=g.svgEl,{classes:a,analysis:f}}return c0=y,c0}var l0,di;function lo(){if(di)return l0;di=1;var A=Ce(),y=Zn();function g(S,L){if(S.rangeHighlight=m,S.dragging)for(var x=0;x<S.selectables.length;x++){var M=S.selectables[x];M.svgEl.getAttribute("selectable")==="true"&&(M.svgEl.setAttribute("tabindex",0),M.svgEl.setAttribute("data-index",x),M.svgEl.addEventListener("keydown",o.bind(S)),M.svgEl.addEventListener("keyup",i.bind(S)),M.svgEl.addEventListener("focus",a.bind(S)))}for(var N=0;N<L.length;N++)L[N].addEventListener("touchstart",t.bind(S),{passive:!0}),L[N].addEventListener("touchmove",r.bind(S),{passive:!0}),L[N].addEventListener("touchend",e.bind(S),{passive:!0}),L[N].addEventListener("mousedown",t.bind(S)),L[N].addEventListener("mousemove",r.bind(S)),L[N].addEventListener("mouseup",e.bind(S))}function l(S){var L=1,x=1,M=S.target.closest("svg"),N=0;M&&M.viewBox&&M.viewBox.baseVal&&(M.viewBox.baseVal.width!==0&&(L=M.viewBox.baseVal.width/M.clientWidth),M.viewBox.baseVal.height!==0&&(x=M.viewBox.baseVal.height/M.clientHeight),N=M.viewBox.baseVal.y);var F=S.target&&S.target.tagName==="svg",C,_;return F?(C=S.offsetX,_=S.offsetY):(C=S.layerX,_=S.layerY),C=C*L,_=_*x,[C,_+N]}function a(S){this.dragMechanism==="keyboard"&&this.dragYStep!==0&&this.dragTarget&&p.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,S),this.dragYStep=0}function o(S){switch(S.keyCode){case 38:case 40:S.preventDefault()}}function i(S){var L=!1,x=S.target.dataset.index;switch(S.keyCode){case 13:case 32:L=!0,this.dragTarget=this.selectables[x],this.dragIndex=x,this.dragMechanism="keyboard",e.bind(this)(S);break;case 38:L=!0,this.dragTarget=this.selectables[x],this.dragIndex=x,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*A.STEP+")"));break;case 40:L=!0,this.dragTarget=this.selectables[x],this.dragIndex=x,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*A.STEP+")"));break;case 9:this.dragYStep!==0&&e.bind(this)(S);break}L&&S.preventDefault()}function s(S,L){if(!L)return-1;var x=L.dataset;if(!x)return-1;for(var M=x.index,N=0;N<S.length;N++){var F=S[N].svgEl.dataset;if(F&&M===F.index)return N}return-1}function c(S,L,x){for(var M=9999999,N=-1,F=0;F<S.selectables.length&&M>0;F++){var C=S.selectables[F];if(S.getDim(C),C.dim.left<L&&C.dim.right>L&&C.dim.top<x&&C.dim.bottom>x)N=F,M=0;else if(C.dim.top<x&&C.dim.bottom>x){var _=Math.min(Math.abs(C.dim.left-L),Math.abs(C.dim.right-L));_<M&&(M=_,N=F)}else if(C.dim.left<L&&C.dim.right>L){var P=Math.min(Math.abs(C.dim.top-x),Math.abs(C.dim.bottom-x));P<M&&(M=P,N=F)}else{var I=Math.abs(L-C.dim.left)>Math.abs(L-C.dim.right)?Math.abs(L-C.dim.right):Math.abs(L-C.dim.left),q=Math.abs(x-C.dim.top)>Math.abs(x-C.dim.bottom)?Math.abs(x-C.dim.bottom):Math.abs(x-C.dim.top),b=Math.sqrt(I*I+q*q);b<M&&(M=b,N=F)}}return N>=0&&M<=12?N:-1}function v(S,L,x){if(S.x<=L.offsetX&&S.x+S.width>=L.offsetX&&S.y<=L.offsetY&&S.y+S.height>=L.offsetY)return[L.offsetX,L.offsetY];var M=Math.abs(L.layerY/x-L.offsetY);return M<3?[L.offsetX,L.offsetY]:[L.layerX,L.layerY]}function u(S){if(!S)return null;if(S.tagName==="svg")return S;if(!S.getAttribute)return null;for(var L=S.getAttribute("selectable");!L;)S.parentElement?(S=S.parentElement,S.tagName==="svg"?L=!0:L=S.getAttribute("selectable")):L=!0;return S}function f(S,L){var x,M,N,F=s(S.selectables,u(L.target));return F>=0?(N=v(S.selectables[F].svgEl.getBBox(),L,S.scale),x=N[0],M=N[1]):(N=l(L),x=N[0],M=N[1],F=c(S,x,M)),{x,y:M,clickedOn:F}}function n(S){if(!(!S||!S.target||!S.touches||S.touches.length<1)){var L=S.target.getBoundingClientRect(),x=S.touches[0].pageX-L.left,M=S.touches[0].pageY-L.top;S.touches[0].offsetX=x,S.touches[0].offsetY=M,S.touches[0].layerX=S.touches[0].pageX,S.touches[0].layerY=S.touches[0].pageY}}function t(S){var L=S;S.type==="touchstart"&&(n(S),S.touches.length>0&&(L=S.touches[0]));var x=f(this,L);x.clickedOn>=0&&(S.type==="touchstart"||S.button===0)&&this.selectables[x.clickedOn]&&(this.dragTarget=this.selectables[x.clickedOn],this.dragIndex=x.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:x.x,y:x.y},this.dragging&&this.dragTarget.isDraggable&&(D(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function r(S){var L=S;if(S.type==="touchmove"&&(n(S),S.touches.length>0&&(L=S.touches[0])),this.lastTouchMove=S,!(!this.dragTarget||!this.dragging||!this.dragTarget.isDraggable||this.dragMechanism!=="mouse"||!this.dragMouseStart)){var x=f(this,L),M=Math.round((x.y-this.dragMouseStart.y)/A.STEP);M!==this.dragYStep&&(this.dragYStep=M,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+M*A.STEP+")"))}}function e(S){var L=S;S.type==="touchend"&&this.lastTouchMove&&(n(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(L=this.lastTouchMove.touches[0])),this.dragTarget&&(d.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),p.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,L),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),B(this.renderer.svg,"abcjs-dragging-in-progress"))}function h(S){S>=0&&S<this.selectables.length&&(this.dragTarget=this.selectables[S],this.dragIndex=S,this.dragMechanism="keyboard",e.bind(this)({target:this.dragTarget.svgEl}))}function p(S,L,x,M,N){for(var F=y(S,N),C=F.classes,_=F.analysis,P=0;P<this.listeners.length;P++)this.listeners[P](S.absEl.abcelem,S.absEl.tuneNumber,C.join(" "),_,{step:L,max:x,index:M,setSelection:h.bind(this)},N)}function d(){for(var S=0;S<this.selected.length;S++)this.selected[S].unhighlight(void 0,this.renderer.foregroundColor);this.selected=[]}function m(S,L){d.bind(this)();for(var x=0;x<this.staffgroups.length;x++)for(var M=this.staffgroups[x].voices,N=0;N<M.length;N++)for(var F=M[N].children,C=0;C<F.length;C++){var _=F[C].abcelem.startChar,P=F[C].abcelem.endChar;(L>_&&S<P||L===S&&L===P)&&(this.selected[this.selected.length]=F[C],F[C].highlight(void 0,this.selectionColor))}}function w(S){var L=S.getAttribute("class");L||(L="");for(var x=L.split(" "),M={},N=0;N<x.length;N++)M[x[N]]=!0;return M}function T(S,L){var x=[];for(var M in L)L.hasOwnProperty(M)&&x.push(M);S.setAttribute("class",x.join(" "))}function D(S,L){if(S){var x=w(S.svg);x[L]=!0,T(S.svg,x)}}function B(S,L){if(S){var x=w(S.svg);delete x[L],T(S.svg,x)}}return l0=g,l0}var f0,vi;function Ir(){if(vi)return f0;vi=1;function A(y,g,l,a,o){return g+(a-g)/(l-y)*(o-y)}return f0=A,f0}var h0,pi;function fo(){if(pi)return h0;pi=1;var A=Te(),y=Ce(),g=Ir(),l=function(r){if(!(r.elems.length===0||r.allrests)){var e=s(r.stemsUp,r.isgrace),h=r.elems[0],p=r.elems[r.elems.length-1],d=0,m=r.stemsUp?h.abcelem.maxpitch:h.abcelem.minpitch;d=o(h,r.stemsUp,m,d),d=o(p,r.stemsUp,m,d),d=Math.max(r.stemHeight,d+3);var w=v(r.average,r.elems.length,d,r.stemsUp,h.abcelem.averagepitch,p.abcelem.averagepitch,r.isflat,r.min,r.max,r.isgrace),T=c(r.stemsUp,h,p);r.addBeam({startX:T[0],endX:T[1],startY:w[0],endY:w[1],dy:e});for(var D=t(r.elems,r.stemsUp,r.beams[0],r.isgrace,e),B=0;B<D.length;B++)r.addBeam(D[B]);u(r.elems,r.stemsUp,r.beams[0],e,r.mainNote)}},a=function(r){return r===void 0?0:Math.floor(Math.log(r)/Math.log(2))};function o(r,e,h,p){if(!r.children)return p;for(var d=0;d<r.children.length;d++){var m=r.children[d];e&&m.top!==void 0&&m.c==="flags.ugrace"?p=Math.max(p,m.top-h):!e&&m.bottom!==void 0&&m.c==="flags.ugrace"&&(p=Math.max(p,h-m.bottom+7))}return p}function i(r,e,h,p){if(p)return 0;var d=r-e,m=h/2;return d>m&&(d=m),d<-m&&(d=-m),d}function s(r,e){var h=r?y.STEP:-y.STEP;return e&&(h=h*.4),h}function c(r,e,h){var p=e.heads[r?0:e.heads.length-1],d=h.heads[r?0:h.heads.length-1],m=p.x;r&&(m+=p.w-.6);var w=d.x;return w+=r?d.w:.6,[m,w]}function v(r,e,h,p,d,m,w,T,D,B){var S=h-2,L=h-2,x=Math.round(p?Math.max(r+S,D+L):Math.min(r-S,T-L)),M=i(d,m,e,w),N=x+Math.floor(M/2),F=x+Math.floor(-M/2);return B||(p&&x<6||!p&&x>6)&&(N=6,F=6),[N,F]}function u(r,e,h,p,d){for(var m=0;m<r.length;m++){var w=r[m];if(!w.abcelem.rest){var T=!w.addExtra,D=T?d:w,B=w.heads[e?0:w.heads.length-1],S=1/5,L=B.pitch+(e?S:-S),x=e?B.w:0;T||(x+=B.dx);var M=B.x+x,N=g(h.startX,h.startY,h.endX,h.endY,M),F=e?-.6:.6;e||(N-=p/2/y.STEP),T&&(x+=w.heads[0].dx),B.c==="noteheads.slash.quarter"&&(e?L+=1:L-=1);var C=new A(null,x,0,L,{type:"stem",pitch2:N,linewidth:F});C.setX(D.x),D.addRight(C)}}}function f(r,e){for(var h=e+1;h<r.length;h++)if(!r[h].abcelem.rest)return h;return-1}function n(r,e){for(var h=e-1;h>=0;h--)if(!r[h].abcelem.rest)return h;return-1}function t(r,e,h,p,d){for(var m=[],w=[],T=0;T<r.length;T++){var D=r[T];if(!D.abcelem.rest){var B=D.heads[e?0:D.heads.length-1],S=B.x+(e?B.w:0),L=g(h.startX,h.startY,h.endX,h.endY,S),x=e?-1.5:1.5;p&&(x=x*2/3);var M=D.abcelem.duration;M===0&&(M=.25);for(var N=a(M);N<-3;N++){var F=-4-N;if(w[F]?w[F].single=!1:w[F]={x:S+(e?-.6:0),y:L+x*(F+1),durlog:N,single:!0},T>0&&D.abcelem.beambr&&D.abcelem.beambr<=F+1){w[F].split||(w[F].split=[w[F].x]);var C=c(e,r[T-1],D);w[F].split[w[F].split.length-1]>=C[0]&&(C[0]+=D.w),w[F].split.push(C[0]),w[F].split.push(C[1])}}for(var _=w.length-1;_>=0;_--){var P=f(r,T),I=P===-1||P<r.length&&a(r[P].abcelem.duration)>-_-4;if(I){var q=S,b=L+x*(_+1);if(w[_].single){var k=n(r,T),E=k===-1,R=P===-1;if(E)q=S+5;else if(R)q=S-5;else{var O=r[k].abcelem.duration,G=r[P].abcelem.duration;O===G?q=T%2===0?S+5:S-5:q=O<G?S+5:S-5}b=g(h.startX,h.startY,h.endX,h.endY,q)+x*(_+1)}var H={startX:w[_].x,endX:q,startY:w[_].y,endY:b,dy:d};if(w[_].split!==void 0){var X=w[_].split;H.endX<=X[X.length-1]&&(X[X.length-1]-=D.w),X.push(H.endX),H.split=w[_].split}m.push(H),w=w.slice(0,_)}}}}return m}return h0=l,h0}var u0,gi;function ho(){if(gi)return u0;gi=1;var A=Ir();function y(i){if(i.anchor1&&i.anchor2){i.hasBeam=!!i.anchor1.parent.beam&&i.anchor1.parent.beam===i.anchor2.parent.beam;var s=i.anchor1.parent.beam;if(i.hasBeam&&(s.elems[0]!==i.anchor1.parent||s.elems[s.elems.length-1]!==i.anchor2.parent)&&(i.hasBeam=!1),i.hasBeam){var c=g(s)?i.anchor1.x+i.anchor1.w:i.anchor1.x;i.yTextPos=a(c,i.anchor2.x,s),i.yTextPos+=g(s)?3:-2,i.xTextPos=o(c,i.anchor2.x),i.top=i.yTextPos+1,i.bottom=i.yTextPos-2,g(s)&&(i.endingHeightAbove=4)}else{var v=l(i);if(i.up=v,i.startNote=v?Math.max(i.anchor1.parent.top,9)+4:Math.min(i.anchor1.parent.bottom,0)-2,i.endNote=v?Math.max(i.anchor2.parent.top,9)+4:Math.min(i.anchor2.parent.bottom,0)-2,i.anchor1.parent.type==="rest"&&i.anchor2.parent.type!=="rest"?i.startNote=i.endNote:i.anchor2.parent.type==="rest"&&i.anchor1.parent.type!=="rest"&&(i.endNote=i.startNote),v){for(var u=0,f=0;f<i.middleElems.length;f++)u=Math.max(u,i.middleElems[f].top);u+=4,(u>i.startNote||u>i.endNote)&&(i.startNote=u+3,i.endNote=u+3)}else{for(var n=0,f=0;f<i.middleElems.length;f++)n=Math.min(n,i.middleElems[f].bottom-i.middleElems[f].height);n-=3,n<i.startNote&&n<i.endNote&&(i.startNote=Math.min(n,i.startNote)-2,i.endNote=Math.min(n,i.endNote)-2)}i.flatBeams&&(v?(i.startNote=Math.max(i.startNote,i.endNote),i.endNote=Math.max(i.startNote,i.endNote)):(i.startNote=Math.min(i.startNote,i.endNote),i.endNote=Math.min(i.startNote,i.endNote))),i.yTextPos=i.startNote+(i.endNote-i.startNote)/2,i.xTextPos=i.anchor1.x+(i.anchor2.x+i.anchor2.w-i.anchor1.x)/2,i.top=i.yTextPos+1,i.bottom=i.yTextPos-2}}delete i.middleElems,delete i.flatBeams}function g(i){return i.stemsUp}function l(i){var s=0,c=0;if(i.anchor1&&(i.anchor1.stemDir==="up"&&s++,i.anchor1.stemDir==="down"&&c++),i.anchor2&&(i.anchor2.stemDir==="up"&&s++,i.anchor2.stemDir==="down"&&c++),i.middleElems)for(var v=0;v<i.middleElems.length;v++){var u=i.middleElems[v];u.stemDir==="up"&&s++,u.stemDir==="down"&&c++}return s>=c}function a(i,s,c){if(c.beams.length===0)return 0;c=c.beams[0];var v=i+(s-i)/2;return A(c.startX,c.startY,c.endX,c.endY,v)}function o(i,s){return i+(s-i)/2}return u0=y,u0}var d0,bi;function uo(){if(bi)return d0;bi=1;var A=fo(),y=Ir(),g=ho(),l=function(u){for(var f=0;f<u.beams.length;f++)if(u.beams[f].type==="BeamElem"){A(u.beams[f]),a(u.beams[f]);for(var n=0;n<u.beams[f].elems.length;n++)u.adjustRange(u.beams[f].elems[n])}for(u.staff.specialY.chordLines=i(u.children),f=0;f<u.otherchildren.length;f++){var t=u.otherchildren[f];t.type==="TripletElem"&&(g(t),u.adjustRange(t))}u.staff.top=Math.max(u.staff.top,u.top),u.staff.bottom=Math.min(u.staff.bottom,u.bottom)};function a(u){for(var f=1.5,n=0;n<u.elems.length;n++){var t=u.elems[n];if(t.top)for(var r=v(t,u),e=0;e<t.children.length;e++){var h=t.children[e];if(h.klass==="ornament"&&h.position!=="below"&&h.bottom-f<r){var p=r-h.bottom+f;h.bottom+=p,h.top+=p,h.pitch+=p,r=t.top=h.top}}}}function o(u,f){var n=f.getChordDim();if(n){for(var t=0;t<u.length;t++){var r=u[t]<n.left;if(r){t>0&&f.putChordInLane(t),u[t]=n.right;return}}u.push(n.right),f.putChordInLane(u.length-1)}}function i(u){var f=[0],n=[0],t,r,e;for(t=0;t<u.length;t++){for(r=0;r<u[t].children.length;r++)e=u[t].children[r],e.chordHeightAbove&&o(f,e);for(r=u[t].children.length-1;r>=0;r--)e=u[t].children[r],e.chordHeightBelow&&o(n,e)}return(f.length>1||n.length>1)&&c(u,f.length,n.length),{above:f.length,below:n.length}}function s(u){for(var f=0,n=0;n<u.children.length;n++){var t=u.children[n];t.chordHeightBelow&&f++}return f}function c(u,f,n){for(var t=0;t<u.length;t++){s(u[t]);for(var r=0;r<u[t].children.length;r++){var e=u[t].children[r];e.chordHeightAbove&&e.invertLane(f)}}}function v(u,f){return f=f.beams[0],y(f.startX,f.startY,f.endX,f.endY,u.x)}return d0=l,d0}var v0,mi;function vo(){if(mi)return v0;mi=1;var A=Ce(),y=function(f,n){for(var t,r=0;r<n.staffs.length;r++){var e=n.staffs[r],h={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};if(f.showDebug&&f.showDebug.indexOf("box")>=0&&(e.originalTop=e.top,e.originalBottom=e.bottom),l(e,h,"lyricHeightAbove"),l(e,h,"chordHeightAbove",e.specialY.chordLines.above),e.specialY.endingHeightAbove&&(e.specialY.chordHeightAbove?e.top+=2:e.top+=e.specialY.endingHeightAbove+g,h.endingHeightAbove=e.top),e.specialY.dynamicHeightAbove&&e.specialY.volumeHeightAbove?(e.top+=Math.max(e.specialY.dynamicHeightAbove,e.specialY.volumeHeightAbove)+g,h.dynamicHeightAbove=e.top,h.volumeHeightAbove=e.top):(l(e,h,"dynamicHeightAbove"),l(e,h,"volumeHeightAbove")),l(e,h,"partHeightAbove"),l(e,h,"tempoHeightAbove"),e.specialY.lyricHeightBelow&&(e.specialY.lyricHeightBelow+=f.spacing.vocal/A.STEP,h.lyricHeightBelow=e.bottom,e.bottom-=e.specialY.lyricHeightBelow+g),e.specialY.chordHeightBelow){h.chordHeightBelow=e.bottom;var p=e.specialY.chordHeightBelow;e.specialY.chordLines.below&&(p*=e.specialY.chordLines.below),e.bottom-=p+g}e.specialY.volumeHeightBelow&&e.specialY.dynamicHeightBelow?(h.volumeHeightBelow=e.bottom,h.dynamicHeightBelow=e.bottom,e.bottom-=Math.max(e.specialY.volumeHeightBelow,e.specialY.dynamicHeightBelow)+g):e.specialY.volumeHeightBelow?(h.volumeHeightBelow=e.bottom,e.bottom-=e.specialY.volumeHeightBelow+g):e.specialY.dynamicHeightBelow&&(h.dynamicHeightBelow=e.bottom,e.bottom-=e.specialY.dynamicHeightBelow+g),f.showDebug&&f.showDebug.indexOf("box")>=0&&(e.positionY=h);for(var d=0;d<e.voices.length;d++){var m=n.voices[e.voices[d]],w=a(h,m,f.spacing);e.bottom-=w}if(t!==void 0){var T=e.top-10,D=t+T,B=f.spacing.systemStaffSeparation/A.STEP,S=B-D;S>0&&(e.top+=S)}e.top+=f.spacing.staffTopMargin/A.STEP,t=2-e.bottom}},g=1;function l(f,n,t,r){if(f.specialY[t]){var e=f.specialY[t];r&&(e*=r),f.top+=e+g,n[t]=f.top}}function a(f,n,t){var r,e,h=0;for(r=0;r<n.children.length;r++){e=n.children[r];var p=o(f,e,t);p<e.bottom&&(h=e.bottom-p,e.bottom=p,n.bottom=p)}for(r=0;r<n.otherchildren.length;r++)switch(e=n.otherchildren[r],e.type){case"CrescendoElem":i(f,e);break;case"DynamicDecoration":s(f,e);break;case"EndingElem":c(f,e);break;case"TieElem":var d=e.getYBounds();n.staff.top=Math.max(n.staff.top,d[0]),n.staff.top=Math.max(n.staff.top,d[1]),n.staff.bottom=Math.min(n.staff.bottom,d[0]),n.staff.bottom=Math.min(n.staff.bottom,d[1]);break}return h}function o(f,n,t){for(var r=n.bottom,e=0;e<n.children.length;e++){var h=n.children[e];for(var p in n.specialY)n.specialY.hasOwnProperty(p)&&h[p]&&(h.pitch=f[p],p==="lyricHeightBelow"&&h.type==="lyric"&&h.voiceNumber&&(h.pitch-=h.voiceNumber*h[p],r=Math.min(n.bottom,h.pitch)),h.top===void 0&&(h.type==="TempoElement"?v(f,h):u(f,h,t),n.pushTop(h.top),n.pushBottom(h.bottom)))}return r}function i(f,n){n.dynamicHeightAbove?n.pitch=f.dynamicHeightAbove:n.pitch=f.dynamicHeightBelow}function s(f,n){n.volumeHeightAbove?n.pitch=f.volumeHeightAbove:n.pitch=f.volumeHeightBelow}function c(f,n){n.pitch=f.endingHeightAbove-2}function v(f,n){if(n.pitch=f.tempoHeightAbove,n.top=f.tempoHeightAbove,n.bottom=f.tempoHeightAbove,n.note){var t=n.pitch-n.totalHeightInPitches+1;n.note.top=t,n.note.bottom=t;for(var r=0;r<n.note.children.length;r++){var e=n.note.children[r];e.top+=t,e.bottom+=t,e.pitch+=t,e.pitch2!==void 0&&(e.pitch2+=t)}}}function u(f,n,t){switch(n.type){case"part":n.top=f.partHeightAbove+n.height,n.bottom=f.partHeightAbove;break;case"text":case"chord":n.chordHeightAbove?(n.top=f.chordHeightAbove,n.bottom=f.chordHeightAbove):(n.top=f.chordHeightBelow,n.bottom=f.chordHeightBelow);break;case"lyric":n.lyricHeightAbove?(n.top=f.lyricHeightAbove,n.bottom=f.lyricHeightAbove):(n.top=f.lyricHeightBelow+t.vocal/A.STEP,n.bottom=f.lyricHeightBelow+t.vocal/A.STEP,n.pitch-=t.vocal/A.STEP);break;case"debug":n.top=f.chordHeightAbove,n.bottom=f.chordHeightAbove;break}(n.pitch===void 0||n.top===void 0)&&console.error("RelativeElement position not set.",n.type,n.pitch,n.top,f)}return v0=y,v0}var p0,yi;function po(){if(yi)return p0;yi=1;var A=function(){};A.beginLayout=function(l,a){a.i=0,a.durationindex=0,a.startx=l,a.minx=l,a.nextx=l,a.spacingduration=0},A.layoutEnded=function(l){return l.i>=l.children.length},A.getNextX=function(l){return Math.max(l.minx,l.nextx)},A.getSpacingUnits=function(l){return Math.sqrt(l.spacingduration*8)},A.layoutOneItem=function(l,a,o,i,s){var c=o.children[o.i];if(!c)return 0;var v=l-o.minx,u=o.durationindex+c.duration>0?i:0;if(c.abcelem.el_type==="note"&&!c.abcelem.rest&&o.voicenumber!==0&&s){var f=s.children[s.i],n=f&&(c.abcelem.maxpitch<=f.abcelem.maxpitch+1&&c.abcelem.maxpitch>=f.abcelem.minpitch-1||c.abcelem.minpitch<=f.abcelem.maxpitch+1&&c.abcelem.minpitch>=f.abcelem.minpitch-1);if(n&&c.abcelem.minpitch===f.abcelem.minpitch&&c.abcelem.maxpitch===f.abcelem.maxpitch&&f.heads&&f.heads.length>0&&c.heads&&c.heads.length>0&&f.heads[0].c===c.heads[0].c&&(n=!1),n){var t=f.heads&&f.heads.length>0?f.heads[0].realWidth:f.fixed.w;c.adjustedWidth||(c.adjustedWidth=t+c.w),c.w=c.adjustedWidth;for(var r=0;r<c.children.length;r++){var e=c.children[r];e.name.indexOf("accidental")<0&&(e.adjustedWidth||(e.adjustedWidth=e.dx+t),e.dx=e.adjustedWidth)}}}var h=y(c,u);return v<h&&(o.i===0||c.type!=="bar"||o.children[o.i-1].type!=="part"&&o.children[o.i-1].type!=="tempo")&&(l+=h-v),c.setX(l),o.spacingduration=c.duration,o.minx=l+g(c),o.i!==o.children.length-1&&(o.minx+=c.minspacing),this.updateNextX(l,a,o),l},A.shiftRight=function(l,a){var o=a.children[a.i];o&&(o.setX(o.x+l),a.minx+=l,a.nextx+=l)},A.updateNextX=function(l,a,o){o.nextx=l+a*this.getSpacingUnits(o)},A.updateIndices=function(l){this.layoutEnded(l)||(l.durationindex+=l.children[l.i].duration,l.children[l.i].type==="bar"&&(l.durationindex=Math.round(l.durationindex*64)/64),l.i++)};function y(l,a){var o=0;return(l.type==="note"||l.type==="bar")&&(o=a),-l.extraw+o}function g(l){return l.w}return p0=A,p0}var g0,wi;function go(){if(wi)return g0;wi=1;var A=po();function y(i){for(var s=0,c=0;c<i.length;c++){var v=i[c];if(v.children.length>0){var u=v.children.length-1,f=v.children[u];if(f.abcelem.el_type==="bar"){var n=f.children[0].x;n>s?s=n:f.children[0].x=s}}}}var g=function(i,s,c,v,u){var f=1e-7,n=0,t=1e3,r=u;v.startx=r;var e,h=0;for(c&&console.log("init layout",i),e=0;e<v.voices.length;e++)A.beginLayout(r,v.voices[e]);for(var p=0;!l(v.voices);){for(h=null,e=0;e<v.voices.length;e++)!A.layoutEnded(v.voices[e])&&(!h||a(v.voices[e])<h)&&(h=a(v.voices[e]));var d=[],m=[];for(e=0;e<v.voices.length;e++){var w=a(v.voices[e]);w-h>f?m.push(v.voices[e]):d.push(v.voices[e])}p=0;var T=0;for(e=0;e<d.length;e++)A.getNextX(d[e])>r&&(r=A.getNextX(d[e]),p=A.getSpacingUnits(d[e]),T=d[e].spacingduration);n+=p,t=Math.min(t,p),c&&console.log("currentduration: ",h,n,t);var D=void 0;for(e=0;e<d.length;e++){var B=d[e];B.voicenumber===0&&(D=e);var S=D!==void 0&&d[D].voicenumber!==B.voicenumber?d[D]:void 0;o(B,S)||(S=void 0);var L=A.layoutOneItem(r,i,B,s,S),x=L-r;if(x>0){r=L;for(var M=0;M<e;M++)A.shiftRight(x,d[M])}}for(e=0;e<m.length;e++)m[e].spacingduration-=T,A.updateNextX(r,i,m[e]);for(e=0;e<d.length;e++){var N=d[e];A.updateIndices(N)}}for(e=0;e<v.voices.length;e++)A.getNextX(v.voices[e])>r&&(r=A.getNextX(v.voices[e]),p=A.getSpacingUnits(v.voices[e]));return y(v.voices),n+=p,v.setWidth(r),{spacingUnits:n,minSpace:t}};function l(i){for(var s=0;s<i.length;s++)if(!A.layoutEnded(i[s]))return!1;return!0}function a(i){return i.durationindex-(i.children[i.i]&&i.children[i.i].duration>0?0:5e-7)}function o(i,s){return!i||!i.staff||!i.staff.voices||i.staff.voices.length===0||!s||!s.staff||!s.staff.voices||s.staff.voices.length===0?!1:i.staff.voices[0]===s.staff.voices[0]}return g0=g,g0}var b0,xi;function es(){if(xi)return b0;xi=1;function A(a,o,i,s,c){var v=a.padding.left,u=0,f,n;for(f=0;f<i.length;f++)i[f].header&&(n=o.calc(i[f].header,"voicefont",""),u=Math.max(u,n.width));if(u=y(u,s,o),u=y(u,c,o),u){var t=o.calc("A","voicefont","");u+=t.width}v+=u;var r=0;return r=g(s,v,r),r=g(c,v,r),v+r}function y(a,o,i){if(o){for(var s=0;s<o.length;s++)if(o[s].header){var c=i.calc(o[s].header,"voicefont","");a=Math.max(a,c.width)}}return a}function g(a,o,i){if(a)for(var s=0;s<a.length;s++)l(o,a[s]),i=Math.max(i,a[s].getWidth());return i}function l(a,o){o.x=a}return b0=A,b0}var m0,Ci;function bo(){if(Ci)return m0;Ci=1;var A=es();function y(l,a,o){var i=A(l,a.getTextSize,a.voices,a.brace,a.bracket),s=g(a,o.minPadding),c=s.totalDuration,v=s.minSpacing,u=v*c;o.minWidth&&(u=Math.max(u,o.minWidth));var f=o.minPadding?o.minPadding/2:2;a.startx=i,a.w=u+i;for(var n=0;n<a.voices.length;n++){var t=a.voices[n];t.startx=i,t.w=u+i;for(var r=i,e=!1,h=0,p=0;p<t.children.length;p++){var d=t.children[p];e||(d.duration!==0?(e=!0,h=(u+i-r)/c,a.gridStart=r):(d.x=r,r+=d.w+d.minspacing)),e&&(o.align==="center"?d.x=r+d.duration*h/2-d.w/2:d.duration===0?d.x=r+1-d.w:d.x=r+f-d.extraw,r+=d.duration*h);for(var m=0;m<d.children.length;m++){var w=d.children[m],T=w.dx?w.dx:0;w.x=d.x+T}}a.gridEnd=r}return u}function g(l,a){for(var o=0,i=0,s=0;s<l.voices.length;s++){for(var c=0,v=l.voices[s],u=0;u<v.children.length;u++){var f=v.children[u];if(c+=f.duration,f.duration){var n=(f.w+a)/f.duration;o=Math.max(o,n)}}i=Math.max(i,c)}return{totalDuration:i,minSpacing:o}}return m0=y,m0}var y0,ki;function mo(){if(ki)return y0;ki=1;function A(y){for(var g=[],l=0;l<y.length;l++){var a=y[l],o=a.staffGroup,i=[];if(o&&o&&o.staffs)for(var s=0;s<o.staffs.length;s++){for(var c=o.staffs[s],v={},u=0;u<c.voices.length;u++)for(var f=o.voices[c.voices[u]],n=0,t=0;t<f.children.length;t++){var r="T"+Math.round(n*1e3);v[r]||(v[r]=[]),f.children[t].abcelem.el_type==="note"&&(v[r].push(f.children[t]),n+=f.children[t].duration)}i.push(v)}g.push(i)}return g}return y0=A,y0}var w0,_i;function yo(){if(_i)return w0;_i=1;var A=uo(),y=vo(),g=go(),l=es(),a=bo(),o=mo(),i=function(t,r,e,h,p,d){var m,w,T=e;for(m=0;m<r.lines.length;m++)if(w=r.lines[m],w.staff){var D;d!==void 0?D=a(t,w.staffGroup,d):D=s(t,T,h,w.staffGroup,r.formatting,m===r.lines.length-1,!1),Math.round(D)>Math.round(T)&&(T=D,p&&(m=-1))}for(m=0;m<r.lines.length;m++)if(w=r.lines[m],w.staffGroup&&w.staffGroup.voices){for(var B=0;B<w.staffGroup.voices.length;B++)A(w.staffGroup.voices[B]);y(t,w.staffGroup)}var S=o(r.lines);for(m=0;m<r.lines.length;m++)w=r.lines[m],w.staffGroup&&u(S[m]);for(m=0;m<r.lines.length;m++)w=r.lines[m],w.staffGroup&&w.staffGroup.setHeight();return T},s=function(t,r,e,h,p,d,m){for(var w=l(t,h.getTextSize,h.voices,h.brace,h.bracket),T=e,D=0;D<8;D++){var B=g(T,t.minPadding,m,h,w);if(T=c(d,p.stretchlast,r+t.padding.left,h.w,T,B.spacingUnits,B.minSpace,t.padding.left+t.padding.right),T===null)break}return v(h.voices),h.w-w};function c(t,r,e,h,p,d,m,w){if(t)if(r===void 0){if(h/e<.66)return null}else{var T=1-(h+w)/e,D=T<r;if(!D)return null}if(Math.abs(e-h)<2)return null;var B=d*p,S=h-B;return d>0?(p=(e-S)/d,p*m>50&&(p=50/m),p):null}function v(t){for(var r=0;r<t.length;r++)for(var e=t[r],h=1;h<e.children.length-1;h++){var p=e.children[h];if(p.abcelem.rest&&(p.abcelem.rest.type==="whole"||p.abcelem.rest.type==="multimeasure")){var d=e.children[h-1],m=e.children[h+1];p.center(d,m)}}}function u(t){for(var r=0;r<t.length;r++)for(var e=t[r],h=Object.keys(e),p=0;p<h.length;p++){var d=e[h[p]],m=d.length-1;if(d.length>1){var w=d[0].abcelem.rest&&d[0].abcelem.rest.type==="rest",T=d[m].abcelem.rest&&d[m].abcelem.rest.type==="rest";if(w&&!d[m].abcelem.rest){var D=d[0].children.find(function(M){return M.name.includes("rest")}),B=f(d[m]);if(D){var S=D.bottom-B;S-=2,S<0&&d[0].children.length>0&&(d[0].bottom-=S,d[0].top-=S,d[0].children[0].bottom-=S,d[0].children[0].top-=S,d[0].children[0].pitch-=S)}}else if(T&&!d[0].abcelem.rest){var L=d[m].children.find(function(M){return M.name.includes("rest")});if(L){var x=L.top-n(d[0]);x+=2,x>0&&d[m].children.length>0&&(d[m].bottom-=x,d[m].top-=x,d[m].children[0].bottom-=x,d[m].children[0].top-=x,d[m].children[0].pitch-=x)}}}}}function f(t){if(t.children){for(var r=-90,e=0;e<t.children.length;e++){var h=t.children[e];h.type!=="chord"&&(r=Math.max(r,h.top))}if(r>-90)return r}return t.top}function n(t){if(t.children){for(var r=90,e=0;e<t.children.length;e++){var h=t.children[e];h.type!=="lyric"&&(r=Math.min(r,h.bottom))}if(r<90)return r}return t.bottom}return w0=i,w0}var x0,Ti;function wo(){if(Ti)return x0;Ti=1;var A=function(g){this.shouldAddClasses=g.shouldAddClasses,this.reset()};return A.prototype.reset=function(){this.lineNumber=null,this.voiceNumber=null,this.measureNumber=null,this.measureTotalPerLine=[],this.noteNumber=null},A.prototype.incrLine=function(){this.lineNumber===null?this.lineNumber=0:this.lineNumber++,this.voiceNumber=null,this.measureNumber=null,this.noteNumber=null},A.prototype.incrVoice=function(){this.voiceNumber===null?this.voiceNumber=0:this.voiceNumber++,this.measureNumber=null,this.noteNumber=null},A.prototype.isInMeasure=function(){return this.measureNumber!==null},A.prototype.newMeasure=function(){this.measureNumber&&(this.measureTotalPerLine[this.lineNumber]=this.measureNumber),this.measureNumber=null,this.noteNumber=null},A.prototype.startMeasure=function(){this.measureNumber=0,this.noteNumber=0},A.prototype.incrMeasure=function(){this.measureNumber++,this.noteNumber=0},A.prototype.incrNote=function(){this.noteNumber++},A.prototype.measureTotal=function(){for(var y=0,g=0;g<this.lineNumber;g++)y+=this.measureTotalPerLine[g]?this.measureTotalPerLine[g]:0;return this.measureNumber&&(y+=this.measureNumber),y},A.prototype.getCurrent=function(y){return{line:this.lineNumber,measure:this.measureNumber,measureTotal:this.measureTotal(),voice:this.voiceNumber,note:this.noteNumber}},A.prototype.generate=function(y){if(!this.shouldAddClasses)return"";var g=[];if(y&&y.length>0&&g.push(y),y==="abcjs-tab-number")return g.join(" ");if(y==="text instrument-name")return"abcjs-text abcjs-instrument-name";if(this.lineNumber!==null&&g.push("l"+this.lineNumber),this.measureNumber!==null&&g.push("m"+this.measureNumber),this.measureNumber!==null&&g.push("mm"+this.measureTotal()),this.voiceNumber!==null&&g.push("v"+this.voiceNumber),y&&(y.indexOf("note")>=0||y.indexOf("rest")>=0||y.indexOf("lyric")>=0)&&this.noteNumber!==null&&g.push("n"+this.noteNumber),g.length>0){g=g.join(" "),g=g.split(" ");for(var l=0;l<g.length;l++)g[l].indexOf("abcjs-")!==0&&g[l].length>0&&(g[l]="abcjs-"+g[l])}return g.join(" ")},x0=A,x0}var C0,Si;function xo(){if(Si)return C0;Si=1;var A=function(g,l){this.formatting=g,this.classes=l};return A.prototype.updateFonts=function(y){y.gchordfont&&(this.formatting.gchordfont=y.gchordfont),y.tripletfont&&(this.formatting.tripletfont=y.tripletfont),y.annotationfont&&(this.formatting.annotationfont=y.annotationfont),y.vocalfont&&(this.formatting.vocalfont=y.vocalfont)},A.prototype.getFamily=function(y){return y[0]==='"'&&y[y.length-1]==='"'?y.substring(1,y.length-1):y},A.prototype.calc=function(y,g){var l;typeof y=="string"?(l=this.formatting[y],l?l={face:l.face,size:Math.round(l.size*4/3),decoration:l.decoration,style:l.style,weight:l.weight,box:l.box}:l={face:"Arial",size:Math.round(48/3),decoration:"underline",style:"normal",weight:"normal"}):l={face:y.face,size:Math.round(y.size*4/3),decoration:y.decoration,style:y.style,weight:y.weight,box:y.box};var a=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;l.padding=l.size*a;var o={"font-size":l.size,"font-style":l.style,"font-family":this.getFamily(l.face),"font-weight":l.weight,"text-decoration":l.decoration,class:this.classes.generate(g)};return{font:l,attr:o}},C0=A,C0}var k0,Ei;function Co(){if(Ei)return k0;Ei=1;var A=function(g,l){this.getFontAndAttr=g,this.svg=l};return A.prototype.updateFonts=function(y){this.getFontAndAttr.updateFonts(y)},A.prototype.attr=function(y,g){return this.getFontAndAttr.calc(y,g)},A.prototype.getFamily=function(y){return y[0]==='"'&&y[y.length-1]==='"'?y.substring(1,y.length-1):y},A.prototype.calc=function(y,g,l,a){var o;typeof g=="string"?o=this.attr(g,l):o={font:{face:g.face,size:g.size,decoration:g.decoration,style:g.style,weight:g.weight},attr:{"font-size":g.size,"font-style":g.style,"font-family":this.getFamily(g.face),"font-weight":g.weight,"text-decoration":g.decoration,class:this.getFontAndAttr.classes.generate(l)}};var i=this.svg.getTextSize(y,o.attr,a);return o.font.box?{height:i.height+o.font.padding*4,width:i.width+o.font.padding*4}:i},A.prototype.baselineToCenter=function(y,g,l,a,o){var i=this.calc(y,g,l).height,s=this.attr(g,l).font.size;return i*.5+(o-a-2)*s},k0=A,k0}var _0,Ai;function qe(){if(Ai)return _0;Ai=1;var A=function(){for(var y=0,g,l=arguments[y++],a=[],o,i,s,c;l;){if(o=/^[^\x25]+/.exec(l))a.push(o[0]);else if(o=/^\x25{2}/.exec(l))a.push("%");else if(o=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(l)){if((g=arguments[o[1]||y++])==null||g==null)throw"Too few arguments.";if(/[^s]/.test(o[7])&&typeof g!="number")throw"Expecting number but found "+typeof g;switch(o[7]){case"b":g=g.toString(2);break;case"c":g=String.fromCharCode(g);break;case"d":g=parseInt(g);break;case"e":g=o[6]?g.toExponential(o[6]):g.toExponential();break;case"f":g=o[6]?parseFloat(g).toFixed(o[6]):parseFloat(g);break;case"o":g=g.toString(8);break;case"s":g=(g=String(g))&&o[6]?g.substring(0,o[6]):g;break;case"u":g=Math.abs(g);break;case"x":g=g.toString(16);break;case"X":g=g.toString(16).toUpperCase();break}g=/[def]/.test(o[7])&&o[2]&&g>0?"+"+g:g,s=o[3]?o[3]=="0"?"0":o[3][1]:" ",c=o[5]-String(g).length,i=o[5]?str_repeat(s,c):"",a.push(o[4]?g+i:i+g)}else throw"Huh ?!";l=l.substring(o[0].length)}return a.join("")};return _0=A,_0}var T0,Mi;function Se(){if(Mi)return T0;Mi=1;function A(y){return parseFloat(y.toFixed(2))}return T0=A,T0}var S0,Bi;function Pe(){if(Bi)return S0;Bi=1;var A=Se();function y(g,l,a){var o=l.y;if(l.phrases){var v=g.paper.richTextLine(l.phrases,l.x,l.y,l.klass,l.anchor);return v}if(l.lane){var i=l.dim.font.size*.25;o+=(l.dim.font.size+i)*l.lane}var s;l.dim?(s=l.dim,s.attr.class=l.klass):s=g.controller.getFontAndAttr.calc(l.type,l.klass),l.anchor&&(s.attr["text-anchor"]=l.anchor),l["dominant-baseline"]&&(s.attr["dominant-baseline"]=l["dominant-baseline"]),s.attr.x=l.x,s.attr.y=o,l.centerVertically||(s.attr.y+=s.font.size),l.type==="debugfont"&&(console.log("Debug msg: "+l.text),s.attr.stroke="#ff0000"),l.cursor&&(s.attr.cursor=l.cursor);var c;l.name==="free-text"?c=l.text.replace(/^[ \t]*\n/gm,`
37
+ `):c=l.text.replace(/\n\n/g,`
38
+
39
+ `),c=c.replace(/^\n/,` 
40
+ `),s.font.box&&(a||g.paper.openGroup({klass:s.attr.class,fill:g.foregroundColor,"data-name":l.name}),s.attr["text-anchor"]==="end"?s.attr.x-=s.font.padding:s.attr["text-anchor"]==="start"&&(s.attr.x+=s.font.padding),s.attr.y+=s.font.padding,delete s.attr.class),l.noClass&&delete s.attr.class,s.attr.x=A(s.attr.x),s.attr.y=A(s.attr.y),l.name&&(s.attr["data-name"]=l.name);var v=g.paper.text(c,s.attr);if(s.font.box){var u=v.getBBox(),f=0;s.attr["text-anchor"]==="middle"?f=u.width/2+s.font.padding:s.attr["text-anchor"]==="end"&&(f=u.width+s.font.padding*2);var n=0;l.centerVertically&&(n=u.height-s.font.padding),g.paper.rect({"data-name":"box",x:Math.round(l.x-f),y:Math.round(o-n),width:Math.round(u.width+s.font.padding*2),height:Math.round(u.height+s.font.padding*2)}),a||(v=g.paper.closeGroup())}return v}return S0=y,S0}var E0,Ni;function ko(){if(Ni)return E0;Ni=1;var A=qe(),y=Ce(),g=Pe();function l(c,v,u){var f=v.startVoice.staff.absoluteY-y.STEP*10;return v.endVoice&&v.endVoice.staff?v.endY=v.endVoice.staff.absoluteY-y.STEP*2:v.lastContinuedVoice&&v.lastContinuedVoice.staff?v.endY=v.lastContinuedVoice.staff.absoluteY-y.STEP*2:v.endY=v.startVoice.staff.absoluteY-y.STEP*2,s(c,v.x,f,v.endY,v.type,v.header,u)}function a(c,v,u,f,n){v+=y.STEP;var t=y.STEP*.75,r=y.STEP*.75,e=f-u,h=A("M %f %f l %f %f l %f %f l %f %f z",v,u-r,0,e+r*2,t,0,0,-(e+r*2)),p=y.STEP*2,d=y.STEP;return h+=A("M %f %f q %f %f %f %f q %f %f %f %f z",v+t,u-r,p*.6,d*.2,p,-d,-p*.1,d*.3,-p,d+y.STEP),h+=A("M %f %f q %f %f %f %f q %f %f %f %f z",v+t,u+r+e,p*.6,-d*.2,p,d,-p*.1,-d*.3,-p,-d-y.STEP),c.paper.path({path:h,stroke:c.foregroundColor,fill:c.foregroundColor,class:c.controller.classes.generate(n),"data-name":n})}function o(c,v,u,f,n){var t=f-u,r=i(v,u,[7.5,-8,21,0,18.5,-10.5,7.5],[0,t/5.5,t/3.14,t/2,t/2.93,t/4.88,0]);return r+=i(v,u,[0,17.5,-7.5,6.6,-5,20,0],[t/2,t/1.46,t/1.22,t,t/1.19,t/1.42,t/2]),c.paper.path({path:r,stroke:c.foregroundColor,fill:c.foregroundColor,class:c.controller.classes.generate(n),"data-name":n})}function i(c,v,u,f){return A("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",c+u[0],v+f[0],c+u[1],v+f[1],c+u[2],v+f[2],c+u[3],v+f[3],c+u[4],v+f[4],c+u[5],v+f[5],c+u[6],v+f[6])}var s=function(c,v,u,f,n,t,r){var e;if(t){c.paper.openGroup({klass:c.controller.classes.generate("staff-extra voice-name"),"data-name":n});var h=u+(f-u)/2;h=h-c.controller.getTextSize.baselineToCenter(t,"voicefont","staff-extra voice-name",0,1),g(c,{x:c.padding.left,y:h,text:t,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return n==="brace"?e=o(c,v,u,f,n):n==="bracket"&&(e=a(c,v,u,f,n)),t&&(e=c.paper.closeGroup()),r.wrapSvgEl({el_type:n,startChar:-1,endChar:-1},e),e};return E0=l,E0}var A0,Pi;function Oe(){if(Pi)return A0;Pi=1;function A(y,g,l){var a=y.paper.path(g);return a}return A0=A,A0}var M0,Li;function _o(){if(Li)return M0;Li=1;var A=qe(),y=Oe(),g=Se();function l(e,h,p){(!h.anchor1||!h.anchor2||!h.anchor1.heads||!h.anchor2.heads||h.anchor1.heads.length===0||h.anchor2.heads.length===0)&&window.console.error("Glissando Element not set.");var d=4,m=e.calcY(h.anchor1.heads[0].pitch),w=e.calcY(h.anchor2.heads[0].pitch),T=h.anchor1.x+h.anchor1.w/2,D=h.anchor2.x+h.anchor2.w/2,B=a(T,m,D,w),S=h.anchor1.w/2+d,L=h.anchor2.w/2+d,x=o(T,m,D,w),M=i(m,x,S);i(w,x,-L);var N=s(B-S-L),F=r(e,T+S,M,N,x);return p.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},F),[F]}function a(e,h,p,d){var m=p-e,w=d-h;return Math.sqrt(m*m+w*w)}function o(e,h,p,d){return(d-h)/(p-e)}function i(e,h,p){return g(e+p*h)}function s(e){var h=5;return Math.max(2,Math.floor((e-h*2)/6))}var c=[[3.5,-4.8]],v=[[1.5,-1],[.3,-.3],[-3.5,3.8]],u=[[-1.5,2]],f=[[3,4],[3,-4]],n=[[-3,4],[-3,-4]];function t(e,h){for(var p="",d=0;d<e.length;d++)p+="l"+e[d][0]+" "+i(e[d][1],h,e[d][0]);return p}var r=function(e,h,p,d,m){var w=A("M %f %f",h,p);w+=t(c,m);var T;for(T=0;T<d;T++)w+=t(f,m);for(w+=t(v,m),T=0;T<d;T++)w+=t(n,m);return w+=t(u,m)+"z",y(e,{path:w,highlight:"stroke",stroke:e.foregroundColor,class:e.controller.classes.generate("decoration"),"data-name":"glissando"})};return M0=l,M0}var B0,qi;function To(){if(qi)return B0;qi=1;var A=qe(),y=Oe(),g=Se();function l(o,i,s){i.pitch===void 0&&window.console.error("Crescendo Element y-coordinate not set.");var c=o.calcY(i.pitch)+4,v=8,u=i.anchor1?i.anchor1.x:0,f=i.anchor2?i.anchor2.x:800,n;return i.dir==="<"?n=a(o,c+v/2,c,c+v/2,c+v,u,f):n=a(o,c,c+v/2,c+v,c+v/2,u,f),s.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},n),[n]}var a=function(o,i,s,c,v,u,f){i=g(i),s=g(s),c=g(c),v=g(v),u=g(u),f=g(f);var n=A("M %f %f L %f %f M %f %f L %f %f",u,i,f,s,u,c,f,v);return y(o,{path:n,highlight:"stroke",stroke:o.foregroundColor,class:o.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})};return B0=l,B0}var N0,Di;function Rr(){if(Di)return N0;Di=1;var A=Se();function y(){this.ingroup=!1}y.prototype.beginGroup=function(l,a){this.paper=l,this.controller=a,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},y.prototype.isInGroup=function(){return this.ingroup},y.prototype.addPath=function(l){if(l=l||[],l.length!==0){l[0][0]="m",l[0][1]=A(l[0][1]-this.lastM[0]),l[0][2]=A(l[0][2]-this.lastM[1]),this.lastM[0]+=l[0][1],this.lastM[1]+=l[0][2],this.path.push(l[0]);for(var a=1,o=l.length;a<o;a++)l[a][0]==="m"&&(this.lastM[0]+=l[a][1],this.lastM[1]+=l[a][2]),this.path.push(l[a])}},y.prototype.endGroup=function(l,a){this.ingroup=!1;for(var o="",i=0;i<this.path.length;i++)o+=this.path[i].join(" ");this.path=[];var s=this.paper.closeGroup();return s&&(s.setAttribute("class",this.controller.classes.generate(l)),s.setAttribute("fill",this.controller.renderer.foregroundColor),s.setAttribute("stroke","none"),s.setAttribute("data-name",a)),s};var g=new y;return N0=g,N0}var P0,Ii;function Fr(){if(Ii)return P0;Ii=1;var A=Pe(),y=Ne(),g=Rr();function l(o,i,s,c,v){var u,f;if(!c)return null;if(c.length>1&&c.indexOf(".")<0){var n=g.isInGroup()?"":v.klass;o.paper.openGroup({"data-name":v.name,klass:n});for(var t=0,r=0;r<c.length;r++){var e=c[r];f=y.getYCorr(e),u=y.printSymbol(i+t,o.calcY(s+f),e,o.paper,{stroke:v.stroke,fill:v.fill}),u?r<c.length-1&&(t+=a(e,c[r+1],y.getSymbolWidth(e))):A(o,{x:i,y:o.y,text:"no symbol:"+c,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}var h=o.paper.closeGroup();return h}else return f=y.getYCorr(c),g.isInGroup()?u=y.printSymbol(i,o.calcY(s+f),c,o.paper,{"data-name":v.name}):u=y.printSymbol(i,o.calcY(s+f),c,o.paper,{klass:v.klass,stroke:v.stroke,fill:v.fill,"data-name":v.name}),u||(A(o,{x:i,y:o.y,text:"no symbol:"+c,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}function a(o,i,s){var c=s;return o==="f"&&i==="f"&&(c=c*2/3),o==="p"&&i==="p"&&(c=c*5/6),o==="f"&&i==="z"&&(c=c*5/8),c}return P0=l,P0}var L0,Ri;function So(){if(Ri)return L0;Ri=1;var A=Fr();function y(g,l,a){l.pitch===void 0&&window.console.error("Dynamic Element y-coordinate not set.");var o=1,i=1,s=A(g,l.anchor.x,l.pitch,l.dec,{scalex:o,scaley:i,klass:g.controller.classes.generate("decoration dynamics"),fill:g.foregroundColor,stroke:"none",name:"dynamics"});return a.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1,decoration:l.dec},s),[s]}return L0=y,L0}var q0,Fi;function Eo(){if(Fi)return q0;Fi=1;var A=qe(),y=Pe(),g=Oe(),l=Se();function a(s,c,v){s.paper.openGroup({klass:s.controller.classes.generate("triplet "+c.durationClass),"data-name":"triplet"}),c.hasBeam||i(s,c.anchor1.x,c.startNote,c.anchor2.x+c.anchor2.w,c.endNote,c.up),y(s,{x:c.xTextPos,y:s.calcY(c.yTextPos-1),text:""+c.number,type:"tripletfont",anchor:"middle",centerVertically:!0,noClass:!0,name:""+c.number},!0);var u=s.paper.closeGroup();return v.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},u),u}function o(s,c,v,u){return A("M %f %f L %f %f",l(s),l(c),l(v),l(u))}function i(s,c,v,u,f,n){v=s.calcY(v),f=s.calcY(f);var t=n?5:-5,r="";r+=o(c,v,c,v+t),r+=o(u,f,u,f+t);var e=c+(u-c)/2,h=8,p=(f-v)/(u-c),d=e-h,m=v+(d-c)*p;r+=o(c,v,d,m);var w=e+h,T=v+(w-c)*p;r+=o(w,T,u,f),g(s,{path:r,stroke:s.foregroundColor,"data-name":"triplet-bracket"})}return q0=a,q0}var D0,Oi;function Ao(){if(Oi)return D0;Oi=1;var A=qe(),y=Pe(),g=Oe(),l=Se();function a(o,i,s,c,v){i.pitch===void 0&&window.console.error("Ending Element y-coordinate not set.");var u=l(o.calcY(i.pitch)),f=20,n="";i.anchor1&&(s=l(i.anchor1.x+i.anchor1.w),n+=A("M %f %f L %f %f ",s,u,s,l(u+f))),i.anchor2&&(c=l(i.anchor2.x),n+=A("M %f %f L %f %f ",c,u,c,l(u+f))),n+=A("M %f %f L %f %f ",s,u,c,u),o.paper.openGroup({klass:o.controller.classes.generate("ending"),fill:o.foregroundColor,"data-name":"ending"}),g(o,{path:n,stroke:o.foregroundColor,fill:o.foregroundColor,"data-name":"line"}),i.anchor1&&y(o,{x:l(s+5),y:l(o.calcY(i.pitch-.5)),text:i.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:i.text});var t=o.paper.closeGroup();return v.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},t),[t]}return D0=a,D0}var I0,Hi;function Mo(){if(Hi)return I0;Hi=1;var A=qe(),y=Se();function g(o,i,s,c,v){l(i,s,c);var u="";i.anchor1?u+="abcjs-start-m"+i.anchor1.parent.counters.measure+"-n"+i.anchor1.parent.counters.note:u+="abcjs-start-edge",i.anchor2?u+=" abcjs-end-m"+i.anchor2.parent.counters.measure+"-n"+i.anchor2.parent.counters.note:u+=" abcjs-end-edge",i.hint&&(u="abcjs-hint");var f=i.fixedY?1.5:0,n=a(o,i.startX,i.endX,i.startY+f,i.endY+f,i.above,u,i.isTie,i.dotted),t=-1;i.anchor1&&!i.isTie&&(t=i.anchor1.parent.abcelem.startChar-1);var r=-1;return i.anchor2&&!i.isTie&&(r=i.anchor2.parent.abcelem.endChar+1),v.wrapSvgEl({el_type:"slur",startChar:t,endChar:r},n),[n]}var l=function(o,i,s){!o.anchor1||!o.anchor2||o.anchor1.pitch===o.anchor2.pitch&&o.internalNotes.length===0?o.isTie=!0:o.isTie=!1,o.isTie?(o.calcTieDirection(),o.calcX(i,s),o.calcTieY()):(o.calcSlurDirection(),o.calcX(i,s),o.calcSlurY()),o.avoidCollisionAbove()},a=function(o,i,s,c,v,u,f,n,t){var r=n?1.2:1.5;i=y(i+6),s=y(s+4),c=c+(u?r:-r),v=v+(u?r:-r);var e=y(o.calcY(c)),h=y(o.calcY(v)),p=s-i,d=h-e,m=Math.sqrt(p*p+d*d),w=p/m,T=d/m,D=m/3.5,B=n?10:25,S=(u?-1:1)*Math.min(B,Math.max(4,D)),L=y(i+D*w-S*T),x=y(e+D*T+S*w),M=y(s-D*w-S*T),N=y(h-D*T+S*w),F=2;f?f+=" slur":f="slur",f+=n?" tie":" legato";var C;if(t){f+=" dotted";var _=A("M %f %f C %f %f %f %f %f %f",i,e,L,x,M,N,s,h);C=o.paper.path({path:_,stroke:o.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:o.controller.classes.generate(f),"data-name":n?"tie":"slur"})}else{var P=A("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",i,e,L,x,M,N,s,h,y(M-F*T),y(N+F*w),y(L-F*T),y(x+F*w),i,e);C=o.paper.path({path:P,stroke:"none",fill:o.foregroundColor,class:o.controller.classes.generate(f),"data-name":n?"tie":"slur"})}return C};return I0=g,I0}var R0,zi;function Bo(){if(zi)return R0;zi=1;var A=Oe(),y=Se();function g(i,s){if(s.beams.length!==0){for(var c="",v=0;v<s.beams.length;v++){var u=s.beams[v];if(u.split){for(var f=a(i,u.startX,u.startY,u.endX,u.endY),n=[],t=0;t<u.split.length;t+=2)n.push([u.split[t],u.split[t+1]]);for(t=0;t<n.length;t++){var r=o(u.startX,u.startY,f,n[t][0]),e=o(u.startX,u.startY,f,n[t][1]);c+=l(i,n[t][0],r,n[t][1],e,u.dy)}}else c+=l(i,u.startX,u.startY,u.endX,u.endY,u.dy)}var h=("abcjs-d"+s.duration).replace(/\./g,"-"),p=i.controller.classes.generate("beam-elem "+h),d=A(i,{path:c,stroke:"none",fill:i.foregroundColor,class:p});return[d]}}function l(i,s,c,v,u,f){c=y(i.calcY(c)),u=y(i.calcY(u)),s=y(s),v=y(v);var n=y(c+f),t=y(u+f);return"M"+s+" "+c+" L"+v+" "+u+"L"+v+" "+t+" L"+s+" "+n+"z"}function a(i,s,c,v,u){return(u-c)/(v-s)}function o(i,s,c,v){var u=v-i;return s+u*c}return R0=g,R0}var F0,Gi;function Or(){if(Gi)return F0;Gi=1;var A=Rr(),y=Se();function g(l,a,o,i,s,c,v){if(o<0||i<s){var u=y(s);s=y(i),i=u}else i=y(i),s=y(s);a=y(a);var f=y(a+o);if(l.firefox112){a+=o/2;var t={x1:a,x2:a,y1:i,y2:s,stroke:l.foregroundColor,"stroke-width":Math.abs(o)};return c&&(t.class=c),v&&(t["data-name"]=v),l.paper.lineToBack(t)}for(var n=[["M",a,i],["L",a,s],["L",f,s],["L",f,i],["z"]],t={path:""},r=0;r<n.length;r++)t.path+=n[r].join(" ");return c&&(t.class=c),v&&(t["data-name"]=v),A.isInGroup()||(t.stroke="none",t.fill=l.foregroundColor),l.paper.pathToBack(t)}return F0=g,F0}var O0,Yi;function No(){if(Yi)return O0;Yi=1;var A=qe(),y=Se();function g(l,a,o,i,s,c,v){var u=l.foregroundColor;a=y(a),o=y(o);var f=y(i-v),n=y(i+v);if(l.firefox112){i+=v/2;var t={x1:a,x2:o,y1:i,y2:i,stroke:l.foregroundColor,"stroke-width":Math.abs(v*2)};return s&&(t.class=s),c&&(t["data-name"]=c),l.paper.lineToBack(t)}var r=A("M %f %f L %f %f L %f %f L %f %f z",a,f,o,f,o,n,a,n),e={path:r,stroke:"none",fill:u};c&&(e["data-name"]=c),s&&(e.class=s);var h=l.paper.pathToBack(e);return h}return O0=g,O0}var H0,Wi;function ts(){if(Wi)return H0;Wi=1;var A=No();function y(g,l,a,o,i,s,c){var v=g.calcY(o);return A(g,l,a,v,i,s,c)}return H0=y,H0}var z0,Xi;function rs(){if(Xi)return z0;Xi=1;var A=Pe(),y=Or(),g=ts(),l=Fr();function a(i,s,c){s.pitch===void 0&&window.console.error(s.type+" Relative Element y-coordinate not set.");var v=i.calcY(s.pitch);switch(s.type){case"symbol":if(s.c===null)return null;var u="symbol";s.klass&&(u+=" "+s.klass),s.graphelem=l(i,s.x,s.pitch,s.c,{scalex:s.scalex,scaley:s.scaley,klass:i.controller.classes.generate(u),name:s.name});break;case"debug":s.graphelem=A(i,{x:s.x,y:i.calcY(15),text:""+s.c,type:"debugfont",klass:i.controller.classes.generate("debug-msg"),anchor:"start",centerVertically:!1,dim:s.dim},!1);break;case"tabNumber":var f="middle",n="tabnumberfont",t="abcjs-tab-number";s.isGrace&&(n="tabgracefont",v+=2.5,t="tab-grace"),s.graphelem=A(i,{x:s.x,y:v,text:""+s.c,type:n,klass:i.controller.classes.generate(t),anchor:f,centerVertically:!1,dim:s.dim,cursor:"default"},!1);break;case"barNumber":s.graphelem=A(i,{x:s.x,y:v,text:""+s.c,type:"measurefont",klass:i.controller.classes.generate("bar-number"),anchor:"middle",dim:s.dim,name:"bar-number"},!0);break;case"lyric":s.graphelem=A(i,{x:s.x,y:v,text:s.c,type:"vocalfont",klass:i.controller.classes.generate("lyric"),anchor:"middle",dim:s.dim,name:"lyric"},!1);break;case"chord":s.graphelem=A(i,{x:s.x,y:v,text:s.c,type:"gchordfont",klass:i.controller.classes.generate("chord"),anchor:"middle",dim:s.dim,lane:s.getLane(),name:"chord"},!1);break;case"decoration":s.graphelem=A(i,{x:s.x,y:v+6,text:s.c,type:"annotationfont",klass:i.controller.classes.generate("annotation"),anchor:s.anchor,centerVertically:!0,dim:s.dim},!1);break;case"text":s.graphelem=A(i,{x:s.x,y:v,text:s.c,type:"annotationfont",klass:i.controller.classes.generate("annotation"),anchor:"start",centerVertically:s.centerVertically,dim:s.dim,lane:s.getLane(),name:"annotation"},!1);break;case"multimeasure-text":s.graphelem=A(i,{x:s.x+s.w/2,y:v,text:s.c,type:"tempofont",klass:i.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:s.dim},!1);break;case"part":s.graphelem=A(i,{x:s.x,y:v,text:s.c,type:"partsfont",klass:i.controller.classes.generate("part"),anchor:"start",dim:s.dim,name:s.c},!0);break;case"bar":s.graphelem=y(i,s.x,s.linewidth+i.lineThickness,v,c||i.calcY(s.pitch2),null,"bar");break;case"stem":var r=s.linewidth>0?s.linewidth+i.lineThickness:s.linewidth-i.lineThickness;s.graphelem=y(i,s.x,r,v,i.calcY(s.pitch2),"abcjs-stem","stem");break;case"ledger":s.graphelem=g(i,s.x,s.x+s.w,s.pitch,"abcjs-ledger","ledger",.35+i.lineThickness);break}return s.scalex!==1&&s.graphelem&&o(i.paper,s.graphelem,s.scalex,s.scaley,s.x,v),s.graphelem}function o(i,s,c,v,u,f){i.setAttributeOnElement(s,{style:"transform:scale("+c+","+v+");transform-origin:"+u+"px "+f+"px;"})}return z0=a,z0}var G0,Ui;function Po(){if(Ui)return G0;Ui=1;var A=rs(),y=Pe();function g(l,a){var o=a.x;a.pitch===void 0&&window.console.error("Tempo Element y-coordinate not set."),a.tempo.el_type="tempo";var i=l.calcY(a.pitch)+2,s,c;if(a.tempo.preString){s=y(l,{x:o,y:i,text:a.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"pre"},!0),c=l.controller.getTextSize.calc(a.tempo.preString,"tempofont","tempo",s);var v=c.width,u=v/a.tempo.preString.length;o+=v+u}if(a.note){a.note.setX(o);for(var f=0;f<a.note.children.length;f++)A(l,a.note.children[f],o);o+=a.note.w+5;var n="= "+a.tempo.bpm;s=y(l,{x:o,y:i,text:n,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"beats"}),c=l.controller.getTextSize.calc(n,"tempofont","tempo",s);var t=c.width,r=t/n.length;o+=t+r}a.tempo.postString&&y(l,{x:o,y:i,text:a.tempo.postString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"post"},!0)}return G0=g,G0}var Y0,Vi;function Lo(){if(Vi)return Y0;Vi=1;var A=Po(),y=rs(),g=Ce(),l=qr(),a=Rr();function o(i,s,c,v,u){if(!s.invisible){var f=s.children.length>0&&s.children[0].type==="TempoElement";s.elemset=[],a.beginGroup(i.paper,i.controller);for(var n=0;n<s.children.length;n++){var t=s.children[n];switch(t.type){case"TempoElement":A(i,t);break;default:var r=y(i,t,c);if(t.type==="symbol"&&t.c&&t.c.indexOf("notehead")>=0&&r.setAttribute("class","abcjs-notehead"),r&&t.chordPos&&t.name.indexOf("flags.")!==0){var e=r.getAttribute("class");e?e=e+" abcjs-chord-pos-"+t.chordPos:e="abcjs-chord-pos-"+t.chordPos,r.setAttribute("class",e)}}}var e=s.type;if((s.type==="note"||s.type==="rest")&&(s.counters=i.controller.classes.getCurrent(),e+=" d"+Math.round(s.durationClass*1e3)/1e3,e=e.replace(/\./g,"-"),s.abcelem.pitches))for(var h=0;h<s.abcelem.pitches.length;h++)e+=" p"+s.abcelem.pitches[h].pitch;var p=a.endGroup(e,s.type);if(p){if(s.cloned&&(s.cloned.overrideClasses=p.className.baseVal),s.overrideClasses){var d=p.classList&&p.classList.length>0?p.classList[0]+" ":"";p.setAttribute("class",d+s.overrideClasses)}if(f)s.startChar=s.abcelem.startChar,s.endChar=s.abcelem.endChar,v.add(s,p,!1,u);else{s.elemset.push(p);var m=!1;(s.type==="note"||s.type==="tabNumber")&&(m=!0),v.add(s,p,m,u)}}else s.elemset.length>0&&v.add(s,s.elemset[0],s.type==="note",u);if(s.klass&&l(s.elemset,"mark","","#00ff00"),s.hint&&l(s.elemset,"abcjs-hint","",null),s.abcelem.abselem=s,s.heads&&s.heads.length>0){s.notePositions=[];for(var w=0;w<s.heads.length;w++)s.notePositions.push({x:s.heads[w].x+s.heads[w].w/2,y:u.zero-s.heads[w].pitch*g.STEP})}}}return Y0=o,Y0}var W0,ji;function qo(){if(ji)return W0;ji=1;var A=_o(),y=To(),g=So(),l=Eo(),a=Ao(),o=Mo(),i=Bo(),s=Pe(),c=Lo();function v(f,n,t,r,e){var h=n.w-1;f.staffbottom=n.staff.bottom;var p=f.foregroundColor;if(n.color&&(f.foregroundColor=n.color),n.header){var d=s(f,{x:f.padding.left,y:f.calcY(n.headerPosition),text:n.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:n.header},d)}var m,w,T=!1;for(m=0;m<n.children.length;m++){w=n.children[m],(w.type==="note"||w.type==="rest")&&(T=!0);var D=!1;w.type!=="staff-extra"&&!f.controller.classes.isInMeasure()&&(f.controller.classes.startMeasure(),D=!0),n.staff.isTabStaff&&(w.invisible=!1,w.type=="bar"&&w.abcelem.lastBar&&(t=n.topLine)),c(f,w,n.barto||m===n.children.length-1?t:0,r,e),(w.type==="note"||u(w))&&f.controller.classes.incrNote(),w.type==="bar"&&!D&&T&&f.controller.classes.incrMeasure()}for(f.controller.classes.startMeasure(),m=0;m<n.beams.length;m++){var B=n.beams[m];B==="bar"?f.controller.classes.incrMeasure():i(f,B,r)}for(f.controller.classes.startMeasure(),m=0;m<n.otherchildren.length;m++)if(w=n.otherchildren[m],w==="bar")f.controller.classes.incrMeasure();else switch(w.type){case"GlissandoElem":w.elemset=A(f,w,r);break;case"CrescendoElem":w.elemset=y(f,w,r);break;case"DynamicDecoration":w.elemset=g(f,w,r);break;case"TripletElem":l(f,w,r);break;case"EndingElem":w.elemset=a(f,w,n.startx+10,h,r);break;case"TieElem":w.elemset=o(f,w,n.startx+10,h,r);break;default:console.log(w),c(f,w,n.startx+10,h,r,e)}f.foregroundColor=p}function u(f){return f.type!=="rest"?!1:!!(f.abcelem&&f.abcelem.rest&&f.abcelem.rest.type!=="spacer")}return W0=v,W0}var X0,Ki;function Do(){if(Ki)return X0;Ki=1;var A=ts();function y(g,l,a,o,i,s){var c="abcjs-top-line",v=2;i&&(v=i),g.paper.openGroup({prepend:!0,klass:g.controller.classes.generate("abcjs-staff")});var u=0,f=0;if(o===1)A(g,l,a,6,c,null,s+g.lineThickness),u=g.calcY(10),f=g.calcY(2);else for(var n=o-1;n>=0;n--){var t=(n+1)*v;f=g.calcY(t),u===0&&(u=f),A(g,l,a,t,c,null,s+g.lineThickness),c=void 0}return g.paper.closeGroup(),[u,f]}return X0=y,X0}var U0,$i;function Io(){if($i)return U0;$i=1;function A(y,g,l){var a=y.paper.rectBeneath(g);return l&&y.paper.text(l,{x:0,y:g.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),a}return U0=A,U0}var V0,Qi;function Ro(){if(Qi)return V0;Qi=1;function A(y,g){var l="rgba(0,0,0,255)",a="rgba(0,0,0,0)",o=Math.round(y.y),i=y.controller.width,s=(i-g)/2,c=s+g,v="M "+s+" "+o+" L "+c+" "+o+" L "+c+" "+(o+1)+" L "+s+" "+(o+1)+" L "+s+" "+o+" z";y.paper.pathToBack({path:v,stroke:a,fill:l,class:y.controller.classes.generate("defined-text")})}return V0=A,V0}var j0,Ji;function as(){if(Ji)return j0;Ji=1;var A=Ro(),y=Pe();function g(l,a,o){for(var i=0;i<a.rows.length;i++){var s=a.rows[i];if(s.absmove)l.absolutemoveY(s.absmove);else if(s.move)l.moveY(s.move);else if(s.text||s.phrases){var c=s.left?s.left:0,v=y(l,{x:c,y:l.y,text:s.text,phrases:s.phrases,"dominant-baseline":s["dominant-baseline"],type:s.font,klass:s.klass,name:s.name,anchor:s.anchor});s.absElemType&&o.wrapSvgEl({el_type:s.absElemType,name:s.name,startChar:s.startChar,endChar:s.endChar,text:s.text},v)}else if(s.separator)A(l,s.separator);else if(s.startGroup)l.paper.openGroup({klass:s.klass,"data-name":s.name});else if(s.endGroup){var u=l.paper.closeGroup();s.absElemType&&o.wrapSvgEl({el_type:s.absElemType,name:s.name,startChar:s.startChar,endChar:s.endChar,text:""},u)}}}return j0=g,j0}var K0,Zi;function Fo(){if(Zi)return K0;Zi=1;var A=Ce(),y=ko(),g=qo(),l=Do(),a=Io(),o=Or(),i=as();function s(u,f,n,t){for(var r,e=u.y,h=0;h<f.staffs.length;h++){var p=f.staffs[h];u.moveY(A.STEP,p.top),p.absoluteY=u.y,u.showDebug&&(u.showDebug.indexOf("box")>=0&&p.voices&&v(u,f.voices,p.voices),u.showDebug.indexOf("grid")>=0&&(u.paper.dottedLine({x1:u.padding.left,x2:u.padding.left+u.controller.width,y1:e,y2:e,stroke:"#0000ff"}),a(u,{x:u.padding.left,y:u.calcY(p.originalTop),width:u.controller.width,height:u.calcY(p.originalBottom)-u.calcY(p.originalTop),fill:u.foregroundColor,stroke:u.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),r=0,C(p,"chordHeightAbove"),C(p,"chordHeightBelow"),C(p,"dynamicHeightAbove"),C(p,"dynamicHeightBelow"),C(p,"endingHeightAbove"),C(p,"lyricHeightAbove"),C(p,"lyricHeightBelow"),C(p,"partHeightAbove"),C(p,"tempoHeightAbove"),C(p,"volumeHeightAbove"),C(p,"volumeHeightBelow"))),u.moveY(A.STEP,-p.bottom),u.showDebug&&u.showDebug.indexOf("grid")>=0&&u.paper.dottedLine({x1:u.padding.left,x2:u.padding.left+u.controller.width,y1:u.y,y2:u.y,stroke:"#0000aa"})}for(var d,m,w=2,T=0,D=0;D<f.voices.length;D++){var B=f.voices[D].staff,S=f.voices[D].tabNameInfos;if(u.y=B.absoluteY,u.controller.classes.incrVoice(),!f.voices[D].duplicate){if(d||(d=u.calcY(10)),m=u.calcY(w),B.lines!==0){B.linePitch&&(w=B.linePitch),u.controller.classes.newMeasure();var L=l(u,f.startx,f.w,B.lines,B.linePitch,.35);m=L[1],B.bottomLine=m,B.topLine=L[0],B.hasTab&&(T=B.topLine),B.hasStaff&&(T=B.hasStaff.topLine,f.voices[D].barto=!0,f.voices[D].topLine=d)}c(u,B.absoluteY,f.brace,D,n),c(u,B.absoluteY,f.bracket,D,n)}g(u,f.voices[D],T,n,{top:e,zero:u.y,height:f.height*A.STEP});var x=0;if(S){var M={rows:[]};M.rows.push({absmove:m+2});var N=8;M.rows.push({left:f.startx+N,text:S.name,font:"tablabelfont",klass:"text instrument-name",anchor:"start"}),M.rows.push({move:S.textSize.height}),i(u,M),x=S.textSize.height}u.controller.classes.newMeasure(),f.voices[D].duplicate||(T=u.calcY(2+x))}u.controller.classes.newMeasure();var F=f.staffs.length;F>1&&(d=f.staffs[0].topLine,m=f.staffs[F-1].bottomLine,o(u,f.startx,.6,d,m,null)),u.y=e;function C(_,P){var I=["rgb(207,27,36)","rgb(168,214,80)","rgb(110,161,224)","rgb(191,119,218)","rgb(195,30,151)","rgb(31,170,177)","rgb(220,166,142)"];if(_.positionY&&_.positionY[P]){var q=_.specialY[P]*A.STEP;P==="chordHeightAbove"&&_.specialY.chordLines&&_.specialY.chordLines.above&&(q*=_.specialY.chordLines.above),P==="chordHeightBelow"&&_.specialY.chordLines&&_.specialY.chordLines.below&&(q*=_.specialY.chordLines.below),a(u,{x:u.padding.left,y:u.calcY(_.positionY[P]),width:u.controller.width,height:q,fill:I[r],stroke:I[r],"fill-opacity":.4,"stroke-opacity":.4},P.substr(0,4)),r+=1,r>6&&(r=0)}}}function c(u,f,n,t,r){if(n)for(var e=0;e<n.length;e++)n[e].isStartVoice(t)&&(n[e].startY=f-A.STEP*10,n[e].elemset=y(u,n[e],r))}function v(u,f,n){for(var t=0;t<n.length;t++)for(var r=f[n[t]].children,e=0;e<r.length;e++){var h=r[e],p=h.getFixedCoords();if(!(h.invisible||p.t===void 0||p.b===void 0)){var d=(p.t-p.b)*A.STEP;a(u,{x:p.x,y:u.calcY(p.t),width:p.w,height:d,fill:"#88e888","fill-opacity":.4,stroke:"#4aa93d","stroke-opacity":.8});for(var m=0;m<h.children.length;m++){var w=h.children[m],T=w.getChordDim();if(T){var D=u.calcY(w.pitch);D+=w.dim.font.size*w.getLane(),a(u,{x:T.left,y:D,width:T.right-T.left,height:w.dim.font.size,fill:"none",stroke:"#4aa93d","stroke-opacity":.8})}}}}}return K0=s,K0}var $0,en;function Oo(){if(en)return $0;en=1;function A(y,g,l,a){var o=(g+y.padding.left+y.padding.right)*l,i=(y.y+y.padding.bottom)*l;if(y.isPrint&&(i=Math.max(i,1056)),y.ariaLabel!==""){var s="Sheet Music";y.abctune&&y.abctune.metaText&&y.abctune.metaText.title&&(s+=' for "'+y.abctune.metaText.title+'"'),y.paper.setTitle(s);var c=y.ariaLabel?y.ariaLabel:s;y.paper.setAttribute("aria-label",c)}var v=["-webkit-touch-callout: none;","-webkit-user-select: none;","-khtml-user-select: none;","-moz-user-select: none;","-ms-user-select: none;","user-select: none;"];y.paper.insertStyles(".abcjs-dragging-in-progress text, .abcjs-dragging-in-progress tspan {"+v.join(" ")+"}");var u={overflow:"hidden"};a==="resize"?y.paper.setResponsiveWidth(o,i):(u.width="",u.height=i+"px",l<1?(u.width=o+"px",y.paper.setSize(o/l,i/l)):y.paper.setSize(o,i)),y.paper.setScale(l),y.paper.setParentStyles(u)}return $0=A,$0}var Q0,tn;function Ho(){if(tn)return Q0;tn=1;var A=Un(),y=Vn();function g(l,a,o){this.elements=[],this.paper=l,this.tuneNumber=o,this.selectTypes=a}return g.prototype.getElements=function(){return this.elements},g.prototype.add=function(l,a,o,i){if(this.canSelect(l)){var s;this.selectTypes===void 0?s={selectable:!1,"data-index":this.elements.length}:s={selectable:!0,tabindex:0,"data-index":this.elements.length},this.paper.setAttributeOnElement(a,s);var c={absEl:l,svgEl:a,isDraggable:o};i!==void 0&&(c.staffPos=i),this.elements.push(c)}},g.prototype.canSelect=function(l){return this.selectTypes===!1||!l||!l.abcelem?!1:this.selectTypes===!0?!0:this.selectTypes===void 0?l.abcelem.el_type==="note"||l.abcelem.el_type==="tabNumber":this.selectTypes.indexOf(l.abcelem.el_type)>=0},g.prototype.wrapSvgEl=function(l,a){var o={tuneNumber:this.tuneNumber,abcelem:l,elemset:[a],highlight:A,unhighlight:y};this.add(o,a,!1)},Q0=g,Q0}var J0,rn;function zo(){if(rn)return J0;rn=1;const A=Fr(),y=Or();function g(d,m,w,T,D){const B=D.gchordfont;D.partsfont;const S=D.annotationfont,L=D.repeatfont,x=D.textfont,M=D.subtitlefont,N=50,F=10,C=14,_=10,P=20,I=16;d.paper.openGroup({klass:"abcjs-chord-grid"}),m.forEach(q=>{switch(q.type){case"text":p(d,q.text,w,d.y,16,x,null,null,!1),d.moveY(I);break;case"subtitle":p(d,q.subtitle,w,d.y+_,20,M,null,"abcjs-subtitle",!1),d.moveY(P);break;case"part":if(q.lines.length>0){p(d,q.name,w,d.y+_,20,M,q.name,"abcjs-part",!1),d.moveY(P);const b=q.lines[0].length,k=T/b;q.lines.forEach((E,R)=>{let O=!1,G=!1;E.forEach(X=>{X.ending&&(O=!0),X.annotations&&X.annotations.length>0&&(G=!0)});const H=G?C:O?F:0;E.forEach((X,Q)=>{if(!X.noBorder){d.paper.rect({x:w+Q*k,y:d.y,width:k,height:H+N}),d.paper.rect({x:w+Q*k+1,y:d.y+1,width:k-2,height:H+N-2});let ee=0,J=0;const ae=d.y,V=w+k*Q;X.hasStartRepeat&&(a(d,V,ae,ae+N+H,!0,H),ee=12),X.hasEndRepeat&&(a(d,V+k,ae,ae+N+H,!1,H),J=12);let Z=0;X.ending&&(Z=p(d,X.ending,w+Q*k+4,ae+10,12,L,null,null,!1).getBBox().width+4),s(d,ae,w+ee,k,R,Q,X.chord,B,ee+J,N,H),X.annotations&&X.annotations.length>0&&i(d,ae,w+Q*k+Z,X.annotations,S),H&&d.paper.rectBeneath({x:w+Q*k,y:d.y,width:k,height:H,fill:"#e8e8e8",stroke:"none"})}}),d.moveY(H+N)}),d.moveY(P)}break}}),d.paper.closeGroup()}function l(d,m,w,T){var D=m-10,B=m+10,S=w+10,L=w-10,x=m-10,M=-d.yToPitch(T)+2,N=m+6.5,F=-d.yToPitch(T)-2.3;d.paper.lineToBack({x1:D,x2:B,y1:S,y2:L,"stroke-width":"3px","stroke-linecap":"round"}),A(d,x,M,"dots.dot",{scalex:1,scaley:1,klass:"",name:"dot"}),A(d,N,F,"dots.dot",{scalex:1,scaley:1,klass:"",name:"dot"})}function a(d,m,w,T,D,B){const S=D?m+2:m-4,L=D?m+9:m-11;d.paper.openGroup({klass:"abcjs-repeat"}),y(d,S,3+d.lineThickness,w,T,null,"bar"),A(d,L,-d.yToPitch(B)-4,"dots.dot",{scalex:1,scaley:1,klass:"",name:"dot"}),A(d,L,-d.yToPitch(B)-8,"dots.dot",{scalex:1,scaley:1,klass:"",name:"dot"}),d.paper.closeGroup()}const o={segno:"scripts.segno",coda:"scripts.coda",fermata:"scripts.ufermata"};function i(d,m,w,T,D){w+=3;let B;for(let S=0;S<T.length;S++)switch(T[S]){case"segno":case"coda":case"fermata":{w+=12,B=A(d,w,-3,o[T[S]],{scalex:1,scaley:1,name:o[T[S]]});const L=B.getBBox();w+=L.width}break;default:p(d,T[S],w,m+12,12,D,null,null,!1)}}function s(d,m,w,T,D,B,S,L,x,M,N){const F=w+T*B;!S[1]&&!S[2]&&!S[3]?t(d,F,m+N,T-x,M,S[0],L,N):!S[1]&&!S[3]?r(d,F,m,T-x,M,S[0],S[2],L,N):e(d,F,m,T-x,M,S,L,N)}function c(d,m,w,T,D,B,S){const L=p(d,D,m,w,T,B,null,"abcjs-chord",!0);let x=L.getBBox(),M=T;for(;x.width>S&&M>=14;)M-=2,L.setAttribute("font-size",M),x=L.getBBox()}const v=34,u=26,f=20,n=-3;function t(d,m,w,T,D,B,S,L){B==="%"?l(d,m+T/2,w+D/2,L+D/2):c(d,m+T/2,w+D/2+n,v,B,S,T)}function r(d,m,w,T,D,B,S,L,x){d.paper.lineToBack({x1:m,x2:m+T,y1:w+D+x,y2:w+2}),c(d,m+T/4,w+D/4+5+x+n,u,B,L,T/2),c(d,m+3*T/4,w+3*D/4+x+n,u,S,L,T/2)}function e(d,m,w,T,D,B,S,L){d.paper.lineToBack({x1:m+3,x2:m+T-3,y1:w+D/2+L,y2:w+D/2+L}),d.paper.lineToBack({x1:m+T/2,x2:m+T/2,y1:w+3+L,y2:w+D-3+L}),B[0]&&c(d,m+T/4,w+D/4+2+L+n,f,h(B[0]),S,T/2),B[1]&&c(d,m+3*T/4,w+D/4+2+L+n,f,h(B[1]),S,T/2),B[2]&&c(d,m+T/4,w+3*D/4+L+n,f,h(B[2]),S,T/2),B[3]&&c(d,m+3*T/4,w+3*D/4+L+n,f,h(B[3]),S,T/2)}function h(d){return d==="No Chord"?"N.C.":d}function p(d,m,w,T,D,B,S,L,x){const M={x:w,y:T,stroke:"none","font-size":D,"font-style":B.style,"font-family":B.face,"font-weight":B.weight,"text-decoration":B.decoration};return S&&(M["data-name"]=S),L&&(M.class=L),M["text-anchor"]=x?"middle":"start",d.paper.text(m,M,null,{"alignment-baseline":"middle"})}return J0=g,J0}var Z0,an;function Go(){if(an)return Z0;an=1;var A=Fo(),y=Oo(),g=as(),l=Ce(),a=Ho(),o=zo();function i(v,u,f,n,t,r,e,h,p,d,m){var w=new a(v.paper,h,p),T={};u.shouldAddClasses&&(T.klass="abcjs-meta-top"),v.paper.openGroup(T),v.moveY(v.padding.top),g(v,f.topText,w),v.paper.closeGroup(),v.moveY(v.spacing.music);let D=!1;m&&f.chordGrid&&(o(v,f.chordGrid,v.padding.left,n,f.formatting),m==="noMusic"&&(D=!0));var B=[],S=0;if(!D)for(var L=0;L<f.lines.length;L++){u.incrLine();var x=f.lines[L];if(x.staff){if(S++,f.formatting.maxStaves&&S>f.formatting.maxStaves)break;u.shouldAddClasses&&(T.klass="abcjs-staff-wrapper abcjs-l"+u.lineNumber),v.paper.openGroup(T),x.vskip&&v.moveY(x.vskip),B.length>=1&&c(v,v.spacing.staffSeparation,B[B.length-1],x.staffGroup);var M=s(v,x.staffGroup,w,L);M.line=d+L,B.push(M),v.paper.closeGroup()}else x.nonMusic&&(u.shouldAddClasses&&(T.klass="abcjs-non-music"),v.paper.openGroup(T),g(v,x.nonMusic,w),v.paper.closeGroup())}return u.reset(),D||f.bottomText&&f.bottomText.rows&&f.bottomText.rows.length>0&&(u.shouldAddClasses&&(T.klass="abcjs-meta-bottom"),v.paper.openGroup(T),v.moveY(24),g(v,f.bottomText,w),v.paper.closeGroup()),y(v,t,e,r),{staffgroups:B,selectables:w.getElements()}}function s(v,u,f,n){A(v,u,f,n);var t=u.height*l.STEP;return v.y+=t,u}function c(v,u,f,n){var t=f.staffs[f.staffs.length-1],r=-(t.bottom-2),e=n.staffs[0].top-10,h=e+r,p=h*l.STEP;p<u&&v.moveY(u-p)}return Z0=i,Z0}var er,nn;function Yo(){if(nn)return er;nn=1;var A=Zn();function y(g){for(var l=g;l&&l.attributes&&l.tagName.toLowerCase()!=="svg"&&!l.attributes.selectable;)l=l.parentNode;if(l&&l.attributes&&l.attributes.selectable){var a=l.attributes["data-index"].nodeValue;if(a&&(a=parseInt(a,10),a>=0&&a<this.selectables.length)){var o=this.selectables[a],i=A(o,g);return i.index=a,i.element=o,i}}return null}return er=y,er}var tr,sn;function is(){if(sn)return tr;sn=1;var A=Ce(),y=to(),g=ao(),l=io(),a=no(),o=so(),i=oo(),s=co(),c=lo(),v=yo(),u=wo(),f=xo(),n=Co(),t=Go(),r=$n(),e=Yo(),h=function(m,w){w=w||{},this.findSelectableElement=e,this.oneSvgPerLine=w.oneSvgPerLine,this.selectionColor=w.selectionColor,this.dragColor=w.dragColor?w.dragColor:w.selectionColor,this.dragging=!!w.dragging,this.selectTypes=w.selectTypes,this.responsive=w.responsive,this.space=3*A.SPACE,this.initialClef=w.initialClef,this.timeBasedLayout=w.timeBasedLayout,this.expandToWidest=!!w.expandToWidest,this.scale=w.scale?parseFloat(w.scale):0,this.classes=new u({shouldAddClasses:w.add_classes}),this.scale>.1||(this.scale=void 0),w.staffwidth?(this.staffwidthScreen=w.staffwidth,this.staffwidthPrint=w.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],w.clickListener&&this.addSelectListener(w.clickListener),this.renderer=new g(m),this.renderer.setPaddingOverride(w),w.showDebug&&(this.renderer.showDebug=w.showDebug),w.jazzchords&&(this.jazzchords=w.jazzchords),w.accentAbove&&(this.accentAbove=w.accentAbove),w.germanAlphabet&&(this.germanAlphabet=w.germanAlphabet),w.lineThickness&&(this.lineThickness=w.lineThickness),w.chordGrid&&(this.chordGrid=w.chordGrid),this.renderer.controller=this,this.renderer.foregroundColor=w.foregroundColor?w.foregroundColor:"currentColor",w.ariaLabel!==void 0&&(this.renderer.ariaLabel=w.ariaLabel),this.renderer.minPadding=w.minPadding?w.minPadding:0,this.reset()};h.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)},h.prototype.engraveABC=function(m,w,T){m[0]===void 0&&(m=[m]),this.reset();for(var D=0;D<m.length;D++)w===void 0&&(w=D),this.getFontAndAttr=new f(m[D].formatting,this.classes),this.getTextSize=new n(this.getFontAndAttr,this.renderer.paper),this.engraveTune(m[D],w,T)},h.prototype.adjustNonScaledItems=function(m){this.width/=m,this.renderer.adjustNonScaledItems(m)},h.prototype.getMeasureWidths=function(m){this.reset(),this.getFontAndAttr=new f(m.formatting,this.classes),this.getTextSize=new n(this.getFontAndAttr,this.renderer.paper);var w=this.jazzchords;this.setupTune(m,0),this.constructTuneElements(m),v(this.renderer,m,0,this.space,this.timeBasedLayout);for(var T=[],D,B=!0,S=0;S<m.lines.length;S++){var L=m.lines[S];if(L.staff){if(B&&(D={left:0,measureWidths:[],total:0},T.push(D),B=!1),L.staffGroup.voices.length>0)for(var x=L.staffGroup.voices[0],M=!1,N=0,F=0;F<x.children.length;F++){var C=x.children[F];!M&&!C.isClef&&!C.isKeySig&&(M=!0,D.left=C.x,N=C.x),C.type==="bar"&&(D.measureWidths.push(C.x-N),D.total+=C.x-N,N=C.x)}}else B=!0}return this.jazzchords=w,T},h.prototype.setupTune=function(m,w){this.classes.reset(),m.formatting.jazzchords!==void 0&&(this.jazzchords=m.formatting.jazzchords),m.formatting.accentAbove!==void 0&&(this.accentAbove=m.formatting.accentAbove),this.renderer.newTune(m),this.engraver=new y(this.getTextSize,w,{bagpipes:m.formatting.bagpipes,flatbeams:m.formatting.flatbeams,graceSlurs:m.formatting.graceSlurs!==!1,percmap:m.formatting.percmap,initialClef:this.initialClef,jazzchords:this.jazzchords,timeBasedLayout:this.timeBasedLayout,accentAbove:this.accentAbove,germanAlphabet:this.germanAlphabet}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),this.engraver.measureLength=m.getMeterFraction().num/m.getMeterFraction().den,m.formatting.staffwidth?this.width=m.formatting.staffwidth*1.33:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var T=m.formatting.scale?m.formatting.scale:this.scale;return this.responsive==="resize"&&(T=void 0),T===void 0&&(T=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(T),T},h.prototype.constructTuneElements=function(m){m.topText=new i(m.metaText,m.metaTextInfo,m.formatting,m.lines,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize);var w,T,D=!1,B=!1;for(w=0;w<m.lines.length;w++)if(T=m.lines[w],T.staff)B=!0,T.staffGroup=this.engraver.createABCLine(T.staff,D?null:m.metaText.tempo,w),D=!0;else if(T.subtitle){if(B){var S=this.width/2+this.renderer.padding.left;T.nonMusic=new o(this.renderer.spacing.subtitle,m.formatting,T.subtitle,S,this.renderer.padding.left,this.getTextSize)}}else T.text!==void 0?(B=!0,T.nonMusic=new l(T.text,T.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize)):T.separator!==void 0&&T.separator.lineLength&&(B=!0,T.nonMusic=new a(T.separator.spaceAbove,T.separator.lineLength,T.separator.spaceBelow));m.bottomText=new s(m.metaText,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize)},h.prototype.engraveTune=function(m,w,T){var D=this.jazzchords,B=this.setupTune(m,w);this.constructTuneElements(m);var S=v(this.renderer,m,this.width,this.space,this.expandToWidest,this.timeBasedLayout);if(this.expandToWidest&&S>this.width+1&&(m.topText=new i(m.metaText,m.metaTextInfo,m.formatting,m.lines,S,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize),m.lines&&m.lines.length>0))for(var L=m.lines.length,x=0;x<L;++x){var M=m.lines[x];if(M.nonMusic&&M.nonMusic.rows&&M.nonMusic.rows.length>0)for(var N=M.nonMusic.rows.length,F=0;F<N;++F){var C=M.nonMusic.rows[F];C.left&&(M.subtitle?C.left=S/2+this.renderer.padding.left:M.text&&M.text.length>0&&M.text[0].center&&(C.left=S/2+this.renderer.padding.left))}}m.tablatures&&r.layoutTablatures(this.renderer,m);var _=t(this.renderer,this.classes,m,this.width,S,this.responsive,B,this.selectTypes,w,T,this.chordGrid);if(this.staffgroups=_.staffgroups,this.selectables=_.selectables,this.oneSvgPerLine){var P=this.renderer.paper.svg.parentNode;this.svgs=p(this.renderer,P,m.metaText.title,this.responsive,B)}else this.svgs=[this.renderer.paper.svg];c(this,this.svgs),this.jazzchords=D};function p(m,w,T,D,B){T||(T="Untitled");var S=w.querySelector("svg");D==="resize"&&(w.style.paddingBottom="");for(var L=S.querySelector("style"),x=D==="resize"?S.viewBox.baseVal.width:S.getAttribute("width"),M=w.querySelectorAll("svg > g"),N=0,F=[],C=0;C<M.length;C++){var _=M[C],P=_.getBBox(),I=P.y-N,q=P.height+I,b=document.createElement("div"),k="overflow: hidden;";D!=="resize"&&(k+="height:"+q*B+"px;"),b.setAttribute("style",k);var E=d(S),R='Sheet Music for "'+T+'" section '+(C+1);E.setAttribute("aria-label",R),D!=="resize"&&E.setAttribute("height",q),D==="resize"&&(E.style.position="");var O=m.firefox112?q+1:q;E.setAttribute("viewBox","0 "+N+" "+x+" "+O),E.appendChild(L.cloneNode(!0));var G=document.createElement("title");G.innerText=R,E.appendChild(G),E.appendChild(_),b.appendChild(E),F.push(E),w.appendChild(b),N=P.y+P.height}return w.removeChild(S),F}function d(m){for(var w="http://www.w3.org/2000/svg",T=document.createElementNS(w,"svg"),D=0;D<m.attributes.length;D++){var B=m.attributes[D];B.name!=="height"&&B.name!="aria-label"&&T.setAttribute(B.name,B.value)}return T}return h.prototype.getDim=function(m){if(!m.dim){var w=m.svgEl.getBBox();m.dim={left:Math.round(w.x),top:Math.round(w.y),right:Math.round(w.x+w.width),bottom:Math.round(w.y+w.height)}}return m.dim},h.prototype.addSelectListener=function(m){this.listeners[this.listeners.length]=m},tr=h,tr}var rr,on;function ns(){if(on)return rr;on=1;var A=He();Yn();var y=is(),g=Wn(),l=Hn(),a={};function o(){var v=window.innerWidth;for(var u in a)if(a.hasOwnProperty(u)){var f=a[u],n=f.offsetLeft;v-=n*2,f.style.width=v+"px"}}try{window.addEventListener("resize",o),window.addEventListener("orientationChange",o)}catch{}function i(v,u,f,n,t){f.viewportHorizontal?(v.innerHTML='<div class="abcjs-inner"></div>',f.scrollHorizontal?(v.style.overflowX="auto",v.style.overflowY="hidden"):v.style.overflow="hidden",a[v.id]=v,v=v.children[0]):f.viewportVertical?(v.innerHTML='<div class="abcjs-inner scroll-amount"></div>',v.style.overflowX="hidden",v.style.overflowY="auto",v=v.children[0]):v.innerHTML="";var r=new y(v,f);if(r.engraveABC(u,n,t),u.engraver=r,f.viewportVertical||f.viewportHorizontal){var e=v.parentNode;e.style.width=v.style.width}}var s=function(v,u,f,n,t){var r={},e;if(f){for(e in f)f.hasOwnProperty(e)&&(r[e]=f[e]);r.warnings_id&&r.tablature&&(r.tablature.warning_id=r.warnings_id)}if(n)for(e in n)n.hasOwnProperty(e)&&(e==="listener"?n[e].highlight&&(r.clickListener=n[e].highlight):r[e]=n[e]);if(t)for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);function h(p,d,m,w){var T=!1;return p==="*"&&(T=!0,p=document.createElement("div"),p.setAttribute("style","visibility: hidden;"),document.body.appendChild(p)),!T&&r.wrap&&r.staffwidth?(d=c(p,d,m,w,r),d):(r.afterParsing&&r.afterParsing(d,m,w),i(p,d,r,m,0),T&&p.parentNode.removeChild(p),null)}return A.renderEngine(h,v,u,r)};function c(v,u,f,n,t){var r=new y(v,t),e=r.getMeasureWidths(u),h=l.calcLineWraps(u,e,t);if(h.reParse){var p=new g;p.parse(n,h.revisedParams),u=p.getTune();var d=p.getWarnings();d&&(u.warnings=d)}return t.afterParsing&&t.afterParsing(u,f,n),i(v,u,h.revisedParams,f,0),u.explanation=h.explanation,u}return rr=s,rr}var ar,cn;function Wo(){if(cn)return ar;cn=1;var A=He(),y=is(),g=function(l,a){function o(i,s,c,v){i=document.createElement("div"),i.setAttribute("style","visibility: hidden;"),document.body.appendChild(i);var u=new y(i,a),f=u.getMeasureWidths(s);return i.parentNode.removeChild(i),{sections:f}}return A.renderEngine(o,"*",l,a)};return ar=g,ar}var ir,ln;function Hr(){if(ln)return ir;ln=1;var A={};return ir=A,ir}var nr,fn;function Xo(){if(fn)return nr;fn=1;var A=Hr(),y=function(g,l,a,o){A[l]||(A[l]={});var i=A[l];return i[a]||(i[a]=new Promise(function(s,c){var v=new XMLHttpRequest;let u=g+l+"-mp3/"+a+".mp3";v.open("GET",u,!0),v.responseType="arraybuffer",v.onload=function(){if(v.status!==200){c(Error("Can't load sound at "+u+" status="+v.status));return}var f=function(t){s({instrument:l,name:a,status:"loaded",audioBuffer:t})},n=o.decodeAudioData(v.response,f,function(){c(Error("Can't decode sound at "+u))});n&&typeof n.catch=="function"&&n.catch(c)},v.onerror=function(){c(Error("Can't load sound at "+u))},v.send()}).catch(s=>{throw console.error("Didn't load note",l,a,":",s.message),s})),i[a]};return nr=y,nr}var sr,hn;function zr(){if(hn)return sr;hn=1;var A=["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"];return sr=A,sr}var or,un;function Uo(){if(un)return or;un=1;var A=zr(),y=function(g){for(var l=[],a=0;a<g.tracks.length;a++)l.push([]);var o=A[0];return g.tracks.forEach(function(i,s){i.forEach(function(c){switch(c.cmd){case"note":var v=c.instrument!==void 0?A[c.instrument]:o;if(c.duration>0){var u=c.gap?c.gap:0,f=c.duration;u=Math.min(u,f*2/3);var n={pitch:c.pitch,instrument:v,start:Math.round(c.start*1e6)/1e6,end:Math.round((c.start+f-u)*1e6)/1e6,volume:c.volume};c.startChar&&(n.startChar=c.startChar),c.endChar&&(n.endChar=c.endChar),c.style&&(n.style=c.style),c.cents&&(n.cents=c.cents),l[s].push(n)}break;case"program":o=A[c.instrument];break;case"text":break;default:console.log("Unhandled midi event",c)}})}),l};return or=y,or}var cr,dn;function ze(){if(dn)return cr;dn=1;function A(y){if(y)window.abcjsAudioContext=y;else if(!window.abcjsAudioContext){var g=window.AudioContext||window.webkitAudioContext;if(g)window.abcjsAudioContext=new g;else return!1}return window.abcjsAudioContext.state!=="suspended"}return cr=A,cr}var lr,vn;function Ie(){if(vn)return lr;vn=1;var A=ze();function y(){return window.abcjsAudioContext||A(),window.abcjsAudioContext}return lr=y,lr}var fr,pn;function Ge(){if(pn)return fr;pn=1;var A=Ie();function y(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var g=A();if(g)return g.resume!==void 0}return fr=y,fr}var hr,gn;function Gr(){if(gn)return hr;gn=1;var A={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"};return hr=A,hr}var ur,bn;function Vo(){if(bn)return ur;bn=1;var A=function(g){return window.URL.createObjectURL(y(g.audioBuffers))};function y(g){var l=g[0],a=l.numberOfChannels,o=l.length*a*2+44,i=new ArrayBuffer(o),s=new DataView(i),c=[],v,u,f=0,n=0;for(r(1179011410),r(o-8),r(1163280727),r(544501094),r(16),t(1),t(a),r(l.sampleRate),r(l.sampleRate*2*a),t(a*2),t(16),r(1635017060),r(o-n-4),v=0;v<a;v++)c.push(l.getChannelData(v));for(;n<o;){for(v=0;v<c.length;v++)u=Math.max(-1,Math.min(1,c[v][f])),u=(.5+u<0?u*32768:u*32767)|0,s.setInt16(n,u,!0),n+=2;f++}return new Blob([i],{type:"audio/wav"});function t(e){s.setUint16(n,e,!0),n+=2}function r(e){s.setUint32(n,e,!0),n+=4}}return ur=A,ur}var dr,mn;function ss(){if(mn)return dr;mn=1;function A(y){return Math.pow(2,y/1200)}return dr=A,dr}var vr,yn;function jo(){if(yn)return vr;yn=1;var A=Hr(),y=Gr(),g=ss();function l(o,i,s,c,v,u,f,n,t){var r=window.OfflineAudioContext||window.webkitOfflineAudioContext,e=s.len*s.tempoMultiplier;u&&(e+=u/1e3),e-=n,e<0&&(e=.005);var h=new r(2,Math.floor((e+f)*i),i),p=y[s.pitch];if(!A[s.instrument])return t&&t("placeNote skipped (instrument empty): "+s.instrument+":"+p),Promise.resolve();var d=A[s.instrument][p];return d?d.then(function(m){var w=h.createBufferSource();w.buffer=m.audioBuffer;var T=s.volume/96*v;w.gainNode=h.createGain(),s.pan&&h.createStereoPanner&&(w.panNode=h.createStereoPanner(),w.panNode.pan.setValueAtTime(s.pan,0)),w.gainNode.gain.value=T,w.gainNode.gain.linearRampToValueAtTime(w.gainNode.gain.value,e),w.gainNode.gain.linearRampToValueAtTime(0,e+f),s.cents&&(w.playbackRate.value=g(s.cents)),w.panNode?(w.panNode.connect(h.destination),w.gainNode.connect(w.panNode)):w.gainNode.connect(h.destination),w.connect(w.gainNode),w.start(0),w.noteOff?w.noteOff(e+f):w.stop(e+f);var D;return h.oncomplete=function(B){if(B.renderedBuffer&&B.renderedBuffer.getChannelData)for(var S=0;S<c.length;S++){var L=c[S]*s.tempoMultiplier;u&&(L-=u/1e3),L<0&&(L=0),L=Math.floor(L*i),a(o,B.renderedBuffer,L)}t&&t("placeNote: "+s.instrument+":"+p),D()},h.startRendering(),new Promise(function(B){D=B})}).catch(function(m){return t&&t("placeNote catch: "+m.message),Promise.reject(m)}):(t&&t("placeNote skipped: "+s.instrument+":"+p),Promise.resolve())}var a=function(o,i,s){for(var c=0;c<2;c++)for(var v=i.getChannelData(c),u=o.getChannelData(c),f=0;f<v.length;f++)u[f+s]+=v[f]};return vr=l,vr}var pr,wn;function Yr(){if(wn)return pr;wn=1;var A=Xo(),y=Uo(),g=ze(),l=Ie(),a=Ge(),o=Gr(),i=zr(),s=Vo(),c=jo(),v=Hr(),u="MIDI is not supported in this browser.",f="https://paulrosen.github.io/midi-js-soundfonts/abcjs/",n="https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/",t="https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/";function r(){var e=this;e.audioBufferPossible=void 0,e.directSource=[],e.startTimeSec=void 0,e.pausedTimeSec=void 0,e.audioBuffers=[],e.duration=void 0,e.isRunning=!1,e.options={},e.pickupLength=0,e.init=function(d){d||(d={}),d.options&&(e.options=d.options),g(d.audioContext);var m=l().currentTime;if(e.debugCallback=d.debugCallback,e.debugCallback&&e.debugCallback("init called"),e.audioBufferPossible=e._deviceCapable(),!e.audioBufferPossible)return Promise.reject({status:"NotSupported",message:u});var w=d.options?d.options:{};e.soundFontUrl=w.soundFontUrl?w.soundFontUrl:n,e.soundFontUrl[e.soundFontUrl.length-1]!=="/"&&(e.soundFontUrl+="/"),w.soundFontVolumeMultiplier||w.soundFontVolumeMultiplier===0?e.soundFontVolumeMultiplier=w.soundFontVolumeMultiplier:e.soundFontUrl===n||e.soundFontUrl===t?e.soundFontVolumeMultiplier=3:e.soundFontUrl===f?e.soundFontVolumeMultiplier=.4:e.soundFontVolumeMultiplier=1,w.programOffsets?e.programOffsets=w.programOffsets:e.soundFontUrl===f?e.programOffsets={bright_acoustic_piano:20,honkytonk_piano:20,electric_piano_1:30,electric_piano_2:30,harpsichord:40,clavinet:20,celesta:20,glockenspiel:40,vibraphone:30,marimba:35,xylophone:30,tubular_bells:35,dulcimer:30,drawbar_organ:20,percussive_organ:25,rock_organ:20,church_organ:40,reed_organ:40,accordion:40,harmonica:40,acoustic_guitar_nylon:20,acoustic_guitar_steel:30,electric_guitar_jazz:25,electric_guitar_clean:15,electric_guitar_muted:35,overdriven_guitar:25,distortion_guitar:20,guitar_harmonics:30,electric_bass_finger:15,electric_bass_pick:30,fretless_bass:40,violin:105,viola:50,cello:40,contrabass:60,trumpet:10,trombone:90,alto_sax:20,tenor_sax:20,clarinet:20,flute:50,banjo:50,woodblock:20}:e.programOffsets={};var T=w.fadeLength!==void 0?parseInt(w.fadeLength,10):NaN;if(e.fadeLength=isNaN(T)?200:T,T=w.noteEnd!==void 0?parseInt(w.noteEnd,10):NaN,e.noteEnd=isNaN(T)?0:T,e.pan=w.pan,e.meterSize=1,d.visualObj){e.flattened=d.visualObj.setUpAudio(w);var D=d.visualObj.getMeterFraction();D.den&&(e.meterSize=D.num/D.den),e.pickupLength=d.visualObj.getPickupLength()}else if(d.sequence)e.flattened=d.sequence;else return Promise.reject(new Error("Must pass in either a visualObj or a sequence"));e.millisecondsPerMeasure=d.millisecondsPerMeasure?d.millisecondsPerMeasure:d.visualObj?d.visualObj.millisecondsPerMeasure(e.flattened.tempo):1e3,e.beatsPerMeasure=d.visualObj?d.visualObj.getBeatsPerMeasure():4,e.sequenceCallback=w.sequenceCallback,e.callbackContext=w.callbackContext,e.onEnded=w.onEnded,e.meterFraction=d.visualObj?d.visualObj.getMeterFraction():{den:1};var B={},S=[],L=[],x=i[0];e.flattened.tracks.forEach(function(_){_.forEach(function(P){if(P.cmd==="program"&&i[P.instrument]&&(x=i[P.instrument]),P.pitch!==void 0){var I=P.pitch,q=o[I],b=P.instrument!==void 0?i[P.instrument]:x;if(q)if(B[b]||(B[b]={}),!v[b]||!v[b][q])B[b][q]=!0;else{var k=b+":"+q;S.indexOf(k)<0&&S.push(k)}else{var E=b+":"+q;console.log("Can't find note: ",I,E),L.indexOf(E)<0&&L.push(E)}}})}),e.debugCallback&&e.debugCallback("note gathering time = "+Math.floor((l().currentTime-m)*1e3)+"ms"),m=l().currentTime;var M=[];Object.keys(B).forEach(function(_){Object.keys(B[_]).forEach(function(P){M.push({instrument:_,note:P})})}),e.debugCallback&&e.debugCallback("notes "+JSON.stringify(M));for(var N=[],F=256,C=0;C<M.length;C+=F)N.push(M.slice(C,C+F));return new Promise(function(_,P){var I={cached:S,error:L,loaded:[]},q=0,b=function(){e.debugCallback&&e.debugCallback("loadBatch idx="+q+" len="+N.length),q<N.length?e._loadBatch(N[q],e.soundFontUrl,m).then(function(k){e.debugCallback&&e.debugCallback("loadBatch then"),m=l().currentTime,k&&(k.error&&(I.error=I.error.concat(k.error)),k.loaded&&(I.loaded=I.loaded.concat(k.loaded))),q++,b()},P):(e.debugCallback&&e.debugCallback("resolve init"),_(I))};b()})},e._loadBatch=(function(d,m,w,T){var D=[];return d.forEach(function(B){e.debugCallback&&e.debugCallback("getNote "+B.instrument+":"+B.note),D.push(A(m,B.instrument,B.note,l()))}),Promise.all(D).then(function(B){e.debugCallback&&e.debugCallback("mp3 load time = "+Math.floor((l().currentTime-w)*1e3)+"ms");for(var S=[],L=[],x=[],M=[],N=0;N<B.length;N++){var F=B[N],C=F.instrument+":"+F.name;F.status==="loaded"?S.push(C):F.status==="pending"?x.push(C):F.status==="cached"?L.push(C):M.push(C+" "+F.message)}if(x.length>0){if(e.debugCallback&&e.debugCallback("pending "+JSON.stringify(x)),T?T=T*2:T=50,T<9e4)return new Promise(function(I,q){setTimeout(function(){var b=[];for(N=0;N<x.length;N++)C=x[N].split(":"),b.push({instrument:C[0],note:C[1]});e.debugCallback&&e.debugCallback("retry "+JSON.stringify(b)),e._loadBatch(b,m,w,T).then(function(k){I(k)}).catch(function(k){q(k)})},T)});for(var _=[],P=0;P<d.length;P++)_.push(d[P].instrument+"/"+d[P].note);return e.debugCallback&&e.debugCallback("loadBatch timeout"),Promise.reject(new Error("timeout attempting to load: "+_.join(", ")))}else return e.debugCallback&&e.debugCallback("loadBatch resolve"),Promise.resolve({loaded:S,cached:L,error:M})}).catch(function(B){e.debugCallback&&e.debugCallback("loadBatch catch "+B.message)})}),e.prime=function(){var d=e.fadeLength/1e3;return e.isRunning=!1,e.audioBufferPossible?(e.debugCallback&&e.debugCallback("prime called"),new Promise(function(m,w){try{let I=function(q){var b=q&&q.audioBuffers&&q.audioBuffers.length>0?q.audioBuffers[0].duration:0;return{status:l().state,duration:b}};var T=l().currentTime,D=e.millisecondsPerMeasure/1e3/e.meterSize;if(e.duration=e.flattened.totalDuration*D,e.duration<=0)return e.audioBuffers=[],m({status:"empty",seconds:0});e.duration+=d;var B=Math.floor(l().sampleRate*e.duration);e.stop();var S=y(e.flattened);e.options.swing&&p(S,e.options.swing,e.meterFraction,e.pickupLength),e.sequenceCallback&&e.sequenceCallback(S,e.callbackContext);var L=h(S.length,e.pan),x={};S.forEach(function(q,b){var k=L&&L.length>b?L[b]:0;q.forEach(function(E){var R=E.instrument+":"+E.pitch+":"+E.volume+":"+Math.round((E.end-E.start)*1e3)/1e3+":"+k+":"+D+":"+(E.cents?E.cents:0);e.debugCallback&&e.debugCallback("noteMapTrack "+R),x[R]||(x[R]=[]),x[R].push(E.start)})});for(var M=[],N=l().createBuffer(2,B,l().sampleRate),F=0;F<Object.keys(x).length;F++){var C=Object.keys(x)[F],_=C.split(":"),P=_[6]!==void 0?parseFloat(_[6]):0;_={instrument:_[0],pitch:parseInt(_[1],10),volume:parseInt(_[2],10),len:parseFloat(_[3]),pan:parseFloat(_[4]),tempoMultiplier:parseFloat(_[5]),cents:P},M.push(c(N,l().sampleRate,_,x[C],e.soundFontVolumeMultiplier,e.programOffsets[_.instrument],d,e.noteEnd/1e3,e.debugCallback))}e.audioBuffers=[N],e.debugCallback&&(e.debugCallback("sampleRate = "+l().sampleRate),e.debugCallback("totalSamples = "+B),e.debugCallback("creationTime = "+Math.floor((l().currentTime-T)*1e3)+"ms")),Promise.all(M).then(function(){l().state==="suspended"?l().resume().then(function(){m(I(e))}):l().state==="interrupted"?l().suspend().then(function(){l().resume().then(function(){m(I(e))})}):m(I(e))}).catch(function(q){w(q)})}catch(I){w(I)}})):Promise.reject(new Error(u))};function h(d,m){if(m==null)return null;var w=[];if(m.length){for(var T=0;T<d;T++)if(T<m.length){var D=parseFloat(m[T]);D<-1?D=-1:D>1&&(D=1),w.push(D)}else w.push(0);return w}else{var B=parseFloat(m);if(B*(d-1)>2)return null;for(var S=d%2===0,L=S?0-B/2:0,x=L+B,M=0;M<d;M++)S=M%2===0,S?(w.push(L),L-=B):(w.push(x),x+=B);return w}}e.start=function(){if(!e.audioBufferPossible)throw new Error(u);e.debugCallback&&e.debugCallback("start called");var d=e.pausedTimeSec?e.pausedTimeSec:0;e._kickOffSound(d),e.startTimeSec=l().currentTime-d,e.pausedTimeSec=void 0,e.debugCallback&&e.debugCallback("MIDI STARTED",e.startTimeSec)},e.pause=function(){if(!e.audioBufferPossible)throw new Error(u);return e.debugCallback&&e.debugCallback("pause called"),e.pausedTimeSec=e.stop(),e.pausedTimeSec},e.resume=function(){e.start()},e.seek=function(d,m){var w;switch(m){case"seconds":w=d;break;case"beats":w=d*e.millisecondsPerMeasure/e.beatsPerMeasure/1e3;break;default:w=(e.duration-e.fadeLength/1e3)*d;break}if(!e.audioBufferPossible)throw new Error(u);e.debugCallback&&e.debugCallback("seek called sec="+w),e.isRunning?(e.stop(),e._kickOffSound(w)):e.pausedTimeSec=w,e.pausedTimeSec=w},e.stop=function(){e.isRunning=!1,e.pausedTimeSec=void 0,e.directSource.forEach(function(m){try{m.stop()}catch(w){console.log("direct source didn't stop:",w)}}),e.directSource=[];var d=l().currentTime-e.startTimeSec;return d},e.finished=function(){e.startTimeSec=void 0,e.pausedTimeSec=void 0,e.isRunning=!1},e.download=function(){return s(e)},e.getAudioBuffer=function(){return e.audioBuffers[0]},e.getIsRunning=function(){return e.isRunning},e._deviceCapable=function(){return a()?!0:(console.warn(u),e.debugCallback&&e.debugCallback(u),!1)},e._kickOffSound=function(d){e.isRunning=!0,e.directSource=[],e.audioBuffers.forEach(function(m,w){e.directSource[w]=l().createBufferSource(),e.directSource[w].buffer=m,e.directSource[w].connect(l().destination)}),e.directSource.forEach(function(m){m.start(0,d)}),e.onEnded&&(e.directSource[0].onended=function(){e.onEnded(e.callbackContext)})};function p(d,m,w,T){if(!(w.den!=4&&w.den!=8)&&(m=parseFloat(m),!(isNaN(m)||m<=50))){m>75&&(m=75),m=m/50-1;var D=0,B=.25;w.den===8&&(B=B/2);for(var S=B/2,L=S*m,x=0;x<d.length;x++)for(var M=d[x],N=0;N<M.length;N++){var F=M[N];if((F.start-T)%S==0&&(F.start-T)%B!=0&&(N==0||M[N-1].start<=M[N].start-S)&&(N==M.length-1||M[N+1].start>=M[N].start+S)){var C=F.start;F.start+=L,F.volume*=1+D,N>0&&M[N-1].end==C&&(M[N-1].end=F.start,M[N-1].volume*=1-D)}}}}}return pr=r,pr}var gr,xn;function os(){if(xn)return gr;xn=1;var A=function(){var y=this;y.tracks=[],y.totalDuration=0,y.currentInstrument=[],y.starts=[],y.addTrack=function(){return y.tracks.push([]),y.currentInstrument.push(0),y.starts.push(0),y.tracks.length-1},y.setInstrument=function(g,l){y.tracks[g].push({channel:0,cmd:"program",instrument:l}),y.currentInstrument[g]=l},y.appendNote=function(g,l,a,o,i){var s={cmd:"note",duration:a,gap:0,instrument:y.currentInstrument[g],pitch:l,start:y.starts[g],volume:o};i&&(s.cents=i),y.tracks[g].push(s),y.starts[g]+=a,y.totalDuration=Math.max(y.totalDuration,y.starts[g])}};return gr=A,gr}var br,Cn;function Ko(){if(Cn)return br;Cn=1;var A=`
41
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" preserveAspectRatio="xMidYMid meet">
42
+ <g transform="translate(0,700) scale(0.1,-0.1)" >
43
+ <path d="M3111 6981 c-20 -37 -90 -55 -364 -96 -120 -18 -190 -33 -244 -55
44
+ -42 -17 -124 -42 -182 -56 -78 -18 -119 -34 -157 -60 -28 -19 -86 -46 -128
45
+ -60 -43 -13 -107 -42 -144 -64 -37 -23 -84 -46 -106 -52 -21 -7 -56 -29 -79
46
+ -50 -22 -22 -61 -50 -86 -63 -26 -13 -67 -40 -91 -60 -24 -20 -65 -47 -90 -60
47
+ -25 -13 -53 -31 -61 -41 -8 -9 -32 -30 -54 -46 -75 -54 -486 -460 -512 -507
48
+ -15 -25 -48 -69 -75 -98 -26 -28 -48 -57 -48 -63 0 -6 -18 -29 -39 -53 -21
49
+ -23 -56 -71 -77 -107 -20 -36 -50 -80 -65 -97 -16 -18 -33 -52 -40 -75 -12
50
+ -47 -47 -115 -84 -166 -13 -18 -30 -56 -38 -83 -8 -27 -34 -80 -56 -118 -33
51
+ -53 -46 -91 -62 -167 -12 -63 -34 -127 -59 -179 -42 -84 -60 -166 -60 -270 0
52
+ -90 26 -122 125 -154 54 -17 96 -19 430 -20 305 -1 381 2 430 14 82 22 140 51
53
+ 153 78 6 12 22 47 37 77 14 30 38 77 54 103 15 27 34 73 40 103 7 30 28 78 48
54
+ 107 19 28 44 74 55 101 10 28 34 67 53 87 18 20 49 61 68 90 19 30 44 63 57
55
+ 74 13 11 36 40 52 65 59 94 232 270 306 313 20 11 57 37 82 58 25 20 70 52
56
+ 100 72 30 19 66 47 79 61 13 14 49 35 80 46 30 12 80 37 111 56 31 19 95 45
57
+ 143 58 48 12 110 37 139 55 63 40 127 55 323 76 83 9 208 28 279 41 156 29
58
+ 165 29 330 4 453 -71 514 -84 606 -130 31 -16 83 -36 116 -45 32 -9 84 -34
59
+ 115 -56 31 -21 82 -48 113 -60 32 -11 72 -33 89 -48 18 -16 59 -45 92 -65 33
60
+ -21 74 -51 90 -66 17 -15 49 -40 73 -54 52 -32 65 -61 50 -113 -8 -31 -61 -90
61
+ -277 -308 -300 -303 -361 -382 -369 -481 -2 -29 0 -66 6 -81 13 -40 88 -138
62
+ 115 -151 12 -6 54 -26 92 -44 l70 -33 945 -2 c520 -1 975 2 1012 7 64 8 191
63
+ 50 231 76 11 7 33 34 50 60 22 34 42 51 65 58 l32 9 0 1101 0 1102 -32 9 c-21
64
+ 7 -44 26 -64 55 -60 84 -77 97 -140 110 -44 9 -76 10 -127 2 -59 -9 -77 -17
65
+ -134 -62 -37 -28 -172 -155 -301 -281 -129 -127 -249 -237 -267 -245 -25 -10
66
+ -41 -11 -71 -2 -58 15 -112 45 -124 69 -6 11 -35 35 -64 54 -28 18 -58 41 -66
67
+ 50 -8 9 -41 35 -75 58 -33 22 -77 56 -99 75 -21 18 -64 46 -95 61 -31 14 -73
68
+ 39 -93 55 -20 15 -70 40 -110 55 -40 15 -97 44 -127 64 -29 21 -78 44 -107 53
69
+ -30 8 -77 31 -105 51 -42 28 -73 39 -173 60 -68 14 -154 39 -196 58 -95 43
70
+ -131 51 -343 76 -209 24 -242 32 -279 70 l-30 29 -328 0 c-312 0 -330 -1 -339
71
+ -19z"></path>
72
+ <path d="M254 2875 c-89 -16 -107 -26 -145 -78 -32 -44 -62 -66 -91 -67 -17 0
73
+ -18 -61 -18 -1140 l0 -1140 24 0 c16 0 41 -17 72 -50 40 -42 61 -55 117 -72
74
+ l69 -21 82 23 c44 12 96 30 114 39 18 9 148 132 290 272 141 141 267 261 279
75
+ 268 51 26 86 14 176 -61 32 -26 62 -48 66 -48 5 0 36 -25 70 -55 34 -30 74
76
+ -61 89 -69 15 -8 37 -28 50 -45 12 -17 50 -45 84 -62 34 -17 78 -44 98 -60 19
77
+ -16 61 -37 93 -48 32 -11 81 -37 107 -56 27 -20 76 -45 109 -56 33 -12 75 -31
78
+ 93 -44 62 -45 93 -58 191 -82 54 -12 130 -37 168 -54 68 -29 180 -58 226 -59
79
+ 62 0 183 -64 183 -96 0 -12 88 -14 639 -14 l639 0 12 30 c18 44 76 66 233 89
80
+ 89 14 160 30 200 47 34 15 106 42 159 60 54 18 112 44 130 57 47 35 85 52 146
81
+ 67 29 7 76 28 105 48 29 20 77 48 107 63 30 15 66 39 80 54 14 15 50 40 81 56
82
+ 31 15 78 46 104 69 26 22 61 46 79 54 17 7 43 26 56 42 14 16 41 41 60 56 64
83
+ 48 380 362 408 405 15 23 40 51 55 63 15 12 36 38 46 58 11 21 37 57 58 82 22
84
+ 25 49 62 62 83 13 20 38 56 57 78 19 23 50 74 69 113 19 39 46 86 59 104 14
85
+ 18 34 62 46 98 12 36 32 77 45 92 31 38 60 97 80 167 9 33 26 76 37 95 29 50
86
+ 47 103 68 206 10 52 32 117 51 155 29 56 33 74 34 140 0 94 -10 108 -101 138
87
+ -61 20 -83 21 -463 21 -226 0 -421 -4 -451 -10 -63 -12 -86 -30 -110 -85 -10
88
+ -22 -33 -63 -52 -92 -21 -31 -42 -80 -53 -123 -11 -44 -32 -93 -56 -128 -20
89
+ -32 -47 -83 -59 -115 -12 -32 -37 -77 -56 -100 -19 -23 -50 -65 -69 -94 -19
90
+ -29 -44 -57 -54 -63 -11 -5 -29 -27 -42 -47 -52 -85 -234 -277 -300 -315 -25
91
+ -15 -53 -38 -62 -51 -9 -14 -42 -39 -74 -57 -32 -18 -75 -48 -95 -66 -21 -18
92
+ -59 -44 -85 -58 -26 -13 -72 -40 -100 -59 -35 -24 -78 -41 -128 -52 -47 -11
93
+ -99 -31 -139 -56 -69 -42 -94 -49 -391 -110 -245 -51 -425 -66 -595 -50 -168
94
+ 16 -230 27 -330 61 -47 16 -123 35 -170 44 -98 17 -123 25 -172 58 -20 14 -71
95
+ 37 -114 53 -44 15 -95 40 -115 56 -20 16 -70 42 -110 59 -40 16 -88 45 -108
96
+ 63 -20 19 -55 46 -78 61 -24 14 -49 35 -55 47 -7 11 -34 33 -60 49 -50 31 -65
97
+ 61 -53 102 4 13 130 147 281 298 236 238 277 283 299 335 15 32 35 71 46 86
98
+ 12 18 19 44 19 76 0 42 -8 63 -53 138 -92 151 11 139 -1207 141 -798 2 -1030
99
+ 0 -1086 -11z"></path>
100
+ </g>
101
+ </svg>
102
+ `;return br=A,br}var mr,kn;function $o(){if(kn)return mr;kn=1;var A=`
103
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-play-svg">
104
+ <g>
105
+ <polygon points="4 0 23 12.5 4 25"/>
106
+ </g>
107
+ </svg>
108
+ `;return mr=A,mr}var yr,_n;function Qo(){if(_n)return yr;_n=1;var A=`
109
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-pause-svg">
110
+ <g>
111
+ <rect width="8.23" height="25"/>
112
+ <rect width="8.23" height="25" x="17"/>
113
+ </g>
114
+ </svg>
115
+ `;return yr=A,yr}var wr,Tn;function Jo(){if(Tn)return wr;Tn=1;var A=`
116
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="abcjs-loading-svg">
117
+ <circle cx="50" cy="50" fill="none" stroke-width="20" r="35" stroke-dasharray="160 55"></circle>
118
+ </svg>
119
+ `;return wr=A,wr}var xr,Sn;function Zo(){if(Sn)return xr;Sn=1;var A=`
120
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25">
121
+ <g>
122
+ <polygon points="5 12.5 24 0 24 25"/>
123
+ <rect width="3" height="25" x="0" y="0"/>
124
+ </g>
125
+ </svg>
126
+ `;return xr=A,xr}var Cr,En;function cs(){if(En)return Cr;En=1;var A=Ge(),y=ze(),g=Ie(),l=Ko(),a=$o(),o=Qo(),i=Jo(),s=Zo();function c(t,r){var e=this;if(typeof t=="string"){var h=t;if(t=document.querySelector(h),!t)throw new Error('Cannot find element "'+h+'" in the DOM.')}else if(!(t instanceof HTMLElement))throw new Error("The first parameter must be a valid element or selector in the DOM.");if(e.parent=t,e.options={},r&&(e.options=Object.assign({},r)),e.options.ac&&y(e.options.ac),v(e.parent,e.options),n(e),e.disable=function(d){var m=e.parent.querySelector(".abcjs-inline-audio");d?m.classList.add("abcjs-disabled"):m.classList.remove("abcjs-disabled")},e.setWarp=function(d,m){var w=e.parent.querySelector(".abcjs-midi-tempo");w.value=Math.round(m),e.setTempo(d)},e.setTempo=function(d){var m=e.parent.querySelector(".abcjs-midi-current-tempo");m&&(m.innerHTML=Math.round(d))},e.resetAll=function(){for(var d=e.parent.querySelectorAll(".abcjs-pushed"),m=0;m<d.length;m++){var w=d[m];w.classList.remove("abcjs-pushed")}},e.pushPlay=function(d){var m=e.parent.querySelector(".abcjs-midi-start");m&&(d?m.classList.add("abcjs-pushed"):m.classList.remove("abcjs-pushed"))},e.pushLoop=function(d){var m=e.parent.querySelector(".abcjs-midi-loop");m&&(d?m.classList.add("abcjs-pushed"):m.classList.remove("abcjs-pushed"))},e.setProgress=function(d,m){var w=e.parent.querySelector(".abcjs-midi-progress-background"),T=e.parent.querySelector(".abcjs-midi-progress-indicator");if(!(!w||!T)){var D=w.clientWidth,B=D*d;T.style.left=B+"px";var S=e.parent.querySelector(".abcjs-midi-clock");if(S){var L=m*d/1e3,x=Math.floor(L/60),M=Math.floor(L%60),N=M<10?"0"+M:M;S.innerHTML=x+":"+N}}},e.options.afterResume){var p=!1;e.options.ac?p=e.options.ac.state!=="suspended":g()&&(p=g().state!=="suspended"),p&&e.options.afterResume()}}function v(t,r){var e=!!r.loopHandler,h=!!r.restartHandler,p=!!r.playHandler||!!r.playPromiseHandler,d=!!r.progressHandler,m=!!r.warpHandler,w=r.hasClock!==!1,T=`<div class="abcjs-inline-audio">
127
+ `;if(e){var D=r.repeatTitle?r.repeatTitle:"Click to toggle play once/repeat.",B=r.repeatAria?r.repeatAria:D;T+='<button type="button" class="abcjs-midi-loop abcjs-btn" title="'+D+'" aria-label="'+B+'">'+l+`</button>
128
+ `}if(h){var S=r.restartTitle?r.restartTitle:"Click to go to beginning.",L=r.restartAria?r.restartAria:S;T+='<button type="button" class="abcjs-midi-reset abcjs-btn" title="'+S+'" aria-label="'+L+'">'+s+`</button>
129
+ `}if(p){var x=r.playTitle?r.playTitle:"Click to play/pause.",M=r.playAria?r.playAria:x;T+='<button type="button" class="abcjs-midi-start abcjs-btn" title="'+x+'" aria-label="'+M+'">'+a+o+i+`</button>
130
+ `}if(d){var N=r.randomTitle?r.randomTitle:"Click to change the playback position.",F=r.randomAria?r.randomAria:N;T+='<button type="button" class="abcjs-midi-progress-background" title="'+N+'" aria-label="'+F+`"><span class="abcjs-midi-progress-indicator"></span></button>
131
+ `}if(w&&(T+=`<span class="abcjs-midi-clock"></span>
132
+ `),m){var C=r.warpTitle?r.warpTitle:"Change the playback speed.",_=r.warpAria?r.warpAria:C,P=r.bpm?r.bpm:"BPM";T+='<span class="abcjs-tempo-wrapper"><label><input class="abcjs-midi-tempo" type="number" min="1" max="300" value="100" title="'+C+'" aria-label="'+_+'">%</label><span>&nbsp;(<span class="abcjs-midi-current-tempo"></span> '+P+`)</span></span>
133
+ `}T+='<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>',T+=`</div>
134
+ `,t.innerHTML=T}function u(t,r,e,h,p){var d=!0;if(g()?d=g().state==="suspended":y(),!A())throw{status:"NotSupported",message:"This browser does not support audio."};(d||p)&&e&&e.classList.add("abcjs-loading"),d?g().resume().then(function(){h?h().then(function(m){f(t,r,e,p)}):f(t,r,e,p)}):f(t,r,e,p)}function f(t,r,e,h){h?t(r).then(function(){e&&e.classList.remove("abcjs-loading")}):(t(r),e&&e.classList.remove("abcjs-loading"))}function n(t){var r=!!t.options.loopHandler,e=!!t.options.restartHandler,h=!!t.options.playHandler||!!t.options.playPromiseHandler,p=!!t.options.progressHandler,d=!!t.options.warpHandler,m=t.parent.querySelector(".abcjs-midi-start");r&&t.parent.querySelector(".abcjs-midi-loop").addEventListener("click",function(w){u(t.options.loopHandler,w,m,t.options.afterResume)}),e&&t.parent.querySelector(".abcjs-midi-reset").addEventListener("click",function(w){u(t.options.restartHandler,w,m,t.options.afterResume)}),h&&m.addEventListener("click",function(w){u(t.options.playPromiseHandler||t.options.playHandler,w,m,t.options.afterResume,!!t.options.playPromiseHandler)}),p&&t.parent.querySelector(".abcjs-midi-progress-background").addEventListener("click",function(w){u(t.options.progressHandler,w,m,t.options.afterResume)}),d&&t.parent.querySelector(".abcjs-midi-tempo").addEventListener("change",function(w){u(t.options.warpHandler,w,m,t.options.afterResume)})}return Cr=c,Cr}var kr,An;function ec(){if(An)return kr;An=1;var A=os(),y=Yr(),g=Ie();function l(o,i,s,c,v){for(var u=new A,f=0;f<o.length;f++){var n=o[f],t=u.addTrack();if(u.setInstrument(t,n.instrument),f===0&&i)for(var r=0;r<i.length;r++){var e=i[r];u.appendNote(t,e.pitch,1/64,e.volume,e.cents)}u.appendNote(t,n.pitch,n.duration,n.volume,n.cents)}var h=g();return h.state==="suspended"?h.resume().then(function(){return a(u,s,c,v)}):a(u,s,c,v)}function a(o,i,s,c){var v=new y;return v.init({sequence:o,millisecondsPerMeasure:i,options:{soundFontUrl:s},debugCallback:c}).then(function(){return v.prime()}).then(function(){return v.start(),Promise.resolve()})}return kr=l,kr}var _r,Mn;function ls(){if(Mn)return _r;Mn=1;var A=cs(),y=Yr(),g=Nr(),l=Ie();function a(){var o=this;o.warp=100,o.cursorControl=null,o.visualObj=null,o.timer=null,o.midiBuffer=null,o.options=null,o.currentTempo=null,o.control=null,o.isLooping=!1,o.isStarted=!1,o.isLoaded=!1,o.isLoading=!1,o.load=function(s,c,v){v||(v={}),v.displayPlay===void 0&&(v.displayPlay=!0),v.displayProgress===void 0&&(v.displayProgress=!0),o.control=new A(s,{loopHandler:v.displayLoop?o.toggleLoop:void 0,restartHandler:v.displayRestart?o.restart:void 0,playPromiseHandler:v.displayPlay?o.play:void 0,progressHandler:v.displayProgress?o.randomAccess:void 0,warpHandler:v.displayWarp?o.onWarp:void 0,afterResume:o.init}),o.cursorControl=c,o.disable(!0)},o.disable=function(s){o.control&&o.control.disable(s)},o.setTune=function(s,c,v){return o.visualObj=s,o.disable(!1),o.options=v||{},o.control&&(o.pause(),o.setProgress(0,1),o.control.resetAll(),o.restart(),o.isStarted=!1),o.isLooping=!1,c?o.go():Promise.resolve({status:"no-audio-context"})},o.go=function(){o.isLoading=!0;var s=o.visualObj.millisecondsPerMeasure()*100/o.warp;o.currentTempo=Math.round(o.visualObj.getBeatsPerMeasure()/s*6e4),o.control&&o.control.setTempo(o.currentTempo),o.percent=0;var c;return o.midiBuffer||(o.midiBuffer=new y),l().resume().then(function(v){return o.midiBuffer.init({visualObj:o.visualObj,options:o.options,millisecondsPerMeasure:s})}).then(function(v){return c=v,o.midiBuffer.prime()}).then(function(){var v=16;return o.cursorControl&&o.cursorControl.beatSubdivisions!==void 0&&parseInt(o.cursorControl.beatSubdivisions,10)>=1&&parseInt(o.cursorControl.beatSubdivisions,10)<=64&&(v=parseInt(o.cursorControl.beatSubdivisions,10)),o.timer=new g(o.visualObj,{beatCallback:o.beatCallback,eventCallback:o.eventCallback,lineEndCallback:o.lineEndCallback,qpm:o.currentTempo,extraMeasuresAtBeginning:o.cursorControl?o.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:o.cursorControl?o.cursorControl.lineEndAnticipation:0,beatSubdivisions:v}),o.cursorControl&&o.cursorControl.onReady&&typeof o.cursorControl.onReady=="function"&&o.cursorControl.onReady(o),o.isLoaded=!0,o.isLoading=!1,Promise.resolve({status:"created",notesStatus:c})})},o.destroy=function(){o.timer&&(o.timer.reset(),o.timer.stop(),o.timer=null),o.midiBuffer&&(o.midiBuffer.stop(),o.midiBuffer=null),o.setProgress(0,1),o.control&&o.control.resetAll()},o.play=function(){return o.runWhenReady(o._play,void 0)};function i(s){return new Promise(function(c){setTimeout(c,s)})}o.runWhenReady=function(s,c){return o.visualObj?o.isLoading?i(500).then(function(){return o.isLoading?o.runWhenReady(s,c):s(c)}):o.isLoaded?s(c):o.go().then(function(){return s(c)}):Promise.resolve({status:"loading"})},o._play=function(){return l().resume().then(function(){return o.isStarted=!o.isStarted,o.isStarted?(o.cursorControl&&o.cursorControl.onStart&&typeof o.cursorControl.onStart=="function"&&o.cursorControl.onStart(),o.midiBuffer.start(),o.timer.start(o.percent),o.control&&o.control.pushPlay(!0)):o.pause(),Promise.resolve({status:"ok"})})},o.pause=function(){o.timer&&(o.timer.pause(),o.midiBuffer.pause(),o.control&&o.control.pushPlay(!1))},o.toggleLoop=function(){o.isLooping=!o.isLooping,o.control&&o.control.pushLoop(o.isLooping)},o.restart=function(){o.timer&&(o.timer.setProgress(0),o.midiBuffer.seek(0))},o.randomAccess=function(s){return o.runWhenReady(o._randomAccess,s)},o._randomAccess=function(s){var c=s.target.classList.contains("abcjs-midi-progress-indicator")?s.target.parentNode:s.target,v=(s.x-c.getBoundingClientRect().left)/c.offsetWidth;return v<0&&(v=0),v>1&&(v=1),o.seek(v),Promise.resolve({status:"ok"})},o.seek=function(s,c){o.timer&&o.midiBuffer&&(o.timer.setProgress(s,c),o.midiBuffer.seek(s,c))},o.setWarp=function(s){if(parseInt(s,10)>0){o.warp=parseInt(s,10);var c=o.isStarted,v=o.percent;return o.destroy(),o.isStarted=!1,o.go().then(function(){return o.setProgress(v,o.midiBuffer.duration*1e3),o.control&&o.control.setWarp(o.currentTempo,o.warp),c?o.play().then(function(){return o.seek(v),Promise.resolve()}):(o.seek(v),Promise.resolve())})}return Promise.resolve()},o.onWarp=function(s){var c=s.target.value;return o.setWarp(c)},o.setProgress=function(s,c){o.percent=s,o.control&&o.control.setProgress(s,c)},o.finished=function(){if(o.timer.reset(),o.isLooping)return o.timer.start(0),o.midiBuffer.finished(),o.midiBuffer.start(),"continue";o.timer.stop(),o.isStarted&&(o.control&&o.control.pushPlay(!1),o.isStarted=!1,o.midiBuffer.finished(),o.cursorControl&&o.cursorControl.onFinished&&typeof o.cursorControl.onFinished=="function"&&o.cursorControl.onFinished(),o.setProgress(0,1))},o.beatCallback=function(s,c,v,u){var f=s/c;o.setProgress(f,v),o.cursorControl&&o.cursorControl.onBeat&&typeof o.cursorControl.onBeat=="function"&&o.cursorControl.onBeat(s,c,v,u)},o.eventCallback=function(s){if(s)o.cursorControl&&o.cursorControl.onEvent&&typeof o.cursorControl.onEvent=="function"&&o.cursorControl.onEvent(s);else return o.finished()},o.lineEndCallback=function(s,c){o.cursorControl&&o.cursorControl.onLineEnd&&typeof o.cursorControl.onLineEnd=="function"&&o.cursorControl.onLineEnd(s,c)},o.getUrl=function(){return o.midiBuffer.download()},o.download=function(s){var c=o.getUrl(),v=document.createElement("a");document.body.appendChild(v),v.setAttribute("style","display: none;"),v.href=c,v.download=s||"output.wav",v.click(),window.URL.revokeObjectURL(c),document.body.removeChild(v)}}return _r=a,_r}var Tr,Bn;function fs(){if(Bn)return Tr;Bn=1;var A=ss(),y;return(function(){function g(n,t){for(var r in t)t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n}function l(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90",this.noteOffAndChannel="%80"}l.prototype.setTempo=function(n){this.trackcount===0&&(this.startTrack(),this.track+="%00%FF%51%03"+v(Math.round(6e7/n),6),this.endTrack())},l.prototype.setGlobalInfo=function(n,t,r,e){if(this.trackcount===0){this.startTrack();var h=Math.round(6e7/n);this.track+="%00%FF%51%03"+v(h,6),r&&(this.track+=i(r)),e&&(this.track+=s(e)),t&&(this.track+=o(t,"%01")),this.endTrack()}},l.prototype.startTrack=function(){this.noteWarped={},this.track="",this.trackName="",this.trackInstrument="",this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},l.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track;var n=v(this.track.length/3+4,8);this.track="MTrk"+n+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},l.prototype.setText=function(n,t){switch(n){case"name":this.trackName=o(t,"%03");break}},l.prototype.setInstrument=function(n){this.trackInstrument="%00%C0"+v(n,2),this.instrument=n},l.prototype.setChannel=function(n,t){this.channel=n;var r="%00%B"+this.channel.toString(16);this.track+=r+"%79%00",this.track+=r+"%40%00",this.track+=r+"%5B%30",t||(t=0),t=Math.round((t+1)*64),this.track+=r+"%0A"+v(t,2),this.track+=r+"%07%64",this.noteOnAndChannel="%9"+this.channel.toString(16),this.noteOffAndChannel="%8"+this.channel.toString(16)};var a=4096;l.prototype.startNote=function(n,t,r){if(this.track+=f(this.silencelength),this.silencelength=0,r){this.track+="%e"+this.channel.toString(16);var e=Math.round(A(r)*a);this.track+=u(8192+e),this.track+=f(0),this.noteWarped[n]=!0}this.track+=this.noteOnAndChannel,this.track+="%"+n.toString(16)+v(t,2)},l.prototype.endNote=function(n){this.track+=f(this.silencelength),this.silencelength=0,this.noteWarped[n]&&(this.track+="%e"+this.channel.toString(16),this.track+=u(8192),this.track+=f(0),this.noteWarped[n]=!1),this.track+=this.noteOffAndChannel,this.track+="%"+n.toString(16)+"%00"},l.prototype.addRest=function(n){this.silencelength+=n,this.silencelength<0&&(this.silencelength=0)},l.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+v(this.trackcount,4)+"%01%e0"+this.trackstrings},l.prototype.embed=function(n,t){var r=this.getData(),e=g(document.createElement("a"),{href:r});if(e.innerHTML="download midi",n.insertBefore(e,n.firstChild),!t){var h=g(document.createElement("embed"),{src:r,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});n.insertBefore(h,n.firstChild)}};function o(n,t){for(var r="",e=0;e<n.length;e++)r+=v(n.charCodeAt(e),2);return"%00%FF"+t+v(r.length/3,2)+r}function i(n){if(!n||!n.accidentals)return"";for(var t="%00%FF%59%02",r=0,e=256,h=0;h<n.accidentals.length;h++)n.accidentals[h].acc==="sharp"?r++:n.accidentals[h].acc==="flat"&&e--;var p=v(e!==256?e:r,2),d=n.mode==="m"?"%01":"%00";return t+p+d}function s(n){var t="%00%FF%58%04"+v(n.num,2),r={1:0,2:1,4:2,8:3,16:4,32:5},e=r[n.den];if(!e)return"";t+=v(e,2);var h;switch(n.num+"/"+n.den){case"2/4":case"3/4":case"4/4":case"5/4":h=24;break;case"6/4":h=72;break;case"2/2":case"3/2":case"4/2":h=48;break;case"3/8":case"6/8":case"9/8":case"12/8":h=36;break}return h?(t+=v(h,2),t+"%08"):""}function c(n){for(var t="",r=0;r<n.length;r+=2)t+="%",t+=n.substr(r,2);return t}function v(n,t){var r=n.toString(16);for(r=r.split(".")[0];r.length<t;)r="0"+r;return r.length>t&&(r=r.substring(0,t)),c(r)}function u(n){n=Math.round(n);var t=n%128,r=n-t;return v(r*2+t,4)}function f(n){var t=0,r=[];for(n=Math.round(n);n!==0;)r.push(n&127),n=n>>7;for(var e=r.length-1;e>=0;e--){t=t<<8;var h=r[e];e!==0&&(h=h|128),t=t|h}var p=t.toString(16).length;return p+=p%2,v(t,p)}y=function(){return new l}})(),Tr=y,Tr}var Sr,Nn;function tc(){if(Nn)return Sr;Nn=1;var A=fs(),y;return(function(){var g=1920;y=function(o,i){i===void 0&&(i={});var s=o.setUpAudio(i),c=A(),v=o.metaText?o.metaText.title:void 0;v&&v.length>128&&(v=v.substring(0,124)+"...");var u=o.getKeySignature(),f=o.getMeterFraction(),n=s.tempo,t=n/60;if(f.den===8&&f.num!==5&&f.num!==7){var r=o.millisecondsPerMeasure();n=6e4/(r/f.num)/2,t=n/60}c.setGlobalInfo(n,v,u,f);for(var e=0;e<s.tracks.length;e++){c.startTrack();for(var h={},p=0;p<s.tracks[e].length;p++){var d=s.tracks[e][p];switch(d.cmd){case"text":c.setText(d.type,d.text);break;case"program":var m=0;i.pan&&i.pan.length>e&&(m=i.pan[e]),d.instrument===128?(c.setChannel(9,m),c.setInstrument(0)):(c.setChannel(d.channel,m),c.setInstrument(d.instrument));break;case"note":var w=d.gap*t,T=d.start,D=T+d.duration-w;h[T]||(h[T]=[]),h[T].push({pitch:d.pitch,volume:d.volume,cents:d.cents}),h[D]||(h[D]=[]),h[D].push({pitch:d.pitch,volume:0});break;default:console.log("MIDI create Unknown: "+d.cmd)}}l(c,h,g),c.endTrack()}return c.getData()};function l(a,o,i){for(var s=Object.keys(o),c=0;c<s.length;c++)s[c]=parseFloat(s[c]);s.sort(function(e,h){return e-h});for(var v=0,u=0;u<s.length;u++){var f=o[s[u]];if(s[u]>v){var n=(s[u]-v)*i;a.addRest(n),v=s[u]}for(var t=0;t<f.length;t++){var r=f[t];r.volume?a.startNote(r.pitch,r.volume,r.cents):a.endNote(r.pitch)}}}})(),Sr=y,Sr}var Er,Pn;function rc(){if(Pn)return Er;Pn=1;var A=He(),y=tc(),g=function(o,i){var s={};if(i)for(var c in i)i.hasOwnProperty(c)&&(s[c]=i[c]);s.generateInline=!1;function v(u,f,n){var t=y(f,s);switch(s.midiOutputType){case"encoded":return t;case"binary":var r=t.replace("data:audio/midi,","");r=r.replace(/MThd/g,"%4d%54%68%64"),r=r.replace(/MTrk/g,"%4d%54%72%6b");for(var e=new ArrayBuffer(r.length/3),h=new Uint8Array(e),p=0;p<r.length/3;p++){var d=p*3+1,m=parseInt(r.substring(d,d+2),16);h[p]=m}return h;case"link":default:return a(f,s,t,n)}}return typeof o=="string"?A.renderEngine(v,"*",o,s):v(null,o,0)};function l(o){var i={};return o&&i.toString.call(o)==="[object Function]"}var a=function(o,i,s,c){var v=["abcjs-download-midi","abcjs-midi-"+c];i.downloadClass&&v.push(i.downloadClass);var u='<div class="'+v.join(" ")+'">';i.preTextDownload&&(u+=i.preTextDownload);var f=o.metaText&&o.metaText.title?o.metaText.title:"Untitled",n;i.downloadLabel&&l(i.downloadLabel)?n=i.downloadLabel(o,c):i.downloadLabel?n=i.downloadLabel.replace(/%T/,f):n='Download MIDI for "'+f+'"',f=f.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_");var t=i.fileName?i.fileName:f+".midi";return u+='<a download="'+t+'" href="'+s+'">'+n+"</a>",i.postTextDownload&&(u+=i.postTextDownload),u+"</div>"};return Er=g,Er}var Ar,Ln;function hs(){if(Ln)return Ar;Ln=1;try{if(typeof window.CustomEvent!="function"){var A=function(g,l){l=l||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(g,l.bubbles,l.cancelable,l.detail),a};A.prototype=window.Event.prototype,window.CustomEvent=A}}catch{}var y=function(g){this.isEditArea=!0,typeof g=="string"?(this.textarea=document.getElementById(g),this.textarea||(this.textarea=document.querySelector(g))):this.textarea=g,this.initialText=this.textarea.value,this.isDragging=!1};return y.prototype.addSelectionListener=function(g){this.textarea.onmousemove=function(l){this.isDragging&&g.fireSelectionChanged()}},y.prototype.addChangeListener=function(g){this.changelistener=g,this.textarea.onkeyup=function(){g.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,g.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,g.fireChanged()},this.textarea.onchange=function(){g.fireChanged()}},y.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},y.prototype.setSelection=function(g,l){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(g,l);else if(this.textarea.createTextRange){var a=this.textarea.createTextRange();a.collapse(!0),a.moveEnd("character",l),a.moveStart("character",g),a.select()}this.textarea.focus()},y.prototype.getString=function(){return this.textarea.value},y.prototype.setString=function(g){this.textarea.value=g,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},y.prototype.getElem=function(){return this.textarea},Ar=y,Ar}var Mr,qn;function ac(){if(qn)return Mr;qn=1;var A=_e(),y=ls(),g=Ge(),l=ns(),a=hs();function o(s){var c={},v;if(s.abcjsParams)for(v in s.abcjsParams)s.abcjsParams.hasOwnProperty(v)&&(c[v]=s.abcjsParams[v]);if(s.midi_options)for(v in s.midi_options)s.midi_options.hasOwnProperty(v)&&(c[v]=s.midi_options[v]);if(s.parser_options)for(v in s.parser_options)s.parser_options.hasOwnProperty(v)&&(c[v]=s.parser_options[v]);if(s.render_options)for(v in s.render_options)s.render_options.hasOwnProperty(v)&&(c[v]=s.render_options[v]);return c.tablature&&s.warnings_id&&(c.tablature.warnings_id=s.warnings_id),c}var i=function(s,c){this.abcjsParams=o(c),c.indicate_changed&&(this.indicate_changed=!0),typeof s=="string"?this.editarea=new a(s):s.isEditArea?this.editarea=s:this.editarea=new a(s),this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),c.canvas_id?this.div=c.canvas_id:c.paper_id?this.div=c.paper_id:(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),typeof this.div=="string"&&(this.div=document.getElementById(this.div)),c.selectionChangeCallback&&(this.selectionChangeCallback=c.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),c.synth&&g()&&(this.synth={el:c.synth.el,cursorControl:c.synth.cursorControl,options:c.synth.options}),c.generate_midi&&(this.generate_midi=c.generate_midi,this.abcjsParams.generateDownload&&(typeof c.midi_download_id=="string"?this.downloadMidi=document.getElementById(c.midi_download_id):c.midi_download_id&&(this.downloadMidi=c.midi_download_id)),this.abcjsParams.generateInline!==!1&&(typeof c.midi_id=="string"?this.inlineMidi=document.getElementById(c.midi_id):c.midi_id&&(this.inlineMidi=c.midi_id))),c.warnings_id?typeof c.warnings_id=="string"?this.warningsdiv=document.getElementById(c.warnings_id):this.warningsdiv=c.warnings_id:c.generate_warnings&&(this.warningsdiv=document.createElement("div"),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=c.onchange,this.redrawCallback=c.redrawCallback,this.currentAbc="",this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(v,u){var f=function(n,t){var r=n.className;return r.length>0&&(r===t||new RegExp("(^|\\s)"+t+"(\\s|$)").test(r))};return f(v,u)||(v.className+=(v.className?" ":"")+u),v},this.removeClassName=function(v,u){return v.className=A.strip(v.className.replace(new RegExp("(^|\\s+)"+u+"(\\s+|$)")," ")),v},this.setReadOnly=function(v){var u="abc_textarea_readonly",f=this.editarea.getElem();v?(f.setAttribute("readonly","yes"),this.addClassName(f,u)):(f.removeAttribute("readonly"),this.removeClassName(f,u))}};return i.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var s=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(s)}if(this.synth){var c=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new y,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],c,this.synth.options)}},i.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.redrawCallback&&this.redrawCallback(!0),this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=l(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi(),this.redrawCallback&&this.redrawCallback(!1)}catch(s){console.error("ABCJS error: ",s),this.warnings||(this.warnings=[]),this.warnings.push(s.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("<br />"):"No errors"),this.updateSelection(),this.bReentry=!1}},i.prototype.paramChanged=function(s){if(s)for(var c in s)s.hasOwnProperty(c)&&(this.abcjsParams[c]=s[c]);this.currentAbc="",this.fireChanged()},i.prototype.getTunes=function(){return this.tunes},i.prototype.synthParamChanged=function(s){if(this.synth){if(this.synth.options={},s)for(var c in s)s.hasOwnProperty(c)&&(this.synth.options[c]=s[c]);this.currentAbc="",this.fireChanged()}},i.prototype.parseABC=function(){var s=this.editarea.getString();return s===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=s,!0)},i.prototype.updateSelection=function(){var s=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(s.start,s.end)}catch{}this.selectionChangeCallback&&this.selectionChangeCallback(s.start,s.end)},i.prototype.fireSelectionChanged=function(){this.updateSelection()},i.prototype.setDirtyStyle=function(s){if(this.indicate_changed!==void 0){var c=function(n,t){var r=function(e,h){var p=e.className;return p.length>0&&(p===h||new RegExp("(^|\\s)"+h+"(\\s|$)").test(p))};return r(n,t)||(n.className+=(n.className?" ":"")+t),n},v=function(n,t){return n.className=A.strip(n.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ")),n},u="abc_textarea_dirty",f=this.editarea.getElem();s?c(f,u):v(f,u)}},i.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var s=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){s.modelChanged()},300);var c=this.isDirty();this.wasDirty!==c&&(this.wasDirty=c,this.setDirtyStyle(c)),this.onchangeCallback&&this.onchangeCallback(this)}},i.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},i.prototype.isDirty=function(){return this.indicate_changed===void 0?!1:this.editarea.initialText!==this.editarea.getString()},i.prototype.highlight=function(s,c,v,u,f,n){this.editarea.setSelection(s.startChar,s.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(s.startChar,s.endChar),this.clientClickListener&&this.clientClickListener(s,c,v,u,f,n)},i.prototype.pause=function(s){this.bIsPaused=s,s||this.fireChanged()},i.prototype.millisecondsPerMeasure=function(){return!this.synth||!this.synth.synthControl||!this.synth.synthControl.visualObj?0:this.synth.synthControl.visualObj.millisecondsPerMeasure()},i.prototype.pauseMidi=function(s){this.midiPause=s,s||this.redrawMidi()},Mr=i,Mr}var Br,Dn;function ic(){if(Dn)return Br;Dn=1;var A=bs(),y=ms(),g=He(),l=zn(),a=Rs(),o={};o.signature="abcjs-basic v"+A,Object.keys(y).forEach(function(m){o[m]=y[m]}),Object.keys(g).forEach(function(m){o[m]=g[m]}),o.renderAbc=ns(),o.tuneMetrics=Wo(),o.TimingCallbacks=Nr();var i=Ne();o.setGlyph=i.setSymbol,o.strTranspose=a;var s=Yr(),c=zr(),v=Gr(),u=os(),f=cs(),n=ze(),t=Ie(),r=Ge(),e=ec(),h=ls(),p=rc(),d=fs();return o.synth={CreateSynth:s,instrumentIndexToName:c,pitchToNoteName:v,SynthController:h,SynthSequence:u,CreateSynthControl:f,registerAudioContext:n,activeAudioContext:t,supportsAudio:r,playEvent:e,getMidiFile:p,sequence:l,midiRenderer:d},o.Editor=ac(),o.EditArea=hs(),Br=o,Br}var us=ic();const nc=ps(us),oc=gs({__proto__:null,default:nc},[us]);export{oc as i};