forked from bbloomf/jgabc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exsurge.min.js
7 lines (7 loc) · 172 KB
/
exsurge.min.js
1
2
3
4
5
6
7
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("exsurge",[],e):"object"==typeof exports?exports.exsurge=e():t.exsurge=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var A=i[n]={exports:{},id:n,loaded:!1};return t[n].call(A.exports,A,A.exports,e),A.loaded=!0,A.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1);Object.keys(n).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var A=i(2);Object.keys(A).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return A[t]}})});var s=i(3);Object.keys(s).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})});var o=i(4);Object.keys(o).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var a=i(6);Object.keys(a).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})});var r=i(9);Object.keys(r).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var u=i(8);Object.keys(u).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var h=i(11);Object.keys(h).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return h[t]}})});var l=i(10);if(Object.keys(l).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})}),"undefined"!=typeof document){var c=Object.create(HTMLElement.prototype);c.createdCallback=function(){var t=new o.ChantContext;t.lyricTextFont="'Crimson Text', serif",t.lyricTextSize*=1.2,t.dropCapTextFont=t.lyricTextFont,t.annotationTextFont=t.lyricTextFont;var e=!0,i=this.getAttribute("use-drop-cap");"false"===i&&(e=!1);var n=l.Gabc.loadChantScore(t,this.innerText,e),A=this.getAttribute("annotation");A&&(n.annotation=new o.Annotation(t,A));var s=this,a=0,r=function(){var e=s.parentElement.clientWidth;a!==e&&(a=e,n.performLayout(t,function(){n.layoutChantLines(t,a,function(){s.innerHTML=n.createSvgFragment(t)})}))};r(),window.addEventListener?window.addEventListener("resize",r,!1):window.attachEvent&&window.attachEvent("onresize",r)},c.attachedCallback=function(){},document.registerElement=document.registerElement||function(){};document.registerElement("chant-visual",{prototype:c})}},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){return t}function A(t){return c.ToDeviceIndependent(t,c.Centimeters)}function s(t){return c.ToDeviceIndependent(t,c.Millimeters)}function o(t){return c.ToDeviceIndependent(t,c.Inches)}function a(t){return c.FromDeviceIndependent(t,c.Centimeters)}function r(t){return c.FromDeviceIndependent(t,c.Millimeters)}function u(t){return c.FromDeviceIndependent(t,c.Inches)}function h(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();e.DeviceIndependent=n,e.Centimeters=A,e.Millimeters=s,e.Inches=o,e.ToCentimeters=a,e.ToMillimeters=r,e.ToInches=u,e.generateRandomGuid=h;var c=e.Units={DeviceIndepenedent:0,Centimeters:1,Millimeters:2,Inches:3,DIU_PER_INCH:96,DIU_PER_CENTIMETER:96/2.54,ToDeviceIndependent:function(t,e){switch(e){case A:return t*DIU_PER_CENTIMETER;case s:return t*DIU_PER_CENTIMETER/10;case o:return t*DIU_PER_INCH;default:return t}},FromDeviceIndependent:function(t,e){switch(e){case A:return t/DIU_PER_CENTIMETER;case s:return t/DIU_PER_CENTIMETER*10;case o:return t/DIU_PER_INCH;default:return t}},StringToUnitsType:function(t){switch(t.ToLower()){case"in":case"inches":return o;case"cm":case"centimeters":return A;case"mm":case"millimeters":return s;case"di":case"device-independent":return DeviceIndepenedent;default:return DeviceIndepenedent}},UnitsTypeToString:function(t){switch(t){case o:return"in";case A:return"cm";case s:return"mm";case DeviceIndepenedent:return"device-independent";default:return"device-independent"}}},g=e.Point=function(){function t(e,n){i(this,t),this.x="undefined"!=typeof e?e:0,this.y="undefined"!=typeof n?n:0}return l(t,[{key:"clone",value:function(){return new t(this.x,this.y)}},{key:"equals",value:function(t){return this.x===t.x&&this.y===t.y}}]),t}(),f=(e.Rect=function(){function t(e,n,A,s){i(this,t),this.x="undefined"!=typeof e?e:1/0,this.y="undefined"!=typeof n?n:1/0,this.width="undefined"!=typeof A?A:-(1/0),this.height="undefined"!=typeof s?s:-(1/0)}return l(t,[{key:"clone",value:function(){return new t(this.x,this.y,this.width,this.height)}},{key:"isEmpty",value:function(){return this.x===1/0&&this.y===1/0&&this.width===-(1/0)&&this.height===-(1/0)}},{key:"right",value:function(){return this.x+this.width}},{key:"bottom",value:function(){return this.y+this.height}},{key:"equals",value:function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}},{key:"contains",value:function(t){return t instanceof g?t.x>=this.x&&t.x<=this.x+this.width&&t.y>=this.y&&t.y<=this.y+this.height:this.x<=t.x&&this.x+this.width>=t.x+t.width&&this.y<=t.y&&this.y+this.height>=t.y+t.height}},{key:"union",value:function(t){var e=Math.max(this.x+this.width,t.x+t.width),i=Math.max(this.y+this.height,t.y+t.height);this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=e-this.x,this.height=i-this.y}}]),t}(),e.Margins=function(){function t(e,n,A,s){i(this,t),this.left="undefined"!=typeof e?e:0,this.top="undefined"!=typeof n?n:0,this.right="undefined"!=typeof A?A:0,this.bottom="undefined"!=typeof s?s:0}return l(t,[{key:"clone",value:function(){return new t(this.left,this.top,this.right,this.bottom)}},{key:"equals",value:function(t){return this.left===t.left&&this.top===t.top&&this.right===t.right&&this.bottom===t.bottom}}]),t}(),e.Size=function(){function t(e,n){i(this,t),this.width="undefined"!=typeof e?e:0,this.height="undefined"!=typeof n?n:0}return l(t,[{key:"clone",value:function(){return new t(this.width,this.height)}},{key:"equals",value:function(t){return this.width===t.width&&this.height===t.height}}]),t}(),e.Step={Do:0,Du:1,Re:2,Me:3,Mi:4,Fa:5,Fu:6,So:7,La:9,Te:10,Ti:11}),p=[0,0,1,1,2,3,3,4,4,5,6,6],d=[f.Do,f.Re,f.Mi,f.Fa,f.So,f.La,f.Ti];e.Pitch=function(){function t(e,n){i(this,t),this.step=e,this.octave=n}return l(t,[{key:"toInt",value:function(){return 12*this.octave+this.step}},{key:"isHigherThan",value:function(t){return this.toInt()>t.toInt()}},{key:"isLowerThan",value:function(t){return this.toInt()<t.toInt()}},{key:"equals",value:function(t){return this.toInt()===t.toInt()}}],[{key:"stepToStaffOffset",value:function(t){return p[t]}},{key:"staffOffsetToStep",value:function(t){for(;0>t;)t=d.length+t;return d[t%d.length]}}]),t}()},function(t,e,n){"use strict";function A(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e["default"]=t,e}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Spanish=e.Latin=e.Language=void 0;var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=n(1),h=(A(u),e.Language=function(){function t(e){a(this,t),this.name="undefined"!=typeof e?e:"<unknown>"}return r(t,[{key:"syllabify",value:function(t){var e=[];if("undefined"==typeof t||""===t)return e;for(var i=t.split(/[\s]+/),n=0,A=i.length;A>n;n++)e.push(this.syllabifyWord(i[n]));return e}}]),t}());e.Latin=function(t){function e(){a(this,e);var t=s(this,Object.getPrototypeOf(e).call(this,"Latin"));t.diphthongs=["ae","au","oe","aé","áu","oé"],t.possibleDiphthongs=t.diphthongs.concat(["ei","eu","ui","éi","éu","úi"]);var i=new Object;return i.huius=["hui","us"],i.cuius=["cui","us"],i.huic=["huic"],i.cui=["cui"],i.hui=["hui"],i.euge=["eu","ge"],i.seu=["seu"],t.vowels=["a","e","i","o","u","á","é","í","ó","ú","æ","œ","ǽ","y"],t.vowelsThatMightBeConsonants=["i","u"],t.muteConsonantsAndF=["b","c","d","g","p","t","f"],t.liquidConsonants=["l","r"],t}return o(e,t),r(e,[{key:"isVowel",value:function(t){for(var e=0,i=this.vowels.length;i>e;e++)if(this.vowels[e]===t)return!0;return!1}},{key:"isVowelThatMightBeConsonant",value:function(t){for(var e=0,i=this.vowelsThatMightBeConsonants.length;i>e;e++)if(this.vowelsThatMightBeConsonants[e]===t)return!0;return!1}},{key:"isVowelActingAsConsonant",value:function(t){return this.isVowelThatMightBeConsonant(t[0])&&this.isVowel(t[1])}},{key:"isMuteConsonantOrF",value:function(t){for(var e=0,i=this.muteConsonantsAndF.length;i>e;e++)if(this.muteConsonantsAndF[e]===t)return!0;return!1}},{key:"isLiquidConsonant",value:function(t){for(var e=0,i=this.liquidConsonants.length;i>e;e++)if(this.liquidConsonants[e]===t)return!0;return!1}},{key:"isDiphthong",value:function(t){for(var e=0,i=this.diphthongs.length;i>e;e++)if(this.diphthongs[e]===t)return!0;return!1}},{key:"isPossibleDiphthong",value:function(t){for(var e=0,i=this.possibleDiphthongs.length;i>e;e++)if(this.possibleDiphthongs[e]===t)return!0;return!1}},{key:"syllabifyWord",value:function(t){for(var e,i,n,A=[],s=!1,o=!1,a=t.toLowerCase(),r=0,u=function(e){s&&(A.push(t.substr(r,e)),r+=e),s=!1},h=0,l=a.length;l>h;h++){e=a[h],i="*",n=l>h+1,n&&(i=a[h+1]);var c=this.isVowel(e);"i"===e&&(0===h&&n&&this.isVowel(i)?c=!1:o&&n&&this.isVowel(i)&&(c=!1)),"-"===e?(s=!0,o=!1,u(h-r),r++):c?(s=!0,o&&!this.isDiphthong(a[h-1]+""+e)&&(u(h-r),s=!0),o=!0):n&&("q"===e&&"u"===i||"h"===i&&("c"===e||"p"===e||"t"===e)?(u(h-r),h++):o&&this.isVowel(i)?u(h-r):this.isMuteConsonantOrF(e)&&this.isLiquidConsonant(i)?u(h-r):s&&u(h+1-r),o=!1)}return s?A.push(t.substr(r)):r>0&&(A[A.length-1]+=t.substr(r)),A}},{key:"findVowelSegment",value:function(t,e){var i,n,A,s=t.toLowerCase();for(i=0,n=this.possibleDiphthongs.length;n>i;i++){var o=this.possibleDiphthongs[i];if(A=s.indexOf(o,e),A>=0)return{found:!0,startIndex:A,length:o.length}}for(i=0,n=this.vowels.length;n>i;i++)if(A=s.indexOf(this.vowels[i],e),A>=0)return this.isVowelActingAsConsonant(s.substr(A,2))&&++A,{found:!0,startIndex:A,length:1};return{found:!1,startIndex:-1,length:-1}}}]),e}(h),e.Spanish=function(t){function e(){a(this,e);var t=s(this,Object.getPrototypeOf(e).call(this,"Spanish"));return t.vowels=["a","e","i","o","u","y","á","é","í","ó","ú","ü"],t.weakVowels=["i","u","ü","y"],t.strongVowels=["a","e","o","á","é","í","ó","ú"],t.diphthongs=["ai","ei","oi","ui","ia","ie","io","iu","au","eu","ou","ua","ue","uo","ái","éi","ói","úi","iá","ié","ió","iú","áu","éu","óu","uá","ué","uó","üe","üi"],t.uDiphthongExceptions=["gue","gui","qua","que","qui","quo"],t}return o(e,t),r(e,[{key:"isVowel",value:function(t){for(var e=0,i=this.vowels.length;i>e;e++)if(this.vowels[e]===t)return!0;return!1}},{key:"isWeakVowel",value:function(t){for(var e=0,i=this.weakVowels.length;i>e;e++)if(this.weakVowels[e]===t)return!0;return!1}},{key:"isStrongVowel",value:function(t){for(var e=0,i=this.strongVowels.length;i>e;e++)if(this.strongVowels[e]===t)return!0;return!1}},{key:"isDiphthong",value:function(t){for(var e=0,i=this.diphthongs.length;i>e;e++)if(this.diphthongs[e]===t)return!0;return!1}},{key:"createSyllable",value:function(t){return t}},{key:"syllabifyWord",value:function(t){var e=[],n=!1,A=!1,s=!1,o=0;for(i=0;i<t.length;i++){var a=t[i].toLowerCase();if(this.isVowel(a)){n=!0;var r=this.isStrongVowel(a);A&&r&&s&&(e.push(this.createSyllable(t.substr(o,i-o))),o=i),A=!0,s=r}else{if(n){if("-"===t[i])e.push(this.createSyllable(t.substr(o,i-o))),o=++i;else{var u,h=1;for(j=i+1;j<t.length&&!this.isVowel(t[j]);j++)h++;1===h?(e.push(this.createSyllable(t.substr(o,i-o))),o=i):2===h?(u=t[i+1].toLowerCase(),"l"===u||"r"===u||"c"===a&&"h"===u?(e.push(this.createSyllable(t.substr(o,i-o))),o=i++):(e.push(this.createSyllable(t.substr(o,++i-o))),o=i)):3===h?(u=t[i+1].toLowerCase(),"s"===u?(i+=2,e.push(this.createSyllable(t.substr(o,i-o)))):e.push(this.createSyllable(t.substr(o,++i-o))),o=i):4===h&&(e.push(this.createSyllable(t.substr(o,i-o+2))),o=i+2,i+=3)}n=!1}else;A=!1}}return n?e.push(t.substr(o)):o>0?e[e.length-1]+=t.substr(o):0===e.length&&e.push(this.createSyllable(t)),e}},{key:"findVowelSegment",value:function(t,e){var i,n,A,s=t.toLowerCase();for(i=0,n=this.diphthongs.length;n>i;i++){var o=this.diphthongs[i];if(A=s.indexOf(o,e),A>=0){if("u"===o[0]&&A>0){var a=t.substr(A-1,3).toLowerCase();for(j=0,endj=this.uDiphthongExceptions.length;i<endj;j++)if(a===this.uDiphthongExceptions[j])return this.findVowelSegment(t,A+1)}return{found:!0,startIndex:A,length:o.length}}}for(i=0,n=this.vowels.length;n>i;i++)if(A=s.indexOf(this.vowels[i],e),A>=0)return{found:!0,startIndex:A,length:1};return{found:!1,startIndex:-1,length:-1}}}]),e}(h)},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Glyphs={None:{svgSrc:"<g></g>",paths:[{type:"positive",data:""}],bounds:{x:0,y:0,width:0,height:0},origin:{x:0,y:0},align:"left"},AcuteAccent:{svgSrc:'<path d="M4 0C-.614.52-.614.52-.803-3.182l60.768-108.422c4.52-7.182 10.543-13.67 18.075-13.67 5.27 0 14.31 1.264 23.346 7.793 7.53 5.223 8.803 11.752 8.803 16.975 0 3.917-.52 11.1-8.05 17.628L4 0z"/>',paths:[{type:"positive",data:"M4 0C-.614.52-.614.52-.803-3.182l60.768-108.422c4.52-7.182 10.543-13.67 18.075-13.67 5.27 0 14.31 1.264 23.346 7.793 7.53 5.223 8.803 11.752 8.803 16.975 0 3.917-.52 11.1-8.05 17.628L4 0z"}],bounds:{x:0,y:0,width:110.99200439453125,height:125.79399108886719},origin:{x:.8030000329017639,y:125.27399444580078},align:"left"},Stropha:{svgSrc:'<path d="M1.22-73.438c4.165 13.02 12.238 27.084 24.217 42.188L49.657 0 34.812 27.344C18.666 55.47-.084 72.396-21.438 78.124c4.687-3.645 7.03-8.593 7.03-14.843 0-8.853-4.947-20.572-14.843-35.155L-48 0 1.22-73.438z"/>',paths:[{type:"positive",data:"M1.22-73.438c4.165 13.02 12.238 27.084 24.217 42.188L49.657 0 34.812 27.344C18.666 55.47-.084 72.396-21.438 78.124c4.687-3.645 7.03-8.593 7.03-14.843 0-8.853-4.947-20.572-14.843-35.155L-48 0 1.22-73.438z"}],bounds:{x:0,y:0,width:97.65699768066406,height:151.56201171875},origin:{x:48,y:73.43800354003906},align:"left"},BeginningAscLiquescent:{svgSrc:'<path d="M-50 43.688V-61c4.167 7.292 12.76 10.938 25.78 10.938 9.376 0 20.053-1.563 32.032-4.688C31.773-60.48 45.833-71.677 50-88.344v117.97C43.75 42.645 32.812 51.5 17.187 56.186-.52 61.398-15.886 64-28.906 64-42.97 64-50 57.23-50 43.687z"/>',paths:[{type:"positive",data:"M-50 43.688V-61c4.167 7.292 12.76 10.938 25.78 10.938 9.376 0 20.053-1.563 32.032-4.688C31.773-60.48 45.833-71.677 50-88.344v117.97C43.75 42.645 32.812 51.5 17.187 56.186-.52 61.398-15.886 64-28.906 64-42.97 64-50 57.23-50 43.687z"}],bounds:{x:0,y:0,width:100,height:152.343994140625},origin:{x:50,y:88.34400177001953},align:"left"},BeginningDesLiquescent:{svgSrc:'<path d="M-50-56.03c0-13.022 7.03-19.532 21.094-19.532 13.02 0 28.385 2.604 46.093 7.812C32.813-63.583 43.75-54.73 50-41.187V76C45.833 59.854 31.77 48.656 7.812 42.406c-11.98-3.125-22.656-4.687-32.03-4.687-13.022 0-21.615 3.905-25.782 11.718v-105.47z"/>',paths:[{type:"positive",data:"M-50-56.03c0-13.022 7.03-19.532 21.094-19.532 13.02 0 28.385 2.604 46.093 7.812C32.813-63.583 43.75-54.73 50-41.187V76C45.833 59.854 31.77 48.656 7.812 42.406c-11.98-3.125-22.656-4.687-32.03-4.687-13.022 0-21.615 3.905-25.782 11.718v-105.47z"}],bounds:{x:0,y:0,width:100,height:151.56199645996094},origin:{x:50,y:75.56199645996094},align:"left"},CustosDescLong:{svgSrc:'<path d="M39.063 273.472c5.73.52 7.29-6.25 4.687-20.312V-65.59c-13.542 2.083-24.22 5.468-32.03 10.156C3.905-50.226 0-43.714 0-35.904V71.91c5.73-5.21 10.677-8.594 14.844-10.157 5.73-1.562 12.24-2.343 19.53-2.343v196.875c0 11.458 1.563 17.187 4.688 17.187z"/>',paths:[{type:"positive",data:"M39.063 273.472c5.73.52 7.29-6.25 4.687-20.312V-65.59c-13.542 2.083-24.22 5.468-32.03 10.156C3.905-50.226 0-43.714 0-35.904V71.91c5.73-5.21 10.677-8.594 14.844-10.157 5.73-1.562 12.24-2.343 19.53-2.343v196.875c0 11.458 1.563 17.187 4.688 17.187"}],bounds:{x:0,y:0,width:46.35300064086914,height:339.58197021484375},origin:{x:0,y:65.58999633789062},align:"left"},CustosDescShort:{svgSrc:'<path d="M34.375 191.923c0 8.333 1.563 12.24 4.688 11.72 3.125-.522 4.687-7.033 4.687-19.533v-250c-13.542 2.084-24.22 5.47-32.03 10.157C3.905-50.525 0-44.015 0-36.203V71.61c5.73-5.208 10.677-8.593 14.844-10.156 5.73-1.562 12.24-2.344 19.53-2.344v132.813z"/>',paths:[{type:"positive",data:"M34.375 191.923c0 8.333 1.563 12.24 4.688 11.72 3.125-.522 4.687-7.033 4.687-19.533v-250c-13.542 2.084-24.22 5.47-32.03 10.157C3.905-50.525 0-44.015 0-36.203V71.61c5.73-5.208 10.677-8.593 14.844-10.156 5.73-1.562 12.24-2.344 19.53-2.344v132.813z"}],bounds:{x:0,y:0,width:43.75,height:270.0530090332031},origin:{x:0,y:65.88999938964844},align:"left"},CustosLong:{svgSrc:'<path d="M39.063-269.562c5.73-.52 7.29 6.25 4.687 20.312V69.5c-13.542-2.083-24.22-5.47-32.03-10.156C3.905 54.134 0 47.624 0 39.812V-68c5.73 5.208 10.677 8.594 14.844 10.156 5.73 1.563 12.24 2.344 19.53 2.344v-196.875c0-11.458 1.563-17.187 4.688-17.187z"/>',paths:[{type:"positive",data:"M39.063-269.562c5.73-.52 7.29 6.25 4.687 20.312V69.5c-13.542-2.083-24.22-5.47-32.03-10.156C3.905 54.134 0 47.624 0 39.812V-68c5.73 5.208 10.677 8.594 14.844 10.156 5.73 1.563 12.24 2.344 19.53 2.344v-196.875c0-11.458 1.563-17.187 4.688-17.187z"}],bounds:{x:0,y:0,width:46.35300064086914,height:339.5820007324219},origin:{x:0,y:270.0820007324219},align:"left"},CustosShort:{svgSrc:'<path d="M34.375-188.125c0-8.333 1.563-12.24 4.688-11.72 3.125.522 4.687 7.033 4.687 19.532v250c-13.542-2.083-24.22-5.468-32.03-10.156C3.905 54.324 0 47.813 0 40V-67.813c5.73 5.21 10.677 8.594 14.844 10.157 5.73 1.562 12.24 2.344 19.53 2.343v-132.812z"/>',paths:[{type:"positive",data:"M34.375-188.125c0-8.333 1.563-12.24 4.688-11.72 3.125.522 4.687 7.033 4.687 19.532v250c-13.542-2.083-24.22-5.468-32.03-10.156C3.905 54.324 0 47.813 0 40V-67.813c5.73 5.21 10.677 8.594 14.844 10.157 5.73 1.562 12.24 2.344 19.53 2.343v-132.812z"}],bounds:{x:0,y:0,width:43.75,height:270.052001953125},origin:{x:0,y:200.36500549316406},align:"left"},DoClef:{svgSrc:'<path d="M0 98.406V-97.688C0-118 5.99-134.275 17.97-146.516c11.978-12.24 27.603-18.36 46.874-18.36 10.937 0 19.53 3.126 25.78 9.376s9.376 14.583 9.376 25v107.813l-6.25-5.47c-4.167-3.645-10.287-7.42-18.36-11.327-8.072-3.907-16.796-5.86-26.17-5.86-11.46 0-21.486 4.427-30.08 13.282-8.593 8.854-12.89 19.53-12.89 32.03s4.297 23.308 12.89 32.423c8.594 9.115 18.62 13.672 30.08 13.672 9.374 0 18.098-1.822 26.17-5.468 8.073-3.646 14.193-7.292 18.36-10.938l6.25-6.25V132c0 9.896-3.125 18.1-9.375 24.61-6.25 6.51-14.844 9.765-25.78 9.765-19.272 0-34.897-6.25-46.876-18.75C5.99 135.125 0 118.72 0 98.405z"/>',paths:[{type:"positive",data:"M0 98.406V-97.688C0-118 5.99-134.275 17.97-146.516c11.978-12.24 27.603-18.36 46.874-18.36 10.937 0 19.53 3.126 25.78 9.376s9.376 14.583 9.376 25v107.813l-6.25-5.47c-4.167-3.645-10.287-7.42-18.36-11.327-8.072-3.907-16.796-5.86-26.17-5.86-11.46 0-21.486 4.427-30.08 13.282-8.593 8.854-12.89 19.53-12.89 32.03s4.297 23.308 12.89 32.423c8.594 9.115 18.62 13.672 30.08 13.672 9.374 0 18.098-1.822 26.17-5.468 8.073-3.646 14.193-7.292 18.36-10.938l6.25-6.25V132c0 9.896-3.125 18.1-9.375 24.61-6.25 6.51-14.844 9.765-25.78 9.765-19.272 0-34.897-6.25-46.876-18.75C5.99 135.125 0 118.72 0 98.405z"}],bounds:{x:0,y:0,width:100,height:331.2510070800781},origin:{x:0,y:164.87600708007812},align:"left"},FaClef:{svgSrc:'<path d="M85.156-32v193.75c0 9.375-1.562 14.323-4.687 14.844-1.564 0-2.605-.52-3.126-1.563-.52-1.04-.782-2.603-.78-4.686V56.28c-8.335-8.332-19.793-12.5-34.376-12.5-17.71 0-31.77 3.907-42.188 11.72V-32c0-18.23 14.193-27.344 42.578-27.344 28.385 0 42.578 9.115 42.578 27.344zM98.438 93V-92.156c0-19.27 5.73-34.896 17.187-46.875 11.458-11.98 26.562-17.97 45.313-17.97 10.937 0 19.14 2.865 24.61 8.594 5.467 5.73 8.202 13.542 8.202 23.437v103.126l-5.47-4.687c-3.645-3.647-9.374-7.293-17.186-10.94-7.813-3.645-15.886-5.467-24.22-5.468-11.978 0-22.004 4.167-30.077 12.5-8.073 8.334-12.11 18.36-12.11 30.08 0 11.717 4.037 22.004 12.11 30.858s18.1 13.28 30.078 13.28c8.333 0 16.406-1.822 24.22-5.468 7.81-3.645 13.54-7.03 17.186-10.156l5.47-5.468V125.81c0 9.896-2.865 17.84-8.594 23.83-5.73 5.988-13.802 8.983-24.22 8.983-18.75 0-33.853-6.12-45.31-18.36-11.46-12.24-17.19-27.994-17.19-47.265z"/>',paths:[{type:"positive",data:"M85.156-32v193.75c0 9.375-1.562 14.323-4.687 14.844-1.564 0-2.605-.52-3.126-1.563-.52-1.04-.782-2.603-.78-4.686V56.28c-8.335-8.332-19.793-12.5-34.376-12.5-17.71 0-31.77 3.907-42.188 11.72V-32c0-18.23 14.193-27.344 42.578-27.344 28.385 0 42.578 9.115 42.578 27.344zM98.438 93V-92.156c0-19.27 5.73-34.896 17.187-46.875 11.458-11.98 26.562-17.97 45.313-17.97 10.937 0 19.14 2.865 24.61 8.594 5.467 5.73 8.202 13.542 8.202 23.437v103.126l-5.47-4.687c-3.645-3.647-9.374-7.293-17.186-10.94-7.813-3.645-15.886-5.467-24.22-5.468-11.978 0-22.004 4.167-30.077 12.5-8.073 8.334-12.11 18.36-12.11 30.08 0 11.717 4.037 22.004 12.11 30.858s18.1 13.28 30.078 13.28c8.333 0 16.406-1.822 24.22-5.468 7.81-3.645 13.54-7.03 17.186-10.156l5.47-5.468V125.81c0 9.896-2.865 17.84-8.594 23.83-5.73 5.988-13.802 8.983-24.22 8.983-18.75 0-33.853-6.12-45.31-18.36-11.46-12.24-17.19-27.994-17.19-47.265z"}],bounds:{x:0,y:0,width:193.75201416015625,height:333.5950012207031},origin:{x:.001003265380859375,y:157.00100708007812},align:"left"},Flat:{svgSrc:'<path d="M7.813-204.406c4.166 0 6.25 5.208 6.25 15.625L12.5-10.657C33.854 13.302 54.167 25.28 73.438 25.28c9.374 0 14.062-4.686 14.062-14.06 0-6.25-1.042-11.72-3.125-16.407-2.083-4.688-7.03-9.766-14.844-15.235-7.81-5.47-13.02-8.984-15.624-10.547L27.344-45.81V-80.97c17.187 0 33.073 4.82 47.656 14.454C89.583-56.88 96.875-47.376 96.875-38c0 67.708-.26 101.562-.78 101.563-38.543 0-69.532-12.24-92.97-36.72C0-52.322-1.042-123.936 0-188c0-10.937 2.604-16.406 7.813-16.406z"/>',paths:[{type:"positive",data:"M7.813-204.406c4.166 0 6.25 5.208 6.25 15.625L12.5-10.657C33.854 13.302 54.167 25.28 73.438 25.28c9.374 0 14.062-4.686 14.062-14.06 0-6.25-1.042-11.72-3.125-16.407-2.083-4.688-7.03-9.766-14.844-15.235-7.81-5.47-13.02-8.984-15.624-10.547L27.344-45.81V-80.97c17.187 0 33.073 4.82 47.656 14.454C89.583-56.88 96.875-47.376 96.875-38c0 67.708-.26 101.562-.78 101.563-38.543 0-69.532-12.24-92.97-36.72C0-52.322-1.042-123.936 0-188c0-10.937 2.604-16.406 7.813-16.406z"}],bounds:{x:0,y:0,width:97.91699981689453,height:267.968994140625},origin:{x:1.0420000553131104,y:204.406005859375},align:"left"},Mora:{svgSrc:'<path d="M47.478-24c6.957 0 12.793 2.288 17.49 6.883C69.662-12.52 72-6.904 72-.267c0 6.64-2.337 12.352-7.033 17.118C60.27 21.618 54.435 24 47.477 24c-6.26 0-11.748-2.383-16.444-7.15C26.337 12.086 24 6.374 24-.265c0-6.638 2.337-12.255 7.033-16.85C35.73-21.713 41.217-24 47.478-24z"/>',paths:[{type:"positive",data:"M47.478-24c6.957 0 12.793 2.288 17.49 6.883C69.662-12.52 72-6.904 72-.267c0 6.64-2.337 12.352-7.033 17.118C60.27 21.618 54.435 24 47.477 24c-6.26 0-11.748-2.383-16.444-7.15C26.337 12.086 24 6.374 24-.265c0-6.638 2.337-12.255 7.033-16.85C35.73-21.713 41.217-24 47.478-24z"}],bounds:{x:0,y:0,width:48,height:48},origin:{x:-24,y:24},align:"left"},Natural:{svgSrc:'<path d="M7.906-166.563c-2.864 0-5.614.52-8.218 1.563v13.28l.78 56.25.782 78.907v85.157c.52 3.646 2.604 5.73 6.25 6.25l23.438-3.906 23.437-3.907v29.69c0 42.186-.26 63.54-.78 64.06l6.25 2.345c1.04.52 2.082.78 3.124.78 2.603 0 4.947-1.3 7.03-3.905L67.656-71.25c-.52-2.604-2.083-3.906-4.687-3.906-7.814 0-17.19 1.04-28.126 3.125l-19.53 3.124.78-38.28V-165c-2.604-1.042-5.323-1.562-8.188-1.563zM55.938-40v71.875l-41.407 7.03c0-48.436.262-72.655.783-72.655L55.938-40z"/>',paths:[{type:"positive",data:"M7.906-166.563c-2.864 0-5.614.52-8.218 1.563v13.28l.78 56.25.782 78.907v85.157c.52 3.646 2.604 5.73 6.25 6.25l23.438-3.906 23.437-3.907v29.69c0 42.186-.26 63.54-.78 64.06l6.25 2.345c1.04.52 2.082.78 3.124.78 2.603 0 4.947-1.3 7.03-3.905L67.656-71.25c-.52-2.604-2.083-3.906-4.687-3.906-7.814 0-17.19 1.04-28.126 3.125l-19.53 3.124.78-38.28V-165c-2.604-1.042-5.323-1.562-8.188-1.563zM55.938-40v71.875l-41.407 7.03c0-48.436.262-72.655.783-72.655L55.938-40z"}],bounds:{x:0,y:0,width:70.31100463867188,height:330.468994140625},origin:{x:.3120002746582031,y:166.56300354003906},align:"left"},OriscusAsc:{svgSrc:'<path d="M50 30.25c0 12.5-3.125 21.354-9.375 26.562-3.125 2.605-7.813 3.907-14.063 3.907-3.125 0-5.99-.522-8.593-1.564-2.605-1.04-5.6-2.474-8.986-4.297C5.6 53.035 2.734 51.603.39 50.56c-2.343-1.04-5.338-2.474-8.984-4.296-3.646-1.823-6.77-3.256-9.375-4.297-2.603-1.043-5.468-1.564-8.593-1.564-6.25 0-10.937 1.563-14.062 4.688C-46.875 50.824-50 59.677-50 71.656v-106.25c0-13.02 3.125-21.875 9.375-26.562 3.125-2.604 7.813-3.906 14.063-3.907 3.125 0 5.99.52 8.593 1.563 2.605 1.042 5.73 2.474 9.376 4.297 3.646 1.823 6.51 2.995 8.594 3.516l10.938 5.468c6.25 3.126 11.458 4.69 15.624 4.69 6.25 0 10.938-1.564 14.063-4.69C46.875-55.426 50-64.02 50-76V30.25z"/>',paths:[{type:"positive",data:"M50 30.25c0 12.5-3.125 21.354-9.375 26.562-3.125 2.605-7.813 3.907-14.063 3.907-3.125 0-5.99-.522-8.593-1.564-2.605-1.04-5.6-2.474-8.986-4.297C5.6 53.035 2.734 51.603.39 50.56c-2.343-1.04-5.338-2.474-8.984-4.296-3.646-1.823-6.77-3.256-9.375-4.297-2.603-1.043-5.468-1.564-8.593-1.564-6.25 0-10.937 1.563-14.062 4.688C-46.875 50.824-50 59.677-50 71.656v-106.25c0-13.02 3.125-21.875 9.375-26.562 3.125-2.604 7.813-3.906 14.063-3.907 3.125 0 5.99.52 8.593 1.563 2.605 1.042 5.73 2.474 9.376 4.297 3.646 1.823 6.51 2.995 8.594 3.516l10.938 5.468c6.25 3.126 11.458 4.69 15.624 4.69 6.25 0 10.938-1.564 14.063-4.69C46.875-55.426 50-64.02 50-76V30.25z"}],bounds:{x:0,y:0,width:100,height:147.656005859375},origin:{x:50,y:76},align:"left"},OriscusDes:{svgSrc:'<path d="M-50 30.844v-106.25c0 11.458 3.125 20.052 9.375 25.78 3.125 3.126 7.813 4.69 14.063 4.688 4.687 0 13.41-3.255 26.17-9.765 12.762-6.51 21.746-9.766 26.954-9.766 6.25 0 10.938 1.303 14.063 3.907C46.875-55.874 50-47.02 50-34V72.25c0-11.98-3.125-20.833-9.375-26.563C37.5 42.563 32.812 41 26.562 41 21.875 41 13.023 44.385 0 51.156c-4.167 2.604-8.594 4.948-13.28 7.032-4.69 2.083-9.116 3.124-13.283 3.124-6.25 0-10.937-1.302-14.062-3.906C-46.875 52.198-50 43.344-50 30.844z"/>',paths:[{type:"positive",data:"M-50 30.844v-106.25c0 11.458 3.125 20.052 9.375 25.78 3.125 3.126 7.813 4.69 14.063 4.688 4.687 0 13.41-3.255 26.17-9.765 12.762-6.51 21.746-9.766 26.954-9.766 6.25 0 10.938 1.303 14.063 3.907C46.875-55.874 50-47.02 50-34V72.25c0-11.98-3.125-20.833-9.375-26.563C37.5 42.563 32.812 41 26.562 41 21.875 41 13.023 44.385 0 51.156c-4.167 2.604-8.594 4.948-13.28 7.032-4.69 2.083-9.116 3.124-13.283 3.124-6.25 0-10.937-1.302-14.062-3.906C-46.875 52.198-50 43.344-50 30.844z"}],bounds:{x:0,y:0,width:100,height:147.656005859375},origin:{x:50,y:75.40599822998047},align:"left"},OriscusLiquescent:{svgSrc:'<path d="M 19.05539,78.886528 C 20.242277,78.486807 21.532179,77.890297 22.925106,77.09701 24.317891,76.303653 26.700882,74.417241 30.074091,71.437777 33.447144,68.45824 36.523539,64.985185 39.303286,61.018598 42.082855,57.051975 44.562739,51.395765 46.742952,44.049969 48.922975,36.704172 50.01304,28.671032 50.013135,19.950525 L 50.013135,-34.225545 C 50.01304,-54.464261 42.07377,-64.583661 26.195289,-64.583768 20.248326,-64.583661 11.518758,-61.410372 0.00656131,-55.06389 -11.505742,-48.717218 -20.23531,-45.543929 -26.182179,-45.544024 -34.515109,-45.543929 -40.567968,-48.520405 -44.340791,-54.473441 -48.113613,-60.426286 -50.000025,-67.369373 -50.000025,-75.302702 L -50.000025,30.069925 C -50.000025,49.909039 -42.060754,59.828603 -26.182179,59.828615 -21.022584,59.828603 -12.38991,56.455465 -0.28412107,49.709203 11.821549,42.96294 20.648023,39.589803 26.195289,39.589803 29.368506,40.776762 30.361665,44.249817 29.17479,50.00897 27.987759,55.768122 26.00143,62.020829 23.215789,68.767116 z"/>',paths:[{type:"positive",data:"M 19.05539,78.886528 C 20.242277,78.486807 21.532179,77.890297 22.925106,77.09701 24.317891,76.303653 26.700882,74.417241 30.074091,71.437777 33.447144,68.45824 36.523539,64.985185 39.303286,61.018598 42.082855,57.051975 44.562739,51.395765 46.742952,44.049969 48.922975,36.704172 50.01304,28.671032 50.013135,19.950525 L 50.013135,-34.225545 C 50.01304,-54.464261 42.07377,-64.583661 26.195289,-64.583768 20.248326,-64.583661 11.518758,-61.410372 0.00656131,-55.06389 -11.505742,-48.717218 -20.23531,-45.543929 -26.182179,-45.544024 -34.515109,-45.543929 -40.567968,-48.520405 -44.340791,-54.473441 -48.113613,-60.426286 -50.000025,-67.369373 -50.000025,-75.302702 L -50.000025,30.069925 C -50.000025,49.909039 -42.060754,59.828603 -26.182179,59.828615 -21.022584,59.828603 -12.38991,56.455465 -0.28412107,49.709203 11.821549,42.96294 20.648023,39.589803 26.195289,39.589803 29.368506,40.776762 30.361665,44.249817 29.17479,50.00897 27.987759,55.768122 26.00143,62.020829 23.215789,68.767116 z"}],bounds:{x:0,y:0,width:100,height:147.656005859375},origin:{x:50,y:75.40599822998047},align:"left"},PodatusLower:{svgSrc:'<path d="M-4.688-30.28c22.396 0 34.636-.262 36.72-.782 5.728-1.563 8.593-5.21 8.593-10.938H50v97.656c0 2.604-1.302 4.167-3.906 4.688-5.21.52-21.355.78-48.438.78-23.958 0-38.54-.26-43.75-.78-2.604 0-3.906-1.302-3.906-3.906v-82.032c0-3.646 1.302-5.468 3.906-5.468h2.344c2.604.52 15.625.78 39.063.78z"/>',paths:[{type:"positive",data:"M-4.688-30.28c22.396 0 34.636-.262 36.72-.782 5.728-1.563 8.593-5.21 8.593-10.938H50v97.656c0 2.604-1.302 4.167-3.906 4.688-5.21.52-21.355.78-48.438.78-23.958 0-38.54-.26-43.75-.78-2.604 0-3.906-1.302-3.906-3.906v-82.032c0-3.646 1.302-5.468 3.906-5.468h2.344c2.604.52 15.625.78 39.063.78z"}],bounds:{x:0,y:0,width:100,height:103.12399291992188},origin:{x:50,y:42},align:"left"},PodatusUpper:{svgSrc:'<path d="M-46.094-63.78c13.542 0 24.61 2.473 33.203 7.42C-4.298-51.41 0-43.99 0-34.093V62h-9.375c0-10.938-2.604-19.14-7.812-24.61-5.21-5.468-14.844-8.203-28.907-8.202-18.23 0-33.333 4.166-45.312 12.5v-75.782c0-19.79 15.104-29.687 45.312-29.687z"/>',paths:[{type:"positive",data:"M-46.094-63.78c13.542 0 24.61 2.473 33.203 7.42C-4.298-51.41 0-43.99 0-34.093V62h-9.375c0-10.938-2.604-19.14-7.812-24.61-5.21-5.468-14.844-8.203-28.907-8.202-18.23 0-33.333 4.166-45.312 12.5v-75.782c0-19.79 15.104-29.687 45.312-29.687z"}],bounds:{x:0,y:0,width:91.406005859375,height:125.78099822998047},origin:{x:91.406005859375,y:63.78099822998047},align:"right"},Porrectus1:{svgSrc:'<path d="M233.594 162.875c-58.855 0-107.032-6.25-144.53-18.75C34.895 125.895-11.46 99.855-50 66V-52.75C-21.354-24.625 26.302 6.885 92.97 41.78 123.697 57.928 163.54 66 212.5 66c21.354 0 34.635-9.896 39.844-29.688V151.94c0 7.29-6.25 10.937-18.75 10.937z"/>',paths:[{type:"positive",data:"M233.594 162.875c-58.855 0-107.032-6.25-144.53-18.75C34.895 125.895-11.46 99.855-50 66V-52.75C-21.354-24.625 26.302 6.885 92.97 41.78 123.697 57.928 163.54 66 212.5 66c21.354 0 34.635-9.896 39.844-29.688V151.94c0 7.29-6.25 10.937-18.75 10.937z"}],bounds:{
x:0,y:0,width:302.343994140625,height:215.6269989013672},origin:{x:50,y:52.75},align:"left"},Porrectus2:{svgSrc:'<path d="M309.375 259.375c-50.52 0-110.938-22.396-181.25-67.188C48.437 141.667-10.938 94.272-50 50V-68.75C0-3.125 60.417 52.083 131.25 96.875c58.333 36.98 110.677 58.854 157.03 65.625h7.033c16.145 0 26.822-9.896 32.03-29.688v114.844c0 7.812-5.99 11.72-17.968 11.72z"/>',paths:[{type:"positive",data:"M309.375 259.375c-50.52 0-110.938-22.396-181.25-67.188C48.437 141.667-10.938 94.272-50 50V-68.75C0-3.125 60.417 52.083 131.25 96.875c58.333 36.98 110.677 58.854 157.03 65.625h7.033c16.145 0 26.822-9.896 32.03-29.688v114.844c0 7.812-5.99 11.72-17.968 11.72z"}],bounds:{x:0,y:0,width:377.3429870605469,height:328.1260070800781},origin:{x:50,y:68.75},align:"left"},Porrectus3:{svgSrc:'<path d="M309.375 355.78c-48.96-16.666-109.115-55.468-180.47-116.405C79.428 198.23 19.793 134.687-50 48.75V-70C20 40 94.104 103.79 135.25 148.063 190 200 230 230 288.28 258.906c4.168 2.083 8.334 3.125 12.5 3.125 12.5 0 21.355-10.937 26.564-32.81v114.06c0 9.376-3.386 14.063-10.156 14.064-2.084 0-4.688-.522-7.813-1.563z"/>',paths:[{type:"positive",data:"M309.375 355.78c-48.96-16.666-109.115-55.468-180.47-116.405C79.428 198.23 19.793 134.687-50 48.75V-70C20 40 94.104 103.79 135.25 148.063 190 200 230 230 288.28 258.906c4.168 2.083 8.334 3.125 12.5 3.125 12.5 0 21.355-10.937 26.564-32.81v114.06c0 9.376-3.386 14.063-10.156 14.064-2.084 0-4.688-.522-7.813-1.563z"}],bounds:{x:0,y:0,width:377.343994140625,height:427.3450012207031},origin:{x:50,y:70},align:"left"},Porrectus4:{svgSrc:'<path d="M350 453.438c-52.754-22.397-120-77.345-201.74-164.844C90.87 227.656 24.784 147.708-50 48.75V-70C-8.84-1.25 58.406 86.51 151.74 193.28c60.868 69.793 119.13 124.22 174.782 163.282 5.797 3.646 11.014 5.47 15.652 5.47 12.173 0 21.45-11.72 27.826-35.157V441.72c0 9.373-3.19 14.06-9.565 14.06-2.9 0-6.377-.78-10.435-2.342z"/>',paths:[{type:"positive",data:"M350 453.438c-52.754-22.397-120-77.345-201.74-164.844C90.87 227.656 24.784 147.708-50 48.75V-70C-8.84-1.25 58.406 86.51 151.74 193.28c60.868 69.793 119.13 124.22 174.782 163.282 5.797 3.646 11.014 5.47 15.652 5.47 12.173 0 21.45-11.72 27.826-35.157V441.72c0 9.373-3.19 14.06-9.565 14.06-2.9 0-6.377-.78-10.435-2.342z"}],bounds:{x:0,y:0,width:420,height:525.780029296875},origin:{x:50,y:70},align:"left"},PunctumCavum:{svgSrc:'<path d="M0-60.906c33.333 0 50 9.635 50 28.906v94.53C39.062 51.595 22.396 46.126 0 46.126s-39.063 5.47-50 16.406V-32c0-19.27 16.667-28.906 50-28.906z"/><path fill="#fff" d="M.08-42.56c9.585.206 20.126.53 27.954 6.822 4.96 3.9 4.71 10.792 4.574 16.482v51.278C22.09 27.066 7.283 26.072.168 26.01c-7.72.23-21.895.935-32.616 4.674.04-19.197-.083-38.395.064-57.59.567-7.5 7.834-12.33 14.62-13.774 5.818-1.498 11.857-1.86 17.844-1.88z"/>',paths:[{type:"positive",data:"M0-60.906c33.333 0 50 9.635 50 28.906v94.53C39.062 51.595 22.396 46.126 0 46.126s-39.063 5.47-50 16.406V-32c0-19.27 16.667-28.906 50-28.906z"},{type:"negative",data:"M.08-42.56c9.585.206 20.126.53 27.954 6.822 4.96 3.9 4.71 10.792 4.574 16.482v51.278C22.09 27.066 7.283 26.072.168 26.01c-7.72.23-21.895.935-32.616 4.674.04-19.197-.083-38.395.064-57.59.567-7.5 7.834-12.33 14.62-13.774 5.818-1.498 11.857-1.86 17.844-1.88z"}],bounds:{x:0,y:0,width:100,height:123.43799591064453},origin:{x:50,y:60.90599822998047},align:"left"},PunctumQuadratum:{svgSrc:'<path d="M0-60.906c33.333 0 50 9.635 50 28.906v94.53C39.062 51.595 22.396 46.126 0 46.126s-39.063 5.47-50 16.406V-32c0-19.27 16.667-28.906 50-28.906z"/>',paths:[{type:"positive",data:"M0-60.906c33.333 0 50 9.635 50 28.906v94.53C39.062 51.595 22.396 46.126 0 46.126s-39.063 5.47-50 16.406V-32c0-19.27 16.667-28.906 50-28.906z"}],bounds:{x:0,y:0,width:100,height:123.43799591064453},origin:{x:50,y:60.90599822998047},align:"left"},PunctumQuadratumAscLiquescent:{svgSrc:'<path d="M-50 43.688V-61c4.167 7.292 12.76 10.938 25.78 10.938 9.376 0 20.053-1.563 32.032-4.688C31.773-60.48 45.833-71.677 50-88.344v117.97C43.75 42.645 32.812 51.5 17.187 56.186-.52 61.398-15.886 64-28.906 64-42.97 64-50 57.23-50 43.687z"/>',paths:[{type:"positive",data:"M-50 43.688V-61c4.167 7.292 12.76 10.938 25.78 10.938 9.376 0 20.053-1.563 32.032-4.688C31.773-60.48 45.833-71.677 50-88.344v117.97C43.75 42.645 32.812 51.5 17.187 56.186-.52 61.398-15.886 64-28.906 64-42.97 64-50 57.23-50 43.687z"}],bounds:{x:0,y:0,width:100,height:152.343994140625},origin:{x:50,y:88.34400177001953},align:"left"},PunctumQuadratumDesLiquescent:{svgSrc:'<path d="M-50-56.03c0-13.022 7.03-19.532 21.094-19.532 13.02 0 28.385 2.604 46.093 7.812C32.813-63.583 43.75-54.73 50-41.187V76C45.833 59.854 31.77 48.656 7.812 42.406c-11.98-3.125-22.656-4.687-32.03-4.687-13.022 0-21.615 3.905-25.782 11.718v-105.47z"/>',paths:[{type:"positive",data:"M-50-56.03c0-13.022 7.03-19.532 21.094-19.532 13.02 0 28.385 2.604 46.093 7.812C32.813-63.583 43.75-54.73 50-41.187V76C45.833 59.854 31.77 48.656 7.812 42.406c-11.98-3.125-22.656-4.687-32.03-4.687-13.022 0-21.615 3.905-25.782 11.718v-105.47z"}],bounds:{x:0,y:0,width:100,height:151.56199645996094},origin:{x:50,y:75.56199645996094},align:"left"},PunctumInclinatum:{svgSrc:'<path d="M0-75.78L50 0 0 75-50 0 0-75.78z"/>',paths:[{type:"positive",data:"M0-75.78L50 0 0 75-50 0 0-75.78z"}],bounds:{x:0,y:0,width:100,height:150.77999877929688},origin:{x:50,y:75.77999877929688},align:"left"},PunctumInclinatumLiquescent:{svgSrc:'<path d="M 0,-53.164062 35,-0.1171875 0,52.382812 -35,-0.1171875 0,-53.164062 z"/>',paths:[{type:"positive",data:"M 0,-53.164062 35,-0.1171875 0,52.382812 -35,-0.1171875 0,-53.164062 z"}],bounds:{x:0,y:0,width:70,height:105.546},origin:{x:35,y:53.164062},align:"left"},Quilisma:{svgSrc:'<path d="M-50 34.938V-51c5.73 20.833 13.02 31.25 21.875 31.25 7.813 0 12.5-15.625 14.063-46.875 3.645 12.5 6.9 21.224 9.765 26.172s6.9 7.422 12.11 7.422c5.208 0 9.374-14.324 12.5-42.97 5.73 22.917 10.677 34.375 14.843 34.375 5.73 0 10.677-15.885 14.844-47.656v100c0 17.707-3.125 26.56-9.375 26.56-4.688 0-9.115-5.988-13.28-17.968-2.085 21.875-8.074 32.813-17.97 32.813-7.813 0-16.146-7.292-25-21.875-4.688 20.312-10.677 30.47-17.97 30.47-5.207 0-9.244-2.605-12.108-7.814C-48.568 47.698-50 41.708-50 34.938z"/>',paths:[{type:"positive",data:"M-50 34.938V-51c5.73 20.833 13.02 31.25 21.875 31.25 7.813 0 12.5-15.625 14.063-46.875 3.645 12.5 6.9 21.224 9.765 26.172s6.9 7.422 12.11 7.422c5.208 0 9.374-14.324 12.5-42.97 5.73 22.917 10.677 34.375 14.843 34.375 5.73 0 10.677-15.885 14.844-47.656v100c0 17.707-3.125 26.56-9.375 26.56-4.688 0-9.115-5.988-13.28-17.968-2.085 21.875-8.074 32.813-17.97 32.813-7.813 0-16.146-7.292-25-21.875-4.688 20.312-10.677 30.47-17.97 30.47-5.207 0-9.244-2.605-12.108-7.814C-48.568 47.698-50 41.708-50 34.938z"}],bounds:{x:0,y:0,width:100,height:150},origin:{x:50,y:89.28199768066406},align:"left"},TerminatingAscLiquescent:{svgSrc:'<path d="M-9.375 40.22c0-11.98-4.948-17.97-14.844-17.97-10.936 0-19.53 3.646-25.78 10.938v-53.126c0-6.77 2.604-12.76 7.813-17.968 5.208-5.21 10.677-8.594 16.406-10.157 2.603-.52 5.207-.78 7.81-.78 3.647 0 7.032.78 10.157 2.343C-2.603-43.896 0-39.73 0-34V73.03h-9.375V40.22z"/>',paths:[{type:"positive",data:"M-9.375 40.22c0-11.98-4.948-17.97-14.844-17.97-10.936 0-19.53 3.646-25.78 10.938v-53.126c0-6.77 2.604-12.76 7.813-17.968 5.208-5.21 10.677-8.594 16.406-10.157 2.603-.52 5.207-.78 7.81-.78 3.647 0 7.032.78 10.157 2.343C-2.603-43.896 0-39.73 0-34V73.03h-9.375V40.22z"}],bounds:{x:0,y:0,width:49.999000549316406,height:121.87299346923828},origin:{x:49.999000549316406,y:48.842994689941406},align:"right"},TerminatingDesLiquescent:{svgSrc:'<path d="M-9.375-48.156V-80.97H0V26.845c0 5.73-2.604 9.896-7.813 12.5-3.125 1.562-6.51 2.343-10.156 2.343-2.603 0-5.207-.26-7.81-.78-5.73-1.563-11.2-4.95-16.407-10.157C-47.398 25.542-50 19.292-50 12v-52.344c6.25 7.292 14.844 10.938 25.78 10.938 9.897 0 14.845-6.25 14.845-18.75z"/>',paths:[{type:"positive",data:"M-9.375-48.156V-80.97H0V26.845c0 5.73-2.604 9.896-7.813 12.5-3.125 1.562-6.51 2.343-10.156 2.343-2.603 0-5.207-.26-7.81-.78-5.73-1.563-11.2-4.95-16.407-10.157C-47.398 25.542-50 19.292-50 12v-52.344c6.25 7.292 14.844 10.938 25.78 10.938 9.897 0 14.845-6.25 14.845-18.75z"}],bounds:{x:0,y:0,width:50,height:122.65800476074219},origin:{x:50,y:80.97000122070312},align:"right"},VerticalEpisemaAbove:{svgSrc:'<path d="M-8-80H8L4 0h-8l-4-80z"/>',paths:[{type:"positive",data:"M-8-80H8L4 0h-8l-4-80z"}],bounds:{x:0,y:0,width:16,height:80},origin:{x:8,y:80},align:"left"},VerticalEpisemaBelow:{svgSrc:'<path d="M-8 80H8L4 0h-8l-4 80z"/>',paths:[{type:"positive",data:"M-8 80H8L4 0h-8l-4 80z"}],bounds:{x:0,y:0,width:16,height:80},origin:{x:8,y:0},align:"left"},VirgaLong:{svgSrc:'<path d="M50-38v285.156c0 6.77-2.344 10.937-7.03 12.5-1.564 0-2.605-.78-3.126-2.344-.52-1.562-.782-10.156-.782-25.78V54.186C29.168 45.334 16.146 40.907 0 40.907c-22.917 0-39.583 5.208-50 15.624V-38c0-19.27 16.667-28.906 50-28.906S50-57.27 50-38z"/>',paths:[{type:"positive",data:"M50-38v285.156c0 6.77-2.344 10.937-7.03 12.5-1.564 0-2.605-.78-3.126-2.344-.52-1.562-.782-10.156-.782-25.78V54.186C29.168 45.334 16.146 40.907 0 40.907c-22.917 0-39.583 5.208-50 15.624V-38c0-19.27 16.667-28.906 50-28.906S50-57.27 50-38z"}],bounds:{x:0,y:0,width:100,height:326.56201171875},origin:{x:50,y:66.90599822998047},align:"left"},VirgaShort:{svgSrc:'<path d="M50-38v211.72c0 7.29-2.344 11.457-7.03 12.5-1.564 0-2.606-.783-3.126-2.345-.52-1.563-.782-10.156-.782-25.78V54.187C29.167 45.332 16.146 40.906 0 40.906c-22.917 0-39.583 5.21-50 15.625V-38c0-19.27 16.667-28.906 50-28.906S50-57.27 50-38z"/>',paths:[{type:"positive",data:"M50-38v211.72c0 7.29-2.344 11.457-7.03 12.5-1.564 0-2.606-.783-3.126-2.345-.52-1.563-.782-10.156-.782-25.78V54.187C29.167 45.332 16.146 40.906 0 40.906c-22.917 0-39.583 5.21-50 15.625V-38c0-19.27 16.667-28.906 50-28.906S50-57.27 50-38z"}],bounds:{x:0,y:0,width:100,height:253.12600708007812},origin:{x:50,y:66.90599822998047},align:"left"},Virgula:{svgSrc:'<path d="M8.178-55.66c0-22.137 12.092-33.2 36.287-33.2 11.835 0 23.53 5.66 35.108 16.98C91.15-60.547 96.94-41.766 96.94-15.534c0 53.515-31.646 87.487-94.937 101.895-2.048-2.06-3.077-5.146-3.077-9.273 0-1.03.247-1.8.76-2.316 42.71-19.027 64.075-41.678 64.075-67.92 0-11.322-2.325-20.326-6.945-27.016-4.62-6.69-9.52-11.052-14.676-13.11-5.147-2.048-11.836-3.85-20.07-5.403C12.81-39.707 8.18-45.37 8.18-55.66z"/>',paths:[{type:"positive",data:"M8.178-55.66c0-22.137 12.092-33.2 36.287-33.2 11.835 0 23.53 5.66 35.108 16.98C91.15-60.547 96.94-41.766 96.94-15.534c0 53.515-31.646 87.487-94.937 101.895-2.048-2.06-3.077-5.146-3.077-9.273 0-1.03.247-1.8.76-2.316 42.71-19.027 64.075-41.678 64.075-67.92 0-11.322-2.325-20.326-6.945-27.016-4.62-6.69-9.52-11.052-14.676-13.11-5.147-2.048-11.836-3.85-20.07-5.403C12.81-39.707 8.18-45.37 8.18-55.66z"}],bounds:{x:0,y:0,width:98.01399993896484,height:175.2209930419922},origin:{x:1.0739939212799072,y:88.86000061035156},align:"left"}}},function(t,e,i){"use strict";function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,i){this.symbol=t,this.startIndex=e,this.properties=i}Object.defineProperty(e,"__esModule",{value:!0}),e.ChantNotationElement=e.Annotations=e.Annotation=e.DropCap=e.AboveLinesText=e.Lyric=e.LyricType=e.TextElement=e.CurlyBraceVisualizer=e.RoundBraceVisualizer=e.GlyphVisualizer=e.VirgaLineVisualizer=e.NeumeLineVisualizer=e.DividerLineVisualizer=e.ChantLayoutElement=e.ChantContext=e.TextMeasuringStrategy=e.QuickSvg=e.GlyphCode=void 0;var a=function I(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);if(void 0===n){var A=Object.getPrototypeOf(t);return null===A?void 0:I(A,e,i)}if("value"in n)return n.value;var s=n.get;if(void 0!==s)return s.call(i)},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=i(1),h=i(3),l=i(2),c=i(5),g=e.GlyphCode={None:"None",AcuteAccent:"AcuteAccent",Stropha:"Stropha",StrophaLiquescent:"StrophaLiquescent",BeginningAscLiquescent:"BeginningAscLiquescent",BeginningDesLiquescent:"BeginningDesLiquescent",CustosDescLong:"CustosDescLong",CustosDescShort:"CustosDescShort",CustosLong:"CustosLong",CustosShort:"CustosShort",DoClef:"DoClef",FaClef:"FaClef",Flat:"Flat",Mora:"Mora",Natural:"Natural",OriscusAsc:"OriscusAsc",OriscusDes:"OriscusDes",OriscusLiquescent:"OriscusLiquescent",PodatusLower:"PodatusLower",PodatusUpper:"PodatusUpper",Porrectus1:"Porrectus1",Porrectus2:"Porrectus2",Porrectus3:"Porrectus3",Porrectus4:"Porrectus4",PunctumCavum:"PunctumCavum",PunctumQuadratum:"PunctumQuadratum",PunctumQuadratumAscLiquescent:"PunctumQuadratumAscLiquescent",PunctumQuadratumDesLiquescent:"PunctumQuadratumDesLiquescent",PunctumInclinatum:"PunctumInclinatum",PunctumInclinatumLiquescent:"PunctumInclinatumLiquescent",Quilisma:"Quilisma",TerminatingAscLiquescent:"TerminatingAscLiquescent",TerminatingDesLiquescent:"TerminatingDesLiquescent",VerticalEpisemaAbove:"VerticalEpisemaAbove",VerticalEpisemaBelow:"VerticalEpisemaBelow",VirgaLong:"VirgaLong",VirgaShort:"VirgaShort",Virgula:"Virgula",UpperBrace:"UpperBrace"},f=e.QuickSvg={ns:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xlink:"http://www.w3.org/1999/xlink",svg:function(t,e){var i=document.createElementNS(this.ns,"svg");i.setAttribute("xmlns",this.ns),i.setAttribute("version","1.1"),i.setAttributeNS(this.xmlns,"xmlns:xlink",this.xlink),i.setAttribute("width",t),i.setAttribute("height",e);var n=document.createElementNS(this.ns,"defs");return i.appendChild(n),i.defs=n,i.clearNotations=function(){for(i.removeChild(n);i.hasChildNodes();)i.removeChild(i.lastChild);i.appendChild(n)},i},rect:function(t,e){var i=document.createElementNS(this.ns,"rect");return i.setAttribute("width",t),i.setAttribute("height",e),i},line:function(t,e,i,n){var A=document.createElementNS(this.ns,"line");return A.setAttribute("x1",t),A.setAttribute("y1",e),A.setAttribute("x2",i),A.setAttribute("y2",n),A},g:function(){var t=document.createElementNS(this.ns,"g");return t},text:function(){var t=document.createElementNS(this.ns,"text");return t},tspan:function(t){var e=document.createElementNS(this.ns,"tspan");return e.textContent=t,e},use:function(t){var e=document.createElementNS(this.ns,"use");return e.setAttributeNS(this.xlink,"xlink:href","#"+t),e},createFragment:function(t,e,i){void 0!==i&&null!==i||(i="");var n="<"+t+" ";for(var A in e)e.hasOwnProperty(A)&&(n+=A+'="'+e[A]+'" ');return n+=">"+i+"</"+t+">"},parseFragment:function(t){var e=document.createElement("svg");if(t){var i=this.g();e.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<(\w+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var n=0,A=e.firstChild.childNodes.length;A>n;n++)i.appendChild(e.firstChild.firstChild);return i}},translate:function(t,e,i){return t.setAttribute("transform","translate("+e+","+i+")"),t},scale:function(t,e,i){return t.setAttribute("transform","scale("+e+","+i+")"),t}},p=e.TextMeasuringStrategy={Svg:0,Canvas:1},d=(e.ChantContext=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?p.Svg:arguments[0];s(this,t),this.textMeasuringStrategy=e,this.defs={},this.lyricTextSize=16,this.lyricTextFont="'Palatino Linotype', 'Book Antiqua', Palatino, serif",this.lyricTextColor="#000",this.alTextSize=this.lyricTextSize,this.alTextFont=this.lyricTextFont,this.alTextColor=this.lyricTextColor,this.alTextStyle="_",this.dropCapTextSize=64,this.dropCapTextFont=this.lyricTextFont,this.dropCapTextColor=this.lyricTextColor,this.annotationTextSize=13,this.annotationTextFont=this.lyricTextFont,this.annotationTextColor=this.lyricTextColor,this.minLedgerSeparation=2,this.glyphPunctumWidth=h.Glyphs.PunctumQuadratum.bounds.width,this.glyphPunctumHeight=h.Glyphs.PunctumQuadratum.bounds.height,this.glyphScaling=1/16,this.staffInterval=this.glyphPunctumWidth*this.glyphScaling,this.staffLineWeight=Math.round(this.glyphPunctumWidth*this.glyphScaling/8),this.neumeLineWeight=this.staffLineWeight,this.dividerLineWeight=this.neumeLineWeight,this.episemaLineWeight=this.neumeLineWeight,this.activeClef=null,this.neumeLineColor="#000",this.staffLineColor="#000",this.dividerLineColor="#000",this.defaultLanguage=new l.Latin,this.canvas=document.createElement("canvas"),this.canvasCtxt=this.canvas.getContext("2d");var i=window.devicePixelRatio||1,n=this.canvasCtxt.webkitBackingStorePixelRatio||this.canvasCtxt.mozBackingStorePixelRatio||this.canvasCtxt.msBackingStorePixelRatio||this.canvasCtxt.oBackingStorePixelRatio||this.canvasCtxt.backingStorePixelRatio||1;this.pixelRatio=i/n,this.canvasCtxt.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),e===p.Svg&&(this.svgTextMeasurer=f.svg(1,1),this.svgTextMeasurer.setAttribute("id","TextMeasurer"),document.querySelector("body").appendChild(this.svgTextMeasurer));var A=new G(this,"-",C.SingleSyllable);this.hyphenWidth=A.bounds.width,this.minLyricWordSpacing=this.hyphenWidth,this.intraNeumeSpacing=this.staffInterval/2,this.syllableConnector="-",this.drawGuides=!1,this.drawDebuggingBounds=!0,this.activeNotations=null,this.currNotationIndex=-1,this.condensingTolerance=.9,this.autoColor=!0,this.insertFontsInDoc()}return r(t,[{key:"calculateHeightFromStaffPosition",value:function(t){return-t*this.staffInterval}},{key:"insertFontsInDoc",value:function(){var t=document.getElementById("exsurge-fonts");null===t&&(t=document.createElement("style"),t.id="exsurge-fonts",t.appendChild(document.createTextNode("@font-face{font-family: 'Exsurge Characters';font-weight: normal;font-style: normal;src: url("+c+") format('opentype');}")),document.head.appendChild(t))}},{key:"findNextNeume",value:function(){if("undefined"==typeof this.currNotationIndex)throw"findNextNeume() called without a valid currNotationIndex set";for(var t=this.currNotationIndex+1;t<this.notations.length;t++){var e=this.notations[t];if(e.isNeume)return e}return null}},{key:"setCanvasSize",value:function(t,e){this.canvas.width=t*this.pixelRatio,this.canvas.height=e*this.pixelRatio,this.canvas.style.width=t+"px",this.canvas.style.height=e+"px",this.canvasCtxt.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}}]),t}(),e.ChantLayoutElement=function(){function t(){s(this,t),this.bounds=new u.Rect,this.origin=new u.Point(0,0),this.selected=!1,this.highlighted=!1}return r(t,[{key:"draw",value:function(t){}},{key:"createSvgFragment",value:function(t){throw"ChantLayout Elements must implement createSvgFragment(ctxt)"}}]),t}()),y=(e.DividerLineVisualizer=function(t){function e(t,i,A){s(this,e);var o=n(this,Object.getPrototypeOf(e).call(this)),a=t.calculateHeightFromStaffPosition(i),r=t.calculateHeightFromStaffPosition(A);if(a>r){var u=a;a=r,r=u}return o.bounds.x=0,o.bounds.y=a,o.bounds.width=t.dividerLineWeight,o.bounds.height=r-a,o.origin.x=o.bounds.width/2,o.origin.y=a,o}return A(e,t),r(e,[{key:"draw",value:function(t){var e=t.canvasCtxt;e.lineWidth=this.bounds.width,e.strokeStyle=t.dividerLineColor,e.beginPath(),e.moveTo(this.bounds.x-this.origin.x,this.bounds.y),e.lineTo(this.bounds.x-this.origin.x,this.bounds.y+this.bounds.height),e.stroke()}},{key:"createSvgFragment",value:function(t){return f.createFragment("rect",{x:this.bounds.x,y:this.bounds.y,width:t.dividerLineWeight,height:this.bounds.height,fill:t.dividerLineColor,"class":"dividerLine"})}}]),e}(d),e.NeumeLineVisualizer=function(t){function e(t,i,A,o){s(this,e);var a=n(this,Object.getPrototypeOf(e).call(this)),r=i.staffPosition,u=A.staffPosition;if(u>r){var h=r;r=u,u=h}var l=t.calculateHeightFromStaffPosition(r),c=0;return o&&(r-u===1&&Math.abs(r)%2===1&&u>-3&&u--,c+=t.glyphPunctumHeight*t.glyphScaling/2.2),c+=t.calculateHeightFromStaffPosition(u),a.bounds.x=0,a.bounds.y=l,a.bounds.width=t.neumeLineWeight,a.bounds.height=c-l,a.origin.x=0,a.origin.y=0,a}return A(e,t),r(e,[{key:"draw",value:function(t){var e=t.canvasCtxt;e.lineWidth=this.bounds.width,e.strokeStyle=t.neumeLineColor,e.beginPath();var i=this.bounds.x+this.bounds.width/2;e.moveTo(i,this.bounds.y),e.lineTo(i,this.bounds.y+this.bounds.height),e.stroke()}},{key:"createSvgFragment",value:function(t){return f.createFragment("rect",{x:this.bounds.x,y:this.bounds.y,width:t.neumeLineWeight,height:this.bounds.height,fill:t.neumeLineColor,"class":"neumeLine"})}}]),e}(d),e.VirgaLineVisualizer=function(t){function e(t,i){s(this,e);var A,o=n(this,Object.getPrototypeOf(e).call(this)),a=i.staffPosition,r=t.calculateHeightFromStaffPosition(a);return A=0===Math.abs(a%2)?r+1.8*t.staffInterval:r+2.7*t.staffInterval,o.bounds.x=0,o.bounds.y=r,o.bounds.width=t.neumeLineWeight,o.bounds.height=A-r,o.origin.x=0,o.origin.y=0,o}return A(e,t),r(e,[{key:"draw",value:function(t){var e=t.canvasCtxt;e.lineWidth=this.bounds.width,e.strokeStyle=t.neumeLineColor,e.beginPath(),e.moveTo(this.bounds.x,this.bounds.y),e.lineTo(this.bounds.x,this.bounds.y+this.bounds.height),e.stroke()}},{key:"createSvgFragment",value:function(t){return f.createFragment("rect",{x:this.bounds.x,y:this.bounds.y,width:t.neumeLineWeight,height:this.bounds.height,fill:t.neumeLineColor,"class":"neumeLine"})}}]),e}(d),e.GlyphVisualizer=function(t){function e(t,i){s(this,e);var A=n(this,Object.getPrototypeOf(e).call(this));return A.glyph=null,A.setGlyph(t,i),A}return A(e,t),r(e,[{key:"setGlyph",value:function(t,e){if(this.glyphCode!==e){if("undefined"==typeof e||null===e||""===e?this.glyphCode=g.None:this.glyphCode=e,this.glyph=h.Glyphs[this.glyphCode],!t.defs.hasOwnProperty(this.glyphCode)){var i=this.glyph.svgSrc;t.defs[this.glyphCode]=f.createFragment("g",{id:this.glyphCode,"class":"glyph",transform:"scale("+t.glyphScaling+")"},i)}this.align=this.glyph.align,this.origin.x=this.glyph.origin.x*t.glyphScaling,this.origin.y=this.glyph.origin.y*t.glyphScaling,this.bounds.x=0,this.bounds.y=-this.origin.y,this.bounds.width=this.glyph.bounds.width*t.glyphScaling,this.bounds.height=this.glyph.bounds.height*t.glyphScaling}}},{key:"setStaffPosition",value:function(t,e){this.bounds.y+=t.calculateHeightFromStaffPosition(e)}},{key:"draw",value:function(t){var e=t.canvasCtxt,i=this.bounds.x+this.origin.x,n=this.bounds.y+this.origin.y;e.translate(i,n),e.scale(t.glyphScaling,t.glyphScaling);for(var A=0;A<this.glyph.paths.length;A++){var s=this.glyph.paths[A];e.fillStyle=t.neumeLineColor,e.fill(new Path2D(s.data))}e.scale(1/t.glyphScaling,1/t.glyphScaling),e.translate(-i,-n)}},{key:"createSvgFragment",value:function(t){return f.createFragment("use",{"xlink:href":"#"+this.glyphCode,x:this.bounds.x+this.origin.x,y:this.bounds.y+this.origin.y})}}]),e}(d)),B=(e.RoundBraceVisualizer=function(t){function e(t,i,A,o,a){s(this,e);var r=n(this,Object.getPrototypeOf(e).call(this));if(i>A){var h=i;i=A,A=h}return r.isAbove=a,r.braceHeight=t.staffInterval/2,r.bounds=new u.Rect(i,o,A-i,r.braceHeight),r.origin.x=0,r.origin.y=0,r}return A(e,t),r(e,[{key:"createSvgFragment",value:function(t){var e=f.createFragment("path",{d:this.generatePathString(),stroke:t.neumeLineColor,"stroke-width":t.staffLineWeight+"px",fill:"none","class":"brace"});return this.acuteAccent?(e+=this.acuteAccent.createSvgFragment(t),f.createFragment("g",{"class":"accentedBrace"},e)):e}},{key:"generatePathString",value:function(){var t,e,i,n=this.bounds.x,A=this.bounds.right(),s=this.bounds.width;e=s/6,i=3*this.bounds.height,this.isAbove?(t=this.bounds.bottom(),i=-i):t=this.bounds.y;var o=n+e,a=t+i,r=A-e,u=2;return"M "+n.toFixed(u)+" "+t.toFixed(u)+" C "+o.toFixed(u)+" "+a.toFixed(u)+" "+r.toFixed(u)+" "+a.toFixed(u)+" "+A.toFixed(u)+" "+t.toFixed(u)}}]),e}(d),e.CurlyBraceVisualizer=function(t){function e(t,i,A,o){var a=arguments.length<=4||void 0===arguments[4]?!0:arguments[4],r=arguments.length<=5||void 0===arguments[5]?!1:arguments[5];s(this,e);var h=n(this,Object.getPrototypeOf(e).call(this));if(i>A){var l=i;i=A,A=l}h.isAbove=a,h.braceHeight=t.staffInterval/2,a&&(o-=h.braceHeight);var c=new u.Rect(i,o,A-i,h.braceHeight);return r&&a&&(h.acuteAccent=new y(t,g.AcuteAccent),h.acuteAccent.bounds.x+=c.x+(A-i)/2,h.acuteAccent.bounds.y+=c.y-t.staffInterval/4,c.union(h.acuteAccent.bounds)),h.bounds=c,h.origin.x=0,h.origin.y=0,h}return A(e,t),r(e,[{key:"createSvgFragment",value:function(t){var e=f.createFragment("path",{d:this.generatePathString(),stroke:t.neumeLineColor,"stroke-width":t.staffLineWeight+"px",fill:"none","class":"brace"});return this.acuteAccent?(e+=this.acuteAccent.createSvgFragment(t),f.createFragment("g",{"class":"accentedBrace"},e)):e}},{key:"generatePathString",value:function(){var t,e,i=.6,n=this.bounds.x,A=this.bounds.right(),s=this.bounds.width;this.isAbove?(t=this.bounds.bottom(),e=-this.braceHeight):(t=this.bounds.y,e=this.braceHeight);var o=t+i*e,a=n+.25*s,r=t+(1-i)*e,u=n+.5*s,h=t+e,l=t+i*e,c=n+.75*s,g=t+(1-i)*e,f=2;return"M "+n.toFixed(f)+" "+t.toFixed(f)+" Q "+n.toFixed(f)+" "+o.toFixed(f)+" "+a.toFixed(f)+" "+r.toFixed(f)+" T "+u.toFixed(f)+" "+h.toFixed(f)+" M "+A.toFixed(f)+" "+t.toFixed(f)+" Q "+A.toFixed(f)+" "+l.toFixed(f)+" "+c.toFixed(f)+" "+g.toFixed(f)+" T "+u.toFixed(f)+" "+h.toFixed(f)}}]),e}(d),function(t,e){"undefined"!=typeof e&&null!==e||(e=""),this.text=t,this.properties=e}),v={"*":"font-weight:bold;",_:"font-style:italic;","^":"fill:#f00;","%":"font-variant:small-caps;font-feature-settings:'smcp';-webkit-font-feature-settings:'smcp';"};o.createStackFrame=function(t,e){return new o(t,e,v[t]||"")};var b={"&":"&","<":"<",">":">"},m=e.TextElement=function(t){function e(t,i,A,o,a){s(this,e);var r=n(this,Object.getPrototypeOf(e).call(this));return r.bounds.x=0,r.bounds.y=0,r.bounds.width=0,r.bounds.height=0,r.origin.x=0,r.origin.y=0,r.fontFamily=A,r.fontSize=o,r.textAnchor=a,r.dominantBaseline="baseline",r.generateSpansFromText(t,i),r.recalculateMetrics(t),r}return A(e,t),r(e,[{key:"generateSpansFromText",value:function(t,e){if(this.text="",this.spans=[],"*"===e||"†"===e)return void this.spans.push(new B(e));for(var i=[],n=0,A=function(t,e){return t.Symbol===e},s=this,a=function(t,e){if(""!==t){s.text+=t;for(var n="",A=0;A<i.length;A++)n+=i[A].properties;e&&(n+=e),s.spans.push(new B(t,n))}},r=/\*|_|\^|%|([ARVarv])\/\./g,u=null;u=r.exec(e);){var h=u[0];if(u[1])a(u[1]+".","font-family:'Exsurge Characters';fill:#f00;");else if(0===i.length)a(e.substring(n,u.index)),i.push(o.createStackFrame(h,u.index));else if(i[i.length-1].symbol===h)a(e.substring(n,u.index)),i.pop();else{if(i.filter(A).length>0){n=i[i.length-1].startIndex,i.pop();continue}a(e.substring(n,u.index)),i.push(o.createStackFrame(h,u.index))}n=u.index+h.length}n<e.length&&a(e.substring(n,e.length)),0===this.spans.length&&a(e)}},{key:"measureSubstring",value:function(t,e){if(0===e)return 0;e||(e=1/0);for(var i=t.canvasCtxt,n=this.fontSize+"px "+this.fontFamily,A=0,s=0,o=0;o<this.spans.length;o++){var a="",r=this.spans[o],u=r.text.slice(0,e-s);r.properties.indexOf("font-style:italic;")>=0&&(a+="italic "),r.properties.indexOf("font-variant:small-caps;")>=0&&(a+="small-caps "),r.properties.indexOf("font-weight:bold;")>=0&&(a+="bold "),a+=n,i.font=a;var h=i.measureText(u,this.bounds.x,this.bounds.y);if(A+=h.width,s+=u.length,s===e)break}return A}},{key:"recalculateMetrics",value:function(t){if(this.bounds.x=0,this.bounds.y=0,this.origin.x=0,t.textMeasuringStrategy===p.Svg){for(var e='<svg xmlns="http://www.w3.org/2000/svg">'+this.createSvgFragment(t)+"</svg>",i=(new DOMParser).parseFromString(e,"application/xml");t.svgTextMeasurer.firstChild;)t.svgTextMeasurer.firstChild.remove();t.svgTextMeasurer.appendChild(t.svgTextMeasurer.ownerDocument.importNode(i.documentElement,!0).firstChild);var n=t.svgTextMeasurer.firstChild.getBBox();this.bounds.width=n.width,this.bounds.height=n.height,this.origin.y=-n.y}else t.textMeasuringStrategy===p.Canvas&&(this.bounds.width=this.measureSubstring(t),this.bounds.height=1.2*this.fontSize,this.origin.y=this.fontSize)}},{key:"getCssClasses",value:function(){return""}},{key:"getExtraStyleProperties",value:function(t){return""}},{key:"draw",value:function(t){var e=t.canvasCtxt;"middle"===this.textAnchor?e.textAlign="center":e.textAlign="start",e.font=this.fontSize+"px "+this.fontFamily;for(var i=0;i<this.spans.length;i++)e.fillText(this.spans[i].text,this.bounds.x,this.bounds.y)}},{key:"createSvgFragment",value:function(t){for(var i="",n=0;n<this.spans.length;n++){var A={};this.spans[n].properties&&(A.style=this.spans[n].properties),i+=f.createFragment("tspan",A,e.escapeForTspan(this.spans[n].text))}var s="font-family:"+this.fontFamily+";font-size:"+this.fontSize+"px;font-kerning:normal;"+this.getExtraStyleProperties(t);return f.createFragment("text",{x:this.bounds.x,y:this.bounds.y,"class":this.getCssClasses().trim(),"text-anchor":this.textAnchor,style:s},i)}}],[{key:"escapeForTspan",value:function(t){return String(t).replace(/[&<>]/g,function(t){return b[t]})}}]),e}(d),C=e.LyricType={SingleSyllable:0,BeginningSyllable:1,MiddleSyllable:2,EndingSyllable:3,Directive:4},G=e.Lyric=function(t){function e(t,i,A){s(this,e);var o=n(this,Object.getPrototypeOf(e).call(this,t,(t.lyricTextStyle||"")+i,t.lyricTextFont,t.lyricTextSize,"start"));return o.originalText=i,"undefined"==typeof A||null===A||""===A?o.lyricType=C.SingleSyllable:o.lyricType=A,o.centerStartIndex=-1,o.centerLength=i.length,o.needsConnector=!1,o.language=null,o}return A(e,t),r(e,[{key:"allowsConnector",value:function(){return this.lyricType===C.BeginningSyllable||this.lyricType===C.MiddleSyllable}},{key:"setNeedsConnector",value:function(t){t===!0?(this.needsConnector=!0,this.bounds.width=this.widthWithConnector,this.spans.length>0&&(this.spans[this.spans.length-1].text=this.lastSpanTextWithConnector)):(this.needsConnector=!1,this.bounds.width=this.widthWithoutConnector,this.spans.length>0&&(this.spans[this.spans.length-1].text=this.lastSpanText))}},{key:"generateSpansFromText",value:function(t,i){a(Object.getPrototypeOf(e.prototype),"generateSpansFromText",this).call(this,t,i),this.spans.length>0?(this.lastSpanText=this.spans[this.spans.length-1].text,this.lastSpanTextWithConnector=this.lastSpanText+t.syllableConnector):(this.lastSpanText="",this.lastSpanTextWithConnector="")}},{key:"recalculateMetrics",value:function(t){a(Object.getPrototypeOf(e.prototype),"recalculateMetrics",this).call(this,t),this.widthWithoutConnector=this.bounds.width,this.textWithConnector=this.text+t.syllableConnector,this.widthWithConnector=this.bounds.width+t.hyphenWidth;var i,n,A=this.language||t.defaultLanguage,s=this.widthWithoutConnector/2;if(this.centerStartIndex>=0&&(this.centerStartIndex>=this.text.length||this.centerLength<0||this.centerStartIndex+this.centerLength>this.text.length)&&(this.centerStartIndex=-1),0===this.text.length);else if(this.centerStartIndex>=0)t.textMeasuringStrategy===p.Svg?(i=t.svgTextMeasurer.firstChild.getSubStringLength(0,this.centerStartIndex),n=t.svgTextMeasurer.firstChild.getSubStringLength(0,this.centerStartIndex+this.centerLength)):t.textMeasuringStrategy===p.Canvas&&(i=this.measureSubstring(t,this.centerStartIndex),n=this.measureSubstring(t,this.centerStartIndex+this.centerLength)),s=i+(n-i)/2;else if(this.lyricType!==C.Directive){var o=A.findVowelSegment(this.text,0);o.found===!0&&(t.textMeasuringStrategy===p.Svg?(i=t.svgTextMeasurer.firstChild.getSubStringLength(0,o.startIndex),n=t.svgTextMeasurer.firstChild.getSubStringLength(0,o.startIndex+o.length)):t.textMeasuringStrategy===p.Canvas&&(i=this.measureSubstring(t,o.startIndex),n=this.measureSubstring(t,o.startIndex+o.length)),s=i+(n-i)/2)}this.bounds.x=-s,this.bounds.y=0,this.origin.x=s,this.bounds.width=this.widthWithoutConnector,
this.bounds.height=t.lyricTextSize}},{key:"generateDropCap",value:function(t){var e=new w(t,this.originalText.substring(0,1));return 1===this.originalText.length?(this.generateSpansFromText(t,t.syllableConnector),this.centerStartIndex=-1,this.lyricType=C.SingleSyllable):(this.generateSpansFromText(t,this.originalText.substring(1)),this.centerStartIndex--),e}},{key:"getCssClasses",value:function(){var t="lyric ";return this.lyricType===C.Directive&&(t+="directive "),t+a(Object.getPrototypeOf(e.prototype),"getCssClasses",this).call(this)}},{key:"getExtraStyleProperties",value:function(t){var i=a(Object.getPrototypeOf(e.prototype),"getExtraStyleProperties",this).call(this);return this.lyricType===C.Directive&&t.autoColor===!0&&(i+="fill:#f00;"),i}},{key:"createSvgFragment",value:function(t){return this.spans.length>0&&(this.needsConnector?this.spans[this.spans.length-1].text=this.lastSpanTextWithConnector:this.spans[this.spans.length-1].text=this.lastSpanText),a(Object.getPrototypeOf(e.prototype),"createSvgFragment",this).call(this,t)}}]),e}(m),w=(e.AboveLinesText=function(t){function e(t,i){s(this,e);var A=n(this,Object.getPrototypeOf(e).call(this,t,(t.alTextStyle||"")+i,t.alTextFont,t.alTextSize,"start"));return A.padding=t.staffInterval/2,A}return A(e,t),r(e,[{key:"getCssClasses",value:function(){return"aboveLinesText "+a(Object.getPrototypeOf(e.prototype),"getCssClasses",this).call(this)}}]),e}(m),e.DropCap=function(t){function e(t,i){s(this,e);var A=n(this,Object.getPrototypeOf(e).call(this,t,i,(t.dropCapTextStyle||"")+t.dropCapTextFont,t.dropCapTextSize,"middle"));return A.padding=2*t.staffInterval,A}return A(e,t),r(e,[{key:"getCssClasses",value:function(){return"dropCap "+a(Object.getPrototypeOf(e.prototype),"getCssClasses",this).call(this)}}]),e}(m)),Q=e.Annotation=function(t){function e(t,i){s(this,e);var A=n(this,Object.getPrototypeOf(e).call(this,t,(t.annotationTextStyle||"")+i,t.annotationTextFont,t.annotationTextSize,"middle"));return A.padding=t.staffInterval,A.dominantBaseline="hanging",A}return A(e,t),r(e,[{key:"getCssClasses",value:function(){return"annotation "+a(Object.getPrototypeOf(e.prototype),"getCssClasses",this).call(this)}}]),e}(m);e.Annotations=function(t){function e(t){s(this,e);for(var i=n(this,Object.getPrototypeOf(e).call(this)),A=arguments.length,o=Array(A>1?A-1:0),a=1;A>a;a++)o[a-1]=arguments[a];return i.annotations=o.map(function(e){return new Q(t,e)}),i.padding=Math.max.apply(null,i.annotations.map(function(t){return t.padding})),i}return A(e,t),r(e,[{key:"updateBounds",value:function(t){t||(t=1);for(var e=0;e<this.annotations.length;++e){var i=this.annotations[e];i.bounds.x+=this.bounds.x*t,i.bounds.y+=this.bounds.y*t}}},{key:"recalculateMetrics",value:function(t){this.bounds.x=0,this.bounds.y=0,this.bounds.width=0,this.bounds.height=0,this.origin.x=0,this.origin.y=0;for(var e=0;e<this.annotations.length;++e){var i=this.annotations[e];i.recalculateMetrics(t),this.bounds.width=Math.max(this.bounds.width,i.bounds.width),i.bounds.y+=this.bounds.height,this.bounds.height+=i.bounds.height/1.4,this.origin.y=this.origin.y||i.origin.y}}},{key:"draw",value:function(t){this.updateBounds(),this.annotations.forEach(function(e){e.draw(t)}),this.updateBounds(-1)}},{key:"createSvgFragment",value:function(t){this.updateBounds();var e=this.annotations.map(function(e){return e.createSvgFragment(t)}).join("");return this.updateBounds(-1),e}}]),e}(d),e.ChantNotationElement=function(t){function e(){s(this,e);var t=n(this,Object.getPrototypeOf(e).call(this));return t.leadingSpace=0,t.trailingSpace=-1,t.keepWithNext=!1,t.needsLayout=!0,t.lyrics=[],t.score=null,t.line=null,t.visualizers=[],t}return A(e,t),r(e,[{key:"hasLyrics",value:function(){return 0!==this.lyrics.length}},{key:"getLyricLeft",value:function(t){return this.bounds.x+this.lyrics[t].bounds.x}},{key:"getAllLyricsLeft",value:function(){if(0===this.lyrics.length)return this.bounds.right();for(var t=Number.MAX_VALUE,e=0;e<this.lyrics.length;e++)this.lyrics[e]&&(t=Math.min(t,this.lyrics[e].bounds.x));return this.bounds.x+t}},{key:"getLyricRight",value:function(t){return this.bounds.x+this.lyrics[t].bounds.x+this.lyrics[t].bounds.width}},{key:"getAllLyricsRight",value:function(){if(0===this.lyrics.length)return this.bounds.x;for(var t=Number.MIN_VALUE,e=0;e<this.lyrics.length;e++)this.lyrics[e]&&(t=Math.max(t,this.lyrics[e].bounds.x+this.lyrics[e].bounds.width));return this.bounds.x+t}},{key:"addVisualizer",value:function(t){t.ignoreBounds||(this.bounds.isEmpty()?this.bounds=t.bounds.clone():this.bounds.union(t.bounds)),this.visualizers.push(t)}},{key:"prependVisualizer",value:function(t){this.bounds.isEmpty()?this.bounds=t.bounds.clone():this.bounds.union(t.bounds),this.visualizers.unshift(t)}},{key:"performLayout",value:function(t){this.trailingSpace<0&&(this.trailingSpace=4*t.intraNeumeSpacing),this.visualizers=[],this.bounds=new u.Rect(1/0,1/0,-(1/0),-(1/0));for(var e=0;e<this.lyrics.length;e++)this.lyrics[e].recalculateMetrics(t);if(this.alText)for(e=0;e<this.alText.length;e++)this.alText[e].recalculateMetrics(t)}},{key:"resetDependencies",value:function(){}},{key:"finishLayout",value:function(t){this.bounds.x=0;for(var e=0;e<this.lyrics.length;e++)this.lyrics[e].bounds.x=this.origin.x-this.lyrics[e].origin.x;this.needsLayout=!1}},{key:"draw",value:function(t){var e=t.canvasCtxt;e.translate(this.bounds.x,0);for(var i=0;i<this.visualizers.length;i++)this.visualizers[i].draw(t);for(i=0;i<this.lyrics.length;i++)this.lyrics[i].draw(t);e.translate(-this.bounds.x,0)}},{key:"createSvgFragment",value:function(t){for(var e="",i=0;i<this.visualizers.length;i++)e+=this.visualizers[i].createSvgFragment(t);for(i=0;i<this.lyrics.length;i++)e+=this.lyrics[i].createSvgFragment(t);if(this.alText)for(i=0;i<this.alText.length;i++)e+=this.alText[i].createSvgFragment(t);return f.createFragment("g",{"class":"ChantNotationElement "+this.constructor.name,transform:"translate("+this.bounds.x+",0)"},e)}}]),e}(d)},function(t,e){t.exports="data:font/opentype;base64,AAEAAAATAQAABAAwRFNJRwAAAAEAAENkAAAACEdERUYAbgADAABDbAAAABhHUE9TTxtiswAAQ4QAAAE8R1NVQjtgWB4AAETAAAAAlk9TLzJKLTibAAABuAAAAGBjbWFwCRIK1gAAA4gAAAEEY3Z0IAGGB0cAAAZ0AAAAGmZwZ20GWZw3AAAEjAAAAXNnYXNwABcACAAAQ1QAAAAQZ2x5ZhRQNO4AAAdQAAAEzGhlYWQKMl2QAAABPAAAADZoaGVhDC0CmQAAAXQAAAAkaG10eB67AO4AAAIYAAABbmtlcm4E1wS9AAAMHAAAAMZsb2NhLQ4u0gAABpAAAADAbWF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gBUAGgAaQBzACAAbABpAGMAZQBuAHMAZQAgAGIAZQBjAG8AbQBlAHMAIABuAHUAbABsACAAYQBuAGQAIAB2AG8AaQBkACAAaQBmACAAYQBuAHkAIABvAGYAIAB0AGgAZQAgAGEAYgBvAHYAZQAgAGMAbwBuAGQAaQB0AGkAbwBuAHMAIABhAHIAZQAgAG4AbwB0ACAAbQBlAHQALgANAAoADQAKAEQASQBTAEMATABBAEkATQBFAFIADQAKAFQASABFACAARgBPAE4AVAAgAFMATwBGAFQAVwBBAFIARQAgAEkAUwAgAFAAUgBPAFYASQBEAEUARAAgACIAQQBTACAASQBTACIALAAgAFcASQBUAEgATwBVAFQAIABXAEEAUgBSAEEATgBUAFkAIABPAEYAIABBAE4AWQAgAEsASQBOAEQALAAgAEUAWABQAFIARQBTAFMAIABPAFIAIABJAE0AUABMAEkARQBEACwAIABJAE4AQwBMAFUARABJAE4ARwAgAEIAVQBUACAATgBPAFQAIABMAEkATQBJAFQARQBEACAAVABPACAAQQBOAFkAIABXAEEAUgBSAEEATgBUAEkARQBTACAATwBGACAATQBFAFIAQwBIAEEATgBUAEEAQgBJAEwASQBUAFkALAAgAEYASQBUAE4ARQBTAFMAIABGAE8AUgAgAEEAIABQAEEAUgBUAEkAQwBVAEwAQQBSACAAUABVAFIAUABPAFMARQAgAEEATgBEACAATgBPAE4ASQBOAEYAUgBJAE4ARwBFAE0ARQBOAFQAIABPAEYAIABDAE8AUABZAFIASQBHAEgAVAAsACAAUABBAFQARQBOAFQALAAgAFQAUgBBAEQARQBNAEEAUgBLACwAIABPAFIAIABPAFQASABFAFIAIABSAEkARwBIAFQALgAgAEkATgAgAE4ATwAgAEUAVgBFAE4AVAAgAFMASABBAEwATAAgAFQASABFACAAQwBPAFAAWQBSAEkARwBIAFQAIABIAE8ATABEAEUAUgAgAEIARQAgAEwASQBBAEIATABFACAARgBPAFIAIABBAE4AWQAgAEMATABBAEkATQAsACAARABBAE0AQQBHAEUAUwAgAE8AUgAgAE8AVABIAEUAUgAgAEwASQBBAEIASQBMAEkAVABZACwAIABJAE4AQwBMAFUARABJAE4ARwAgAEEATgBZACAARwBFAE4ARQBSAEEATAAsACAAUwBQAEUAQwBJAEEATAAsACAASQBOAEQASQBSAEUAQwBUACwAIABJAE4AQwBJAEQARQBOAFQAQQBMACwAIABPAFIAIABDAE8ATgBTAEUAUQBVAEUATgBUAEkAQQBMACAARABBAE0AQQBHAEUAUwAsACAAVwBIAEUAVABIAEUAUgAgAEkATgAgAEEATgAgAEEAQwBUAEkATwBOACAATwBGACAAQwBPAE4AVABSAEEAQwBUACwAIABUAE8AUgBUACAATwBSACAATwBUAEgARQBSAFcASQBTAEUALAAgAEEAUgBJAFMASQBOAEcAIABGAFIATwBNACwAIABPAFUAVAAgAE8ARgAgAFQASABFACAAVQBTAEUAIABPAFIAIABJAE4AQQBCAEkATABJAFQAWQAgAFQATwAgAFUAUwBFACAAVABIAEUAIABGAE8ATgBUACAAUwBPAEYAVABXAEEAUgBFACAATwBSACAARgBSAE8ATQAgAE8AVABIAEUAUgAgAEQARQBBAEwASQBOAEcAUwAgAEkATgAgAFQASABFACAARgBPAE4AVAAgAFMATwBGAFQAVwBBAFIARQAuAAAAAgAAAAAAAP8GAGQAAAAAAAAAAAAAAAAAAAAAAAAAAABfAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQAAAAMACAACABAAAf//AAIAAAABAAAAAAABAAAADgAAAAAAAAAAAAIAAQAAAF4AAQABAAAACgBKAGQAAmN5cmwADmxhdG4AGAAEAAAAAP//AAAAEAACSVBBIAAaVklUIAAiAAD//wACAAEAAAAA//8AAQABAAD//wAAAAJrZXJuAA5tYXJrABQAAAABAAEAAAABAAAAAgAGAA4ABAAEAAEAEAACAAAAAQAsAAEADAAQAAAAIAAiAAIAAAABAAYAIQAyADYAQQBSAFYAAAAGAAEAjgAEAAAABgAWADAASgBkAHIAgAAGAA7/nAAhADYAQQA2ADIADQA2//IAUgAXAAYADv+cACEAWABBAFgAMgChADYAvQBSAE8ABgAO/nAAIf6TAEH+kwAy//kANgAOAFL/YQADAA7/nABSABcAVv/VAAMADv+cAFIANgBWAEwAAwAO/nAAUgAJAFYAGQABAAYAIQAyADYAQQBSAFYAAQAAAAoATgBoAAJjeXJsAA5sYXRuABoABAAAAAD//wABAAAAEAACSVBBIAAaVklUIAAiAAD//wACAAAAAQAA//8AAQAAAAD//wABAAAAAmFhbHQADnNtY3AAFAAAAAEAAAAAAAEAAAABAAQAAwAAAAEACAABABgAAwAMABAAFAABAEEAAQBSAAEAVgABAAMAIQAyADYAAA=="},function(t,e,i){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e["default"]=t,e}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ChantDocument=e.ChantScore=e.ChantMapping=e.ChantLineBreak=e.TextOnly=e.FaClef=e.DoClef=e.Clef=e.Note=e.NoteShapeModifiers=e.NoteShape=e.LiquescentType=void 0;var a=function m(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);if(void 0===n){var A=Object.getPrototypeOf(t);return null===A?void 0:m(A,e,i)}if("value"in n)return n.value;var s=n.get;if(void 0!==s)return s.call(i)},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=i(1),h=(n(u),i(4)),l=i(7),c=i(8),g=(i(9),i(10)),f=e.LiquescentType={None:0,Large:1,Small:2,Ascending:4,Descending:8,InitioDebilis:16,LargeAscending:5,LargeDescending:9,SmallAscending:6,SmallDescending:10},p=e.NoteShape={Default:0,Virga:1,Inclinatum:2,Quilisma:3,Stropha:4,Oriscus:5},d=e.NoteShapeModifiers={None:0,Ascending:1,Descending:2,Cavum:4,Stemmed:8},y=(e.Note=function(t){function e(t){A(this,e);var i=s(this,Object.getPrototypeOf(e).call(this));return"undefined"!=typeof t?i.pitch=t:i.pitch=null,i.glyphVisualizer=null,i.staffPosition=0,i.liquescent=f.None,i.shape=p.Default,i.shapeModifiers=d.None,i.neume=null,i.epismata=[],i.morae=[],i}return o(e,t),r(e,[{key:"setGlyph",value:function(t,e){this.glyphVisualizer?this.glyphVisualizer.setGlyph(t,e):this.glyphVisualizer=new h.GlyphVisualizer(t,e),this.glyphVisualizer.setStaffPosition(t,this.staffPosition),
this.bounds.x=this.glyphVisualizer.bounds.x,this.bounds.y=this.glyphVisualizer.bounds.y,this.bounds.width=this.glyphVisualizer.bounds.width,this.bounds.height=this.glyphVisualizer.bounds.height,this.origin.x=this.glyphVisualizer.origin.x,this.origin.y=this.glyphVisualizer.origin.y}},{key:"shapeModifierMatches",value:function(t){return t===d.None?this.shapeModifier===d.None:this.shapeModifier&0!==t}},{key:"draw",value:function(t){this.glyphVisualizer.bounds.x=this.bounds.x,this.glyphVisualizer.bounds.y=this.bounds.y,this.glyphVisualizer.draw(t)}},{key:"createSvgFragment",value:function(t){return this.glyphVisualizer.bounds.x=this.bounds.x,this.glyphVisualizer.bounds.y=this.bounds.y,this.glyphVisualizer.createSvgFragment(t)}}]),e}(h.ChantLayoutElement),e.Clef=function(t){function e(t,i){var n=arguments.length<=2||void 0===arguments[2]?null:arguments[2];A(this,e);var o=s(this,Object.getPrototypeOf(e).call(this));return o.isClef=!0,o.staffPosition=t,o.octave=i,o.defaultAccidental=n,o.activeAccidental=n,o.keepWithNext=!0,o}return o(e,t),r(e,[{key:"resetAccidentals",value:function(){this.activeAccidental=this.defaultAccidental}},{key:"pitchToStaffPosition",value:function(t){}},{key:"performLayout",value:function(t){t.activeClef=this,this.defaultAccidental&&this.defaultAccidental.performLayout(t),a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t)}},{key:"finishLayout",value:function(t){if(this.defaultAccidental){var i=this.defaultAccidental.createGlyphVisualizer(t);i.bounds.x+=this.visualizers[0].bounds.right()+t.intraNeumeSpacing,this.addVisualizer(i)}a(Object.getPrototypeOf(e.prototype),"finishLayout",this).call(this,t)}}],[{key:"default",value:function(){return v}}]),e}(h.ChantNotationElement)),B=e.DoClef=function(t){function e(t,i){var n=arguments.length<=2||void 0===arguments[2]?null:arguments[2];A(this,e);var o=s(this,Object.getPrototypeOf(e).call(this,t,i,n));return o.leadingSpace=0,o}return o(e,t),r(e,[{key:"pitchToStaffPosition",value:function(t){return 7*(t.octave-this.octave)+this.staffPosition+u.Pitch.stepToStaffOffset(t.step)-u.Pitch.stepToStaffOffset(u.Step.Do)}},{key:"staffPositionToPitch",value:function(t){var e=t-this.staffPosition,i=Math.floor(e/7),n=u.Pitch.staffOffsetToStep(e);return null!==this.defaultAccidental&&n===this.defaultAccidental.step&&(n+=this.defaultAccidental.accidentalType),new u.Pitch(n,this.octave+i)}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=new h.GlyphVisualizer(t,h.GlyphCode.DoClef);i.setStaffPosition(t,this.staffPosition),this.addVisualizer(i),this.finishLayout(t)}},{key:"clone",value:function(){return new e(this.staffPosition,this.octave,this.defaultAccidental)}}]),e}(y),v=new B(1,2),b=(e.FaClef=function(t){function e(t,i){var n=arguments.length<=2||void 0===arguments[2]?null:arguments[2];A(this,e);var o=s(this,Object.getPrototypeOf(e).call(this,t,i,n));return o.octave=i,o.leadingSpace=0,o}return o(e,t),r(e,[{key:"pitchToStaffPosition",value:function(t){return 7*(t.octave-this.octave)+this.staffPosition+u.Pitch.stepToStaffOffset(t.step)-u.Pitch.stepToStaffOffset(u.Step.Fa)}},{key:"staffPositionToPitch",value:function(t){var e=t-this.staffPosition+3,i=Math.floor(e/7),n=u.Pitch.staffOffsetToStep(e);return n===u.Step.Ti&&this.defaultAccidental===c.AccidentalType.Flat&&(n=u.Step.Te),new u.Pitch(n,this.octave+i)}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=new h.GlyphVisualizer(t,h.GlyphCode.FaClef);i.setStaffPosition(t,this.staffPosition),this.addVisualizer(i),this.finishLayout(t)}},{key:"clone",value:function(){return new e(this.staffPosition,this.octave,this.defaultAccidental)}}]),e}(y),e.TextOnly=function(t){function e(){return A(this,e),s(this,Object.getPrototypeOf(e).call(this))}return o(e,t),r(e,[{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.addVisualizer(new h.GlyphVisualizer(t,h.GlyphCode.None)),this.origin.x=0,this.origin.y=0,this.finishLayout(t)}}]),e}(h.ChantNotationElement),e.ChantLineBreak=function(t){function e(t){A(this,e);var i=s(this,Object.getPrototypeOf(e).call(this));return i.justify=t,i}return o(e,t),r(e,[{key:"performLayout",value:function(t){this.bounds=new u.Rect(0,0,0,0)}},{key:"clone",value:function(){var t=new e;return t.justify=this.justify,t}}]),e}(h.ChantNotationElement),e.ChantMapping=function C(t,e){A(this,C),this.source=t,this.notations=e},e.ChantScore=function(){function t(e){var i=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=arguments[2];A(this,t),this.mappings=i,this.lines=[],this.notes=[],this.startingClef=null,this.useDropCap=n,this.dropCap=null,this.annotation=null,this.compiled=!1,this.autoColoring=!0,this.needsLayout=!0,this.bounds=new u.Rect,this.updateNotations(e)}return r(t,[{key:"updateNotations",value:function(t){var e;for(this.notations=[],e=0;e<this.mappings.length;e++)this.notations=this.notations.concat(this.mappings[e].notations);this.startingClef=null;var i=new B(1,2);for(e=0;e<this.notations.length;e++){if(this.notations[e].isNeume){this.startingClef=i;break}if(this.notations[e].isClef){this.startingClef=this.notations[e],this.notations.splice(e,1);break}}this.startingClef||(this.startingClef=i),this.useDropCap&&this.recreateDropCap(t),this.needsLayout=!0}},{key:"recreateDropCap",value:function(t){for(var e=0;e<this.notations.length;e++)if(this.notations[e].hasLyrics()&&null!==this.notations[e].lyrics[0])return void(this.dropCap=this.notations[e].lyrics[0].generateDropCap(t))}},{key:"performLayout",value:function(t){if(this.needsLayout!==!1){t.activeClef=this.startingClef,t.notations=this.notations,t.currNotationIndex=0,this.dropCap&&this.dropCap.recalculateMetrics(t),this.annotation&&this.annotation.recalculateMetrics(t);for(var e=0;e<this.notations.length;e++)this.notations[e].performLayout(t),t.currNotationIndex++;this.needsLayout=!1}}},{key:"performLayoutAsync",value:function(t,e){var i=this;return this.needsLayout===!1?void(e&&setTimeout(function(){return e()},0)):(t.activeClef=this.startingClef,t.notations=this.notations,t.currNotationIndex=0,this.dropCap&&this.dropCap.recalculateMetrics(t),this.annotation&&this.annotation.recalculateMetrics(t),void setTimeout(function(){return i.layoutElementsAsync(t,0,e)},0))}},{key:"layoutElementsAsync",value:function(t,e,i){var n=this;if(e>=this.notations.length)return this.needsLayout=!1,void(i&&setTimeout(function(){return i()},0));0===e&&(t.activeClef=this.startingClef);var A=(new Date).getTime()+50;do{var s=this.notations[e];s.needsLayout&&(t.currNotationIndex=e,s.performLayout(t)),e++}while(e<this.notations.length&&(new Date).getTime()<A);setTimeout(function(){return n.layoutElementsAsync(t,e,i)},0)}},{key:"layoutChantLines",value:function(t,e,i){this.lines=[];var n=0,A=0;t.activeClef=this.startingClef;do{var s=new l.ChantLine(this);s.buildFromChantNotationIndex(t,A,e),A=s.notationsStartIndex+s.numNotationsOnLine,s.performLayout(t),this.lines.push(s),s.bounds.y=-s.bounds.y+n,n+=s.bounds.height+1.5*t.staffInterval}while(A<this.notations.length);var o=this.lines[this.lines.length-1];this.bounds.x=0,this.bounds.y=0,this.bounds.width=o.bounds.width,this.bounds.height=n,i&&i(this)}},{key:"draw",value:function(t){var e=t.canvasCtxt;e.clearRect(0,0,t.canvas.width,t.canvas.height),e.translate(this.bounds.x,this.bounds.y);for(var i=0;i<this.lines.length;i++)this.lines[i].draw(t);e.translate(-this.bounds.x,-this.bounds.y)}},{key:"createSvg",value:function(t){var e="";for(var i in t.defs)t.defs.hasOwnProperty(i)&&(e+=t.defs[i]);e=h.QuickSvg.createFragment("defs",{},e);for(var n=0;n<this.lines.length;n++)e+=this.lines[n].createSvgFragment(t);return e=h.QuickSvg.createFragment("g",{},e),e=h.QuickSvg.createFragment("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","class":"ChantScore",width:this.bounds.width,height:this.bounds.height},e)}},{key:"createSvgForEachLine",value:function(t){var e="",i="";for(var n in t.defs)t.defs.hasOwnProperty(n)&&(i+=t.defs[n]);i=h.QuickSvg.createFragment("defs",{},i);for(var A=0,s=0;s<this.lines.length;s++){var o=i+this.lines[s].createSvgFragment(t,A),a=this.lines[s].bounds.height+1.5*t.staffInterval;o=h.QuickSvg.createFragment("g",{},o),o=h.QuickSvg.createFragment("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","class":"ChantScore",width:this.bounds.width,height:a},o),e+=o,A+=a}return e}},{key:"unserializeFromJson",value:function(t){this.autoColoring=t["auto-coloring"],null!==t.annotation&&""!==t.annotation?this.annotation=new h.Annotation(ctxt,t.annotation):this.annotation=null;var e="auto"===t["drop-cap"];g.Gabc.parseChantNotations(t.notations,this,e)}},{key:"serializeToJson",value:function(){var t={};return t.type="score",t["auto-coloring"]=!0,null!==this.annotation?t.annotation=this.annotation.unsanitizedText:t.annotation="",t}}]),t}());e.ChantDocument=function(){function t(){A(this,t);var e={layout:{units:"mm","default-font":{"font-family":"Crimson","font-size":14},page:{width:8.5,height:11,"margin-left":0,"margin-top":0,"margin-right":0,"margin-bottom":0}},scores:[]};this.copyLayout(this,e),this.scores=e.scores}return r(t,[{key:"copyLayout",value:function(t,e){t.layout={units:e.layout.units,"default-font":{"font-family":e.layout["default-font"]["font-family"],"font-size":e.layout["default-font"]["font-size"]},page:{width:e.layout.page.width,height:e.layout.page.height,"margin-left":e.layout.page["margin-left"],"margin-top":e.layout.page["margin-top"],"margin-right":e.layout.page["margin-right"],"margin-bottom":e.layout.page["margin-bottom"]}}}},{key:"unserializeFromJson",value:function(t){this.copyLayout(this,t),this.scores=[];for(var e=0;e<t.scores.length;e++){var i=new b;i.unserializeFromJson(t.scores[e]),this.scores.push(i)}}},{key:"serializeToJson",value:function(){var t={};this.copyLayout(t,this),t.scores=[];for(var e=0;e<this.scores.length;e++)t.scores.push(this.scores[e].serializeToJson());return t}}]),t}()},function(t,e,i){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e["default"]=t,e}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ChantLine=void 0;var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=i(1),u=(n(r),i(4)),h=i(6),l=i(3),c=i(8),g=i(9);e.ChantLine=function(t){function e(t){A(this,e);var i=s(this,Object.getPrototypeOf(e).call(this));return i.score=t,i.notationsStartIndex=0,i.numNotationsOnLine=0,i.notationBounds=null,i.staffLeft=0,i.staffRight=0,i.startingClef=null,i.custos=null,i.justify=!0,i.ledgerLines=[],i.braces=[],i.nextLine=null,i.previousLine=null,i.lyricLineHeight=0,i.lyricLineBaseline=0,i.numLyricLines=0,i.spaceAfterNotations=0,i.spaceBetweenTextTracks=0,i}return o(e,t),a(e,[{key:"performLayout",value:function(t){this.notationBounds=new r.Rect(this.staffLeft,-3.1*t.staffInterval,this.staffRight-this.staffLeft,6.2*t.staffInterval);var e,i=this.score.notations,n=this.notationsStartIndex+this.numNotationsOnLine,A=null;for(this.notationBounds.union(this.startingClef.bounds),this.lyricLineHeight=0,this.lyricLineBaseline=0,this.numLyricLines=0,this.altLineHeight=0,this.altLineBaseline=0,this.numAltLines=0,e=this.notationsStartIndex;n>e;e++)A=i[e],this.notationBounds.union(A.bounds),0===this.numLyricLines&&A.hasLyrics()&&(A.lyrics[0].bounds.height>this.lyricLineHeight&&(this.lyricLineHeight=A.lyrics[0].bounds.height),A.lyrics[0].origin.y>this.lyricLineBaseline&&(this.lyricLineBaseline=A.lyrics[0].origin.y),A.lyrics.length>this.numLyricLines&&(this.numLyricLines=A.lyrics.length)),0===this.numAltLines&&A.alText&&(A.alText[0].bounds.height>this.altLineHeight&&(this.altLineHeight=A.alText[0].bounds.height),A.alText[0].origin.y>this.altLineBaseline&&(this.altLineBaseline=A.alText[0].origin.y),A.alText.length>this.numAltLines&&(this.numAltLines=A.alText.length));for(this.custos&&this.notationBounds.union(this.custos.bounds),e=0;e<this.braces.length;e++)this.notationBounds.union(this.braces[e].bounds);for(e=this.notationsStartIndex;n>e;e++){A=i[e];for(var s=this.notationBounds.y+this.notationBounds.height,o=0;o<A.lyrics.length;o++)A.lyrics[o].bounds.y=s+this.lyricLineBaseline,s+=this.lyricLineHeight;if(A.alText)for(s=this.notationBounds.y,o=0;o<A.alText.length;o++)s-=this.altLineHeight,A.alText[o].bounds.y=s+this.altLineBaseline}if(this.startingClef.hasLyrics())for(s=this.notationBounds.y+this.notationBounds.height,o=0;o<this.startingClef.lyrics.length;o++)this.startingClef.lyrics[o].bounds.y=s+this.lyricLineBaseline,s+=this.lyricLineHeight;if(0===this.notationsStartIndex){if(null!==this.score.dropCap){var a;a=this.notationBounds.y+this.notationBounds.height+this.lyricLineBaseline+this.altLineHeight*this.numAltLines-this.altLineHeight*this.numAltLines,this.score.dropCap.bounds.x=this.staffLeft/2,this.score.dropCap.bounds.y=a}if(null!==this.score.annotation){if(this.score.annotation.bounds.x=this.staffLeft/2,this.score.annotation.bounds.y=3*-t.staffInterval,null!==this.score.dropCap){var u=this.score.dropCap.bounds.y-this.score.annotation.bounds.height-.65*this.score.dropCap.fontSize;u<this.score.annotation.bounds.y?this.score.annotation.bounds.y=u:this.score.annotation.bounds.y=(this.score.annotation.bounds.y+u)/2;var h=this.score.annotation.bounds.y-this.notationBounds.y;0>h&&(this.notationBounds.y=this.score.annotation.bounds.y,this.notationBounds.height-=h)}this.score.annotation.bounds.y+=.65*this.score.annotation.origin.y}}this.notationBounds.height+=this.lyricLineHeight*this.numLyricLines+this.altLineHeight*this.numAltLines;var l=this.notationBounds.height;this.notationBounds.y-=this.altLineHeight*this.numAltLines,this.bounds.x=0,this.bounds.y=this.notationBounds.y,this.bounds.width=this.notationBounds.right(),this.bounds.height=l,this.origin=new r.Point(this.staffLeft,-this.notationBounds.y)}},{key:"draw",value:function(t){var e=t.canvasCtxt;e.translate(this.bounds.x,this.bounds.y);var i,n,A=this.staffLeft,s=this.staffRight;for(e.lineWidth=Math.round(t.staffLineWeight),e.strokeStyle=t.staffLineWeight,i=-3;3>=i;i+=2)n=Math.round(t.staffInterval*i)+.5,e.beginPath(),e.moveTo(A,n),e.lineTo(s,n),e.stroke();for(i=0;i<this.ledgerLines.length;i++){var o=this.ledgerLines[i];n=t.calculateHeightFromStaffPosition(o.staffPosition),e.beginPath(),e.moveTo(o.x1,n),e.lineTo(o.x2,n),e.stroke()}0===this.notationsStartIndex&&(null!==this.score.dropCap&&this.score.dropCap.draw(t),null!==this.score.annotation&&this.score.annotation.draw(t));var a=this.score.notations,r=this.notationsStartIndex+this.numNotationsOnLine;for(i=this.notationsStartIndex;r>i;i++)a[i].draw(t);this.startingClef.draw(t),this.custos&&this.custos.draw(t),e.translate(-this.bounds.x,-this.bounds.y)}},{key:"createSvgFragment",value:function(t){var e,i=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n="",A=this.staffLeft,s=this.staffRight;for(e=-3;3>=e;e+=2)n+=u.QuickSvg.createFragment("line",{x1:A,y1:t.staffInterval*e,x2:s,y2:t.staffInterval*e,stroke:t.staffLineColor,"stroke-width":t.staffLineWeight,"class":"staffLine"});for(e=0;e<this.ledgerLines.length;e++){var o=this.ledgerLines[e],a=t.calculateHeightFromStaffPosition(o.staffPosition);n+=u.QuickSvg.createFragment("line",{x1:o.x1,y1:a,x2:o.x2,y2:a,stroke:t.staffLineColor,"stroke-width":t.staffLineWeight,"class":"ledgerLine"})}for(e=0;e<this.braces.length;e++)n+=this.braces[e].createSvgFragment(t);0===this.notationsStartIndex&&(null!==this.score.dropCap&&(n+=this.score.dropCap.createSvgFragment(t)),null!==this.score.annotation&&(n+=this.score.annotation.createSvgFragment(t))),n+=this.startingClef.createSvgFragment(t);var r=this.score.notations,h=this.notationsStartIndex+this.numNotationsOnLine;for(e=this.notationsStartIndex;h>e;e++)n+=r[e].createSvgFragment(t);return this.custos&&(n+=this.custos.createSvgFragment(t)),u.QuickSvg.createFragment("g",{"class":"chantLine",transform:"translate("+this.bounds.x+","+(this.bounds.y-i)+")"},n)}},{key:"generateCurlyBraceDrawable",value:function(t,e,i,n,A){var s;s=A?-t.staffInterval/2:t.staffInterval/2;var o=.6,a=i-e,r=e,h=n+o*s,l=e+.25*a,c=n+(1-o)*s,g=e+.5*a,f=n+s,p=i,d=n+o*s,y=e+.75*a,B=n+(1-o)*s,v="M "+e+" "+n+" Q "+r+" "+h+" "+l+" "+c+" T "+g+" "+f+" M "+i+" "+n+" Q "+p+" "+d+" "+y+" "+B+" T "+g+" "+f;return u.QuickSvg.createFragment("path",{d:v,stroke:t.neumeLineColor,"stroke-width":t.neumeLineWeight+"px",fill:"none"})}},{key:"buildFromChantNotationIndex",value:function(t,e,i){var n=this.score.notations,A=null,s=null,o=null;if(this.notationsStartIndex=e,this.numNotationsOnLine=0,this.staffLeft=0,i>0?this.staffRight=i:this.staffRight=99999999,0===this.notationsStartIndex){var a=0;null!==this.score.dropCap&&(a=this.score.dropCap.bounds.width+2*this.score.dropCap.padding),null!==this.score.annotation&&(a=Math.max(a,this.score.annotation.bounds.width+4*this.score.annotation.padding)),this.staffLeft+=a}else if(s=n[e-1],s.constructor===c.DoubleBar&&s.hasLyrics()&&(s.lyrics.length>1||!s.lyrics[0].text.match(/^(i\.?)+j\.?/))){A=s.lyrics.map(function(e){var i=new u.Lyric(t,e.originalText,e.lyricType);return i.elidesToNext=e.elidesToNext,e.bounds.y=Number.MAX_SAFE_INTEGER,i});var r=A.map(function(t){return t.bounds.x}).reduce(function(t,e){return e>t?t:e});A.forEach(function(t){t.bounds.x-=r})}n[e].isClef&&(t.activeClef=n[e].clone(),e++,this.notationsStartIndex++),this.startingClef=t.activeClef.clone(),this.startingClef.performLayout(t),this.startingClef.bounds.x=this.staffLeft;var g=this.startingClef;A&&(g.lyrics=A);var f,p,d=this.staffRight-l.Glyphs.CustosLong.bounds.width*t.glyphScaling-4*t.intraNeumeSpacing,y=n.length-1;for(f=e;y>=f;f++){g.hasLyrics()&&(o=g),s=g,g=n[f];var B;B=f===y||g.constructor===c.Custos||s.constructor===c.Custos&&g.isDivider?this.staffRight:f===y-1?Math.max(d,this.staffRight-n[y].bounds.width):d;var v=this.positionNotationElement(t,o,s,g,B);if(v===!1){for(;this.numNotationsOnLine>0&&(g.isDivider||g.constructor===c.Custos);)g=n[--f],this.numNotationsOnLine--;var b=g.notes&&g.notes.reduce(function(t,e,i){return t||e.braceEnd&&i+1||0},0),m=g.notes&&g.notes.reduce(function(t,e,i){return t||e.braceStart&&i+1||0},0);if(b&&(!m||m>b)){var C=n.slice(this.notationsStartIndex,f).reduceRight(function(t,e,i){if(-1===t&&e.notes){var n=e.notes.filter(function(t){return t.braceStart}).length,A=e.notes.filter(function(t){return t.braceEnd}).length;if(A)return-2;if(n)return i}return t},-1);C>0&&(this.numNotationsOnLine=C,f=C+this.notationsStartIndex)}for(p=f-1;p>this.notationsStartIndex;p--){var G=n[p];if(G.keepWithNext!==!0)break;this.numNotationsOnLine--}if(n[p].isDivider&&n[p-1].constructor===c.Custos){for(o=null,f=p-2;f>=this.notationsStartIndex;f--)if(n[f].hasLyrics()){o=n[f];break}this.positionNotationElement(t,o,n[p-2],n[p],this.staffRight),this.custos=n[p-1],this.custos.bounds.x=this.staffRight-this.custos.bounds.width-this.custos.leadingSpace}break}if(g.chantLine=this,this.numNotationsOnLine++,g.isClef&&(t.activeClef=g),g.constructor===h.ChantLineBreak&&i>0){this.justify=g.justify;break}}if(!this.custos)for(f=this.notationsStartIndex+this.numNotationsOnLine;f<n.length;f++){var w=n[f];if(w.isNeume){this.custos=new c.Custos(!0),t.currNotationIndex=f-1,this.custos.performLayout(t),this.custos.bounds.x=this.staffRight-this.custos.bounds.width-this.custos.leadingSpace;break}}var Q=null;for(f=this.notationsStartIndex+this.numNotationsOnLine-1;f>=this.notationsStartIndex;--f)if(n[f].hasLyrics()){Q=n[f];break}Q&&Q.lyrics[0].allowsConnector()&&Q.lyrics[0].setNeedsConnector(!0);var I=n[this.notationsStartIndex+this.numNotationsOnLine-1];0>=i?(this.staffRight=I.bounds.right(),this.justify=!1):this.notationsStartIndex+this.numNotationsOnLine===n.length&&(this.justify=!0,this.justify=I.isDivider&&(this.staffRight-I.bounds.right())/this.staffRight<.1),this.justify===!0&&this.justifyElements(),this.finishLayout(t)}},{key:"justifyElements",value:function(){var t,e=[],i=this.score.notations,n=this.notationsStartIndex+this.numNotationsOnLine,A=0;if(this.numNotationsOnLine>0){var s=i[n-1],o=null;for(t=n-1;t>=this.notationsStartIndex;t--)if(i[t].hasLyrics()){o=i[t];break}A=o?this.staffRight-Math.max(o.getAllLyricsRight(),s.bounds.right()+s.trailingSpace):this.staffRight-(s.bounds.right()+s.trailingSpace)}if(this.custos&&(A-=this.custos.bounds.width+this.custos.leadingSpace),0!==A){var a=null,r=null,u=null;for(t=this.notationsStartIndex;n>t;t++)null!==r&&r.hasLyrics()&&(u=r),a=r,r=i[t],null!==a&&a.keepWithNext===!0||null!==u&&u.lyrics[0].allowsConnector()&&!u.lyrics[0].needsConnector||r.constructor!==h.ChantLineBreak&&r!==this.custos&&e.push(r);if(0!==e.length){var l=0,c=A/e.length,g=0;for(t=this.notationsStartIndex;n>t;t++)r=i[t],r!==this.custos&&(g<e.length&&e[g]===r&&(l+=c,g++),r.bounds.x+=l)}}}},{key:"finishLayout",value:function(t){var e=this;this.ledgerLines=[];for(var i=this.score.notations,n=this.notationsStartIndex+this.numNotationsOnLine,A=function(i){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],A=(arguments.length<=2||void 0===arguments[2]?0:arguments[2],i.staffPosition);if(A>=5||-5>=A){var s=n+i.bounds.x-t.intraNeumeSpacing,o=n+i.bounds.x+i.bounds.width+t.intraNeumeSpacing;A-=A>0?(A-1)%2:(A+1)%2;var a=t.staffInterval*t.minLedgerSeparation;if(e.ledgerLines.length>0&&e.ledgerLines[e.ledgerLines.length-1].x2+a>=s){var r=(s-e.ledgerLines[e.ledgerLines.length-1].x2)/2;e.ledgerLines[e.ledgerLines.length-1].x2+=r,s-=r}o>e.staffRight&&(o=e.staffRight),e.ledgerLines.push({x1:s,x2:o,staffPosition:A})}},s=[],o=null,a=0,r=Number.MAX_VALUE,h=Number.MIN_VALUE,l=this.notationsStartIndex;n>l;l++){var f=i[l];if(r=Math.min(r,f.bounds.y),h=Math.max(h,f.bounds.bottom()),f.constructor!==c.Custos){if(f.alText)for(var p=0;p<f.alText.length;p++){f.alText[p].bounds.x=f.hasLyrics()?f.lyrics[p].bounds.x:0;var d=f.bounds.x+f.alText[p].bounds.right()-this.staffRight;d>0&&(f.alText[p].bounds.x-=d)}if(f.isNeume)for(p=0;p<f.notes.length;p++){var y,B=f.notes[p];for(A(B,f.bounds.x,f.bounds.y),0===B.epismata.length&&(s=[]),y=0;y<B.epismata.length;y++){var v=B.epismata[y],b=0;if(s.length>0&&(b=f.bounds.x+v.bounds.x-(s[s.length-1].note.neume.bounds.x+s[s.length-1].bounds.right())),0===s.length||s[s.length-1].positionHint!==v.positionHint||s[s.length-1].terminating===!0||s[s.length-1].alignment===g.HorizontalEpisemaAlignment.Left||s[s.length-1].alignment===g.HorizontalEpisemaAlignment.Center||v.alignment===g.HorizontalEpisemaAlignment.Right||v.alignment===g.HorizontalEpisemaAlignment.Center||b>2*t.intraNeumeSpacing&&B.glyphVisualizer.glyphCode!==u.GlyphCode.None)s=[v];else{var m;if(m=v.positionHint===g.MarkingPositionHint.Below?Math.max(v.bounds.y,s[s.length-1].bounds.y):Math.min(v.bounds.y,s[s.length-1].bounds.y),v.bounds.y!==m)v.bounds.y=m;else for(var C=0;C<s.length;C++)s[C].bounds.y=m;var G=f.bounds.x+v.bounds.x-(s[s.length-1].note.neume.bounds.x+s[s.length-1].bounds.x);0>G&&(G*=-1,s[s.length-1].bounds.x-=G),s[s.length-1].bounds.width=G,s.push(v)}}if(B.braceEnd){var w,Q=t.intraNeumeSpacing/2;if(null===o);else{if(o.isAbove)for(w=t.calculateHeightFromStaffPosition(4),y=a;l>=y;y++)w=Math.min(w,i[y].bounds.y-Q);else for(w=t.calculateHeightFromStaffPosition(-4),y=a;l>=y;y++)w=Math.max(w,i[y].bounds.y+Q);var I=!1;o.shape===g.BraceShape.RoundBrace?this.braces.push(new u.RoundBraceVisualizer(t,o.getAttachmentX(),B.braceEnd.getAttachmentX(),w,o.isAbove)):(o.shape===g.BraceShape.AccentedCurlyBrace&&(I=!0),this.braces.push(new u.CurlyBraceVisualizer(t,o.getAttachmentX(),B.braceEnd.getAttachmentX(),w,o.isAbove,I)))}}B.braceStart&&(o=B.braceStart,a=l),null!==o&&(o.isAbove?o.bounds.y=Math.min(o.bounds.y,B.bounds.y):o.bounds.y=Math.max(o.bounds.y,B.bounds.bottom()))}}else A(f)}null!==o&&(o=o),this.custos&&A(this.custos)}},{key:"positionNotationElement",value:function(t,e,i,n,A){var s;if(n.bounds.x=i.bounds.right()+i.trailingSpace,null===e){var o=n.bounds.right()+n.trailingSpace;for(s=0;s<n.lyrics.length;s++)n.lyrics[s].setNeedsConnector(!1),n.getLyricLeft(s)<0&&(n.bounds.x+=-n.getLyricLeft(s)),o=Math.max(o,n.getLyricRight(s));return!(o>A)}if(n.hasLyrics()===!1)return n.bounds.right()+n.trailingSpace<A;var a=Math.max(e.lyrics.length,n.lyrics.length);if(a>1){var r=Number.MIN_VALUE,u=Number.MAX_VALUE,h=Number.MIN_VALUE;for(s=0;a>s;s++){if(s<e.lyrics.length&&null!==e.lyrics[s]){var l=e.getLyricRight(s);e.lyrics[s].allowsConnector()?(e.lyrics[s].setNeedsConnector(!0),l+=e.lyrics[s].widthWithConnector-e.lyrics[s].widthWithoutConnector):l+=t.minLyricWordSpacing,l>g&&(r=l)}s<n.lyrics.length&&null!==n.lyrics[s]&&(u=Math.min(u,n.getLyricLeft(s)),h=Math.max(h,n.getLyricRight(s)))}return r>u&&(n.bounds.x+=r-u,h+=r-u),n.bounds.right()<A&&h<=this.staffRight?!0:(n.bounds.x=0,!1)}n.lyrics[0].setNeedsConnector(!1);var c=n.getLyricLeft(0),g=e.getLyricRight(0);return e.lyrics[0].allowsConnector()===!1?g+t.minLyricWordSpacing>c&&(n.bounds.x+=g+t.minLyricWordSpacing-c):g>c?n.bounds.x+=g-c:(e.lyrics[0].setNeedsConnector(!0),g=e.getLyricRight(0),g>c&&(n.bounds.x+=g-c)),n.bounds.right()+n.trailingSpace<A&&n.getLyricRight(0)<=this.staffRight?(i.isAccidental&&(i.bounds.x=n.bounds.x-i.bounds.width-i.trailingSpace),!0):!1}}]),e}(u.ChantLayoutElement)},function(t,e,i){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e["default"]=t,e}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Virgula=e.Accidental=e.AccidentalType=e.DoubleBar=e.FullBar=e.HalfBar=e.QuarterBar=e.Divider=e.Custos=void 0;var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function g(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);if(void 0===n){var A=Object.getPrototypeOf(t);return null===A?void 0:g(A,e,i)}if("value"in n)return n.value;var s=n.get;if(void 0!==s)return s.call(i)},u=i(1),h=(n(u),i(4)),l=(e.Custos=function(t){function e(){var t=arguments.length<=0||void 0===arguments[0]?!1:arguments[0];A(this,e);var i=s(this,Object.getPrototypeOf(e).call(this));return i.auto=t,i.staffPosition=0,i}return o(e,t),a(e,[{key:"performLayout",value:function(t){r(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);if(this.auto){var i=t.findNextNeume();for(i&&(this.staffPosition=t.activeClef.pitchToStaffPosition(i.notes[0].pitch));this.staffPosition<-6;)this.staffPosition+=7;for(;this.staffPosition>6;)this.staffPosition-=7}var n=new h.GlyphVisualizer(t,e.getGlyphCode(this.staffPosition));n.setStaffPosition(t,this.staffPosition),this.addVisualizer(n),this.finishLayout(t)}},{key:"resetDependencies",value:function(){this.auto&&(this.needsLayout=!0)}}],[{key:"getGlyphCode",value:function(t){return 2>=t?Math.abs(t)%2===1?h.GlyphCode.CustosLong:h.GlyphCode.CustosShort:Math.abs(t)%2===1?h.GlyphCode.CustosDescLong:h.GlyphCode.CustosDescShort}}]),e}(h.ChantNotationElement),e.Divider=function(t){function e(){A(this,e);var t=s(this,Object.getPrototypeOf(e).call(this));return t.isDivider=!0,t.resetsAccidentals=!0,t}return o(e,t),e}(h.ChantNotationElement)),c=(e.QuarterBar=function(t){function e(){return A(this,e),s(this,Object.getPrototypeOf(e).apply(this,arguments))}return o(e,t),a(e,[{key:"performLayout",value:function(t){r(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.addVisualizer(new h.DividerLineVisualizer(t,2,4)),this.origin.x=this.bounds.width/2,this.finishLayout(t)}}]),e}(l),e.HalfBar=function(t){function e(){return A(this,e),s(this,Object.getPrototypeOf(e).apply(this,arguments))}return o(e,t),a(e,[{key:"performLayout",value:function(t){r(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.addVisualizer(new h.DividerLineVisualizer(t,-2,2)),this.origin.x=this.bounds.width/2,this.finishLayout(t)}}]),e}(l),e.FullBar=function(t){function e(){return A(this,e),s(this,Object.getPrototypeOf(e).apply(this,arguments))}return o(e,t),a(e,[{key:"performLayout",value:function(t){r(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.addVisualizer(new h.DividerLineVisualizer(t,-3,3)),this.origin.x=this.bounds.width/2,this.finishLayout(t)}}]),e}(l),e.DoubleBar=function(t){function e(){return A(this,e),s(this,Object.getPrototypeOf(e).apply(this,arguments))}return o(e,t),a(e,[{key:"performLayout",value:function(t){r(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=new h.DividerLineVisualizer(t,-3,3);i.bounds.x=0,this.addVisualizer(i);var n=new h.DividerLineVisualizer(t,-3,3);n.bounds.x=2*t.intraNeumeSpacing,this.addVisualizer(n),this.origin.x=this.bounds.width/2,this.finishLayout(t)}}]),e}(l),e.AccidentalType={Flat:-1,Natural:0,Sharp:1});e.Accidental=function(t){function e(t,i){A(this,e);var n=s(this,Object.getPrototypeOf(e).call(this));return n.isAccidental=!0,n.keepWithNext=!0,n.staffPosition=t,n.accidentalType=i,n}return o(e,t),a(e,[{key:"performLayout",value:function(t){r(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.addVisualizer(this.createGlyphVisualizer(t)),this.finishLayout(t)}},{key:"createGlyphVisualizer",value:function(t){var e=h.GlyphCode.Flat;switch(this.accidentalType){case c.Natural:e=h.GlyphCode.Natural;break;case c.Sharp:e=h.GlyphCode.Sharp;break;default:e=h.GlyphCode.Flat}var i=new h.GlyphVisualizer(t,e);return i.setStaffPosition(t,this.staffPosition),i}},{key:"adjustStep",value:function(t){switch(this.accidentalType){case c.Flat:if(t===Step.Ti)return Step.Te;if(t===Step.Mi)return Step.Me;break;case c.Sharp:if(t===Step.Do)return Step.Du;if(t===Step.Fa)return Step.Fu;break;case c.Natural:if(t===Step.Te)return Step.Ti;if(t===Step.Me)return Step.Mi;if(t===Step.Du)return Step.Do;if(t===Step.Fu)return Step.Fa}return t}},{key:"applyToPitch",value:function(t){this.octave===t.octave&&(t.step=this.adjustStep(t.step))}}]),e}(h.ChantNotationElement),e.Virgula=function(t){function e(){A(this,e);var t=s(this,Object.getPrototypeOf(e).call(this));return t.resetsAccidentals=!1,t.staffPosition=3,t}return o(e,t),a(e,[{key:"performLayout",value:function(t){r(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=new h.GlyphVisualizer(t,h.GlyphCode.Virgula);i.setStaffPosition(t,this.staffPosition),this.addVisualizer(i),this.origin.x=this.bounds.width/2,this.finishLayout(t)}}]),e}(l)},function(t,e,i){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);
return e["default"]=t,e}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.BracePoint=e.BraceAttachment=e.BraceShape=e.Mora=e.Ictus=e.HorizontalEpisema=e.HorizontalEpisemaAlignment=e.AcuteAccent=e.MarkingPositionHint=void 0;var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=i(1),u=(n(r),i(4)),h=(i(6),e.MarkingPositionHint={Default:0,Above:1,Below:2}),l=(e.AcuteAccent=function(t){function e(t,i){A(this,e);var n=s(this,Object.getPrototypeOf(e).call(this,t,u.GlyphCode.AcuteAccent));return n.note=i,n.positionHint=h.Above,n}return o(e,t),a(e,[{key:"performLayout",value:function(t){this.bounds.x+=this.bounds.width/2,this.setStaffPosition(t,Math.max(this.note.staffPosition+1,4))}}]),e}(u.GlyphVisualizer),e.HorizontalEpisemaAlignment={Default:0,Left:1,Center:2,Right:3}),c=(e.HorizontalEpisema=function(t){function e(t){A(this,e);var i=s(this,Object.getPrototypeOf(e).call(this));return i.note=t,i.positionHint=h.Default,i.terminating=!1,i.alignment=l.Default,i}return o(e,t),a(e,[{key:"performLayout",value:function(t){var e,i=0,n=.4*t.staffInterval,A=this.note.glyphVisualizer.glyphCode;this.positionHint===h.Below?(i=this.note.bounds.bottom()+n,A===u.GlyphCode.None&&(i+=t.staffInterval),e=Math.floor(i/t.staffInterval),1===Math.abs(e%2)&&(e+=1)):(i=this.note.bounds.y-n,e=Math.ceil(i/t.staffInterval),1===Math.abs(e%2)&&(e-=1)),i=e*t.staffInterval;var s,o=this.note.bounds.x;A===u.GlyphCode.Porrectus1||A===u.GlyphCode.Porrectus2||A===u.GlyphCode.Porrectus3||A===u.GlyphCode.Porrectus4?s=t.staffInterval:A===u.GlyphCode.None?(s=t.staffInterval,o-=s):s=this.note.bounds.width,this.alignment===l.Left?s*=.8:this.alignment===l.Center?(o+=.1*s,s*=.8):this.alignment===l.Right&&(o+=.2*s,s*=.8),this.bounds.x=o,this.bounds.y=i,this.bounds.width=s,this.bounds.height=t.episemaLineWeight,this.origin.x=0,this.origin.y=0}},{key:"createSvgFragment",value:function(t){return u.QuickSvg.createFragment("rect",{x:this.bounds.x,y:this.bounds.y,width:this.bounds.width,height:this.bounds.height,fill:t.neumeLineColor,"class":"horizontalEpisema"})}}]),e}(u.ChantLayoutElement),e.Ictus=function(t){function e(t,i){A(this,e);var n=s(this,Object.getPrototypeOf(e).call(this,t,u.GlyphCode.VerticalEpisemaAbove));return n.note=i,n.positionHint=h.Default,n}return o(e,t),a(e,[{key:"performLayout",value:function(t){var e,i=this.note.staffPosition,n=this.note.epismata.length>0&&this.note.epismata[0].positionHint===this.positionHint,A=this.note.bounds.width/2,s=0,o=1;this.positionHint===h.Above?(e=u.GlyphCode.VerticalEpisemaAbove,n?i%2===0&&++i:o=.9,s=-t.staffInterval*(i%2?o:1.5)):(e=u.GlyphCode.VerticalEpisemaBelow,n?i%2===0&&--i:o=.8,s=t.staffInterval*(i%2?o:1.5)),this.setGlyph(t,e),this.setStaffPosition(t,i),this.bounds.x=this.note.bounds.x+A-this.origin.x,this.bounds.y+=s}}]),e}(u.GlyphVisualizer),e.Mora=function(t){function e(t,i){A(this,e);var n=s(this,Object.getPrototypeOf(e).call(this,t,u.GlyphCode.Mora));return n.note=i,n.positionHint=h.Default,n.horizontalOffset=0,n}return o(e,t),a(e,[{key:"performLayout",value:function(t){var e=this.note.staffPosition;this.setStaffPosition(t,e);var i=0;this.positionHint===h.Above?i-=e%2===0?t.staffInterval+.75*t.staffInterval:.75*t.staffInterval:this.positionHint===h.Below?i+=e%2===0?t.staffInterval+.75*t.staffInterval:.75*t.staffInterval:Math.abs(e)%2===1&&(i-=.75*t.staffInterval),this.bounds.x+=this.horizontalOffset+this.note.bounds.right()+t.staffInterval/4,this.bounds.y+=i}}]),e}(u.GlyphVisualizer),e.BraceShape={RoundBrace:0,CurlyBrace:1,AccentedCurlyBrace:2},e.BraceAttachment={Left:0,Right:1});e.BracePoint=function(t){function e(t,i,n,o){A(this,e);var a=s(this,Object.getPrototypeOf(e).call(this));return a.note=t,a.isAbove=i,a.shape=n,a.attachment=o,a}return o(e,t),a(e,[{key:"getAttachmentX",value:function(){return this.attachment===c.Left?this.note.neume.bounds.x+this.note.bounds.x:this.note.neume.bounds.x+this.note.bounds.right()}}]),e}(u.ChantLayoutElement)},function(t,e,i){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e["default"]=t,e}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Gabc=void 0;var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=i(1),a=i(4),r=i(6),u=i(9),h=n(u),l=i(8),c=n(l),g=i(11),f=n(g),p=/(?=.)((?:[^(])*)(?:\(?([^)]*)\)?)?/g,d=/<alt>(.*?)<\/alt>/g,y=/z0|z|Z|::|:|;|,|`|c1|c2|c3|c4|f3|f4|cb3|cb4|\/\/|\/| |\!|-?[a-mA-M][oOwWvVrRsxy#~\+><_\.'012345]*(?:\[[^\]]*\]?)*/g,B=/([ou])(b|cb|cba):([01])(?:([{}])|;(\d*(?:\.\d+)?)mm)/;e.Gabc=function(){function t(){A(this,t)}return s(t,null,[{key:"createMappingsFromSource",value:function(t,e){var i=this.splitWords(e);t.activeClef=r.Clef["default"]();var n=this.createMappingsFromWords(t,i,function(e){return t.activeClef=e});return n.length>0&&n[n.length-1].notations.length>0&&(n[n.length-1].notations[n[n.length-1].notations.length-1].trailingSpace=0),n}},{key:"diffDescriptorsAndNewWords",value:function(t,e){var i,n={};for(i=0;i<t.length;i++)n[t[i].source]=n[t[i].source]||[],n[t[i].source].push(i);var A,s,o,a,r=[];for(A=s=o=0,a=0;a<e.length;a++){var u=[];for(n[e[a]]=n[e[a]]||[],i=0;i<n[e[a]].length;i++){var h=n[e[a]][i];u[h]=(h&&r[h-1]||0)+1,u[h]>o&&(o=u[h],A=h-o+1,s=a-o+1)}r=u}if(0===o){var l=[];return t.length&&l.push(["-",t]),e.length&&l.push(["+",e]),l}return[].concat(this.diffDescriptorsAndNewWords(t.slice(0,A),e.slice(0,s)),[["=",e.slice(s,s+o)]],this.diffDescriptorsAndNewWords(t.slice(A+o),e.slice(s+o)))}},{key:"updateMappingsFromSource",value:function(t,e,i){e.pop();var n,A,s=this.splitWords(i),o=this.diffDescriptorsAndNewWords(e,s),a=0;t.activeClef=r.Clef["default"]();for(var u=0;u<o.length;u++){var h=o[u][0],l=o[u][1];if("="===h)for(n=0;n<l.length;n++,a++)for(A=0;A<e[a].notations.length;A++)e[a].notations[A].resetDependencies(),e[a].notations[A].isClef&&(t.activeClef=e[a].notations[A]);else if("-"===h)e.splice(a,l.length);else if("+"===h)for(n=0;n<l.length;n++){var c=this.createMappingFromWord(t,l[n]);for(A=0;A<c.notations.length;A++)c.notations[A].isClef&&(t.activeClef=c.notations[A]);e.splice(a++,0,c)}}e.length>0&&e[e.length-1].notations.length>0&&(e[e.length-1].notations[e[e.length-1].notations.length-1].trailingSpace=0)}},{key:"createMappingsFromWords",value:function(t,e){for(var i=[],n=0;n<e.length;n++){var A=e[n].trim();if(""!==A){var s=this.createMappingFromWord(t,A);s&&i.push(s)}}return i}},{key:"createMappingFromWord",value:function(t,e){for(var i=[],n=[],A=0,s=function(e){return new a.AboveLinesText(t,e)};u=p.exec(e);)i.push(u);for(var o=0;o<i.length;o++){var u=i[o],h=u[1].trim().replace(/~/g," "),l=h.match(d),g=u[2],f=this.parseNotations(t,g);if(0!==f.length){if(n=n.concat(f),l)for(var y=0;y<l.length;++y){var B=h.indexOf(l[y]);h=h.slice(0,B)+h.slice(B+l[y].length),l[y]=l[y].slice(5,-6)}if(""!==h||l){var v=null;for(y=0;y<f.length;y++){var b=f[y];if(!b.isAccidental&&b.constructor!==c.Custos){v=b;break}}if(null===v)return n;if(l&&(v.alText=l.map(s)),""!==h){var m;m=b.isNeume||b.constructor===r.TextOnly?0===A&&o===i.length-1?a.LyricType.SingleSyllable:0===A&&o<i.length-1?a.LyricType.BeginningSyllable:o===i.length-1?a.LyricType.EndingSyllable:a.LyricType.MiddleSyllable:a.LyricType.Directive,A++,m!==a.LyricType.BeginningSyllable&&m!==a.LyricType.SingleSyllable||t.activeClef.resetAccidentals();var C=this.createSyllableLyrics(t,h,m);null!==C&&0!==C.length&&(v.lyrics=C)}}}}return new r.ChantMapping(e,n)}},{key:"createSyllableLyrics",value:function(t,e,i){for(var n=[],A=e.split("|"),s=0;s<A.length;s++){var o=A[s],a=o.indexOf("{"),r=0;if(a>=0){var u=o.indexOf("}");u>=0&&u>a?(r=u-a-1,o=o.substring(0,a)+o.substring(a+1,u)+o.substring(u+1,o.length)):a=-1}var h=this.makeLyric(t,o,i);a>=0&&(h.centerStartIndex=a,h.centerLength=r),n.push(h)}return n}},{key:"makeLyric",value:function(t,e,i){e.length>1&&"-"===e[e.length-1]&&(i===a.LyricType.EndingSyllable?i=a.LyricType.MiddleSyllable:i===a.LyricType.SingleSyllable&&(i=a.LyricType.BeginningSyllable),e=e.substring(0,e.length-1));var n=!1;e.length>1&&"_"===e[e.length-1]&&(n=!0,e=e.substring(0,e.length-1)),e.match(/^(?:[*†]+|i+j|\d+)\.?$/)&&(i=a.LyricType.Directive);var A=new a.Lyric(t,e,i);return A.elidesToNext=n,A}},{key:"parseNotations",value:function(t,e){var i=this;if(!e)return[new r.TextOnly];var n=[],A=[],s=-1,o=function(e){if(A.length>0){for(var o=i.createNeumesFromNotes(t,A,s),a=0;a<o.length;a++)n.push(o[a]);A=[]}s=-1,null!==e&&(e.isClef?t.activeClef=e:e.isAccidental?t.activeClef.activeAccidental=e:e.resetsAccidentals&&t.activeClef.resetAccidentals(),n.push(e))},a=e.match(y);if(null===a)return n;for(var u=0;u<a.length;u++){var h=a[u];switch(h){case",":o(new c.QuarterBar);break;case"`":o(new c.Virgula);break;case";":o(new c.HalfBar);break;case":":o(new c.FullBar);break;case"::":o(new c.DoubleBar);break;case"c1":o(t.activeClef=new r.DoClef(-3,2));break;case"c2":o(t.activeClef=new r.DoClef(-1,2));break;case"c3":o(t.activeClef=new r.DoClef(1,2));break;case"c4":o(t.activeClef=new r.DoClef(3,2));break;case"f3":o(t.activeClef=new r.FaClef(1,2));break;case"f4":o(t.activeClef=new r.FaClef(3,2));break;case"cb3":o(t.activeClef=new r.DoClef(1,2,new c.Accidental(0,c.AccidentalType.Flat)));break;case"cb4":o(t.activeClef=new r.DoClef(3,2,new c.Accidental(2,c.AccidentalType.Flat)));break;case"z":o(new r.ChantLineBreak(!0));break;case"Z":o(new r.ChantLineBreak(!1));break;case"z0":o(new c.Custos(!0));break;case"!":s=0,o(null);break;case"/":s=t.intraNeumeSpacing,o(null);break;case"//":s=2*t.intraNeumeSpacing,o(null);break;case" ":s=2*t.intraNeumeSpacing,o(null);break;default:if(h.length>1&&"+"===h[1]){var l=new c.Custos;l.staffPosition=this.gabcHeightToExsurgeHeight(h[0]),o(l)}else if(h.length>1&&("x"===h[1]||"y"===h[1]||"#"===h[1])){var g;switch(h[1]){case"y":g=c.AccidentalType.Natural;break;case"#":g=c.AccidentalType.Sharp;break;default:g=c.AccidentalType.Flat}var f=[];this.createNoteFromData(t,t.activeClef,h,f);var p=new c.Accidental(f[0].staffPosition,g);p.trailingSpace=2*t.intraNeumeSpacing,t.activeClef.activeAccidental=p,o(p)}else this.createNoteFromData(t,t.activeClef,h,A)}}return o(null),n}},{key:"createNeumesFromNotes",value:function(t,e,i){for(var n=[],A=0,s=0,o=function(i,o){var u,h=arguments.length<=2||void 0===arguments[2]?!0:arguments[2];if(u=o?s:h?s-1:s-2,!(0>u)){for(;u>=A;)i.addNote(e[A++]);return n.push(i),o===!1&&(s--,h===!1&&s--,i.keepWithNext=!0,e[s+1].shape===r.NoteShape.Quilisma?i.trailingSpace=0:i.trailingSpace=t.intraNeumeSpacing),a}},a={neume:function(){return new f.Punctum},handle:function(t,e){return t.shape===r.NoteShape.Virga?G:t.shape===r.NoteShape.Stropha?Q:t.shape===r.NoteShape.Oriscus?c:t.shape===r.NoteShape.Inclinatum?l:t.shapeModifiers&r.NoteShapeModifiers.Cavum?o(new f.Punctum,!0):u}},u={neume:function(){return new f.Punctum},handle:function(t,e,i){if(t.shape){var n=new f.Punctum,A=o(n,!1);return t.staffPosition>e.staffPosition&&(t.staffPosition%2===1||e.staffPosition!==t.staffPosition-1||!e.morae||0===e.morae.length)&&(n.trailingSpace=0),A}return t.staffPosition>e.staffPosition?(t.ictus&&(t.ictus.positionHint=h.MarkingPositionHint.Above),g):t.staffPosition<e.staffPosition?(e.ictus&&(e.ictus.positionHint=h.MarkingPositionHint.Above),t.shape===r.NoteShape.Inclinatum?d:p):e.morae&&e.morae.length?o(new f.Punctum,!1):I}},l={neume:function(){return new f.PunctaInclinata},handle:function(){return E.shape!==r.NoteShape.Inclinatum?o(new f.PunctaInclinata,!1):l}},c={neume:function(){return new f.Oriscus},handle:function(t,e){if(t.shape!==r.NoteShape.Default){var i=new f.Oriscus,n=o(i,!1);return t.staffPosition>e.staffPosition&&(t.staffPosition%2===1||e.staffPosition!==t.staffPosition-1||!e.morae||0===e.morae.length)&&(i.trailingSpace=0),n}return t.staffPosition>e.staffPosition?(e.shapeModifiers|=r.NoteShapeModifiers.Ascending,o(new f.PesQuassus,!0)):t.staffPosition<e.staffPosition?(e.shapeModifiers|=r.NoteShapeModifiers.Descending,o(new f.Clivis,!0)):void 0}},g={neume:function(){return new f.Podatus},handle:function(t,e){return t.staffPosition>e.staffPosition?(t.ictus&&(t.ictus.positionHint=h.MarkingPositionHint.Above),e.ictus&&(e.ictus.positionHint=h.MarkingPositionHint.Below),e.shape===r.NoteShape.Oriscus?v:m):t.staffPosition<e.staffPosition?t.shape===r.NoteShape.Inclinatum?B:L:o(new f.Podatus,!1)}},p={neume:function(){return new f.Clivis},handle:function(t,e){return t.shape===r.NoteShape.Default&&t.staffPosition>e.staffPosition?(t.ictus&&(t.ictus.positionHint=h.MarkingPositionHint.Above),y):o(new f.Clivis,!1)}},d={neume:function(){return new f.Climacus},handle:function(t,e){return t.shape!==r.NoteShape.Inclinatum?o(new f.Climacus,!1):x}},y={neume:function(){return new f.Porrectus},handle:function(t,e){return t.shape===r.NoteShape.Default&&t.staffPosition<e.staffPosition?o(new f.PorrectusFlexus,!0):o(new f.Porrectus,!1)}},B={neume:function(){return new f.PesSubpunctis},handle:function(t,e){return t.shape!==r.NoteShape.Inclinatum?o(new f.PesSubpunctis,!1):x}},v={neume:function(){return new f.Salicus},handle:function(t,e){return t.staffPosition<e.staffPosition?b:o(new f.Salicus,!1)}},b={neume:function(){return new f.SalicusFlexus},handle:function(t,e){return o(new f.SalicusFlexus,!1)}},m={neume:function(){return new f.Scandicus},handle:function(t,e){return e.shape===r.NoteShape.Virga&&t.shape===r.NoteShape.Inclinatum&&t.staffPosition<e.staffPosition?o(new f.Podatus,!1,!1):t.shape===r.NoteShape.Default&&t.staffPosition<e.staffPosition?C:o(new f.Scandicus,!1)}},C={neume:function(){return new f.ScandicusFlexus},handle:function(t,e){return o(new f.ScandicusFlexus,!1)}},G={neume:function(){return new f.Virga},handle:function(t,e){return t.shape===r.NoteShape.Inclinatum&&t.staffPosition<e.staffPosition?d:t.shape===r.NoteShape.Virga&&t.staffPosition===e.staffPosition?w:o(new f.Virga,!1)}},w={neume:function(){return new f.Bivirga},handle:function(t,e){return t.shape===r.NoteShape.Virga&&t.staffPosition===e.staffPosition?o(new f.Trivirga,!0):o(new f.Bivirga,!1)}},Q={neume:function(){return new f.Apostropha},handle:function(t,e){return t.staffPosition===e.staffPosition?I:o(new f.Apostropha,!1)}},I={neume:function(){return new f.Distropha},handle:function(t,e){return t.staffPosition===e.staffPosition?e.morae&&e.morae.length?o(new f.Distropha,!1):S:o(new f.Apostropha,!1,!1)}},S={neume:function(){return new f.Tristropha},handle:function(t,e){return o(new f.Distropha,!1,!1)}},L={neume:function(){return new f.Torculus},handle:function(t,e){return t.shape===r.NoteShape.Default&&t.staffPosition>e.staffPosition?k:o(new f.Torculus,!1)}},k={neume:function(){return new f.TorculusResupinus},handle:function(t,e){return t.shape===r.NoteShape.Default&&t.staffPosition<e.staffPosition?o(new f.TorculusResupinusFlexus,!0):o(new f.TorculusResupinus,!1)}},x=a;s<e.length;){var M=s>0?e[s-1]:null,E=e[s];x=x.handle(E,M,e.length-1-s),s===e.length-1&&x!==a&&o(x.neume(),!0),s++}return n.length>0&&i>=0&&(n[n.length-1].trailingSpace=i,i>t.intraNeumeSpacing?n[n.length-1].keepWithNext=!1:n[n.length-1].keepWithNext=!0),n}},{key:"createNoteFromData",value:function(t,e,i,n){var A=new r.Note;if(i.length<1)throw"Invalid note data: "+i;if("-"===i[0]&&(A.liquescent=r.LiquescentType.InitioDebilis,i=i.substring(1)),i.length<1)throw"Invalid note data: "+i;var s=this.gabcHeightToExsurgePitch(e,i[0]);i[0]===i[0].toUpperCase()&&(A.shape=r.NoteShape.Inclinatum),A.staffPosition=this.gabcHeightToExsurgeHeight(i[0]),A.pitch=s;for(var a,u=n.length,l=A,c=1;c<i.length;c++){var g=i[c],f="\x00",p=c+1<i.length;switch(p&&(f=i[c+1]),g){case".":if(a=null,A.morae.length>0&&n.length){var d=n.slice(-1)[0],y=A.morae.slice(-1)[0];y.note=d}a=new h.Mora(t,A),p&&"1"===f?a.positionHint=h.MarkingPositionHint.Above:p&&"0"===f&&(a.positionHint=h.MarkingPositionHint.Below),A.morae.push(a);break;case"_":var B=!1;for(a=new h.HorizontalEpisema(l);p;){if("0"===f)a.positionHint=h.MarkingPositionHint.Below;else if("1"===f)a.positionHint=h.MarkingPositionHint.Above;else if("2"===f)a.terminating=!0;else if("3"===f)a.alignment=h.HorizontalEpisemaAlignment.Left;else if("4"===f)a.alignment=h.HorizontalEpisemaAlignment.Center;else{if("5"!==f)break;a.alignment=h.HorizontalEpisemaAlignment.Right}a.alignment!==h.HorizontalEpisemaAlignment.Default&&a.positionHint!==h.MarkingPositionHint.Below&&(B=!0),c++,p=c+1<i.length,p&&(f=i[c+1])}l&&l.epismata.push(a),l===A&&B?l=A:u>=0&&n.length>0&&(l=n[--u]);break;case"'":a=new h.Ictus(t,A),p&&"1"===f?a.positionHint=h.MarkingPositionHint.Above:p&&"0"===f?a.positionHint=h.MarkingPositionHint.Below:A.shape===r.NoteShape.Virga&&(a.positionHint=h.MarkingPositionHint.Above),A.ictus=a;break;case"r":p&&"1"===f?(A.acuteAccent=new h.AcuteAccent(t,A),c++):A.shapeModifiers|=r.NoteShapeModifiers.Cavum;break;case"s":if(A.shape===r.NoteShape.Stropha){var v=new r.Note;v.staffPosition=A.staffPosition,v.pitch=A.pitch,n.push(A),A=v,u++}A.shape=r.NoteShape.Stropha;break;case"v":if(A.shape===r.NoteShape.Virga){var b=new r.Note;b.staffPosition=A.staffPosition,b.pitch=A.pitch,n.push(A),A=b,u++}A.shape=r.NoteShape.Virga;break;case"w":A.shape=r.NoteShape.Quilisma;break;case"o":A.shape=r.NoteShape.Oriscus,p&&"<"===f?(A.shapeModifiers|=r.NoteShapeModifiers.Ascending,c++):p&&">"===f&&(A.shapeModifiers|=r.NoteShapeModifiers.Descending,c++);break;case"O":A.shape=r.NoteShape.Oriscus,p&&"<"===f?(A.shapeModifiers|=r.NoteShapeModifiers.Ascending|r.NoteShapeModifiers.Stemmed,c++):p&&">"===f?(A.shapeModifiers|=r.NoteShapeModifiers.Descending|r.NoteShapeModifiers.Stemmed,c++):A.shapeModifiers|=r.NoteShapeModifiers.Stemmed;break;case"~":A.shape===r.NoteShape.Inclinatum?A.liquescent|=r.LiquescentType.Small:A.shape===r.NoteShape.Oriscus?A.liquescent|=r.LiquescentType.Large:A.liquescent|=r.LiquescentType.Small;break;case"<":A.liquescent|=r.LiquescentType.Ascending;break;case">":A.liquescent|=r.LiquescentType.Descending;break;case"x":A.pitch.step===o.Step.Mi?A.pitch.step=o.Step.Me:A.pitch.step===o.Step.Ti&&(A.pitch.step=o.Step.Te);break;case"y":A.pitch.step===o.Step.Te?A.pitch.step=o.Step.Ti:A.pitch.step===o.Step.Me?A.pitch.step=o.Step.Mi:A.pitch.step===o.Step.Du?A.pitch.step=o.Step.Do:A.pitch.step===o.Step.Fu&&(A.pitch.step=o.Step.Fa);break;case"#":A.pitch.step===o.Step.Do?A.pitch.step=o.Step.Du:A.pitch.step===o.Step.Fa&&(A.pitch.step=o.Step.Fu);break;case"[":for(var m=++c;c<i.length&&"]"!==i[c];)c++;this.processInstructionForNote(t,A,i.substring(m,c))}}!this.needToEndBrace||A.braceStart||A.braceEnd||(A.braceEnd=new h.BracePoint(A,this.needToEndBrace.isAbove,this.needToEndBrace.shape,this.needToEndBrace.attachment===h.BraceAttachment.Left?h.BraceAttachment.Right:h.BraceAttachment.Left),delete this.needToEndBrace),n.push(A)}},{key:"processInstructionForNote",value:function(t,e,i){var n=i.match(B);if(null!==n){var A="o"===n[1],s=h.BraceShape.CurlyBrace;switch(n[2]){case"b":s=h.BraceShape.RoundBrace;break;case"cb":s=h.BraceShape.CurlyBrace;break;case"cba":s=h.BraceShape.AccentedCurlyBrace}var o="1"===n[3]?h.BraceAttachment.Left:h.BraceAttachment.Right;"{"===n[4]||n[5]?e.braceStart=new h.BracePoint(e,A,s,o):e.braceEnd=new h.BracePoint(e,A,s,o),n[5]&&(this.needToEndBrace=e.braceStart)}}},{key:"splitWords",value:function(t){return t=t.trim().replace(/\s/g," ").replace(/\) (?=[^\)]*(?:\(|$))/g,")\n"),t.split(/\n/g)}},{key:"parseSource",value:function(t){return this.parseWords(this.splitWords(t))}},{key:"parseWords",value:function(t){for(var e=[],i=0;i<t.length;i++)e.push(this.parseWord(t[i]));return e}},{key:"parseWord",value:function(t){for(var e=[],i=[];A=p.exec(t);)i.push(A);for(var n=0;n<i.length;n++){var A=i[n],s=A[1].trim().split("|"),o=A[2];e.push({notations:o,lyrics:s})}return e}},{key:"gabcHeightToExsurgeHeight",value:function(t){return t.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)-6}},{key:"gabcHeightToExsurgePitch",value:function(t,e){var i=this.gabcHeightToExsurgeHeight(e),n=t.staffPositionToPitch(i);return null!==t.activeAccidental&&t.activeAccidental.applyToPitch(n),n}}]),t}()},function(t,e,i){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e["default"]=t,e}function A(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Virga=e.Tristropha=e.TorculusResupinusFlexus=e.TorculusResupinus=e.Torculus=e.ScandicusFlexus=e.Scandicus=e.SalicusFlexus=e.Salicus=e.Punctum=e.PunctaInclinata=e.PorrectusFlexus=e.Porrectus=e.Podatus=e.PesSubpunctis=e.PesQuassus=e.Oriscus=e.Distropha=e.Clivis=e.Climacus=e.Trivirga=e.Bivirga=e.Apostropha=e.Neume=void 0;var a=function y(t,e,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,e);if(void 0===n){var A=Object.getPrototypeOf(t);return null===A?void 0:y(A,e,i)}if("value"in n)return n.value;var s=n.get;if(void 0!==s)return s.call(i)},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),u=i(1),h=(n(u),i(4)),l=i(6),c=i(9),g=i(3),f=function(){function t(e,i){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];o(this,t),this.ctxt=e,this.neume=i,this.x=n,this.lastNote=null,this.lineIsHanging=!1,this.minX=0}return r(t,[{key:"lineFrom",value:function(t){var e=this.ctxt.notations[this.ctxt.currNotationIndex-1];return 0===this.x&&e&&0===e.trailingSpace?(this.lastNote=e.notes.slice(-1)[0],this.minX=-this.ctxt.neumeLineWeight):(this.lastNote=t,this.lineIsHanging=!0),this}},{key:"noteAt",value:function(t,e){var i=arguments.length<=2||void 0===arguments[2]?!0:arguments[2];if(!t)throw"NeumeBuilder.noteAt: note must be a valid note";if(!e)throw"NeumeBuilder.noteAt: glyph must be a valid glyph code";t.setGlyph(this.ctxt,e);var n="right"===t.glyphVisualizer.align,A=i&&null!==this.lastNote&&(this.lineIsHanging||"right"===this.lastNote.glyphVisualizer.align||Math.abs(this.lastNote.staffPosition-t.staffPosition)>1);if(A){var s=new h.NeumeLineVisualizer(this.ctxt,this.lastNote,t,this.lineIsHanging);this.neume.addVisualizer(s),s.bounds.x=Math.max(this.minX,this.x-s.bounds.width),n||(this.x=s.bounds.x)}return n&&this.lastNote?t.bounds.x=this.x-t.bounds.width:(t.bounds.x=this.x,this.x+=t.bounds.width),this.neume.addVisualizer(t),this.lastNote=t,this.lineIsHanging=!1,this}},{key:"virgaAt",value:function(t){arguments.length<=1||void 0===arguments[1]?!0:arguments[1];this.noteAt(t,h.GlyphCode.PunctumQuadratum);var e=new h.VirgaLineVisualizer(this.ctxt,t);return this.x-=e.bounds.width,e.bounds.x=this.x,this.neume.addVisualizer(e),this.lastNote=t,this.lineIsHanging=!1,this}},{key:"advanceBy",value:function(t){return this.lastNote=null,this.lineIsHanging=!1,this.x+=t,this}},{key:"withLineEndingAt",value:function(t){if(null!==this.lastNote){var e=new h.NeumeLineVisualizer(this.ctxt,this.lastNote,t,!0);return this.neume.addVisualizer(e),this.x-=e.bounds.width,e.bounds.x=this.x,this.neume.addVisualizer(e),this.lastNote=t,this}}},{key:"withPodatus",value:function(t,e){var i,n;return t.liquescent===l.LiquescentType.InitioDebilis?(i=e.liquescent===l.LiquescentType.None?h.GlyphCode.PunctumQuadratum:h.GlyphCode.PunctumQuadratumDesLiquescent,n=h.GlyphCode.TerminatingDesLiquescent):e.liquescent&l.LiquescentType.Small?(n=h.GlyphCode.BeginningAscLiquescent,i=h.GlyphCode.TerminatingAscLiquescent):e.liquescent&l.LiquescentType.Ascending?(n=h.GlyphCode.PunctumQuadratum,i=h.GlyphCode.PunctumQuadratumAscLiquescent):e.liquescent&l.LiquescentType.Descending?(n=h.GlyphCode.PunctumQuadratum,i=h.GlyphCode.PunctumQuadratumDesLiquescent):(n=h.GlyphCode.PodatusLower,i=h.GlyphCode.PodatusUpper),t.shape===l.NoteShape.Quilisma&&(n=h.GlyphCode.Quilisma),this.noteAt(t,n).noteAt(e,i),this.lastNote=null,this}},{key:"withClivis",value:function(t,e){var i;return t.shape===l.NoteShape.Oriscus?this.noteAt(t,h.GlyphCode.OriscusDes,!1):this.lineFrom(e).noteAt(t,h.GlyphCode.PunctumQuadratum),i=e.liquescent&l.LiquescentType.Small?h.GlyphCode.TerminatingDesLiquescent:e.liquescent===l.LiquescentType.Ascending?h.GlyphCode.PunctumQuadratumAscLiquescent:e.liquescent===l.LiquescentType.Descending?h.GlyphCode.PunctumQuadratumDesLiquescent:h.GlyphCode.PunctumQuadratum,this.noteAt(e,i),this.lastNote=null,this}},{key:"withInclinati",value:function(t){for(var e=t[0].staffPosition,i=t[0].staffPosition,n=g.Glyphs.PunctumInclinatum.bounds.width*this.ctxt.glyphScaling,A=0;A<t.length;A++,i=e){var s=t[A];s.liquescent&l.LiquescentType.Small?s.setGlyph(this.ctxt,h.GlyphCode.PunctumInclinatumLiquescent):s.liquescent&l.LiquescentType.Large?s.setGlyph(this.ctxt,h.GlyphCode.Stropha):s.setGlyph(this.ctxt,h.GlyphCode.PunctumInclinatum),e=s.staffPosition;var o;switch(Math.abs(i-e)){case 0:o=1.1;break;case 1:o=.8;break;default:o=1.2}A>0&&(this.x+=n*o),s.bounds.x=this.x,this.neume.addVisualizer(s)}return this}},{key:"withPorrectusSwash",value:function(t,e){var i=null!==this.lastNote&&(this.lineIsHanging||"right"===this.lastNote.glyphVisualizer.align||Math.abs(this.lastNote.staffPosition-t.staffPosition)>1);if(i){var n=new h.NeumeLineVisualizer(this.ctxt,this.lastNote,t,this.lineIsHanging);this.x=Math.max(0,this.x-n.bounds.width),n.bounds.x=this.x,this.neume.addVisualizer(n)}var A;switch(t.staffPosition-e.staffPosition){case 1:A=h.GlyphCode.Porrectus1;break;case 2:A=h.GlyphCode.Porrectus2;break;case 3:A=h.GlyphCode.Porrectus3;break;case 4:A=h.GlyphCode.Porrectus4;break;default:A=h.GlyphCode.None}return t.setGlyph(this.ctxt,A),t.bounds.x=this.x,e.setGlyph(this.ctxt,h.GlyphCode.None),this.x=t.bounds.right(),e.bounds.x=this.x-e.bounds.width,this.neume.addVisualizer(t),this.neume.addVisualizer(e),this.lastNote=e,this.lineIsHanging=!1,this}}]),t}(),p=e.Neume=function(t){function e(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];o(this,e);var i=A(this,Object.getPrototypeOf(e).call(this));i.isNeume=!0,i.notes=t;for(var n=0;n<t.length;n++)t[n].neume=i;return i}return s(e,t),r(e,[{key:"addNote",value:function(t){t.neume=this,this.notes.push(t)}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t)}},{key:"finishLayout",value:function(t){this.positionMarkings();for(var i=0;i<this.notes.length;i++){var n,A=this.notes[i];for(n=0;n<A.epismata.length;n++)A.epismata[n].performLayout(t),this.addVisualizer(A.epismata[n]);for(n=0;n<A.morae.length;n++)A.morae[n].performLayout(t),this.addVisualizer(A.morae[n]);A.ictus&&(A.ictus.performLayout(t),this.addVisualizer(A.ictus)),A.acuteAccent&&(A.acuteAccent.performLayout(t),this.addVisualizer(A.acuteAccent))}this.origin.x=this.notes[0].origin.x,this.origin.y=this.notes[0].origin.y,a(Object.getPrototypeOf(e.prototype),"finishLayout",this).call(this,t)}},{key:"resetDependencies",value:function(){}},{key:"build",value:function(t){return new f(t,this)}},{key:"positionEpismata",value:function(t,e){var i;for(i=0;i<t.epismata.length;i++)t.epismata[i].positionHint===c.MarkingPositionHint.Default&&(t.epismata[i].positionHint=e);return t.epismata.length}},{key:"positionEpismataAbove",value:function(t){return this.positionEpismata(t,c.MarkingPositionHint.Above)}},{key:"positionEpismataBelow",value:function(t){return this.positionEpismata(t,c.MarkingPositionHint.Below)}},{key:"positionPodatusEpismata",value:function(t,e){this.positionEpismataBelow(t),this.positionEpismataAbove(e)}},{key:"positionPodatusMorae",value:function(t,e){var i;e.staffPosition-t.staffPosition===1&&1===Math.abs(t.staffPosition%2)&&(1===t.morae.length?i=t.morae[0]:e.morae.length>1&&(i=e.morae[0]),i&&(i.positionHint=c.MarkingPositionHint.Below)),t.morae.length>0&&0===e.morae.length&&(t.morae[0].ignoreBounds=!0)}},{key:"positionPodatusMarkings",value:function(t,e){this.positionPodatusEpismata(t,e),this.positionPodatusMorae(t,e)}},{key:"positionTorculusMarkings",value:function(t,e,i){var n=this.positionClivisMarkings(e,i);return n=this.positionEpismata(t,n?c.MarkingPositionHint.Above:c.MarkingPositionHint.Below)&&n}},{key:"positionClivisMorae",value:function(t,e){if(e.morae.length){var i=e.morae;i.length>1&&(i[0].horizontalOffset+=e.bounds.right()-t.bounds.right()),t.staffPosition-e.staffPosition===1&&1===Math.abs(e.staffPosition%2)&&(i.slice(-1)[0].positionHint=c.MarkingPositionHint.Below)}}},{key:"positionClivisEpismata",value:function(t,e){var i=this.positionEpismataAbove(t);return this.positionEpismata(e,i?c.MarkingPositionHint.Above:c.MarkingPositionHint.Below),i}},{key:"positionClivisMarkings",value:function(t,e){return this.positionClivisMorae(t,e),this.positionClivisEpismata(t,e)}},{key:"positionPorrectusMarkings",value:function(t,e,i){this.positionClivisEpismata(t,e),this.positionPodatusMarkings(e,i)}},{key:"positionPorrectusFlexusMarkings",value:function(t,e,i,n){var A=this.positionEpismataAbove(t);A=this.positionClivisMarkings(i,n)||A,this.positionEpismata(e,A?c.MarkingPositionHint.Above:c.MarkingPositionHint.Below)}},{key:"positionMarkings",value:function(){}}]),e}(h.ChantNotationElement),d=e.Apostropha=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){for(var t=c.MarkingPositionHint.Above,e=0;e<this.notes[0].epismata.length;e++)this.notes[0].epismata[e].positionHint===c.MarkingPositionHint.Default?this.notes[0].epismata[e].positionHint=t:t=this.notes[0].epismata[e].positionHint,t=t===c.MarkingPositionHint.Above?c.MarkingPositionHint.Below:c.MarkingPositionHint.Above}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);t.calculateHeightFromStaffPosition(4);this.build(t).noteAt(this.notes[0],e.getNoteGlyphCode(this.notes[0])),this.finishLayout(t)}}],[{key:"getNoteGlyphCode",value:function(t){return t.shape===l.NoteShape.Stropha?h.GlyphCode.Stropha:t.liquescent!==l.LiquescentType.None?h.GlyphCode.StrophaLiquescent:t.shapeModifiers&l.NoteShapeModifiers.Cavum?h.GlyphCode.PunctumCavum:h.GlyphCode.PunctumQuadratum}}]),e}(p);e.Bivirga=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionEpismataAbove(this.notes[0]),this.positionEpismataAbove(this.notes[1])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).virgaAt(this.notes[0]).advanceBy(t.intraNeumeSpacing).virgaAt(this.notes[1]),this.finishLayout(t);
}}]),e}(p),e.Trivirga=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionEpismataAbove(this.notes[0]),this.positionEpismataAbove(this.notes[1]),this.positionEpismataAbove(this.notes[2])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).virgaAt(this.notes[0]).advanceBy(t.intraNeumeSpacing).virgaAt(this.notes[1]).advanceBy(t.intraNeumeSpacing).virgaAt(this.notes[2]),this.finishLayout(t)}}]),e}(p),e.Climacus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){for(var t=0;t<this.notes.length;t++)this.positionEpismataAbove(this.notes[t])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).virgaAt(this.notes[0]).advanceBy(t.intraNeumeSpacing).withInclinati(this.notes.slice(1)),this.finishLayout(t)}}]),e}(p),e.Clivis=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionClivisMarkings(this.notes[0],this.notes[1])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=this.notes[0],n=this.notes[1];this.build(t).withClivis(i,n),this.finishLayout(t)}}]),e}(p),e.Distropha=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionEpismataAbove(this.notes[0]),this.positionEpismataAbove(this.notes[1])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).noteAt(this.notes[0],d.getNoteGlyphCode(this.notes[0])).advanceBy(t.intraNeumeSpacing).noteAt(this.notes[1],d.getNoteGlyphCode(this.notes[1])),this.finishLayout(t)}}]),e}(p),e.Oriscus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionEpismataAbove(this.notes[0])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i,n=this.notes[0];if(n.liquescent!==l.LiquescentType.None)i=h.GlyphCode.OriscusLiquescent;else if(n.shapeModifiers&l.NoteShapeModifiers.Ascending)i=h.GlyphCode.OriscusAsc;else if(n.shapeModifiers&l.NoteShapeModifiers.Descending)i=h.GlyphCode.OriscusDes;else{i=h.GlyphCode.OriscusDes;var A=t.findNextNeume();if(A){var s=t.activeClef.pitchToStaffPosition(A.notes[0].pitch);s>n.staffPosition&&(i=h.GlyphCode.OriscusAsc)}}this.build(t).noteAt(n,i),this.finishLayout(t)}},{key:"resetDependencies",value:function(){this.notes[0].shapeModifiers&l.NoteShapeModifiers.Ascending||this.notes[0].shapeModifiers&l.NoteShapeModifiers.Descending||(this.needsLayout=!0)}}]),e}(p),e.PesQuassus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i,n=this.notes[0],A=this.notes[1],s=n.staffPosition,o=A.staffPosition;i=n.shape===l.NoteShape.Oriscus?h.GlyphCode.OriscusAsc:h.GlyphCode.PunctumQuadratum;var r=this.build(t).noteAt(n,i);o-s===1?r.virgaAt(A):A.liquescent===l.LiquescentType.LargeDescending?r.noteAt(A,h.GlyphCode.PunctumQuadratumDesLiquescent).withLineEndingAt(n):r.noteAt(A,h.GlyphCode.PunctumQuadratum).withLineEndingAt(n),this.finishLayout(t)}}]),e}(p),e.PesSubpunctis=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionPodatusEpismata(this.notes[0],this.notes[1]);for(var t=2;t<this.notes.length;++t)this.positionEpismataAbove(this.notes[t])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).withPodatus(this.notes[0],this.notes[1]).advanceBy(t.intraNeumeSpacing/2).withInclinati(this.notes.slice(2)),this.finishLayout(t)}}]),e}(p),e.Podatus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionPodatusMarkings(this.notes[0],this.notes[1])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).withPodatus(this.notes[0],this.notes[1]),this.finishLayout(t)}}]),e}(p),e.Porrectus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionPorrectusMarkings(this.notes[0],this.notes[1],this.notes[2])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i,n=this.notes[0],A=this.notes[1],s=this.notes[2];i=s.liquescent&l.LiquescentType.Small?h.GlyphCode.TerminatingAscLiquescent:s.liquescent&l.LiquescentType.Descending?h.GlyphCode.PunctumQuadratumDesLiquescent:h.GlyphCode.PodatusUpper,this.build(t).lineFrom(A).withPorrectusSwash(n,A).noteAt(s,i),this.finishLayout(t)}}]),e}(p),e.PorrectusFlexus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionPorrectusFlexusMarkings(this.notes[0],this.notes[1],this.notes[2],this.notes[3])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i,n=this.notes[0],A=this.notes[1],s=this.notes[2],o=this.notes[3],r=h.GlyphCode.PunctumQuadratum;o.liquescent&l.LiquescentType.Small?(r=h.GlyphCode.PunctumQuadratumDesLiquescent,i=h.GlyphCode.TerminatingDesLiquescent):i=o.liquescent&l.LiquescentType.Ascending?h.GlyphCode.PunctumQuadratumAscLiquescent:o.liquescent&l.LiquescentType.Descending?h.GlyphCode.PunctumQuadratumDesLiquescent:h.GlyphCode.PunctumQuadratum,this.build(t).lineFrom(A).withPorrectusSwash(n,A).noteAt(s,r).noteAt(o,i),this.finishLayout(t)}}]),e}(p),e.PunctaInclinata=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).withInclinati(this.notes),this.finishLayout(t)}}]),e}(p),e.Punctum=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionEpismataAbove(this.notes[0])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=this.notes[0],n=h.GlyphCode.PunctumQuadratum;i.liquescent!==l.LiquescentType.None?i.shape===l.NoteShape.Inclinatum?n=h.GlyphCode.PunctumInclinatumLiquescent:i.shape===l.NoteShape.Oriscus?n=h.GlyphCode.OriscusLiquescent:i.liquescent&l.LiquescentType.Ascending?n=h.GlyphCode.PunctumQuadratumAscLiquescent:i.liquescent&l.LiquescentType.Descending&&(n=h.GlyphCode.PunctumQuadratumDesLiquescent):n=i.shapeModifiers&l.NoteShapeModifiers.Cavum?h.GlyphCode.PunctumCavum:i.shape===l.NoteShape.Inclinatum?h.GlyphCode.PunctumInclinatum:i.shape===l.NoteShape.Quilisma?h.GlyphCode.Quilisma:h.GlyphCode.PunctumQuadratum,this.build(t).noteAt(i,n),this.finishLayout(t)}}]),e}(p),e.Salicus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){for(var t=0;t<this.notes.length;t++)this.positionEpismataBelow(this.notes[t])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=this.notes[0],n=this.notes[1],A=this.notes[2],s=this.build(t).noteAt(i,h.GlyphCode.PunctumQuadratum);n.shapeModifiers&l.NoteShapeModifiers.Stemmed||s.advanceBy(t.intraNeumeSpacing),s.noteAt(n,h.GlyphCode.OriscusAsc),A.liquescent&l.LiquescentType.Small?s.noteAt(A,h.GlyphCode.TerminatingAscLiquescent):A.liquescent===l.LiquescentType.Ascending?s.noteAt(A,h.GlyphCode.PunctumQuadratumAscLiquescent):A.liquescent===l.LiquescentType.Descending?s.noteAt(A,h.GlyphCode.PunctumQuadratumDesLiquescent):s.virgaAt(A),this.finishLayout(t)}}]),e}(p),e.SalicusFlexus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){var t=this.positionTorculusMarkings(this.notes[1],this.notes[2],this.notes[3]);this.positionEpismata(this.notes[0],t?c.MarkingPositionHint.Above:c.MarkingPositionHint.Below)}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=this.notes[0],n=this.notes[1],A=this.notes[2],s=this.notes[3],o=this.build(t).noteAt(i,h.GlyphCode.PunctumQuadratum);n.shapeModifiers&l.NoteShapeModifiers.Stemmed||o.advanceBy(t.intraNeumeSpacing),o.noteAt(n,h.GlyphCode.OriscusAsc),s.liquescent&l.LiquescentType.Small?o.noteAt(A,h.GlyphCode.PunctumQuadratumDesLiquescent):o.noteAt(A,h.GlyphCode.PunctumQuadratum),s.liquescent&l.LiquescentType.Small?o.noteAt(s,h.GlyphCode.TerminatingDesLiquescent):s.liquescent&l.LiquescentType.Ascending?o.noteAt(s,h.GlyphCode.PunctumQuadratumAscLiquescent):s.liquescent&l.LiquescentType.Descending?o.noteAt(s,h.GlyphCode.PunctumQuadratumDesLiquescent):o.noteAt(s,h.GlyphCode.PunctumQuadratum),this.finishLayout(t)}}]),e}(p),e.Scandicus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.notes[2].shape===l.NoteShape.Virga?(this.positionPodatusMarkings(this.notes[0],this.notes[1]),this.positionEpismataAbove(this.notes[2])):(this.positionEpismataBelow(this.notes[0]),this.positionPodatusMarkings(this.notes[1],this.notes[2]))}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=this.notes[0],n=this.notes[1],A=this.notes[2];A.shape===l.NoteShape.Virga?this.build(t).withPodatus(i,n).virgaAt(A):this.build(t).noteAt(i,h.GlyphCode.PunctumQuadratum).withPodatus(n,A),this.finishLayout(t)}}]),e}(p),e.ScandicusFlexus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.notes[2].shape===l.NoteShape.Virga?(this.positionPodatusMarkings(this.notes[0],this.notes[1]),this.positionClivisMarkings(this.notes[2],this.notes[3])):(this.positionEpismataBelow(this.notes[0]),this.positionPodatusMarkings(this.notes[1],this.notes[2]),this.positionEpismataAbove(this.notes[3]))}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i=this.notes[0],n=this.notes[1],A=this.notes[2],s=this.notes[3];if(A.shape===l.NoteShape.Virga)this.build(t).withPodatus(i,n).advanceBy(t.intraNeumeSpacing).withClivis(A,s);else{var o=h.GlyphCode.PunctumQuadratum;s.liquescent&l.LiquescentType.Ascending?o=h.GlyphCode.PunctumQuadratumAscLiquescent:s.liquescent&l.LiquescentType.Descending&&(o=h.GlyphCode.PunctumQuadratumDesLiquescent),this.build(t).noteAt(i,h.GlyphCode.PunctumQuadratum).withPodatus(n,A).advanceBy(t.intraNeumeSpacing).noteAt(s,o)}this.finishLayout(t)}}]),e}(p),e.Torculus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionTorculusMarkings(this.notes[0],this.notes[1],this.notes[2])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i,n,A=this.notes[0],s=this.notes[1],o=this.notes[2];i=A.liquescent===l.LiquescentType.InitioDebilis?h.GlyphCode.TerminatingDesLiquescent:A.shape===l.NoteShape.Quilisma?h.GlyphCode.Quilisma:h.GlyphCode.PunctumQuadratum,n=o.liquescent&l.LiquescentType.Small?h.GlyphCode.TerminatingDesLiquescent:o.liquescent&l.LiquescentType.Ascending?h.GlyphCode.PunctumQuadratumAscLiquescent:o.liquescent&l.LiquescentType.Descending?h.GlyphCode.PunctumQuadratumDesLiquescent:h.GlyphCode.PunctumQuadratum,this.build(t).noteAt(A,i).noteAt(s,h.GlyphCode.PunctumQuadratum).noteAt(o,n),this.finishLayout(t)}}]),e}(p),e.TorculusResupinus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionPorrectusMarkings(this.notes[1],this.notes[2],this.notes[3]),this.positionClivisEpismata(this.notes[1],this.notes[0])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i,n,A=this.notes[0],s=this.notes[1],o=this.notes[2],r=this.notes[3];i=A.liquescent===l.LiquescentType.InitioDebilis?h.GlyphCode.TerminatingDesLiquescent:A.shape===l.NoteShape.Quilisma?h.GlyphCode.Quilisma:h.GlyphCode.PunctumQuadratum,n=r.liquescent&l.LiquescentType.Small?h.GlyphCode.TerminatingAscLiquescent:o.liquescent&l.LiquescentType.Descending?h.GlyphCode.PunctumQuadratumDesLiquescent:h.GlyphCode.PodatusUpper,this.build(t).noteAt(A,i).withPorrectusSwash(s,o).noteAt(r,n),this.finishLayout(t)}}]),e}(p),e.TorculusResupinusFlexus=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionPorrectusFlexusMarkings(this.notes[1],this.notes[2],this.notes[3],this.notes[4]),this.positionClivisEpismata(this.notes[1],this.notes[0])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t);var i,n,A=this.notes[0],s=this.notes[1],o=this.notes[2],r=this.notes[3],u=this.notes[4],c=h.GlyphCode.PunctumQuadratum;i=A.liquescent===l.LiquescentType.InitioDebilis?h.GlyphCode.TerminatingDesLiquescent:A.shape===l.NoteShape.Quilisma?h.GlyphCode.Quilisma:h.GlyphCode.PunctumQuadratum,u.liquescent&l.LiquescentType.Small?(c=h.GlyphCode.PunctumQuadratumDesLiquescent,n=h.GlyphCode.TerminatingDesLiquescent):n=u.liquescent&l.LiquescentType.Ascending?h.GlyphCode.PunctumQuadratumAscLiquescent:u.liquescent&l.LiquescentType.Descending?h.GlyphCode.PunctumQuadratumDesLiquescent:h.GlyphCode.PunctumQuadratum,this.build(t).noteAt(A,i).withPorrectusSwash(s,o).noteAt(r,c).noteAt(u,n),this.finishLayout(t)}}]),e}(p),e.Tristropha=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionEpismataAbove(this.notes[0]),this.positionEpismataAbove(this.notes[1]),this.positionEpismataAbove(this.notes[2])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).noteAt(this.notes[0],d.getNoteGlyphCode(this.notes[0])).advanceBy(t.intraNeumeSpacing).noteAt(this.notes[1],d.getNoteGlyphCode(this.notes[1])).advanceBy(t.intraNeumeSpacing).noteAt(this.notes[2],d.getNoteGlyphCode(this.notes[2])),this.finishLayout(t)}}]),e}(p),e.Virga=function(t){function e(){return o(this,e),A(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),r(e,[{key:"positionMarkings",value:function(){this.positionEpismataAbove(this.notes[0])}},{key:"performLayout",value:function(t){a(Object.getPrototypeOf(e.prototype),"performLayout",this).call(this,t),this.build(t).virgaAt(this.notes[0]),this.finishLayout(t)}}]),e}(p)}])});
//# sourceMappingURL=exsurge.min.js.map